Commit Graph
12628 Commits
Author SHA1 Message Date
John Colvin 61b4696574 fix: Don't print bogus level in LadderLivePrinter
This is used when running 'sparkd ladder-demo'

Bugs (fixed):
  * Sometimes it prints a bogus level

  cause: The 'last_ask' iterator is pointing just after the last element
  (i.e,. asks.end(), a bogus value)
2022-06-07 23:07:33 -04:00
John Colvin 91a79a5d96 refactor: Simplify md gateway/binance subscription
* Temporarily get rid of the register_listener fn, and just use
  subscribe/unsubscribe to immediately connect/disconnect listeners to
  exchange feeds. The 'register, then subscribe per sec-id' paradigm is
  tricky to implement without access to security ids.
2022-06-07 23:07:33 -04:00
John Colvin 23927edf46 fix: Add missing log msg param 2022-06-07 22:44:33 -04:00
John Colvin 6c03e605b8 refactor: Consolidate md listener management into MarketDataGateway
This responsibility was awkwardly split between MarketDataGateway and
BinanceDepthStreamSite before, which made code confusing/hard to follow.
2022-06-07 22:44:33 -04:00
John Colvin 2e201159d8 refactor: Move BinanceDepthStreamParams into own file 2022-06-07 22:44:33 -04:00
taha afzal 5d56a8e440 Added some comments and imporves the logs 2022-06-06 17:27:08 -04:00
taha afzal 7097c85555 Fixing the SQLite error on archive_theos that was crashing the server on a duplicate key assertion 2022-06-06 15:14:57 -04:00
John Colvin bbadbf8e16 build: Move .cmake files to cmake dir (from tools) 2022-06-03 10:42:32 -04:00
John Colvin 68d8659115 fix (ui/slide): Fix greek tick-display formatting
Rather than fix the format fn for the old type, TickDisplaySettingsTuple,
convert params to the newer type, TickDisplaySettings, then call that type's
formatting fn (which isn't broken).
2022-06-03 01:16:03 -04:00
John Colvin dd008962a7 ui (slide/vs settings): Adjust expand/collapse durations 2022-06-03 00:42:05 -04:00
John Colvin e856e7e58f style: Add 'at_most/least' aliases for min/max ext fns
Also add documentation (for completeness sake)
2022-06-03 00:41:04 -04:00
John Colvin 634d8e1aeb fix (pre-emptive): Add null check in SecurityFormatter 2022-06-02 17:44:38 -04:00
John Colvin eaa9376577 fix (pre-emptive): Add some null checks in ContractLegEnumerable
And clean up the code a bit while we're at it
2022-06-02 17:44:38 -04:00
John Colvin 3fb70fd645 fix (contractpicker): Don't init SecurityMap w/ empty dict
Bugs (fixed):
  * The create-synth dialog crashes when picking a new leg's security
2022-06-02 17:44:38 -04:00
John Colvin b793c75aa8 Add some null checks to LegSpreaderParamsTuple 2022-06-02 17:44:38 -04:00
John Colvin cb26b9af39 fix (contractpicker): Remove SecurityMap CoerceValueCallback
This was breaking the binding so that the view had a different
security-map instance than the vm
2022-06-02 17:44:38 -04:00
John Colvin 07fe19ecdc build: Symlink emumba license in build dir
So we don't have to do it manually
2022-06-02 02:15:14 -04:00
John Colvin a292fe87e1 build: Set up cmake 'install' build target
The 'install' build target creates a self-contained (deployable) sparkd
package. It copies the sparkd executable and its dependencies into a
single directory (no symlinks), which can then be copied/deployed to
another machine.

Run `cmake --build . --target install` to install sparkd in the
directory defined by the CMAKE_INSTALL_PREFIX variable.
2022-06-02 01:32:17 -04:00
John Colvin cc318535e9 fix (slide settings ui): Add show_commas prop to GreekDisplayVM
Bugs (fixed):
  * The 'show commas' check box doesn't do anything in slide settings ui

    Cause: The view is bound to a non-existent prop in the vm
2022-06-01 19:28:13 -04:00
John Colvin 9d245f3243 ui (vs settings): Wrap body in scrollviewer 2022-06-01 19:02:42 -04:00
John Colvin 6d7f95ac8e ui (vs settings): Change radio buttons to dropdown
The radio buttons take up too much space
2022-06-01 19:02:42 -04:00
John Colvin 9d9df76f4e refactor: Clean up KeyedTemplateSelector
* Use new lang feats
* Run formatter
* Split up classes into separate files
* Move into Controller dir (per the MVCVM paradigm)
2022-06-01 19:02:42 -04:00
John Colvin a850082f44 refactor: Move StringExtensions to ns Spark.Core 2022-06-01 19:02:42 -04:00
John Colvin 521150a73b refactor: Clean up StringExtensions
* Use new lang feats
* Run formatter
2022-06-01 19:02:42 -04:00
John Colvin ed5f3fe740 ui (slide settings): Change param validation msgs
Change 'Specify' to 'Choose'
2022-06-01 19:02:41 -04:00
John Colvin fd6fdd9768 Refresh radio-button-member 'IsChecked' when member-val changes 2022-06-01 19:02:41 -04:00
John Colvin 73bf104e9f fix: Add null check
Also use null coalesce syntax to clean up existing null checks
2022-06-01 19:02:41 -04:00
John Colvin 24640e65b1 fix (pre-emptive): Add null check 2022-06-01 19:02:41 -04:00
John Colvin eadfc38a69 refactor: Use nullability feat in ExceptNull, DisposeAll fns 2022-06-01 19:02:41 -04:00
John Colvin 098ee36c3a fix: Init NotifyCollectionChangedEventArgs w/ correct args
Bugs (fixed):
  * The ObservableAggregateCollection.Aggregator.Insert fn causes an
    ArgumentException if the collection to be inserted is non-empty. This seems
    to happen because the NotifyCollectionChangedEventArgs is improperly
    constructed (the collection-tuple is passed as the 'changedItem' arg).

  * The ObservableAggregateCollection.Aggregator.Insert fn appends existing
    items to the end of the aggregate collection (instead of inserting them in
    the appropriate index).
    Note: This bug was only revealed after the first bug was fixed.
2022-06-01 19:02:41 -04:00
John Colvin f4ed4d38f1 refactor: Change collection aggregator to use IReadOnlyList
It was previously accepting IReadOnlyCollection args, but the
ObservableCollection paradigm generally uses indexed lists
2022-06-01 19:02:41 -04:00
John Colvin 2ed3eaa325 refactor: Check if list already instantiates IList<T>
Before creating a new MutableWrapper<T>
2022-06-01 19:02:41 -04:00
John Colvin 3a7a02244b refactor (ui): Use ExpandedContentSelector in vs win 2022-06-01 19:02:41 -04:00
John Colvin 79258b9404 fix (slide): Observe IObservables OnDispatcher 2022-06-01 10:11:26 -04:00
John Colvin 6376802d04 ui (slide): Use ExpandableContentSelector 2022-06-01 10:11:26 -04:00
John Colvin 2784e7652d ui (control): Add ExpandedContentSelector for modal section-expansion 2022-06-01 10:11:26 -04:00
John Colvin 5b3925fae0 fix: Set GridSettings.enable_background_color in settings vm 2022-06-01 10:11:26 -04:00
John Colvin 077f6050f3 ui (login): Add F5 'refresh' cmd to retry connecting to server 2022-06-01 10:11:26 -04:00
John Colvin 791dd62b67 fix (ui): Fix typos in vs settings editor xaml
* Remove non-existent xmlns

* Change element-name 'curve_ops_gb' to 'StandardCurveOpsView'.  The _gb suffix
  doesn't make sense bc the element is no longer a GroupBox, and the new name
  is stylistically consistent with the other section-view element-names

* Change 'Market Fit View' to 'Market Fit'
2022-06-01 10:11:15 -04:00
John Colvin 2364cda362 ui: Tweak expand/collapse animation
Use shorter duration for collapsing, and longer for expanding
2022-06-01 00:00:57 -04:00
John Colvin aca4365e8d fix (pre-emptive): Add null check 2022-05-31 16:43:22 -04:00
taha afzal cac857a3a7 Busted fills filtered out of the PositionService position calculations 2022-05-30 15:38:08 -04:00
John Colvin ed38ce958d build: Resurrect web build 2022-05-28 11:40:45 -04:00
Taha Afzal ed4b9b7426 Added is_active to ITradeLogRow, and changed Combo and Slide to use that 2022-05-26 19:31:13 -04:00
Taha Afzal e4468f056d Filtering out busted fills in Slide 2022-05-26 19:17:23 -04:00
Taha Afzal 4b580b407e Adding FillStatus to ITradeLogRow and filtering the busted fills out in Combo 2022-05-26 19:08:47 -04:00
taha afzal b575612b07 Fixing Busting of fills on ResetPositions 2022-05-26 18:39:19 -04:00
John Colvin b506b971a4 feat: Init order ticket w/ default account from ladder profiles 2022-05-26 15:44:02 -04:00
John Colvin c50f322dc1 refactor: Remove 'where class' constraint from FirstAsyncTask
The constraint didn't seem to serve a purpose
2022-05-26 12:57:02 -04:00
John Colvin 3a61f4d81d ui: Add default-background control to grid settings dialog 2022-05-26 12:57:02 -04:00