Taha Afzal
b4c65bdde3
Merge branch 'spark_crypto' of bitbucket.org:bluetradesys/spark into spark_crypto
2022-02-07 14:48:00 -05:00
Taha Afzal
8bd003d21e
Perf logs added, plus GreekTuple initialization fixed
2022-02-07 14:47:55 -05:00
John Colvin
11bb41bbb6
Fix typo in mview row vm (delta prop was returning theo)
2022-02-07 12:28:48 -05:00
Taha Afzal
ebefc65b69
Merge branch 'spark_crypto' of bitbucket.org:bluetradesys/spark into spark_crypto
2022-02-07 11:43:18 -05:00
Taha Afzal
045029bfb4
Taing logging
2022-02-07 11:43:03 -05:00
Taha Afzal
f66ab59f0d
Added mark price for Deribit
2022-02-06 18:49:51 -05:00
John Colvin
4c608eec0e
feat: Hide vs dummy window
2022-02-06 15:09:47 -05:00
John Colvin
2d6864b191
fix: Remove vs dummy win from win manager on main thread
2022-02-06 14:49:10 -05:00
Taha Afzal
1545458c76
Adding mark prices to VOlSurfaceMDUnit
2022-02-05 19:39:11 -05:00
Taha Afzal
d23a390bf6
File name change
2022-02-05 19:08:52 -05:00
John Colvin
9e34cb3d61
feat: Add Vol and Driver cols to mview
2022-02-05 14:40:30 -05:00
John Colvin
170f526617
fix: Add greeks col filters to mview settings
2022-02-05 14:40:30 -05:00
John Colvin
17e0b37882
feat: Add greek col comparers to mview
2022-02-05 14:40:30 -05:00
John Colvin
cbe3c1939e
refactor: Clean up mview
...
* Rename members with shorter names (mainly to reduce the width of various
calls, esp those that add columns in the MarketViewVM constructor)
* Move mview settings classes into own files
* Run formatter
2022-02-05 14:40:23 -05:00
Taha Afzal
251b014604
Added vs removal code to the service + adjusted to emumba's interface change
2022-02-04 18:52:49 -05:00
John Colvin
fe416e726a
fix: Make mview columns implement ISortableDIYGridColumn
...
Bugs (fixed):
* mview column sorting is broken
2022-02-04 17:42:04 -05:00
John Colvin
4dcf296af2
Fix re-entrancy bug in PNLWindow when cols are changing
...
* Log column collection change events for diagnostic purposes
* Clean up code a bit
2022-02-04 17:41:32 -05:00
John Colvin
0a8a3bf6f2
refactor: Get rid of DoubleUtil
...
* Consolidate functionality in MathUtils and NumericExtensions
* Define gui-related epsilons in WPFHelper and HighDpiExtensions
2022-02-04 17:41:32 -05:00
John Colvin
174a7baaf4
refactor: Move numeric-extensions into own class
2022-02-04 17:41:32 -05:00
John Colvin
0e41b88bdf
refactor: Clean up MathUtils
...
* Fix name violations
* Make lcm and gcd fns more efficient
* Use modern language features
* Run formatter
2022-02-04 17:41:32 -05:00
John Colvin
822dc0794a
fix: Don't consider infinity a real number
2022-02-04 17:41:32 -05:00
John Colvin
f644a3392b
feat: Hook up (repair) vs grid settings editor
...
The vs grid settings editor code had already been ported over, but never
actually worked
2022-02-04 17:41:32 -05:00
John Colvin
8634386862
refactor: Return bool indicating whether AddOrUpdate adds item
2022-02-04 17:41:32 -05:00
John Colvin
e4a84d343a
Fix typo to correct insertion-idx-bug
2022-02-04 17:41:32 -05:00
John Colvin
7b0a7f7107
refactor: Change sync_with_never_duplicate param to IList
...
This makes the param more flexible, and thus broadens the fn's usability
2022-02-04 17:41:32 -05:00
John Colvin
11f345f3cd
fix: Use IEqualityComparer arg in sync_with_never_duplicate
2022-02-04 17:41:32 -05:00
John Colvin
17f10b2450
refactor: Make DIYGrid.Columns type IReadOnlyList
...
This allows viewmodels to take advantage of IReadOnlyList<out T> covariance and
use more strongly typed column elements
2022-02-04 17:41:31 -05:00
John Colvin
18e26515de
refactor: Support mutations in MutableWrapper list
...
Previously, this class was used to alias IReadOnlyList as an IList, and
each mutation fn would throw a NotSupportedException. Now
mutations are supported if the source list implements IList (in
addition to IReadOnlyList)
2022-02-04 17:41:31 -05:00
John Colvin
ee9d68c0e7
style: Flip if condition to dedent big code block
2022-02-04 17:41:31 -05:00
John Colvin
f019163b35
Add AllowNaN and NaNText props to TickUpDownDouble
2022-02-04 17:41:31 -05:00
John Colvin
b86b9b474f
Fix display_name binding in vs grid settings view
2022-02-04 17:41:31 -05:00
John Colvin
a7372fdcf6
Add ProtoMember attrs to TickDisplaySettings props
2022-02-04 17:41:31 -05:00
John Colvin
59c5fd1256
refactor: Impl ICloneable<GridSettings> in GridSettings
2022-02-04 17:41:31 -05:00
John Colvin
8fc55951eb
Fix typo in tick parse fn
...
The parsed result was being multiplied by the display_multiplier where it
should have been divided by it. The parse fn is the inverse of the format fn,
which multiplies by the display_multiplier
2022-02-04 17:41:31 -05:00
John Colvin
1e60c2fc78
Fix rounding error in tickup/down fns
...
This bug went unnoticed until now bc these particular tickup/down fns
were never called in practice. However, their use is imminent in the
volsurface ui (namely the grid)
2022-02-04 17:41:31 -05:00
John Colvin
b6256244d3
refactor: Add driver to GreeksTuple
2022-02-04 17:41:31 -05:00
John Colvin
e872106c5c
refactor: Make GreeksTuple.with fn params nullable
...
This makes it possible to replace GreeksTuple fields with NaN
(previously, NaN indicated that an arg should be ignored)
2022-02-04 17:41:31 -05:00
John Colvin
fc18d58681
refactor: Default GreeksTuple args to nan in ctr
2022-02-04 17:41:31 -05:00
John Colvin
7845b3fdc1
refactor: Clean up TickExtensions
2022-02-04 17:41:31 -05:00
John Colvin
4b27bbe490
Add handy utils to TickFactors/DisplaySettings
...
* Add static TickFactors presets
* Add TickDisplaySettings default
* Make TickFactors implement ICloneable<TickFactors>
* Add 'with' ext fn
TODO:
* Replace instantiations of TickDisplaySettings that rely on inlined
default values with the TickDisplaySettings.Default prop
2022-02-04 17:41:30 -05:00
John Colvin
3cd0c4073e
refactor: Clean up TickFactors
...
* Get rid of _equals fn that assumes non-null args
* Use modern language features
* Run formatter
2022-02-04 17:41:30 -05:00
John Colvin
a7803877e9
refactor: Rename RoundFractionalUnits to snake_case
2022-02-04 17:41:30 -05:00
John Colvin
0c4010baab
refactor: Rename SafeContains ext fn to snake_case
2022-02-04 17:41:30 -05:00
John Colvin
c6a1b7bc0d
refactor: Rename EmptyIfNull ext fn to snake_case
2022-02-04 17:41:30 -05:00
John Colvin
ee74548daa
refactor: Rename NullIfEmpty ext fn to snake_case
2022-02-04 17:41:30 -05:00
John Colvin
e6c5afa8b2
refactor: Rename IsNullOrEmpty ext fn to snake_case
2022-02-04 17:41:30 -05:00
John Colvin
260d5ddbbe
refactor: Remove unused tick utils (fns and IValueConverters)
2022-02-04 17:41:30 -05:00
John Colvin
ec53038042
refactor: Move safe_equals ext fns to spark_api
2022-02-04 17:41:29 -05:00
John Colvin
a3378a188a
refactor: Fix typo criterion -> criteria
2022-02-04 17:41:29 -05:00
John Colvin
1fa17d63a2
refactor: Rename MarketViewView.Columns -> MarketViewColumnType
2022-02-04 17:41:29 -05:00