John Colvin
1faef425ab
refactor: Consolidate format_expiration fns into single fn
2022-08-07 13:51:54 -04:00
John Colvin
bb068cf6b2
fix (preemptive): Add 'Option' case to exp switch expr
2022-08-07 13:51:54 -04:00
John Colvin
f7cade41c6
ui (day fills): Fmt qty cols w/ sec-meta display settings
2022-08-07 13:51:54 -04:00
John Colvin
47afd3a911
ui (day fills): Hide bid/ask cols by default
2022-08-07 13:51:54 -04:00
John Colvin
ef80d2a41d
ui: Shorten a few default column widths
...
Namely: Account, Exchange, and Symbol
2022-08-07 13:51:53 -04:00
John Colvin
44ef080e9f
ui (day fills): Format theo and driver w/ 4 dec places
...
With the caveat that future fills' drivers are formatted according to their own
tick factors (i.e., same as the "price" column). This should be good/reasonable
behavior because in rare cases where futures don't drive themselves, they are
most likely driven by a neighboring expiration with the same price display.
2022-08-07 13:51:53 -04:00
John Colvin
fef8d2c413
ui (day fills): Format price w/ sec's tick factors
2022-08-07 13:51:53 -04:00
John Colvin
201746e561
fix (day fills): Init column models w/ settings
...
Bugs (fixed):
* Day fills column settings are not restored with workspace
Cause: This is a kind-of re-entrancy bug. When the SimpleGridSettingsManager
attempts to load the initial column settings, it assigns props in the column
views. When the width prop is set, the column view forwards the new width to
the model, which causes the model to fire a settings_changed event, which
pipes the model's settings (which have not been fully initialized) back to
the view.
2022-08-07 13:51:53 -04:00
John Colvin
8e375a0b7f
ui (day fills): Use qty fg to indicate fill side
...
Rather than using the row bg, this gives the win a subtler, more modern look
2022-08-07 13:51:53 -04:00
John Colvin
045f3dc060
chore: Move ValueConverter into own file
2022-08-07 13:51:53 -04:00
John Colvin
6b6012236d
ui (day fills): Add pnl, delta foreground triggers
2022-08-07 13:51:53 -04:00
John Colvin
9cee798939
chore: Set ModalStateDefinition ContentProperty
...
For convenience in xaml (so ModalStateDefinition.Source can be defined without
explicit tag)
2022-08-07 13:51:53 -04:00
John Colvin
c79bdb12e0
refactor: Make ActivityLogCategories readonly props
2022-08-07 13:51:53 -04:00
John Colvin
bce77d65de
fix: Add null check in OptionsView
...
Bugs (fixed):
* If an Options View window is launched w/ "incomplete" security criteria
(i.e., not a tuple of Exch, Type, Sym), a null ref crash happens when the
window is restored with the workspace.
2022-08-07 13:51:53 -04:00
John Colvin
0db814ef2d
fix (rec rept): Use tick-factors to avoid rounding errors
...
Bugs (fixed):
* Reconcile Report can show false positive price mismatch
Cause: The epsilon const (1E-12) used in the price comparison too small.
Evidently, the Deribit-position prices provided to the Reconcile Report are
only accurate up to 9 decimal places.
2022-08-07 13:51:53 -04:00
John Colvin
31b5ec4bd3
fix (fills view): Change side col base class row type to the vm
...
Bugs (fixed):
* In the Fills window, side column cells are empty
2022-08-07 13:51:52 -04:00
John Colvin
e15cdfd76e
refactor: Add get bg/fg delegates to RenderColumnBase
...
These colors are frequently functions of the rows; now such cases don't require
implementation in classes that derive from RenderColumnBase
2022-08-07 13:51:52 -04:00
John Colvin
eb150ba82c
chore (ui): Hook up background setting in OrderTypeColumn
2022-08-07 13:51:52 -04:00
John Colvin
d763275179
fix (ui preemptive): Bind horiz align setting to horiz content align
...
Bugs (fixed)
* (preemptive) The OrderTypeColumn root border doesn't span the width of the
column. This would happen if the column's background was a
non-transparent brush, and horizontal alignment wasn't stretched.
2022-08-07 13:51:52 -04:00
John Colvin
2b96a8a5c4
ui: Enable grid background setting in all windows
...
And remove bool props that were used to toggle this behavior
2022-08-07 13:51:52 -04:00
John Colvin
31866c76b7
chore (vs graph): Add tick_line_color setting
2022-08-07 13:51:52 -04:00
John Colvin
a2da946e03
fix (vs graph): Actually use axis_line_color setting in vm
...
Bugs (fixed):
* The vs graph axis line color setting is ignored
2022-08-07 13:51:52 -04:00
John Colvin
528bab34e7
chore: Show color name in ColorNotFoundException msg
2022-08-07 13:51:52 -04:00
John Colvin
776b9e4f94
chore: Remove '_color' and '_brush' props from BTSColors
...
The BTSColor props are implicitly convertible to both System.Windows.Media.Color
and Brush
2022-08-07 13:51:52 -04:00
John Colvin
168d328e97
chore: Clean BTSColorExtension
2022-08-06 23:54:15 -04:00
John Colvin
f871dbd230
chore: Add 'Pure' attr to is_null_or_empty ext
2022-08-06 23:54:15 -04:00
John Colvin
1662b56ea0
refactor: Clean up ReflectionHelper a bit
...
* Rename '(static_)property_delegates_of_type' -> '(static_)property_getters',
and include name w/ prop getters
* Rename 'FindApplicableConstructor' -> 'get_constructor'
* Remove unused fns
2022-08-06 23:54:15 -04:00
John Colvin
f3302dbac0
fix (ui): Validate width/height before updating DragRectAdorner
2022-08-06 23:54:15 -04:00
John Colvin
181072f3e7
chore: Clean up ui settings classes
...
* Move most settings files into new dir 'Model/Settings'
* Conform code style to our current practices
2022-08-06 23:54:15 -04:00
John Colvin
f654312123
chore (refactor): Move synth mgmt settings classes into sep files
2022-08-05 13:41:37 -04:00
John Colvin
c46d97646a
fix: Gather individual win settings on dispatcher thread
...
In practice, window-states live on their respective dispatcher threads.
Window settings factories shouldn't be expected to be thread-safe.
2022-08-05 13:41:37 -04:00
John Colvin
41742359e9
fix (vs ui): Don't clip vs time sched ui
2022-08-05 13:41:37 -04:00
John Colvin
024723925e
ui (vs grid settings): Constrain window height
2022-08-05 13:41:37 -04:00
John Colvin
76b834768e
style: Clean up spark.csproj
2022-08-05 13:41:37 -04:00
John Colvin
89284bea87
build: Upgrade csharp nuget pkgs
2022-08-05 13:41:37 -04:00
John Colvin
532154640b
refactor: Replace PNLCellAppearance ctr w/ 'init' props
2022-08-05 13:41:36 -04:00
Taha Afzal
ab8468d498
Added function in VolSurfaceDisplayModel to populate empty exps
2022-08-04 18:42:15 -04:00
Taha Afzal
84b0332778
Better logs for the case when Deribit's open orders's security can not be resolved
2022-08-03 23:53:57 -04:00
Taha Afzal
20b601f290
Fixed the crash related to querying Deribit for open orders
2022-08-03 16:57:10 -04:00
Taha Afzal
47002cae4c
This PNL fix change was accidentally merged out
2022-08-03 08:47:50 -04:00
John Colvin
eaaffe369a
Fix typo typeof(HyperlinkCell) -> typeof(TextCell)
2022-08-03 00:07:39 -04:00
John Colvin
7292a31c00
fix (rec rep): Save grid settings w/ workspace
2022-08-03 00:07:39 -04:00
John Colvin
389d762a93
ui (launcher): Drop "2" in "P&L 2" menu item
...
It was leftover from the transition to the "new" pnl window (which hasn't been
new since 2019)
2022-08-03 00:07:39 -04:00
John Colvin
9704ebf096
style: Move ReconcileReportModel into rec rep dir
2022-08-03 00:07:39 -04:00
John Colvin
de320338ca
ui (launcher): Group 'Fill' menu items together
2022-08-03 00:07:39 -04:00
John Colvin
668dfd9130
feat (ui): Add Day Fills win
2022-08-03 00:07:39 -04:00
John Colvin
a2960b23a8
refactor (ITradeLogRow): Rename trader -> user, add user_id
...
Use consistent nomenclature throught the sys
2022-08-03 00:01:02 -04:00
John Colvin
55744edc25
refactor: Move SecurityDataHelper.Defaults into Security class
2022-08-02 13:24:48 -04:00
John Colvin
7ece5d18cb
refactor: Move sec 'key_fn' into Security class
2022-08-02 12:37:46 -04:00
John Colvin
8005ac8635
refactor: Name top_of_book tuple items bid/ask
2022-08-01 21:56:07 -04:00