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
John Colvin
c00a71fdfa
chore: Add fill_kind to ITradeLogRow
2022-08-01 11:14:29 -04:00
John Colvin
197c915968
Remove erroneous font_size binding in xaml
...
Each cell's font size comes from its associated column object (not the cell vm)
2022-08-01 11:14:29 -04:00
John Colvin
6d77a07bbe
fix: Load grid-level settings in pnl window
...
Font family/size/weight, foreground, background
2022-08-01 11:14:29 -04:00
John Colvin
adfb560dd1
chore: Post users-map on the bus
2022-08-01 11:14:29 -04:00
John Colvin
508d20e4e0
refactor: Rename ITradeLogRow.trade_key -> order_key
...
This is what it actually is; the trade_key misnomer was ported from edge
2022-08-01 11:14:29 -04:00
John Colvin
72457619f7
chore: Move IPositionModel to Spark.Trading ns
2022-08-01 11:14:29 -04:00
John Colvin
18d5b83a95
chore: Replace anon pnl win w/ proper PNLWindow class
...
The PNL window is too complex/terse to be nested anonymously in the
PNLWindowFactory class. This makes the code cleaner/easier to read.
2022-08-01 11:14:29 -04:00
John Colvin
653362b947
chore: Make 'Safe' IEnumerable exts accept nullable ref types
2022-08-01 11:14:29 -04:00
John Colvin
b7477b8f93
fix (fills ui): Add back 'Fill Status' col
...
Not sure when/why it went missing
2022-08-01 11:14:29 -04:00
John Colvin
105f1fceaf
ui (pnl): Increase sec column default width
2022-08-01 11:14:29 -04:00
John Colvin
cb65489ab7
fix (combo vm): Fix typo when assigning swipe_sum net/calls/puts
...
Bugs (fixed):
* The swipe sum net/puts are swapped in combo status bar
2022-08-01 11:14:29 -04:00
John Colvin
96772727df
fix (exp params): Ensure auto-picked driver has right sym
2022-08-01 11:14:29 -04:00
John Colvin
960a618fe1
fix: Bind pnl account col to AccountTuple
...
Bugs (fixed):
* The group-row pnl cell hyperlinks don't open anything when clicked
Cause: An InvalidCastException is thrown when the code that creates the fills
vm (for the popup) casts 'PNLRowCollectionViewGroup.Name' to an AccountTuple,
as said 'Name' member is bound to the 'account_name' (of type string).
2022-08-01 11:14:29 -04:00
John Colvin
505cd37225
chore: Assert that PositionPriceSize.GetHashCode isn't invoked
...
Impl doesn't guarentee equal objects produce the same hash
2022-08-01 11:14:28 -04:00
John Colvin
a5f66b8ac6
feat: Add greeks cols to pnl view (for options)
2022-08-01 11:14:28 -04:00
John Colvin
2021f29f62
feat: Support options in pnl view
2022-08-01 11:14:28 -04:00
John Colvin
9ccf3e0f87
chore: Remove UTF-8 BOM from pnl files
2022-08-01 11:14:28 -04:00
John Colvin
7cfc53eba8
refactor: Make sum_real ext generic (IFloatingPoint<T>)
...
Also add bool param 'nan_if_none' (to return NaN instead of 0 when values
contains no real numbers)
2022-08-01 11:14:28 -04:00
John Colvin
f9d269c750
chore: Add account_id to ITradeLogRow, IPNLUnit
2022-08-01 11:14:28 -04:00
John Colvin
67d5161fd1
chore: Dispose _pnl_calc in ReportDaemon.Dispose
...
This wasn't causing any problems in practice (this class is instantiated once
on startup and never gets disposed). However, since it implements IDisposable,
might as well do it correctly.
2022-08-01 11:14:28 -04:00
Taha Afzal
d6e9bbce71
Something funky, not sure why it is showing as touched
2022-08-01 11:14:28 -04:00
John Colvin
76ec2c0fa2
fix: Pass key_fn to TableUpdate Operate ext
...
Bugs (fixed):
* PNL window crashes immediately when opened
Cause: The 'Operate' ext fn aggregates an IObservable of TableUpdates w/
another IObservable of any T. If the latter fires before the former, an
'empty' TableUpdate is passed to the aggregate fn. When this happens, a
null ref ex is thrown in the 'empty' TableUpdate's ctr because the key
param is null.
2022-08-01 11:14:28 -04:00
Taha Afzal
e82a2c9402
Added Day PNL trades to PNLData
2022-08-01 11:14:28 -04:00