Compare commits

..
Author SHA1 Message Date
Taha Afzal 11de1c552e For SIM exchanges, securities with expired expirations are not filtered out 2022-08-16 18:43:48 -04:00
Taha Afzal 977fe53b94 SIM orders are fixed - this needed using thecorrent ExchangeGateway and changing DateTime.cpp to handle leading spaces in milliseconds 2022-08-16 18:21:03 -04:00
Taha Afzal 0080bce7ec Merge branch 'spark_crypto.prod' into spark_crypto.md_cleanup 2022-08-15 10:19:35 -04:00
Taha Afzal 87379bba82 ExecutionGatewayFactory returns the correct Gateway based on the connections platform 2022-08-12 00:18:25 -04:00
Taha Afzal 8f6d8c0eea Seperating out SIM connection from Deribit's 2022-08-11 23:34:51 -04:00
John Colvin 6ca2753951 fix (vs): Use precison in terms of actual data for eq comp
Bugs (fixed):
  * The tick up/down buttons have no effect for vol input cells

  Cause: The cell vm ignores some value updates because the equality
  comparer incorrectly considers the new value equal to the current one
  (because it doesn't use enough decimal places in the comparison)
2022-08-11 01:33:43 -04:00
Taha Afzal 470ca0093e Adding more logging helpers to VolSurfaceTroubleshootingFunctions 2022-08-10 20:54:10 -04:00
John Colvin 7e1715964f fix (vs): Pass the vm's 'current_grid' to the model
Bugs (fixed):
  * Cannot edit volsurface cell values (they are immediately reverted)

  Cause: The vm was passing the model's grid back to itself before, effectively
  undoing manual edits in cells
2022-08-10 18:27:41 -04:00
John Colvin 39e929a614 fix: Actually use eq-comp member in Property vm 2022-08-10 18:17:58 -04:00
John Colvin a9aa06f275 fix (vs): Actually use coulmn comparer in cell vm 2022-08-10 18:11:27 -04:00
John Colvin 54510c9e59 refactor (vs grid): Supress recalc reqs while processing update 2022-08-10 14:26:28 -04:00
John Colvin cb56429f04 refactor: Rename 'execute' -> 'Invoke'
To be consistent and interchangeable w/ System.Action
2022-08-10 14:26:28 -04:00
John Colvin ac8147cc0f refactor: Add 'implicit operator T(Optional<T>)' for convenience 2022-08-10 14:26:28 -04:00
John Colvin 82ac189ac9 refactor: Strip 'Wrapper' from 'DeferrableActionWrapper' name 2022-08-10 14:26:27 -04:00
John Colvin 5721ff78b6 fix (vs): Only request recalc when input changes (not output)
Bugs (fixed):
  * The volsurface grid can get into an endless loop of recalc requests
2022-08-09 15:56:05 -04:00
John Colvin 7afd2947f1 refactor: Clean up vs grid vms a bit
* Split vs-cell-vm classes up into own files
* Rename classes by changing 'VolGrid' prefix to 'VolSurface'
* Remove unused struct VolSurfaceCellState
* Enable nullable
* Run formatter
2022-08-09 15:55:40 -04:00
John Colvin c3e3862c5f refactor: Update vs cell 'is_dirty' synchronously when vals change 2022-08-09 02:57:35 -04:00
John Colvin bf2dc9ecca fix (vs grid): Account for nan & rounding error
Bugs (fixed):
  * The volsurface grid starts flasing is_dirty borders all over the place. The
    repro is inexact, but it seems to happen after inputs are changed a few
    times (perhaps from loading a previous volsurface).

  * The volsurface grid flashes is_dirty borders just from clicking on an input
    cell (even if no change is entered).
2022-08-09 02:57:35 -04:00
John Colvin e0e188a02c refactor: Enable NaN identity equality in tick_equals 2022-08-09 02:57:35 -04:00
John Colvin 79ba1654d3 fix: Fix typo in tick_equals fn 2022-08-09 02:57:35 -04:00
Taha Afzal 2aab0d18a5 Formatting slide exp, to look like PNL's 2022-08-08 23:45:02 -04:00
John Colvin 312c8ded11 fix (ui pnl): Add greek props to group row vm
Bugs (fixed):
  * Greek sums still aren't visible in group rows (though they are visible in
    Selected/Total header rows)
2022-08-08 16:11:25 -04:00
John Colvin 3f86779da6 ui (launcher): Move PNL menu items to Analytics module 2022-08-08 16:11:25 -04:00
John Colvin 716d3b8482 ui (day fills): Make title & icon consistent w/ PNL win 2022-08-08 16:11:25 -04:00
John Colvin 24f6dbc4f0 ui (day fills): Convert fill_time utc to local 2022-08-08 16:11:25 -04:00
John Colvin 3e943fa35e refactor (pnl): Add 'PNL' prop to Icons class
To make it clear which icon belongs to which window
2022-08-08 16:11:25 -04:00
John Colvin 457f878b41 ui (pnl): Change win title to 'P&L' to match launcher menu item 2022-08-08 16:11:25 -04:00
John Colvin ac2b2d042a refactor: Split WorkspaceProtos up into 1 class/file 2022-08-08 16:11:25 -04:00
John Colvin 829d2cdbf6 refactor: Provide ICloneable impl in IProtobuf<T> 2022-08-08 16:11:25 -04:00
John Colvin 3cd9693b36 diag (vs): Log cell vm 'is_dirty' changes 2022-08-08 16:11:25 -04:00
John Colvin 2b52ecf2ef perf (vs): Supress repeated 'is_dirty' updates
Before the updates reach the dispatcher thread
2022-08-08 16:11:25 -04:00
John Colvin faab60cbc1 ui (vs): Convert NaN to 0 when users clicks tick up/down 2022-08-08 16:11:25 -04:00
John Colvin b6be0d649d fix (vs): Don't throw ex if parse_double input is null
Bugs (fixed):
  * Previous vol surfaces may have missing data, which can lead to an assert
    crash in the parse_double fn
2022-08-08 16:11:25 -04:00
Taha Afzal 2a65c45d21 Theos/Greeks are still produced if AW2 window is not loaded 2022-08-08 16:00:48 -04:00
Taha Afzal dc6ae2ac29 Removing P from the names of greek columns in Day PNL 2022-08-08 11:53:56 -04:00
Taha Afzal df4250c33a Hooking AW2 populate empty exps 2022-08-07 22:03:50 -04:00
John Colvin 53504ef6f0 ui (pnl): Improve default settings 2022-08-07 15:18:16 -04:00
John Colvin 10afb1af06 ui (pnl): Show greek sums in group/header rows 2022-08-07 14:59:00 -04:00
John Colvin a9149dfa87 refactor: Clean up PNLNormalizedData
* Use new lang feats: nullable, and 'init' prop setters
* Group 'sod', 'day', and 'working' members in respective groups
* Run formatter
2022-08-07 14:39:44 -04:00
John Colvin 5afa6695e7 fix (pnl view): Enforce min height for 'Selected' header row 2022-08-07 13:51:55 -04:00
John Colvin d2a6d54090 refactor (pnl): Replace dyn resources w/ Bindings in xaml
Traditional Bindings are more performant than DynamicResources, and make for
cleaner code
2022-08-07 13:51:55 -04:00
John Colvin 794ac25c01 log: Change 'Begin/End' tags to 'BEG/END' in log_op ext
Improves readability of log_op logs

* Gives the 'BEG/END' tags a uniform width, so their msg bodies will align
* All caps makes the tags stand out

Improves readability by providing uniform width to the BEG/END tags
2022-08-07 13:51:55 -04:00
John Colvin 37214e9480 refactor: Make msg body param optional in 'fn' logger exts 2022-08-07 13:51:55 -04:00
John Colvin 90ab551778 ui (day fills): Format dates in exp col filter 2022-08-07 13:51:54 -04:00
John Colvin 9a4ec46440 fix: Don't begin shutdown til after workspace saved (async)
Bugs (fixed):
   * Seems like only one window's settings are restored w/ workspace
2022-08-07 13:51:54 -04:00
John Colvin c86d283755 fix: Supress empty TableUpdates in 'distinct_on'
Bugs (fixed):
  * Discrete values column filters (i.e., multi-selector views) that are driven
  by 'distinct_on' IObservable<TableUpdate> deselect items when the main
  grid data changes

  Cause: When processing updates from the input IObseravble, the 'distinct_on'
  ext doesn't check if the new/old results are equal. This in turn causes the
  selector-view to remove, then re-add items that didn't actually change.
  Exhibiting reasonable behavior, the view deselects items when they are removed
  from the ItemsSource.
2022-08-07 13:51:54 -04:00
John Colvin 941956c1b5 fix: Actually supress false changes in 'to_table_checked' ext 2022-08-07 13:51:54 -04:00
John Colvin 67e3d22104 style: Fix typo in param name '_selector' -> 'selector' 2022-08-07 13:51:54 -04:00
John Colvin 7e41c93f9a refactor: Rename PNLFilterStates -> PNLFilterSettings 2022-08-07 13:51:54 -04:00
John Colvin 086ccbb3fa refactor: Weaken T constraint for is_within_range ext
There is no reason T has to implement IFloatingPoint<T>
2022-08-07 13:51:54 -04:00
John Colvin 329ddc576d ui (day fills): Add (groupable) exp column 2022-08-07 13:51:54 -04:00
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
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
Taha Afzal 60ce106e24 Fixing a PNL crash which was caused by options for a symbol being temporarily null 2022-08-01 11:14:28 -04:00
Taha Afzal 1eb4952422 Added Control Keys to sheets, Ctrl + right click always brings up the context menu, Ctrl + market always brings up the ladder 2022-08-01 11:14:28 -04:00
Taha Afzal 3043582889 Improved some log messages 2022-08-01 11:14:28 -04:00
Taha Afzal f604db6517 Reorganized PNL calculator and associated types 2022-08-01 11:14:28 -04:00
Taha Afzal f95b0c19d7 Added PNL Calculation code 2022-08-01 11:14:28 -04:00
Taha Afzal 627b44d53b Cleaning up market data initialization 2022-07-29 18:42:50 -04:00
taha afzal 655bf87e92 Fixing open orders callback (was firing intermittent callbacks) 2022-07-22 16:36:52 -04:00
taha afzal 6d06a1920d OrderServiceServer now publishes open orders 2022-07-22 15:16:03 -04:00
taha afzal 70af51e163 ExchangeOpenOrders are now routed all the way to OrderServiceServer 2022-07-21 20:36:17 -04:00
taha afzal 2c17fe334e Added Exchange Open Orders function to IExecutionGateway 2022-07-21 00:38:15 -04:00
taha afzal 5eca2cd3ac Exchange Open orders are routed all the way to EMExecutionGateway 2022-07-20 20:13:56 -04:00
taha afzal 4b5ff8cad4 Adding AsyncRequestHelper to EmMDListener, that allows code to be shared bw positions and open_orders request 2022-07-20 15:29:25 -04:00
taha afzal 89d5b25cc7 For EmMDListener, added a limit of 5 pending calls for positions, after which the counter is reset is positions are re-requested 2022-07-12 17:03:19 -04:00
Taha Afzal 3e10d403b4 Combo Report now listens to the sectups in the report configuration 2022-07-12 09:35:42 -04:00
Taha Afzal 1ebf06d49a Slide report filters the securities based on the security tuples passed in the report 2022-07-12 09:35:42 -04:00
Taha Afzal 2be857a851 Forcing qty's to be rounded to 2 2022-07-12 09:35:42 -04:00
John Colvin 1de22a82e8 fix (combo settings ui): Refresh 'result' when sec criteria changes
Bugs (fixed):
   * In Combo settings dialog, security criteria changes aren't committed to
     server if they are the last prop changed before OK click
2022-07-12 01:00:51 -04:00
John Colvin f275308cc8 build (client cpp): Remove ZERO_CHECK.vcxproj from spark_client.sln
The new cmake generates ZERO_CHECK.proj instead, which doesn't need to be
included in the sln. I think this change was introduced in v 3.22.

Devs: This won't break the build for older versions of cmake, although you may
need to manually touch "CMakeLists.txt" when you add/remove build src files
2022-07-12 01:00:44 -04:00
taha afzal 79de0dd4d8 Removed exchange from sub acocunt config 2022-07-11 21:13:05 -04:00
taha afzal 5cedf74406 Merge branch 'spark_crypto.multiple_accounts' into spark_crypto.dev 2022-07-11 17:44:02 -04:00
taha afzal e5de6b4ad7 Changed the relationship of internal account to sub account to simple 1:1 2022-07-11 17:28:53 -04:00
John Colvin e467195de1 chore (combo vm): Let end observer call OnDispatcher
This behavior could arguably be coupled with a Subscribe call, since its whole
purpose is to ensure subscription callbacks occur on the dispatcher thread.
2022-07-11 17:22:44 -04:00
John Colvin 913a5b4a7e ui (combo settings): Show contract picker 2022-07-11 17:22:44 -04:00
John Colvin feb8bd9b79 ui (slide settings): Show contract picker 2022-07-11 16:55:23 -04:00
taha afzal 846ecfa776 Fixed the reconcile issue where if the security existed in multiple accounts it was getting surpressed in one 2022-07-11 13:27:10 -04:00
taha afzal d98fb399a8 Exchange Positions can now be obtained for multiple sub accounts 2022-07-09 01:40:28 -04:00
taha afzal 4a1c1d023a Changes to accomodate the EM API change for mulitple accounts 2022-07-06 16:42:04 -04:00
taha afzal 43cba548f4 Adding some details to the logs to track order flow 2022-06-24 15:05:15 -04:00
taha afzal 772910ffe5 Fixing filled qty's fractional part not being filled on the server 2022-06-23 14:38:57 -05:00
John Colvin 767179caf7 chore (man fills): Format qty w/ sec metadata config 2022-06-23 14:38:57 -05:00
John Colvin ee4a9150b8 refactor (man fills): Rename 'size' members 'quantity' 2022-06-23 14:24:04 -05:00
John Colvin 58914fa703 chore: Replace remaining refs to uint 'filled' fn w/ double impl 2022-06-23 14:24:04 -05:00
John Colvin ba40e7044a fix (ladder, preemptive): Fix typo in _fmt_mkt_depth_item
Bugs (fixed):
   * The _fmt_mkt_depth_item fn potentially will return the result of the
     delegate.ToString(), instead of invoking the delegate and returning the
     result
2022-06-23 14:10:15 -05:00
John Colvin 010d0073fe chore: Set BTC qty display config defaults 2022-06-23 02:05:23 -05:00
John Colvin 40210ce42e chore: Remove unnecessary price_display config default 2022-06-23 01:35:22 -05:00
John Colvin 59cdafba21 fix: Don't cast manual fill qty to uint 2022-06-23 01:22:09 -05:00
John Colvin fe6226baa5 ui (reconcile rep): Match all undefined positions
Now, all positions without real non-zero quantities are considered matches
2022-06-23 01:19:27 -05:00
John Colvin 45987c7652 feat: Show fractional qty in orderbook Filled col 2022-06-22 16:04:24 -05:00
John Colvin a18ce97fb4 feat (ui): Support fractional qtys for order entry 2022-06-22 15:38:38 -05:00
John Colvin 13d5080bbc refactor: Shorten modify/revert cmd prop names
Also consolidate modify_price/qty fns into single modify_order fn
2022-06-22 15:38:38 -05:00
John Colvin 9f07a36d1d refactor: Move order-update-desc fn into OrderUtils for gen use 2022-06-22 15:38:38 -05:00
John Colvin bc2e7f428a chore: Add formal/consistent numeric exceptions/messages 2022-06-22 15:38:38 -05:00
John Colvin 53bfbdd349 fix: Sync 'has_value' prop for qty param
Bugs (fixed):
   * Can't tick qty up/down in the orderbook right panel (clicking the
   button has no discernible effect)
2022-06-22 15:38:38 -05:00
John Colvin 174eac9a59 refactor: Move OrderParamsVM into own file
OrderBookVM.cs was (and frankly still is) massive.  Too massive
2022-06-22 15:38:38 -05:00
John Colvin 3775b86d9e refactor: Rename 'size_' props 'quantity_' to be consistent 2022-06-22 15:38:38 -05:00
John Colvin 5e1c6d6209 fix build (windows): Don't include stdint-uintn.h on windows 2022-06-22 15:38:37 -05:00
taha afzal 0d0fb036ab EmMDListener now get_open_orders and logging the open orders 2022-06-22 15:38:37 -05:00
taha afzal f8668802ab Fixing oder updates on fractional quantity orders (just a few lines) 2022-06-22 15:38:37 -05:00
taha afzal c22a1382a1 Fractional qtys now work on the server (need some client side work) 2022-06-22 15:38:37 -05:00
Taha Afzal 941a0d91cc Enabled Combo report to show fractions (ITradeLow had size of type int) 2022-06-13 20:01:47 -04:00
taha afzal 60456e4225 Deribit market data is blanked out now if the connection to Deribit is lost 2022-06-10 09:54:22 -04:00
John Colvin 440e28489a build: Update libspark CMakeDeps_win 2022-06-09 13:49:55 -04:00
John Colvin 3da0f4eedc ui: Indicate price discrep w/ subtler visual than qty discrep 2022-06-09 13:49:55 -04:00
Taha Afzal 497abfb443 Fixing Futures PNL in slide 2022-06-09 00:15:23 -04:00
Taha Afzal 7b04a7849b Future delta fixed in Slide 2022-06-08 15:56:24 -04:00
taha afzal e14b1e0b07 Limiter does not use StaticLimiter anymore because Deribit and Options are included in Risk enforcement now 2022-06-08 15:55:24 -04:00
John Colvin 2121ce2841 fix build (server gcc): Remove noexcept specifier from copy/move ops
The gcc compiler was deleting the copy/move operators declared in the
MarketDataSubscription class.  This behavior was appropriate, as those
operators were declared with the 'noexcept' specifier, while the
copy/move operators of one of its members, params_ (of a proto-generated
type), lacked the 'noexcept' specifier.
2022-06-08 13:43:12 -04:00
John Colvin c22e99941e fix build: Disable ccapi dependent code on windows
It seems the ccapi lib doesn't support windows.  External market data
subscription code only needs to be built on the server anyways.
2022-06-08 11:42:10 -04:00
John Colvin 3da646dc8a fix build: Remove unnecessary import from binance-md proto
This removes an 'unused import' warning on build
2022-06-08 11:12:13 -04:00
John Colvin fca675d43f feat: Add option/deribit params to risk ui 2022-06-07 23:20:59 -04:00
John Colvin a30523744d feat: Implement ftx md subscription
Run 'sparkd ladder-demo' to check it out
2022-06-07 23:20:59 -04:00
John Colvin 80f5117c34 chore: Add is_empty fn to BookLevel
This pre-emptively fixes the BookSide::is_sorted fn, as it references
the previously non-existent BookLevel::is_empty fn
2022-06-07 23:07:33 -04:00
John Colvin f77f73ec36 fix: Fix typo in MarketDataError type param 2022-06-07 23:07:33 -04:00
John Colvin 2385cf0d1b refactor: Add add/remove fns to composite listener for convenience 2022-06-07 23:07:33 -04:00
John Colvin bc778ad5bb refactor: Rename CompositeListener -> CompositeMarketDataListener
Obviously a better, more descriptive name, and it matches the filename
(the oldname must have been an accident)
2022-06-07 23:07:33 -04:00
John Colvin acb9c35d3b logging: Add ccapi log adaptor 2022-06-07 23:07:33 -04:00
John Colvin b8473e2632 Update externals to get ccapi lib 2022-06-07 23:07:33 -04:00
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 bf4c8e252f Add install dir to gitignore 2022-06-03 22:41:16 -04:00
John Colvin 866cf33cd4 build: Set CMAKE_INSTALL_PREFIX (for deployment)
Run 'cmake --build <path_to_build> --target install' to create a self-
contained executable sparkd in the 'install' dir at the root of the repo
2022-06-03 22:35:44 -04:00
John Colvin 4561560b46 Remove redundant 'build' items in gitignore 2022-06-03 22:32:07 -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 f8059cc87e build: Add verbosity opt to buildspark.py 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 03d915b55c Update externals to get emumba deribit lib 2.2.8 2022-06-02 00:47:42 -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
John Colvin a2b2de9783 feat: Reconcile Report 2022-05-25 14:28:58 -04:00
John Colvin b2a6927b4b Enable all column settings in mview (for all cols) 2022-05-25 14:28:57 -04:00
John Colvin 80dec4e1e2 ui: Fix typo to enable column background in GridSettingsView 2022-05-25 14:28:57 -04:00
John Colvin 77c7802496 Set cell-view's DIYGrid.Column when syncing w/ column geometry 2022-05-25 14:19:04 -04:00
John Colvin cec2687085 ui: Increase default 'Security' col width
Many Deribit securities are wider than the previous col width
(particularly options)
2022-05-25 14:19:04 -04:00
John Colvin ac118993d5 refactor: Change ManualFill.quantity to double 2022-05-25 14:19:04 -04:00
John Colvin 7634ecf730 refactor: Break up massive file Update.cs
Into one file per class
2022-05-25 14:19:04 -04:00
John Colvin 309d1fa287 refactor: Remove LegacyTableUpdate class 2022-05-25 14:19:04 -04:00
John Colvin 9231a91fb4 Fix typo in Update.merge fn
Bugs (fixed):
   * When merging updates, a new ChangeDict is always instantiated
   (sometimes unnecessarily).  This was causing a performance hit, but
   not actual bad/incorrect behavior, so it went unnoticed for years
2022-05-25 14:19:04 -04:00
John Colvin f6f928a693 refactor: Move MarketDataAuxiliaryModel into Model dir 2022-05-25 14:19:03 -04:00
John Colvin 467216439b refactor: Move PositionModel classes into own files 2022-05-25 14:19:03 -04:00
John Colvin c63e73ab7c refactor: Move SparkObservableExtensions into own file
And rename class ReactiveObservableExtensions
2022-05-25 14:19:03 -04:00
John Colvin 74fcacd800 Clear 'raw' (unfiltered) table changes on filter-updates
Otherwise, it would repeat the changes from the last data-update, and
break the incremental sequence
2022-05-25 14:19:03 -04:00
John Colvin c1c46f01ab refactor: Use DispatcherObservable class to avoid op chains 2022-05-25 14:19:03 -04:00
John Colvin 77083a1fa6 fix: Don't bypass Dispatcher.InvokeAsync in OnDispatcher ext
Otherwise the updates may not be received in order
2022-05-25 14:19:03 -04:00
John Colvin 5303f290b1 refactor: Move sec metadata utils into SecurityMetadataStore 2022-05-25 14:19:03 -04:00
John Colvin 895871c94b refactor: Move SecurityCriteria classes into spark_core
Also move IBus there bc some SecurityCriteriaExtensions depend on it
(and spark_core seems more appropriate for IBus anyways)
2022-05-25 14:19:03 -04:00
John Colvin 3bff50b764 diag: Add TableUpdate.description ext
For diagnostic logging/tracking down bugs
2022-05-25 14:19:03 -04:00
John Colvin 86b7802b3b Use RadioButtonGroupManager.Value prop instead of DataContext
This more clearly defines the behavior
2022-05-25 14:19:03 -04:00
John Colvin 4ff9aaf037 refactor: Clean up DIYGridFilterModel 2022-05-25 14:19:03 -04:00
John Colvin 99f7827e7e refactor: Clean up RadioButtonGroupManager/Map 2022-05-25 14:19:03 -04:00
John Colvin b67ac5c849 Simplify slide settings view by using RadioButtonGroupManager (not map) 2022-05-25 14:19:03 -04:00
John Colvin 0777f01607 fix: Remove il-advised SelectedItem(Binding) dp
It doesn't make sense to try to normalize the binding for different
groups into a single binding in the group manager
2022-05-25 14:19:03 -04:00
John Colvin 222dbf5443 refactor: Move RadioButtonGroupManagerMap into own file 2022-05-25 14:19:03 -04:00
John Colvin 9434f61030 fix: Make GroupManagerMap an Attached dp
It always should have been attached (analagous to a static prop)
2022-05-25 14:19:03 -04:00
John Colvin 9199594756 fix: Add null check for put/call_points in VolSurfaceDataFunctions 2022-05-25 14:19:03 -04:00
John Colvin fc9318a831 ui: Refine vs settings dialog
Make it look more like combo/slide settings dialogs
2022-05-25 14:19:03 -04:00
John Colvin e3fc28f082 fix: Wrap algometadata proto list in single class
Bugs (fixed):
   * An exception is thrown when deserializing
     AlgoDefinitionPersistedMetadata array
2022-05-25 14:19:03 -04:00
John Colvin 9cb7b84f57 Only recreate TViews when necessary in RXCollection 2022-05-25 14:19:03 -04:00
John Colvin 2689ed806d fix: Add null check in VolSurfaceDataFunctions.get_symbols 2022-05-25 14:19:03 -04:00
John Colvin 5999e7856f fix: Add null check for sec metadata in MDDaemon 2022-05-25 14:19:03 -04:00
John Colvin 96ad67b020 fix: Ensure ShellModuleVM.MenuContent is created at most once 2022-05-25 14:19:03 -04:00
John Colvin 47d5b95e13 ui (exp params): Add 'Set Driver to Nearest Exp' menu item 2022-05-25 14:19:02 -04:00
John Colvin 12108e6046 fix: Fix typo in 'abs' ext (should accpet INumber<T>) 2022-05-25 14:19:02 -04:00
John Colvin 021bdb8c23 Add ObservableHashSet 2022-05-25 14:19:02 -04:00
John Colvin 470f6c0988 Add Opacity option to ColorExtension (for xaml) 2022-05-25 14:19:02 -04:00
John Colvin c8b87b4f79 Remove the ill-advised FontFamily enum
The library of potential font families to choose from is endless, so it
doesn't make sense to limit a user's options to a small set of arbitrary
presets
2022-05-25 14:19:02 -04:00
John Colvin 9d7e16fbf7 refactor: Move FontFamily exts into own file
This resolves some nagging namespace conflicts w/ FontFamily (in
System.Windows.Media and mbts.ui.utility.text)

TODO: Get rid of mbts.ui.utility.text.FontFamily (it was an ill-advised
enum to begin with)
2022-05-25 14:19:02 -04:00
John Colvin 5a45d5e12a fix: Ensure AlgoData IObservable fires at least once
Bugs (fixed):
   * The algo dropdown in ladder/ticket is empty
   Note: this bug was exposed as side effect of a recent change to
   prevent the TableUpdate Filter ext from firing empty TableUpdates
2022-05-25 14:19:02 -04:00
John Colvin c793ec78a2 Don't send empty updates in TableUpdate Filter ext 2022-05-25 14:19:02 -04:00
John Colvin 7b2b7c5854 refactor: Get rid of 'semi_transparent' brushes in BTSColors
Doesn't seem worth the clutter
2022-05-25 14:19:02 -04:00
John Colvin 327615c9ac refactor: Move 'position' utils from OrdersModel to PositionModel
OrdersModel contains way too much "miscellaneous" code.  This will
reduce at least some of the clutter.
2022-05-25 14:19:02 -04:00
John Colvin 8e5d94b5e7 refactor: Move TickDisplayConverter into mbts.ui.converters ns
This is where all the other IValueConverter classes are defined
2022-05-25 14:19:02 -04:00
John Colvin bd76a1f260 ui: Only expand one section at a time in slide settings dialog 2022-05-25 14:19:02 -04:00
John Colvin 1df2695f50 refactor: Clean up FillsVM 2022-05-25 14:18:57 -04:00
John Colvin 67d33a3315 Add null-check when disposing ObservableAutoWrapper item-hooks 2022-05-25 14:07:21 -04:00
John Colvin c49cd3a06e refactor: Clean up DIYGridRowsManager and related files/types
* Rename class suffix 'Manager' -> 'Model'
* Move classes into own files
* Put column-related classes in columns dir
* Enable nullable
* Run formatter
2022-05-25 14:07:21 -04:00
John Colvin 6c0545f566 fix: Don't deserialize AlgoDefinitionMetadata[] w/ length prefix
Bugs (fixed):
   * AlgoDefinitionMetadata[] deserialization fails
2022-05-25 14:07:21 -04:00
John Colvin f0eee365f9 fix: Catch & log deserialization exceptions
Rather than silently catching the exception upstream
2022-05-25 14:07:21 -04:00
John Colvin 274db506a9 Clean up DiscreteValuesFilterVM 2022-05-25 14:07:21 -04:00
John Colvin 1e5c56f3a7 refactor: Make key param optional in TableUpdate Filter ext 2022-05-25 14:06:49 -04:00
John Colvin 871c7a131f refactor: Move Position extensions to own file in spark_api 2022-05-24 12:25:16 -04:00
John Colvin 7642d73f39 Add join_table fn to SecurityStore 2022-05-24 12:25:16 -04:00
John Colvin ef69dfa646 refactor: Add 'table' subscription fns to generated proto services
* Provides a simple convenience, as nearly all api subscriptions made on the
  front-end are converted to TableUpdates anyways

* Can help reduce overhead by instantiating TableUpdate subscriptions
  lazily, and by using one internal TableUpdate subscription to provide
  notifications to all observers
2022-05-24 12:25:16 -04:00
John Colvin 377be5030f style: Clean up pb.cs templates (generated code) 2022-05-24 12:25:16 -04:00
taha afzal 896af55e79 Added commented to document flow of ExchangePosition 2022-05-24 12:24:47 -04:00
Taha Afzal b9a4a2c148 Added right click context menu item in the sheets to launch ladders 2022-05-23 15:36:49 -04:00
Taha Afzal e9f6d096cf Disabling tasking context menu items from the sheet 2022-05-23 14:46:47 -04:00
taha afzal 25d4c54284 Added account_id to ExchangePosition 2022-05-23 11:51:10 -04:00
taha afzal e4291e1c51 Adding account to ExchangePosition 2022-05-19 18:16:46 -04:00
taha afzal 5c11708728 Fixing assert on_get_all_position callback from EM 2022-05-18 17:56:06 -04:00
taha afzal 73a301192f Fixing ExchangePosition's qty (unsigned uint related bug) and exchange 2022-05-18 17:14:39 -04:00
Taha Afzal d972564d34 Clip defaults changed 2022-05-18 01:16:39 -04:00
taha afzal e66a2d4663 Rejected orders now show up in the Orderbook UI 2022-05-18 00:42:00 -04:00
Taha Afzal f92e13d898 Logging the key of the placed order 2022-05-16 16:03:46 -04:00
John Colvin 3d0698b326 task: Set ManualFill.FillType to 'AdminDay' 2022-05-16 15:57:28 -04:00
Taha Afzal 1e0ab86a24 MD entitlements turned off temporarily until we can add the settings to Risk Admin (web) 2022-05-12 18:02:22 -04:00
Taha Afzal caa29b9513 Reducing market data related logging 2022-05-12 16:21:42 -04:00
Taha Afzal c793768918 Bug with VolSurfaceUsage fixed 2022-05-12 00:09:37 -04:00
John Colvin 0132a0cff6 ui (exp params, combo): Format exps with month abv & day
This formatting is consistent with the rest of the system.  Furthermore, it
ensures all sym/exp combinations have unique string reps (some symbols can have
multiple exps in one month, such as ETH).
2022-05-11 15:19:50 -04:00
John Colvin f83b6ee898 ui (slide): Prevent last-trade & swipe-sum from overlapping 2022-05-10 13:38:36 -04:00
John Colvin dc071dfa56 fix: RaisePropertyChanged when vm 'HasErrors' changes 2022-05-10 13:34:29 -04:00
John Colvin fbfd601270 ui: Refine slide settings dialog
* Unify greeks configuration/display settings into one section
* Replace tabs with modal expandable sections (like in the analytics
shell module view)
2022-05-10 13:34:29 -04:00
John Colvin 9b5aea2458 refactor: Abstract out modal expand/collapse animation/behavior
From the analytics module view (so it can be used by other windows)
2022-05-10 13:31:57 -04:00
taha afzal 904ef92ece Added reset_position to PositionService 2022-05-09 14:40:44 -04:00
John Colvin 74e950d459 ui: Don't filter manual fills 2022-05-07 17:51:44 -04:00
John Colvin e99caef2dc ui: Change 'Show Expanded' to 'Expand Symbols' in slide/combo 2022-05-07 16:42:15 -04:00
John Colvin 855e4a6ed8 ui: Change combo 'expand' icon to chevron right
It expands to the right (not down)
2022-05-07 16:40:16 -04:00
John Colvin 311b956461 Set manual fills' FillType to ADMIN_DAY (when creating) 2022-05-07 16:19:10 -04:00
John Colvin b3b308cd9d ui (fix): Set DIYGridLineAdorner.IsHitTestVisible to false
Otherwise it prevents click events from reaching the grid
2022-05-07 14:02:51 -04:00
John Colvin a8480a34ba fix: Detach DIYGridLineAdorner on dispose 2022-05-07 14:02:46 -04:00
John Colvin 3312637b8d dev/john: Add vscode json files for windows/client 2022-05-07 13:57:49 -04:00
John Colvin e6f7a82fb1 dev/john: Move 'vscode' json files into vscode/linux
They've always been specific to the linux/server code.  Moving them as such
to make room for windows/client specific settings files.
2022-05-07 13:57:49 -04:00
John Colvin 5b934de69a Add redundant checks to ensure readonly cells aren't copy/pasted in vs grid 2022-05-07 13:57:49 -04:00
John Colvin 0f78982f57 fix: Support copy/pasting in vs grid on readonly cell click
Only the option to copy the individual column value should be
hidden/disabled for readonly cells
2022-05-07 13:57:49 -04:00
John Colvin 18abbfc502 fix: Use vs grid's context menu rather than those of individual rows
Bugs (fixed):
   * Crash when copy/pasting in volsurface grid
2022-05-07 13:57:49 -04:00
John Colvin c3ae4c6dc5 refactor: Make VolSurfaceColumn.model readonly
It's never reassigned; should have been readonly to begin with
2022-05-07 13:57:09 -04:00
John Colvin 9b012649cd fix: Add nullcheck for hscrollbar in grid line adorner
Bugs (fixed):
   * A silent ArgumentNullException is thrown when opening volsurface windows
   during startup
2022-05-07 13:57:09 -04:00
Taha Afzal c126091155 VolSurfaceUsage is not read from config 2022-05-06 14:41:40 -04:00
taha afzal c2fee56496 Adding temporary vol surface usage to config (simplifying it to only have symbol because SecTup had serialization issues in C#) 2022-05-06 13:55:44 -04:00
taha afzal 5461dc77aa Added default config based risk limits for Deribit symbols 2022-05-05 20:39:47 -04:00
taha afzal 1b2a1c3fe3 Limiter can optionally get its value from config 2022-05-05 20:39:47 -04:00
Taha Afzal a83a4fdd4f UIOverrides for slide are ignored in the calcultor (were already disable din the UI for now) 2022-05-05 13:53:16 -04:00
Taha Afzal 4d4ee1f57c TC2 is constructed on the correct options now 2022-05-04 15:11:24 -04:00
John Colvin 2bec4ae09f ui: Hide position analysis filters in slide win
At least until they're actually implemented in model/calculation code
2022-05-04 15:07:14 -04:00
John Colvin e3b91909a6 Hook up combo conf vm ErrorsChanged callback once (in ctr) 2022-05-04 14:58:57 -04:00
John Colvin 116ba3f629 Add venue component to report risk-terms/opt-equiv params 2022-05-04 14:56:43 -04:00
John Colvin 0ce6f8e6a2 style: Enable nullable in ComboReportFuturesGrid 2022-05-04 14:53:44 -04:00
John Colvin 9447cb67d2 fix: Populate exps list used to generate cols in combo futs grid
Bugs (fixed):
   * Future positions aren't showing in combo report
2022-05-04 14:53:44 -04:00
John Colvin 92dacc5c3c ui: Use consistent sorting in risk terms/opt equiv dropdowns 2022-05-04 14:53:44 -04:00
John Colvin 766dfe9dd3 ui: Hide security criteria param in slide settings win 2022-05-04 14:53:44 -04:00
John Colvin 84ecb54efd ui: Change 'Volsurface' -> 'Vol Surface' in slide settings win 2022-05-04 14:53:44 -04:00
John Colvin 6ff8855dba refactor: Change report security list to SecurityCriteria 2022-05-04 14:53:44 -04:00
John Colvin 7f349cfa71 ui: Use converter to generate 'pretty name' for sec criteria clause 2022-05-04 14:53:44 -04:00
John Colvin 948b23addc fix: Don't add duplicate securities in slide config vm
Bugs (fixed):
   * Slide settings dialog shows duplicate security items in dropdown
2022-05-04 14:53:44 -04:00
John Colvin 7031bb6fbe fix (ui): Fix typo in slide settings dialog ok/apply cmd binding 2022-05-04 14:53:44 -04:00
John Colvin 15a04a1870 build: Temporarily disable web build
Until we can fix integration with dotnet 6
2022-05-04 09:23:32 -04:00
John Colvin 741c6d360a fix: Refresh slide-settings vm 'result' when included syms change 2022-05-02 17:32:32 -04:00
John Colvin c4f3ca26ef ui: Use new spark menu toggle style in combo win/vm 2022-05-02 17:29:30 -04:00
John Colvin 3403adc1ff fix: Hook up expanded/collapsed toggle in slide
Bugs (fixed):
   * Changing the view-format in slide doesn't do anything
2022-05-02 17:29:30 -04:00
John Colvin 410d3aaf20 ui: Use opacity to indicate 'checked' state in spark menu 2022-05-02 17:29:30 -04:00
John Colvin 34905f6053 Fix benign typo in exp params win menu item init 2022-05-02 17:29:29 -04:00
John Colvin 6a16d419af ui: Use checkmark icon for 'Checkable' items in spark win context menu 2022-05-02 17:29:29 -04:00
John Colvin cd23c1a5a1 fix (ui): Use 'opacity' to indicate enabled/disabled in spark menu
Bugs (fixed):
   * SparkMenuItems sometimes look disabled when they aren't (esp in
   AnalyticsExpirationParameters win)

In wpf, VisualStates in different VisualStateGroups shouldn't adjust
common properties.  A visual element can only be in 1 visual state at a
time.  When a visual element transitions to a new visual state, all
depepdency property changes associated with the transition to the
previous state are cleared.
2022-05-02 17:29:29 -04:00
John Colvin 18793f8cd9 ui: Add 'Swipe Sum' tooltip in slide 2022-05-02 17:29:29 -04:00
John Colvin c008147674 ui: Use DayMonthAbvDiff2000 format for last trade exp in combo/slide 2022-05-02 17:29:29 -04:00
John Colvin 47323c51c3 ui: Use normal font size of grid in combo 2022-05-02 17:29:29 -04:00
John Colvin 91f58620ac ui: Make '|' separator in combo consistent w/ those in slide 2022-05-02 17:29:29 -04:00
John Colvin 91aeccb2ae ui: Use normal font size outside of grids in slide 2022-05-02 17:29:29 -04:00
John Colvin 82864a609d ui: Make '|' separator consistent in slide status bars (upper/lower) 2022-05-02 17:29:29 -04:00
John Colvin 828b1ca0c2 ui: Add '|' separators in slide status bar 2022-05-02 17:29:29 -04:00
John Colvin 6b740ece39 ui: Use common IValueConverter for last_trade in slide/combo wins 2022-05-02 17:29:29 -04:00
John Colvin 84f18288e0 fix: Fix typo 'call' -> 'put' in ComboReportOptionCellView 2022-05-02 17:29:29 -04:00
John Colvin cf9e5862ed fix: Invalidate 'measure' when ShowCallPut in combo opt cell
Bugs (fixed):
   * combo report does not show call/put when 'Show Call/Put' is checked
2022-05-02 17:29:29 -04:00
John Colvin 4ca2b5f4d2 fix: Add missing 'ExpirationTextConverter' resource in ComboReportView 2022-05-02 17:29:29 -04:00
John Colvin da2894512d fix: Fix typo 'ComboReport' -> 'ComboReportView' 2022-05-02 17:29:29 -04:00
John Colvin 55e9487203 fix: Sync strikes and exps in combo on_data callback 2022-05-02 17:29:29 -04:00
John Colvin 19fb08e7ff fix: Add nullcheck in TradeLogRow ctr 2022-05-02 17:29:29 -04:00
John Colvin 193b1025ad style: Clean up ReportDaemon 2022-05-02 17:29:29 -04:00
John Colvin 8fa2a925cd refactor: Use ToggleCommand/SparkMenuItemToggleModel in slide win 2022-05-02 17:29:29 -04:00
John Colvin 526daa9647 ui: Use 'candidate' icon for 'Use Candidate Vol' menu item 2022-05-02 12:29:03 -04:00
John Colvin 43bcc9fe02 Add 'candidate' icon
Even though not in use atm, it was hard to parse out the individual
candidate from the svg, and might come in handy down the road.  Seems worth
keeping
2022-05-02 12:29:03 -04:00
John Colvin 51d6066420 fix: Add nullcheck in get_vs_price_map 2022-05-02 12:29:03 -04:00
John Colvin 0b11b83eb5 ui: Refine slide win
* dock account/risk terms to the left
2022-05-02 12:29:03 -04:00
John Colvin a53dfd14b1 ui: Refine combo win
* make call/put toggle a spark menu item (in the toolbar)
* dock account/risk terms to the left
* hide account/risk terms labels (show them as tooltips instead)
2022-05-02 12:29:02 -04:00
John Colvin cc0380d8f1 Add ToggleCommand type and related infrastructure 2022-05-02 12:29:02 -04:00
John Colvin 0a01d22e72 refactor: Rename 'UseCandidateVol' icon -> 'vol_curve' 2022-05-02 12:29:02 -04:00
John Colvin e9f1c72198 refactor: Refine 'create_checked_icon' code/logic
Clean up code a bit, and add some parameters to custom fit/position the
check mark with any given Drawing
2022-05-02 12:29:02 -04:00
John Colvin 14af8823ed refactor: Rename SparkCommandVM -> SparkMenuItemVM
Also move to 'ViewModels' dir
2022-05-02 12:29:02 -04:00
John Colvin 5900ce7d12 Fix windows build after moving FileUtils to lib 2022-05-02 12:29:02 -04:00
John Colvin 33e0a6bb46 Generate new keycodes for default config
These won't expire until 2032
2022-05-02 12:29:02 -04:00
John Colvin ca3bc5059e Read public key from config (for login/auth) 2022-05-02 12:29:02 -04:00
John Colvin bd108dfe35 cli (server): Add key-code subcommand to sparkd 2022-05-02 12:29:02 -04:00
John Colvin 8a96c7441e refactor: Clean up KeyCode 2022-05-02 12:29:01 -04:00
John Colvin 4eea3194fd Remove unused args from key-code subcmds 2022-05-02 12:29:01 -04:00
John Colvin dace332ac5 refactor: Move FileUtils into lib 2022-05-02 12:29:01 -04:00
John Colvin af816bb905 fix: Don't cast numeric types via boxing
This is illegal
2022-05-02 12:29:01 -04:00
John Colvin 195c24ffef refactor: Move SingleValueList to own file 2022-05-02 12:29:01 -04:00
John Colvin 92ad17aa19 fix: Save slide report before closing settings dialog
Bugs (fixed):
   * Slide report configuration doesn't save on OK click (does save on Apply
   click though)
2022-05-02 12:29:01 -04:00
John Colvin eabc4bee4c fix: Save combo report before closing settings dialog
Bugs (fixed):
   * Combo report configuration doesn't save on OK click (does save on Apply
   click though)
2022-05-02 12:29:01 -04:00
John Colvin 0ed9142cf0 test: Add HierarchicalDictionaryTest 2022-05-02 12:29:01 -04:00
John Colvin 1639683b43 fix: Set _value_count to 0 when HierarchicalDictionary is Cleared 2022-05-02 12:29:01 -04:00
John Colvin 05afb08c5d fix: Ensure HierarchicalDictionary nodes in sync w/ parent data 2022-05-02 12:29:01 -04:00
John Colvin c674e44c60 refactor: Enable nullable in EnumerableExtensions 2022-05-02 12:29:00 -04:00
John Colvin e104c78471 fix (preemptive): Fix typo in Sum ext
This fix is preemptive only bc this fn isn't referenced atm
2022-05-02 12:29:00 -04:00
John Colvin 3d8ec63bd7 ui: Condense text/controls in top of Slide win 2022-05-02 12:29:00 -04:00
John Colvin 99670c9d28 ui: Move last update time down to status bar in Slide win 2022-05-02 12:29:00 -04:00
John Colvin 56126e19a7 refactor: Clean up SlideReportView.xaml.cs 2022-05-02 12:29:00 -04:00
John Colvin 05e8363504 ui: Change 'Use Candidate Vol' icon to look sort of like vol-curve 2022-05-02 12:29:00 -04:00
John Colvin 884741062b ui: Add expand/collapse toggle menu item to Combo win 2022-05-02 12:29:00 -04:00
John Colvin 63c77966fa ui: Add menu-orientation menu-item to Slide win 2022-05-02 12:29:00 -04:00
John Colvin 31745d9f0d ui: Add menu-orientation menu-item to Combo win 2022-05-02 12:29:00 -04:00
John Colvin 78897ed608 refactor: Clean up SparkMenu
* use visual states instead of triggers for mouse-state-transition animation
* use new lang feats
* run formatter
2022-05-02 12:29:00 -04:00
John Colvin 5712bcdc57 Add PressedAnimationDuration prop to MouseStateDefinition
This provides a way to ensure that 'Pressed' animations, which takes a
non-zero amt of time, always run to completion (before animation for the
next state begins)
2022-05-02 12:28:59 -04:00
John Colvin 8e0a027584 style: Add documentation to ProjectToVector ext 2022-05-02 12:28:59 -04:00
John Colvin 12f88b5303 test: Add unit test for ProjectToVector ext 2022-05-02 12:28:59 -04:00
John Colvin b119cad8a9 ui: Remove 'Focus' animation from SparkMenuButton
Not sure why this was here in the first place..it's identical to the
MouseOver animation
2022-05-02 12:28:59 -04:00
John Colvin f30210e4e1 refactor: Move SparkMenu style/xaml to own file 2022-05-02 12:28:59 -04:00
John Colvin a8d6a104c3 refactor: Clean up OptionDriverPriceMap 2022-05-02 12:28:59 -04:00
John Colvin 13df0c8638 Spruce up AnalyticsShellModuleView 2022-05-02 12:28:59 -04:00
John Colvin fb70aa6514 fix (ui): Set combo report settings dialog title to string literal
Previously, it was bound to the report-name.  However, the binding was broken.
Furthermore it doesn't seem appropriate to bind the title to the name since the
user can edit the name in the settings dialog
2022-05-02 12:28:59 -04:00
John Colvin 37fd1d424e refactor: Rename (SlideReportSettings)View -> Dialog
This is more consistent with our name conventions, and dialog is more
precise description of the type
2022-05-02 12:28:59 -04:00
John Colvin bdbbcb05dc ui: Animate AnalyticsShellModule window-section expand/collapse 2022-05-02 12:28:59 -04:00
John Colvin 9cd5d0890f ui: Add large-flat button style 2022-05-02 12:28:59 -04:00
John Colvin 7b1fa849ef fix (preemptive): Curry 'Member' to DataContextChanged callback
Bugs (fixed):
   * [preemptive] potential InvalidCastException in
   RadioButtonGroupManager.DataContextChanged callback
2022-05-02 12:28:59 -04:00
John Colvin a8b5cf81ee fix (ui): Set combo report settings dialog title to string literal
Previously, it was bound to the report-name.  However, the binding was
broken; furthermore it doesn't seem appropriate to bind to the name
since the user can edit the name in the settings dialog
2022-05-02 12:28:58 -04:00
John Colvin bc62d4b359 refactor: Rename (ComboReportSettings)View -> Dialog
This is more consistent with our naming conventions, and 'dialog' is a
more precise description of this type.
2022-05-02 12:28:58 -04:00
John Colvin 4413580212 feat: Support modifying combo report 'name' after it is created
The csharp vm infrastructure was already in place, so this was just a matter of
adding the 'name' field to the settings view
2022-05-02 12:28:58 -04:00
John Colvin 8b653ef133 feat: Add volume col to TimeAndSales 2022-05-02 12:28:58 -04:00
John Colvin b1f8ac7e22 refactor: Make Optional<T> a struct
It's a trivial, readonly type, so struct seems more appropriate than class

Bugs (fixed):
   * [preemptive] greeks_tuple param potential null-ref exception in TradeInfo
   'with' ext
2022-05-02 12:28:58 -04:00
John Colvin a11c23d718 refactor: Enable nullable in TimeAndSales(Filter)Settings 2022-05-02 12:28:58 -04:00
John Colvin 9feceb9fdb fix: Create new instance of ContextMenu on each open
Bugs (fixed):
   * the volsurface grid context menu items' col/super header names don't stay
   in sync with clicked cell (the names never change once the menu item becomes
   visible for the first time)
2022-05-02 12:28:58 -04:00
John Colvin bad6464fe9 refactor: Clean up VolSurfaceRowContextMenuVM
* use new lang feats
* run formatter
2022-05-02 12:28:58 -04:00
John Colvin a6007ca362 refactor: Sync symbols in vs row context menu when vis-exps changes
Also, rename SymbolFilter -> SymbolItemVM
2022-05-02 12:28:58 -04:00
John Colvin 05348b01ae refactor: Clean up VolSurfaceRowVM
* use new lang feats
* run formatter
2022-05-02 12:28:58 -04:00
John Colvin abfabe3e21 Remove unused file VolSurfaceRowControl.cs 2022-05-02 12:28:58 -04:00
John Colvin 83e0da446a refactor: Rename VolSurfaceRowContext -> VolSurfaceRowVM 2022-05-02 12:28:58 -04:00
John Colvin 85a48e71d1 refactor: Move vs row context menu vm to own file & unnest class 2022-05-02 12:28:57 -04:00
John Colvin 0671117660 refactor: Move sync_with ext to ListExtensions 2022-05-02 12:28:57 -04:00
John Colvin 654c5b3074 refactor: Rename 'command' members 'cmd' in VolSurfaceRowContext 2022-05-02 12:28:57 -04:00
John Colvin aee5e54c14 refactor: Clean up VolSurfaceVM
* use new lang feats
* rename 'command' members 'cmd'
* sort members
2022-05-02 12:28:57 -04:00
John Colvin e5df037992 refactor: Remove redundant LastOrDefault ext fn 2022-05-02 12:28:57 -04:00
John Colvin 06b9586eb6 refactor: Consolidate tick up/down fn pairs into singular tick fns
With 'is_up' params
2022-05-02 12:28:57 -04:00
John Colvin 79716dfdba refactor: Add NotNullWhen attrs to tick up/down out params 2022-05-02 12:28:57 -04:00
John Colvin 02b6b5d078 fix: Handle nan qty gracefully on ladder qty button click
Just set the value to that of the clicked button (since you can't add
anything to NaN)
2022-05-02 12:28:57 -04:00
John Colvin 403e8d2947 ui: Change TickUpDownNullable control to reset null -> 0 on tick click 2022-05-02 12:28:57 -04:00
John Colvin 25e9c37987 refactor: Change props to generic T in TickUpDownNullableNumeric
Accidentally left several members defined as type double (this
now-generic class was refactored from TickUpDownNullableDouble)
2022-05-02 12:28:57 -04:00
John Colvin 99b58cf2bf refactor: Clean up LadderVM
* use new lang feats
* sort members
* run formatter
2022-05-02 12:28:56 -04:00
John Colvin 78155cfbdf refactor: Clean up LadderOrderVM
* use new lang feats
* sort members
* run formatter
2022-05-02 12:28:56 -04:00
John Colvin 1ba980d69f refactor: Accept tuples with non-uniform types in 'Sum' ext 2022-05-02 12:28:56 -04:00
John Colvin ef155aaedf Remove redundant bootstrapping code from TableUpdateDemuxer 2022-05-02 12:28:56 -04:00
John Colvin 22c4b528cb fix: Actually propagate updates to Subject nodes in TableUpdateDemuxer
Bugs (fixed):
   * Working orders are not showing in ladder
2022-05-02 12:28:56 -04:00
John Colvin fd71c6ac7a Set ShowDecimalPart to false in default qty display settings 2022-05-02 12:28:56 -04:00
John Colvin 019fa134cb fix: Use valid defaults for price/qty display in SecurityMD 2022-05-02 12:28:56 -04:00
John Colvin 4a40bd3364 refactor: Move SecurityDataHelper to spark_api proj 2022-05-02 12:28:56 -04:00
John Colvin 68229b2474 build (server): Update CMakeDeps 2022-05-02 12:28:56 -04:00
John Colvin 8727ed6ccd Upgrade server to dotnet-sdk 6
* upgraded externals to install dotnet-sdk-6.0 in docker
* rewound the sdk version specified in global.json to 6.0.200 (latest
available in the apt repository)
* updated some fs code that wasn't backwards compatible (namely the
builtin 'TryParse' methods)
2022-05-02 12:28:56 -04:00
John Colvin 8ee3d5b8ad web: Add tsconfig for clang release build
Not sure why this file was absent in the first place, as similar
tsconfig files were already present for clang debug, and gcc
debug/release
2022-05-02 12:28:55 -04:00
John Colvin 98ee43aa27 ui: Add spark menu items to toggle auto-copy-rolls/rates 2022-05-02 12:28:55 -04:00
John Colvin 92291e3f9f refactor: Clean up AnalyticsParametersManager
* replace ThreadedBlackboard w/ IBus
* use new lang feats
* run formatter
2022-05-02 12:28:55 -04:00
John Colvin 1abb41a0d5 ui: Change sec-type abbrev to be all caps 2022-05-02 12:28:55 -04:00
John Colvin 0993195f03 fix: Use CollectionViewSource to workaround wpf bug
Bugs (fixed):
   * Some dropdowns in exp params grid are empty
2022-05-02 12:28:55 -04:00
John Colvin c2a7c6f994 fix: Set result to null if conversion to nullable<T> fails
Was setting the result to default(T) before

Bugs (fixed):
   * Various exceptions stem from failed conversions to nullable types
   when the underlying type doesn't have a valid default state.  For
   example, default instances of immutable protobufs throw exceptions in
   property accessors for reference type members.
2022-05-02 12:28:55 -04:00
John Colvin 48900cf5a0 ui: Use BTSColors.input_dirty_border in exp params
This makes the 'dirty' color consistent with the rest of the system (was
using hardcoded Red before)
2022-05-02 12:28:55 -04:00
John Colvin 57fbb36808 feat: Add TimeWeightedInterpolated driver to analytics exp params 2022-05-02 12:28:55 -04:00
John Colvin 5c45384c34 refactor: Clean up AnalyticsExpirationParametersRowVM
* use new lang feats
* run formatter
2022-05-02 12:28:55 -04:00
John Colvin f9aa162e2a refactor: Clean up AnalyticsExpirationParametersVM
* use new lang feats
* run formatter
2022-05-02 12:28:55 -04:00
John Colvin 013d17c386 refactor: Enable nullable in AnalyticsExpirationParametersView.xaml.cs 2022-05-02 12:28:55 -04:00
John Colvin ad250c3883 fix: Include sec-type str in ExpirationTextConverter
Bugs (fixed):
   * ExpirationTextConverter.Convert doesn't include the sec-type part
   when 'ShowType' is true
2022-05-02 12:28:55 -04:00
Taha Afzal 2c9e0012e2 Cleaning up VolSurfaceRiskCalculator vs VolSurfaceSlideCalculator 2022-04-29 12:57:35 -04:00
Taha Afzal 2516f23e37 TC2 gets its list of symbols form the settings the rightway now 2022-04-29 12:43:34 -04:00
Taha Afzal d3a7bd48c2 Account setting in Slide is being respected now 2022-04-28 18:37:07 -04:00
Taha Afzal 4aeb7490e3 Slide calculates now if the caculation mode is set for Live Theo or Position update 2022-04-28 17:11:03 -04:00
Taha Afzal 265beef715 Slide is working (showing data, not verified the data though 2022-04-27 19:34:13 -04:00
Taha Afzal a58bf83a9a Added Combo computing code (temporarily brought old VoLSurfaceRiskCalculator back 2022-04-25 17:56:24 -04:00
John Colvin 9da1a4a2de fix: Remove CharSet.Unicode' from 'Logger_log' DLLImport attr
Bugs (fixed):
   * csharp logs only include the first char of the log message

Omnisharp recommended this be specified in the attribute after upgrading to
dotnet 6.  They were wrong.
2022-04-20 12:48:37 -04:00
John Colvin 8a98e38e73 Include opts (and futs) in manual fills sec popup 2022-04-20 02:42:35 -04:00
John Colvin 3044f4a0b1 ui: Sort accounts in dropdown in slide settings dialog 2022-04-20 02:12:14 -04:00
John Colvin 5104ae1742 ui: Set ComboReportWindow.MinWidth to 500
The default width was too narrow, and caused some labels to overlap
2022-04-20 01:47:47 -04:00
John Colvin 987ec14da2 Remove redundant call to _validate in combo conf vm 2022-04-20 01:39:52 -04:00
John Colvin 24c6e0df97 fix: Refresh combo report-result prop when risk-terms-name changes 2022-04-20 01:39:21 -04:00
John Colvin 23d5d18b28 fix: Set report.Id when saving combo report
Bugs (fixed):
   * When ok/apply is clicked in combo report settings, a new report is created
   with those params, instead of modifying the existing report
2022-04-20 01:38:22 -04:00
John Colvin 0a38c241af refactor: Rename ComboVM -> ComboReportVM 2022-04-20 00:36:53 -04:00
John Colvin 5b0d79ad17 refactor: Move ObservantAsyncCommand into ns Spark.ViewModel.Commands 2022-04-19 11:42:44 -04:00
John Colvin 833187559d refactor: Move AsyncCommand to ns Spark.ViewModel.Commands 2022-04-19 11:42:44 -04:00
John Colvin 527066e4c8 refactor: Move IRaiseCanExecuteChangedCommand to ns Spark.ViewModel.Commands 2022-04-19 11:42:44 -04:00
John Colvin bad30a49bf Open options-view with security-picker
TODO: translate the SecurityCriteria into NMSheetsSettings so the
selected criteria is actually used in the window
2022-04-19 11:42:44 -04:00
John Colvin 24f40dd652 ui: Hide strikes/callput fields in contract-picker 2022-04-19 11:42:44 -04:00
John Colvin dce61183dd fix (preemptive): Unhook callbacks when contract-picker controller disposed 2022-04-19 11:42:44 -04:00
John Colvin aeb81a9e86 fix (preemptive): Init contract-picker controller when datacontext changes 2022-04-19 11:42:44 -04:00
John Colvin 81aea15988 ui: Use qty display settings in fills 2022-04-19 11:42:44 -04:00
John Colvin 3e393208ab ui: Use qty display settings in orderbook 2022-04-19 11:42:44 -04:00
John Colvin 0674accd05 Set initial qty to NaN (not 0) in ladder
This makes the initial state consistent with the state after clicking
'Clear'
2022-04-19 11:42:44 -04:00
John Colvin 0f0d8df572 fix: Set init val through display-translator in SizeCalculator
The init val was being passed to the erroneous `UserProperty<T?> _value` field,
which should have been deleted when the _display_translator was introduced.

Bugs (fixed):
   * the ladder-view's initial size field is null when
2022-04-19 11:42:44 -04:00
John Colvin 0afd06be9c feat: Support double qty input in order ticket 2022-04-19 11:42:44 -04:00
John Colvin 1539bfa8b1 feat: Support double quantity input in Ladder 2022-04-19 11:42:43 -04:00
John Colvin a2336be143 fix: Check if _settings is null in LadderGridHost._refresh_prices
Bugs (fixed):
   * NullReferenceException is thrown when the right-panel-ladder (in
   OrderBook) is opened with no selected rows
2022-04-19 11:42:43 -04:00
John Colvin 7d65befc7e refactor: Overload detect_property_changes w/ eq comp params 2022-04-19 11:42:43 -04:00
John Colvin 916b28bc16 refactor: Clean up LadderVMContainer 2022-04-19 11:42:43 -04:00
John Colvin fb3447a6b4 refactor: Consolidate TickUpDownNullable classes into generic impl 2022-04-19 11:42:43 -04:00
John Colvin 2fa9b2e0e5 refactor: Rename TickUp/DownParameter TickUp/DownCommandParameter 2022-04-19 11:42:43 -04:00
John Colvin a66d3fb28a refactor: Return bool indicating whether object was disposed 2022-04-19 11:42:43 -04:00
John Colvin 6be017d35b fix: Make new instances of arrow icons instead of sharing
Bugs (fixed):
   * 'Freezable cannot be frozen' exception thrown when opening
   multiple windows (on diff threads) that use the same arrow icons
2022-04-19 11:42:43 -04:00
John Colvin ef24e5164f refactor: Change uint qty members to doubles 2022-04-19 11:42:43 -04:00
John Colvin a7f36b2361 refactor: Support generic numerics in tick-utils 2022-04-19 11:42:43 -04:00
John Colvin 3d404002a0 refactor: Make QuantityConversionData generic for numeric T 2022-04-19 11:42:43 -04:00
John Colvin 1922a1b49c refactor: Make MathUtils/NumericExtensions generic 2022-04-19 11:42:43 -04:00
John Colvin ca4ec7025c Add price/quantity display config to SecurityMD 2022-04-19 11:42:43 -04:00
John Colvin 7dcfa709d5 Add SecurityMetadata (proto3) config
Immediate Purpose:
   * Add security-based config for 'unit-quantity'
2022-04-19 11:42:43 -04:00
John Colvin aa254142e8 Add client-side support for proto3 config 2022-04-19 11:42:42 -04:00
John Colvin b00b12bed2 refactor: Clean up MDSource/Daemon and deps 2022-04-19 11:42:42 -04:00
John Colvin dd7168a687 Add SecurityMetadata pbuf to client build 2022-04-19 11:42:42 -04:00
John Colvin 97b665733a Add SecurityCriteria pbuf type to client build 2022-04-19 11:42:42 -04:00
John Colvin 4a6d3e3042 Add bts/api/domain to proto search path for config 2022-04-19 11:42:42 -04:00
John Colvin f65cf43e21 refactor: Rename bts.api.domain.SecurityType.INDEX -> SPOT 2022-04-19 11:42:42 -04:00
John Colvin f971d4db51 Add SYNTHETIC to bts.api.domain.SecurityType 2022-04-19 11:42:42 -04:00
John Colvin 8cd79c0372 Add BTS and SIM to bts.api.domain.Venue 2022-04-19 11:42:42 -04:00
John Colvin 9bc346e84a refactor: Clean up SecurityCriteria
* move SecurityCriteriaClause into own file
* convert fields to props
* sort members
* use new lang feats
* run formatters
2022-04-19 11:42:42 -04:00
John Colvin 88d2e1756f refactor: Rename config.cs -> Configuration.cs 2022-04-19 11:42:42 -04:00
John Colvin dc09c45330 refactor: Clean up config.cs
* use new lang feats
* specify CharSet.Unicode in DLLImports (avoids warning ca2101)
* sort members
* run formatter
2022-04-19 11:42:42 -04:00
John Colvin 47e5b57789 style: Clean up SecurityMD
* sort members
* use new lang feats
* run formatter
2022-04-19 11:42:42 -04:00
John Colvin c1ad8ed4b2 style: Clean up AnalyticsService.proto 2022-04-19 11:42:42 -04:00
John Colvin 3589b5c9a8 build: Upgrade MEF pkgs in spark proj
Also remove unneccessary pkg 'Microsoft.Extensions.DependencyInjection'
2022-04-19 11:42:42 -04:00
John Colvin fbaf15ad34 fix: Export shared inst for IWindowManager/Interop
Bugs (fixed):
   * 2 WindowManager instances are created on startup!  This causes many
   problems (for ex, 'IShellWindow.thread_init' is called twice for each
   shell window)
2022-04-19 11:42:42 -04:00
John Colvin ee1d02991c feat: Port combo report over from edge 2022-04-19 11:42:42 -04:00
John Colvin 2450cb028e Fix BTSOxyGraph background binding 2022-04-19 11:42:42 -04:00
John Colvin ec1182f059 Impl IEquatable in SparkTag
This is a pre-emptive fix.  Without it, we are susceptible to potential hash
collision bugs in the bus
2022-04-19 11:42:41 -04:00
John Colvin 7797d8255f fix: Avoid duplicate entries in cpp list 2022-04-19 11:42:41 -04:00
John Colvin a4780ecac7 refactor: Make 'within_range' param order consistent 2022-04-19 11:42:41 -04:00
John Colvin 32643990ee refactor: Use generic math in MathUtils/NumericExtensions 2022-04-19 11:42:41 -04:00
John Colvin 5746e6267a Check equality in BoundColumn prop setters
Only call 'RaisePropertyChanged' when value actually changes
2022-04-19 11:42:41 -04:00
John Colvin 501ec81405 build: EnablePreviewFeatures for cs build
Namely, to enable generic math to allow for generic use of numeric
binary operators
2022-04-19 11:42:41 -04:00
John Colvin 714f4fe995 refactor: Drop 'Single' in SingleComboReportCalculator 2022-04-19 11:42:41 -04:00
John Colvin ead71a5618 style: Move ComboFuture/StrikeData into own files 2022-04-19 11:42:41 -04:00
John Colvin eaf6e4ba28 refactor: Clean up VolSurfaceUtilityFunctions
* use new lang feats
* remove redundant ported functionality (refactor w/ impls in spark)
* run formatter
2022-04-19 11:42:41 -04:00
John Colvin bef2c9310e Add 'Fill' list ext fn 2022-04-19 11:42:41 -04:00
John Colvin 7b3e0d4a59 refactor: Clean up SecurityTuple/Expiration/Strike
* use new lang feats
* sort members
* run formatter
2022-04-19 11:42:41 -04:00
John Colvin ea0705e7e4 fix: Avoid dupl keys when stripping exch from SecurityExpiration 2022-04-19 11:42:41 -04:00
John Colvin 7b9310f595 refactor: Repl IDict w/ IReadOnlyDicts in vs risk calc 2022-04-19 11:42:41 -04:00
John Colvin a31f775de8 refactor: Simplify change_vol_dervs_to_percentages 2022-04-19 11:42:41 -04:00
John Colvin f061630789 refactor: Clean up VolSurfaceRiskCalculator
* Use new lang feats
2022-04-19 11:42:41 -04:00
John Colvin 5d442125b0 refactor: Use switch case for is_delta_greek impl 2022-04-19 11:42:41 -04:00
John Colvin e600f444f8 refactor: Clean up Slide/VolSurfaceRisk calcs
* Gather related 'out params' into new SecurityPositionData struct
* Break up long compute_and_fire fn in SlideReportCalculator into several fns
* Use new log_op fn to eliminate messy timer code sections
* Run formatter
2022-04-19 11:42:41 -04:00
John Colvin a8ae4d6655 Add create, append, to_comparer fns for ComparerBuilder 2022-04-19 11:42:41 -04:00
John Colvin a885fa7065 Add LoggerExtensions to record (time) ops 2022-04-19 11:42:41 -04:00
John Colvin 65665dc384 Add HierarchicalDictionary
A useful abstraction for nested dictionaries
2022-04-19 11:42:40 -04:00
John Colvin a8992edf88 fix: Check report type when converting to Report pbuf 2022-04-19 11:42:40 -04:00
John Colvin 1b7dd28c2f fix: Use key/value comparer args when creating SetMap
This is a pre-emptive fix, as this fn isn't currently referenced
2022-04-19 11:42:40 -04:00
John Colvin ae692432a2 fix: Use sec type arg when converting vsexp to securityexp
Bugs (fixed):
   * duplicate items in slide report expirations dropdown

In code recently ported from edge, the security type was [assumed to be]
implied by the symbol's capitalization: futures begin with upper-case letters,
while options begin with lower-case.  This assumption has become unreliable (at
deribit, both futures and options are all upper-case).
2022-04-19 11:42:40 -04:00
John Colvin c779b31a90 refactor: Clean up [csharp] co2 classes
* Move all [non-nested] classes/structs into own files
* Sort members
* Fix naming convention violations
* Use new lang feats
* Run formatter
2022-04-19 11:42:40 -04:00
John Colvin cb4bf8f5f4 Remove unused class TimeAndSalesModel 2022-04-19 11:42:40 -04:00
John Colvin 96cd807720 Add fake slide report data 2022-04-19 11:42:40 -04:00
John Colvin 07c3150d2a refactor: Change abstract TradeLogRow class to interface 2022-04-19 11:42:40 -04:00
John Colvin c66a405e6d refactor: Enable nullable (lang feat) on some Slide files 2022-04-19 11:42:40 -04:00
John Colvin 0558381bcb Add DataTemplates ResourceDictionary to TimeFilterControl
So callers aren't required to include it themselves
2022-04-19 11:42:40 -04:00
John Colvin 1db47684b7 refactor: Remove redundant ImmutableWrapper for list 2022-04-19 11:42:40 -04:00
John Colvin e16abd2e8b Check AdornerLayer not null when adding drag adorner
Bugs (fixed):
   * Opening slide report settings dialog causes crash
2022-04-19 11:42:40 -04:00
John Colvin f7adc84f0e feat: Port slide report over from edge 2022-04-19 11:42:40 -04:00
John Colvin 3acd51b247 refactor: Replace non pbuf ReportParameters with pbuf Report 2022-04-19 11:42:40 -04:00
John Colvin 6caab9c017 refactor: Make tags create/activate reports type-agnostic 2022-04-19 11:42:40 -04:00
John Colvin 97c61d2a4f refactor: Rename SingleSlideReportCalculator SlideReportCalculator 2022-04-19 11:42:40 -04:00
John Colvin 4f6a0061fe refactor: Clean up ObservableDemuxer
* Move to spark_core
* Split classes into sep files
* Use new lang feats
* Run formatter
2022-04-19 11:42:40 -04:00
John Colvin 5b201069e8 Add Bootstrap ext fn for IObservables 2022-04-19 11:42:39 -04:00
John Colvin 8b5d79847f Add 'Select' ext fns for Update/TableUpdate 2022-04-19 11:42:39 -04:00
John Colvin 2d112a86af refactor: Remove LegacyTableUpdate (repl w/ TableUpdate) 2022-04-19 11:42:39 -04:00
John Colvin 8806a62af7 refactor: Clean up ReflectionHelper/ObjectSnapshot
* Consolidate as much code as possible in ReflectionHelper (spark_core)
* Sort members
* Run formatter
2022-04-19 11:42:39 -04:00
John Colvin 01748ee847 Remove ExpirationTemplate from DataTemplates.xaml
It isn't general purpose enough to justify its presence in this global
resource file
2022-04-19 11:42:39 -04:00
John Colvin 6f1fb24a31 refactor: Move ExpTextConverter into own file
Also rename it "ExpirationTextConverter"
2022-04-19 11:42:39 -04:00
John Colvin c30459115e Post accounts-map on the bus 2022-04-19 11:42:39 -04:00
John Colvin 7cdfcbf6dc Support changes to icon in SparkMenuItem 2022-04-19 11:42:39 -04:00
John Colvin acf140e670 Add ObservableValue to spark_core 2022-04-19 11:42:39 -04:00
John Colvin df4a18e887 refactor: Clean up ComparerBuilder
* Implement IList<IComparer<T>>
* Use new lang feats
* Run formatter
2022-04-19 11:42:39 -04:00
John Colvin dc3836065a refactor: Move pbuf clone exception handling into 'try_clone' 2022-04-19 11:42:39 -04:00
John Colvin 3df7ab194c refactor: Clean up ProtobufSerializationHelper
* Use new lang feats
* Rename clone_protobuf -> clone
* Run formatter
2022-04-19 11:42:39 -04:00
John Colvin c0af8460a2 refactor: Move ProtobufSerializationHelper into spark_core 2022-04-19 11:42:39 -04:00
John Colvin 85d94a84a8 Add Chevron icons (right and down) 2022-04-19 11:42:39 -04:00
John Colvin 6ad6a361f9 Execute async command in try/catch
Purpose: treat both completed and canceled tasks as "finished."

Previously, the AsyncCommand waited endlessly for "canceled" tasks to finish.
As a result, if the command disallowed concurrent execution, the 'CanExecute'
flag would never be flipped back to true, and any buttons associated with that
command would be permanently disabled.
2022-04-19 11:42:39 -04:00
John Colvin 2a5dcab60f refactor: Move UserSymbol into own file 2022-04-19 11:42:39 -04:00
John Colvin 02b97d594f Add ReportExtensions 2022-04-19 11:42:38 -04:00
John Colvin 5e1cac251b fix: Actually copy untracked files in git-save.py 2022-04-19 11:42:38 -04:00
John Colvin 3639638bf2 refactor: Clean up AnalyticsShellModule a bit 2022-04-19 11:42:38 -04:00
John Colvin e255e054d4 refactor: Split analytics module/viewmodel into sep classes 2022-04-19 11:42:38 -04:00
John Colvin 8c9d8e7089 refactor: Move Commands dir into ViewModel 2022-04-19 11:42:38 -04:00
John Colvin f0e069d348 Add IProtobuf 2022-04-19 11:42:38 -04:00
John Colvin 4f32c8469e refactor: Clean up DateFormatter
* move DateFormat enum into sep file
* sort members
* use new lang feats
* run formatter
2022-04-19 11:42:38 -04:00
John Colvin b2679ecb60 Clean up old (recently ported) slide/report code 2022-04-19 11:42:38 -04:00
John Colvin e0537267a2 Add max_name_length field to EnumDescriptor 2022-04-19 11:42:38 -04:00
John Colvin 3440afd0d6 refactor: Split log-related classes into sep files 2022-04-19 11:42:38 -04:00
John Colvin cab65a0aaf refactor: Clean up TimeFilterVM
* Move ITimeFilterVM into separate file
* Use new lang feats
* Sort members
* Run formatter
2022-04-19 11:42:38 -04:00
John Colvin 910908b43e Add some handy Array utils 2022-04-19 11:42:38 -04:00
John Colvin cf1c1e6df1 refactor: Clean up ArrayUtils 2022-04-19 11:42:38 -04:00
John Colvin ff9b4f5b2f build: Upgrade dotnet core 5.0 -> 6.0 2022-04-19 11:42:38 -04:00
John Colvin 01899428e3 ui: Bind alignment props in ComboCheckBox template 2022-04-19 11:42:37 -04:00
John Colvin ff75ade140 fix build (client): Change 'uint' -> 'uint32_t'
Apparently the includes don't define 'uint' on windows
2022-04-19 11:34:28 -04:00
taha afzal 25d5f36645 Exchange positions are periodically published by OrderServices 2022-04-19 10:33:45 -04:00
Taha Afzal 5c5f042cac Logging in the Bus and threadedBlackboard classes adjusted 2022-04-18 13:16:16 -04:00
Taha Afzal 7da0b32838 SpreadSpec changes are handled rightaway (instead of being put on a timer) 2022-04-18 13:16:16 -04:00
Taha Afzal 389896be07 Retiring some SpreadBox superflous settings 2022-04-18 13:16:16 -04:00
Taha Afzal f55323afca SpreadBox settings cleaned up (partially) 2022-04-18 13:16:16 -04:00
Taha Afzal 0d5313d263 SpreadCalculationSynchronizer checks SpreadValue changes before posting them to the bus 2022-04-18 13:16:16 -04:00
Taha Afzal bc676b9731 Cleaning up the SpreadBox calculation code 2022-04-18 13:16:16 -04:00
Taha Afzal 0313a90196 Cleaned up SpreadManager 2022-04-18 13:16:16 -04:00
Taha Afzal fca1c62a55 Filtering expired contracts in the UI 2022-04-18 13:16:16 -04:00
Taha Afzal 2dcb0d6177 Fixed PriceControlGUI so that the price coule br overriden (locked) based on the consturctor arguments. For TC2 it does notallow overrides whereas for SpreadBoxes it does 2022-04-18 13:16:16 -04:00
Taha Afzal e2eea4bca7 Deleting unused SpreadBox spread types 2022-04-18 13:16:15 -04:00
Taha Afzal 9218184ef1 SpeadBox theo default formatting set to 4 dec places 2022-04-18 13:16:15 -04:00
Taha Afzal a9ec9e87be SpreadBox added 2022-04-18 13:16:15 -04:00
taha afzal f650ff3ccf Modfified IEMOrderMux interface 2022-04-16 20:38:02 -04:00
taha afzal b2640d2203 Updading interface for Emumba 2.2.5 2022-04-16 00:54:03 -04:00
taha afzal c3b05d27f1 EMNativeOrders clean up (this is partially done, reporting and limiter reporting needs cleaning up) 2022-04-15 01:22:51 -04:00
taha afzal 9b3a706328 Cleaned up EMExecutionGateway 2022-04-13 17:16:03 -04:00
taha afzal 290392553e EMNativeOrder does not mark all recovered orders as errors 2022-04-13 17:16:03 -04:00
taha afzal 07838553a6 Added Exchange Positions stream to OrderService 2022-04-13 17:16:03 -04:00
taha afzal 824ce8b172 ExchangePosition routed all the way to OrderServer 2 2022-04-13 17:16:03 -04:00
taha afzal 6ecccdee7f Routing ExchangePosition to OrderServiceServer 2022-04-13 17:16:03 -04:00
taha afzal 96d58942d0 Added all open orders query to IEMOrderMuxer 2022-04-13 17:16:03 -04:00
taha afzal 9c33405383 Added position enquiry function to (and asycn callback) to IEMOrderMuxer 2022-04-13 17:16:03 -04:00
taha afzal a8a5fc3672 Stopgap fix for order final state not being reached, by piggybacking on the trades callback 2022-04-13 17:16:03 -04:00
taha afzal 0178716b01 Orders API now supports fractional quantites 2022-04-13 17:16:03 -04:00
John Colvin 9c6327160d fix: Set response-success to true in delete report
Bugs (fixed):
   * When a report is successfully deleted, the response from the server
   indicates failure
2022-04-08 12:37:58 -04:00
Taha Afzal 5975e1bfb1 Adding algo dropdown to the ladder for options 2022-03-31 14:58:13 -04:00
taha afzal 5a0c70c301 Removing some unused protos 2022-03-31 14:57:40 -04:00
taha afzal b21c6f45b7 Putting Deribit securities in config 2022-03-31 14:34:29 -04:00
taha afzal 73596546bf Moving Deribit symbols from SIM to Deribit 2022-03-31 14:34:29 -04:00
taha afzal 6bf83c9e72 Removing the temporary file based order entry mechanism in EmMDListener 2022-03-31 14:34:29 -04:00
taha afzal 9385176bb5 Cleaning up IEMOrderMuxer 2022-03-31 14:34:29 -04:00
taha afzal 64240c5f3b Deribit orders (mostly) work 2022-03-31 14:34:29 -04:00
taha afzal 32c4d05106 NativeOrder and ExecutionGateway for EM via Deribit 2022-03-31 14:34:29 -04:00
taha afzal 65afb81f33 Added an order interactor that can read fro the file and secd/update/cancel orders 2022-03-31 14:34:29 -04:00
John Colvin 21a4673a1f Fix typos in ReportParams pbuf 2022-03-21 13:11:59 -04:00
Taha Afzal 03c13e37db Time calculation now considers time of expiration, however the time to expire is hard coded for Deribit options 2022-03-06 21:23:45 -05:00
taha afzal e8dfbe1d01 AnalyticsServiceServer's archive vol request now respects the symbol in the arguments 2022-03-04 19:01:51 -05:00
Taha Afzal cd576793f7 Straddle is normalized for the fwd 2022-03-03 22:36:24 -05:00
Taha Afzal 736cb21e4d Changed the tag/data to request archived vols 2022-03-03 16:25:05 -05:00
Taha Afzal d32efe90b9 Changed the ArchivedVol Request type to match the service call type 2022-03-03 16:25:05 -05:00
Taha Afzal f873675628 VolSurfaceUsage and Sheet launch hard coded value changes for ETH 2022-03-03 16:25:05 -05:00
Taha Afzal 65cb5e434b VolSurface Usage cleaning up 2022-03-03 16:25:05 -05:00
Taha Afzal 272fd35699 Archived vols now contains the SecTups that are part of the vols 2022-03-03 16:25:05 -05:00
Taha Afzal 838546b497 Saving vols with vol change and showing vol change in sheets 2022-03-03 16:25:05 -05:00
Taha Afzal a17fcb50c4 Adding call to save theos 2022-03-03 16:25:04 -05:00
John Colvin 70def3ce72 Multiply delta and vol by 100 in time/sales ui 2022-03-03 15:24:26 -06:00
John Colvin 627d307781 Split time/sales 'Edge' col into Buy/Sell Edge cols 2022-03-03 15:24:21 -06:00
John Colvin b96cdafc71 fix: Divide theo & delta by driver to normalize them
Bugs (fixed):
   * Theo and delta are wrong in time/sales
2022-03-03 11:39:40 -05:00
John Colvin f9f6fa6233 fix: Prevent time/sales vertical scrollbar clipping 2022-03-02 23:27:01 -05:00
John Colvin d8dd9ce4a2 Skip hidden cols when computing time/sales win width 2022-03-02 23:27:01 -05:00
John Colvin 07a349e0d2 refactor: Clean up TimeAndSalesWindow/Factory 2022-03-02 23:27:01 -05:00
John Colvin 65e23373cd Init grid settings in TimeAndSales default settings 2022-03-02 23:27:00 -05:00
John Colvin 6698188e00 Allow null 'can execute' delegate in SparkCommand.create 2022-03-02 23:27:00 -05:00
John Colvin 0242d964b2 feat: Add greeks to Time/Sales 2022-03-02 23:27:00 -05:00
John Colvin c1d2fc6ead Add IReadOnlyList wrapper impl for IList
Useful for lazily preserving the Count/indexer features when converting
IList to IReadOnlyList
2022-03-02 23:17:43 -05:00
John Colvin 74bb094582 Filter out empty updates in trades IObservable 2022-03-02 23:17:43 -05:00
John Colvin 9e14595458 Add fn to merge IObservable trades with greeks
Also clean up up TradesSource a bit
2022-03-02 23:17:43 -05:00
John Colvin fdb90a689a refactor: Clean up TimeAndSalesSettings
* Use new lang feats
* Run formatter
2022-03-02 23:17:43 -05:00
John Colvin a1b3fbf3e9 refactor: Clean up TimeAndSalesVM
* Use new lang feat feats
* Run formatter
2022-03-02 23:17:43 -05:00
John Colvin fccaa23d1f refactor: Rename TimeAndSalesView.Columns -> TimeAndSalesColumnType 2022-03-02 23:17:43 -05:00
John Colvin df789fed2e refactor: Don't copy trade_key in TimeAndSalesRowVM 2022-03-02 23:17:43 -05:00
taha afzal c254b982a2 Removing the hardcoded BTC 2022-03-02 18:38:36 -05:00
taha afzal 78adea7bcb Added SecTup to VolSurfaceUsage 2022-03-02 13:59:45 -05:00
John Colvin 5085874b86 fix: Invalidate DIYGrid row view in Loaded callback
Bugs (fixed):
   * Some grids are showing blank rows (esp Time/Sales, mview)
2022-03-01 16:58:05 -05:00
John Colvin 8631b85e42 style: Add documentation to ConnectableObservableSelector 2022-03-01 16:58:05 -05:00
taha afzal f9449f5fa6 Implemented get_archived_theos in AnalyticsServiceServer 2022-02-28 19:29:55 -05:00
taha afzal 0cef0ce4e5 Merge branch 'spark_crypto' of bitbucket.org:bluetradesys/spark into spark_crypto 2022-02-28 14:36:43 -05:00
taha afzal bac62f99ea in AnalyticsService ArchiveTheo now has the key istead of the Security 2022-02-28 14:36:27 -05:00
John Colvin 017a788933 refactor: Clean up Ladder
* Create an official LadderWindow class (previously, ladder windows were
  instantiated as `AnonymousShellWindow`s in a terse, hard-to-read creation fn)
* Run formatter
2022-02-28 14:29:12 -05:00
John Colvin 224b518a60 fix: Set width/height for new shell windows
Bugs (fixed):
   * The ladders open tiny like the tiny balls (in vs graph)
2022-02-28 14:29:12 -05:00
John Colvin f98f6380c4 Add ThreadSafeEvent and SpinLockExtensions 2022-02-28 14:29:12 -05:00
John Colvin 9a8b156443 Add observe_title fn to ShellWindowBase
This impl handles some tricky threading issues
2022-02-28 14:29:12 -05:00
John Colvin a269b8efe1 Fix duplicate protomember ids in UserSettings 2022-02-28 14:29:12 -05:00
John Colvin b609a290db Add nifty IObservable KeyResolver util 2022-02-28 14:29:12 -05:00
John Colvin ccdc033c60 build (client): Activate py venv before generating cpp protos
Finally, the client can be built from a shell outside of the venv
2022-02-28 14:21:31 -05:00
John Colvin ed864cae5d style: Format cmake files 2022-02-28 14:21:31 -05:00
John Colvin 1dec925c73 Fix typo in 'ticks-per-row' rounding logic for ladder 2022-02-28 14:21:31 -05:00
John Colvin 9c5856f247 Link against 'fmtd' if building debug 2022-02-28 14:21:31 -05:00
John Colvin 024572c35c Update externals to get openssl and fmt release lib fixes 2022-02-28 14:21:30 -05:00
John Colvin 4e6ae49f26 style: Remove old/useless comments in spark_sdk.csproj 2022-02-28 14:21:30 -05:00
John Colvin 1aa57a2f6f Fix typo net471 -> net5.0 in spark_sdk.csproj 2022-02-28 14:21:30 -05:00
John Colvin 33e2f4b6ff build: Use appropriate debugtype arg for debug/release 2022-02-28 14:21:30 -05:00
taha afzal 44603c0b4c Merge branch 'spark_crypto' of bitbucket.org:bluetradesys/spark into spark_crypto 2022-02-28 13:30:09 -05:00
taha afzal f9c79d5b44 Added vol/theo archiving to AnalyticsService 2022-02-28 13:29:57 -05:00
Taha Afzal 771258eeb7 Merge branch 'spark_crypto' of bitbucket.org:bluetradesys/spark into spark_crypto 2022-02-28 09:05:21 -05:00
Taha Afzal d37e82d200 Exp Params' old exps are deleted at save time 2022-02-28 09:05:10 -05:00
taha afzal fb2fd21417 Merge branch 'spark_crypto' of bitbucket.org:bluetradesys/spark into spark_crypto 2022-02-26 23:06:19 -05:00
taha afzal 98362c7eb9 Fixing the deribit connection drop issue 2022-02-26 23:05:47 -05:00
Taha Afzal 128bc3c391 Fixing the crash with expired drivers 2022-02-24 15:36:23 -05:00
John Colvin c294406934 dev/john: Update/format docker scripts 2022-02-23 15:07:50 -06:00
John Colvin 3825ce80eb dev/john: Update repo path in johns docker 2022-02-23 15:05:12 -06:00
John Colvin 01d6731929 dev/john: Cleanup (and fix) setup_builds.fish 2022-02-23 15:05:12 -06:00
John Colvin dff088fe37 Fix typo in include directive
Must have missed this in the protobuf-cleanup commit,
884a79e13a
2022-02-23 15:05:12 -06:00
Taha Afzal 2c4a203109 Bug with saving exp params 2022-02-21 23:59:02 -05:00
John Colvin c1b717d8de refactor: Split ScatterSeries color into 'fill' and stroke'
Previously, 'color' was simply an alias for 'fill.'  The new stroke property
provides some useful functionality, as it:
   * can can be used to set the marker shape's outline color
   * makes it possible to use 3 marker shapes that were thought to be broken
     (Cross, Plus, and Star). These shapes were never actually broken, they
     were merely invisible because they were colored [only] with the stroke
     property
2022-02-21 14:46:16 -05:00
John Colvin 5fb5a67210 style (ui): Make implied vol balls bigger 2022-02-21 14:24:46 -05:00
John Colvin 72ca24de18 refactor: Remove unused ctr from ScatterSeriesSettings 2022-02-21 13:46:10 -05:00
John Colvin dbb3cfc7cc refactor: Post exp params to bus in an ImmutableList
Previously, they were posted in an IEnumerable and thus created lazily.
which seemed ill-advised as the bus is multithreaded
2022-02-21 13:17:45 -05:00
John Colvin 2229abdc36 fix: Set vs window title to vs name in main win
Was only doing this in the 'dummy' window before
2022-02-21 12:58:25 -05:00
John Colvin 552836eafc style (ui): Add some padding around cells in vs grid 2022-02-21 12:00:56 -05:00
John Colvin 17af19661c fix: Never insert duplicate columns in vs grid
Bugs (fixed):
   * Volsurface window crashes sometimes when columns are changing
2022-02-21 12:00:56 -05:00
Taha Afzal 6bd2d9cd90 Fixing the build 2022-02-21 11:24:59 -05:00
Taha Afzal d5c3c64a18 Merge branch 'spark_crypto' of bitbucket.org:bluetradesys/spark into spark_crypto 2022-02-21 11:11:18 -05:00
Taha Afzal f27fa7de8e Merge branch 'spark_crypto' of bitbucket.org:bluetradesys/spark into spark_crypto 2022-02-21 11:10:32 -05:00
Taha Afzal f568691731 Adding report API to analytics server 2022-02-21 11:10:15 -05:00
John Colvin 7506576138 fix: Constrain order ticket header width
Bugs (fixed):
   * Order ticket is not showing the X to dismiss the window
2022-02-21 00:01:07 -05:00
John Colvin 60fa83273c feat (ui): Add graph lines in vs window 2022-02-20 23:12:35 -05:00
John Colvin 0f6ee88075 fix: Load/save all settings props in [vs] AxisVM
Bugs (fixed):
   * When the vs window is restored (with a workspace):
      * Both axes lack titles
      * Values aren't formatted as percentages in y axis
2022-02-20 22:56:36 -05:00
John Colvin 99b1241fdb ui: Add row padding in vs grid 2022-02-20 22:01:24 -05:00
John Colvin 6ffc3d4cad fix: Maintain vs grid row sorting when selected exps change 2022-02-20 22:01:24 -05:00
John Colvin 4b2eda6a24 Add ObservableSortedCollection 'bind' ext fn 2022-02-20 22:01:24 -05:00
John Colvin 1a72533934 diag: Add Trace fn for ToggleButton 2022-02-20 22:01:24 -05:00
John Colvin f539a533e6 ui: Give TLC to exp params window 2022-02-20 22:01:24 -05:00
John Colvin 1e693af08f Add some Tuple ext fns for convenience 2022-02-20 22:01:24 -05:00
John Colvin 7916417b71 Add some IObserver utils/ext fns for convenience 2022-02-20 22:01:24 -05:00
John Colvin 46c38a0ff7 refactor: Clean up CompositeObserver
* Implement IList<IObserver<T>>
* Add static 'create' fns to support template type inference
* Sort members
* Run formatter
2022-02-20 22:01:23 -05:00
John Colvin 9d8f65adc0 Fix typo in ObservableAutoWrapper.connect overload
Previously, it wasn't passing the on_removed param to the other overload
2022-02-20 22:01:23 -05:00
John Colvin 1618784c0f refactor: Remove unused UISettings.proto 2022-02-20 22:01:23 -05:00
John Colvin 6b0f87bd31 ui: Host HeaderContent in ToggleButton in ComboCheckBox
Bugs (fixed):
   * HeaderContent in ComboCheckBox overlaps expander arrow
2022-02-20 22:01:23 -05:00
John Colvin e754ce0ec4 refactor: Begin renaming DelegateCommand to Command
This renaming makes ICommand creation less terse.  For now, leave
DelegateCommand in place, as its references are ubiquitous

TODO: Replace all remaining references to DelegateCommand w/ Command
2022-02-20 22:01:23 -05:00
Taha Afzal 38caa7f892 PNL calculator pushed in 2022-02-17 20:54:15 -05:00
Taha Afzal dd1d9b5df8 Adding slide calculator 2022-02-17 18:41:09 -05:00
Taha Afzal cb8a23c73f Adding combo report classes (1) 2022-02-17 17:38:12 -05:00
Taha Afzal 41a072d4d2 Started importing Risk 2022-02-16 23:32:21 -05:00
Taha Afzal 0905ea8c26 Removing the log in the VolSurfaceMDUnit which wa sporving to be very expensive 2022-02-16 19:41:49 -05:00
Taha Afzal a0ca0e5fd0 Removing more unused TC2 code 2022-02-16 15:48:07 -05:00
Taha Afzal e00015dccf Removing unused TC2 classes 2022-02-16 15:32:34 -05:00
Taha Afzal 865a12213c Theos can optionally be displayed as normalized by fwd 2022-02-16 15:20:42 -05:00
Taha Afzal b779014c13 Order ticket launch, setting for fwd normalized theos (both TC2) 2022-02-16 14:49:50 -05:00
Taha Afzal 4c04a78c79 cleaning unused code in TC2 2022-02-15 21:17:30 -05:00
Taha Afzal 32b769bdaa TC2 settings can now be restored 2022-02-15 18:20:54 -05:00
Taha Afzal 4c507aae4e Merge branch 'spark_crypto' of bitbucket.org:bluetradesys/spark into spark_crypto 2022-02-15 13:03:58 -05:00
John Colvin 8a17adb49d refactor: Overload OnDispatcher w/ Dispatcher param
By default, this param is assigned Dispatcher.CurrentDispatcher. This follows
the overload pattern in SubscribeOnDispatcher
2022-02-15 12:58:52 -05:00
John Colvin 09aeef03a6 fix: Use calling thread's Dispatcher in SubscribeOnDispatcher 2022-02-15 12:56:58 -05:00
John Colvin e020cca9d2 fix: Don't await dispatcher op in OnDispatcher notify impl
Bugs (fixed):
   * Crash on shutdown if OptionsView window is open, due to an unhandled
     TaskAborted exception in the OnDispatcher ext fn
2022-02-15 12:56:57 -05:00
Taha Afzal f86ba4f8fd Removed the expired exps from the sheets 2022-02-15 00:16:24 -05:00
Taha Afzal d6e724a47a Interp'd drivers are now showing in TC2 2022-02-14 23:45:35 -05:00
Taha Afzal a64a794a97 Hiding driver freeze and headers at the top 2022-02-14 20:31:35 -05:00
Taha Afzal 9d5202c49c Default columns visibility is better now 2022-02-14 18:30:02 -05:00
Taha Afzal cea0591a77 Settings were not taking affect when they were being set, Theo Acceptance button hidden 2022-02-14 18:18:19 -05:00
John Colvin 927ee4626e Set vs window title to vs name 2022-02-14 14:31:14 -05:00
John Colvin 47a0649de3 Add OptionsViewWindow (tc2) to MarketShellModule 2022-02-14 14:19:45 -05:00
John Colvin 2a50990849 refactor: Clean up SparkTags 2022-02-14 14:01:52 -05:00
John Colvin 03d89de6b9 Add ShellWindowBase class
This is in anticipation of the special winforms shell window for tc2
(eventually, SparkWindow should derive from this class as well)
2022-02-14 14:01:52 -05:00
John Colvin 884a79e13a refactor: Clean up protobuf files
* Rename files to snake_case (per Google style guide)
  https://developers.google.com/protocol-buffers/docs/style
* Prohibit single line functions in clang-format for proto files
* Run clang-format
2022-02-14 14:01:52 -05:00
John Colvin 47ce487162 refactor: Use IBus to remove vs win (not IWindowManager) 2022-02-14 14:01:51 -05:00
John Colvin 957172f282 refactor: Add 'hide_window' tag so wins can be removed via bus 2022-02-14 14:01:51 -05:00
John Colvin 8d081e0c45 refactor: Clean up shell window infrastructure classes
Cleans up: WindowManager, FloatingWindow, ShellWindowVM, a few IShellModule
implementations

* Sort members
* Use new lang feats
* Make code style more consistent with rest of code base
* Ensure FloatingWindow interactions occur on the Application Dispatcher thread
* Run formatter
2022-02-14 14:01:51 -05:00
John Colvin 991822bede refactor: Rename CheckInvokeAsync to snake_case
Also add documentation
2022-02-14 14:01:51 -05:00
John Colvin 8b7b76a337 refactor: Move vs ui files into new module dir 2022-02-14 14:01:51 -05:00
John Colvin af12d5bba1 refactor: Rename VolSurfaceModule -> AnalyticsModule 2022-02-14 14:01:51 -05:00
John Colvin c2c80271a3 ui (style): Stretch ComboCheckBox Header ContentPresenter
This gives users the ability to control header content alignment via the header
content template (previously it was always aligned Top-Left)
2022-02-14 14:01:51 -05:00
John Colvin 110faefc96 feat: Add axis-fit behavior setting for vs graph 2022-02-14 14:01:51 -05:00
John Colvin 4cf8959b13 ui: Refine vs exp header col style 2022-02-14 14:01:51 -05:00
John Colvin e3b6c9829a diag: Impl ToString for Series(Set)VM 2022-02-14 14:01:50 -05:00
John Colvin ffdd0fcff7 fix: Remove item from vis series when removed from series 2022-02-14 14:01:50 -05:00
John Colvin 527cea74d3 ui: Use Visibility.Collapsed to hide vs r/w cell content
This prevents unneccessary white space as Collapsed visuals, unlike
Hidden ones, don't occupy space
2022-02-14 14:01:50 -05:00
John Colvin 1fcd19c029 refactor: Clean up DIYGrid.HighPerformanceRow 2022-02-14 14:01:50 -05:00
John Colvin 6bf2c297d7 style: Clean up RecycleBin 2022-02-14 14:01:50 -05:00
John Colvin 2489a2ce0c Impl IReadOnlyDictionary in VisualDictionary 2022-02-14 14:01:50 -05:00
John Colvin 6d5e9eb94e style: Use switch expression in vs col view_factory 2022-02-14 14:01:50 -05:00
John Colvin 7ff2850b2d ui (style): Right-align vs grid cell content 2022-02-14 14:01:50 -05:00
John Colvin f70c2d4653 feat: Add grid lines to volsurface ui 2022-02-14 14:01:50 -05:00
John Colvin d7a91bed10 refactor: Clean up DIYGrid super headers 2022-02-14 14:01:49 -05:00
John Colvin f7178f3fa7 fix: Always Invalidate column layout on horizontal scroll
Previously, was only doing this when the [main grid] horizontal scroll
change triggered a similar scroll change in the column headers
2022-02-14 14:01:49 -05:00
John Colvin 77060841cb diag (refactor): Default all params in WPFTracer ctr 2022-02-14 14:01:49 -05:00
John Colvin 701649cb9b diag: Add trace fn for ScrollBar 2022-02-14 14:01:49 -05:00
John Colvin 3a598479fc refactor: Remove redundant event handler 2022-02-14 14:01:49 -05:00
John Colvin 4ca3f6b2f2 refactor: Move DIYGridExtensions into own file 2022-02-14 14:01:49 -05:00
John Colvin f30f0876a9 refactor: Replace DataContextHooks class w/ static fn 2022-02-14 14:01:49 -05:00
John Colvin 5c04f52be9 Don't overwrite shortheader in DIYGrid ctr 2022-02-14 14:01:49 -05:00
John Colvin 0c4cafcf87 Remove unused fns from DIYGridSortHelper 2022-02-14 14:01:49 -05:00
John Colvin d72e9ad2a6 refactor: Add id prop to DIYGridSuperHeader 2022-02-14 14:01:49 -05:00
Taha Afzal c0f7c28bda Deleting mor eunused code 2022-02-14 13:57:36 -05:00
Taha Afzal 511955c173 Removing unused TC2 classes 2022-02-14 13:50:45 -05:00
Taha Afzal 20c914492e NMSheetBBODataSource had a stub for threaded bb compatibility, removing it 2022-02-14 12:56:59 -05:00
Taha Afzal 1807e02416 Removed the Pair class from TC2 2022-02-14 12:50:43 -05:00
Taha Afzal 04b1b0ce4e Thinned up the ThreadedBB further, can one day be easily replaced by the IBus 2022-02-14 11:58:54 -05:00
Taha Afzal de2eb433b6 Unplugging the logic for a bunch of TC2 data (position, rolover vol, presaved values etc) 2022-02-13 23:53:32 -05:00
Taha Afzal cb10a5e99e Old bb and threaded bb are out from TC2 2022-02-13 23:41:43 -05:00
Taha Afzal 133034ad07 Removing 2 older methods in ThreadedBB 2022-02-13 22:00:04 -05:00
Taha Afzal 29f43464fa Removing TC2's dependence on Blackboard 2022-02-13 21:30:00 -05:00
Taha Afzal 0b7902029a Removing all untyped tags from TC2 2022-02-13 13:11:50 -05:00
Taha Afzal d514f9ed15 Getting rid of old blackboard - 1 2022-02-13 12:35:55 -05:00
Taha Afzal 5b0a056183 Removing more unused tags 2022-02-12 20:07:19 -05:00
Taha Afzal 7f3c7ed376 Cleanup continues 2022-02-12 11:14:04 -05:00
Taha Afzal 09760d29d5 Option md for TC2 fixed 2022-02-12 01:46:29 -05:00
Taha Afzal d5574ad90f Cleaning out TC2 tags 2022-02-12 00:31:50 -05:00
Taha Afzal 354984404a Cleaning up of TC2 tags 2022-02-11 17:42:12 -05:00
Taha Afzal 45b41a9ab8 Removing TC2's HighPerformanceTimer 2022-02-11 13:10:37 -05:00
Taha Afzal fddcb58555 Getting rid of the TheoPoint that got moved over with TC2 2022-02-11 12:03:44 -05:00
Taha Afzal 614552fdad Fixing a crash related to multiple representation of the same symbol in volsurface relationships 2022-02-11 09:57:33 -05:00
Taha Afzal 552b7dda0a Comments to make sense of the TC2 Sheets 2022-02-11 09:42:50 -05:00
Taha Afzal 3da7741f24 TC2 is part of Spark now - we will rule the crypto options space 2022-02-10 22:38:32 -05:00
Taha Afzal a08dd1e22d Cleaned up unused namespaces in these 2 classes 2022-02-09 18:17:03 -05:00
Taha Afzal 27399b3dbe interpolating for option expirations for whome the drivers are not set 2022-02-09 17:40:08 -05:00
Taha Afzal 4d9e7ca6e8 Merge branch 'spark_crypto' of bitbucket.org:bluetradesys/spark into spark_crypto 2022-02-08 17:35:05 -05:00
Taha Afzal 2f2abe840a Added interp type in the analytics service proto 2022-02-08 17:34:48 -05:00
Taha Afzal 3506c65895 Merge branch 'spark_crypto' of bitbucket.org:bluetradesys/spark into spark_crypto 2022-02-08 15:05:27 -05:00
Taha Afzal 5d185c51ba Using fixing price for marked price in SystemContractData 2022-02-08 15:05:04 -05:00
Taha Afzal b1e7865904 Merge branch 'spark_crypto' of bitbucket.org:bluetradesys/spark into spark_crypto 2022-02-08 14:58:30 -05:00
Taha Afzal cc3e769afe QueryServer was not copying the Fixing price over (used as a proxy for Mark price) 2022-02-08 14:58:20 -05:00
Taha Afzal d9cc74cc78 Abstracting out driver retreival from VolSurfaceMDUnit 2022-02-08 13:51:17 -05:00
Taha Afzal 887a39da1a Disabled the SingleVolSurfaceTheoSource (which showed the before after theos) 2022-02-08 12:49:17 -05:00
Taha Afzal 8b384849f5 Double comparison was not accounting for both double vales NaN's 2022-02-07 21:51:05 -05:00
Taha Afzal 1a66fcafb5 Merge branch 'spark_crypto' of bitbucket.org:bluetradesys/spark into spark_crypto 2022-02-07 21:43:48 -05:00
Taha Afzal a39fba8042 Merge branch 'spark_crypto' of bitbucket.org:bluetradesys/spark into spark_crypto 2022-02-07 21:06:00 -05:00
Taha Afzal 9f61999ce9 changing the deribit exps to listen to (until the connection drop is fixed) 2022-02-07 21:05:49 -05:00
Taha Afzal 1a0d2e59ab Throttling the driver prices for performance 2022-02-07 20:50:06 -05:00
Taha Afzal 7d66d7847f Adding perf stats log 2022-02-07 17:46:48 -05:00
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 3dfbc2635a build: Set CMP0076 explicitly to remove warning 2022-02-04 17:41:29 -05:00
John Colvin 293fc233f7 Add git-save script to backup changed files 2022-02-04 17:41:29 -05:00
John Colvin a99f95853a refactor: Abstract out argparse/file utils from buildspark.py 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 7d7ccc67e0 build: Fix typo in buildspark.py
* Replace literal '2022' w/ var 'year'
2022-02-04 17:41:29 -05:00
John Colvin 1fa17d63a2 refactor: Rename MarketViewView.Columns -> MarketViewColumnType 2022-02-04 17:41:29 -05:00
Taha Afzal a743500a37 Cleaning up SingleVolSurfaceMarketImpliedVolSource 2022-02-04 15:53:25 -05:00
Taha Afzal 0a6f2d5adb Normalizing options market data form coins to USD 2022-02-04 12:39:26 -05:00
Taha Afzal 96e6c0dfb5 In anticipation of the 'mark price' cleaned up the option driver tags 2022-02-03 16:03:21 -05:00
Taha Afzal 775918468d File name change 2022-02-03 13:41:05 -05:00
Taha Afzal 05101cfcd4 Adding more points to the curve to make it look nice in the UI 2022-02-03 13:22:18 -05:00
Taha Afzal 2de48c0550 Making theos work 2022-02-02 16:11:34 -05:00
John Colvin 07004179a3 Add safe_get_value Dictionary ext fns 2022-02-02 14:17:52 -05:00
John Colvin 05401a4c98 refactor: Rename GetValueOrDefault -> get_value 2022-02-02 14:17:51 -05:00
Taha Afzal ba678777b1 Market ImpliedVols are being pubished now 2022-01-30 23:41:47 -05:00
Taha Afzal 532c461d17 Added vol to GreekTuple, and a few verbose logs(for now) 2022-01-30 01:29:51 -05:00
Taha Afzal b98e1ff9dd Name changes 2022-01-29 23:35:56 -05:00
Taha Afzal bc7ca707c9 Merge branch 'spark_crypto' of bitbucket.org:bluetradesys/spark into spark_crypto 2022-01-29 23:11:51 -05:00
Taha Afzal 292b131a4c Theos are written to the bus now 2022-01-29 23:11:43 -05:00
John Colvin e2ca78008e fix: Disable global drag/drop while adding tab to new win
Bugs (fixed):
   * The shell crashes when dropping a tab into an existing window
2022-01-27 20:34:13 -05:00
John Colvin 85757050bf fix: Don't add null symbol clause to ContractPicker.result
Bugs (fixed):
   * Windows launched w/ SecurityCriteria for 'all' symbols (i.e., when no
     symbols are selected) don't show any securities
2022-01-27 15:14:51 -05:00
Taha Afzal 8ecbfb935d Merge branch 'spark_crypto' of bitbucket.org:bluetradesys/spark into spark_crypto 2022-01-27 13:04:01 -05:00
Taha Afzal 753a56ce95 Cleaning up logs for theos 2022-01-27 13:03:52 -05:00
John Colvin 39d7ab0b76 fix: Remove bad assert statement in SparkWindow
Bugs (fixed):
   * PNL window crashes on open
2022-01-27 12:58:08 -05:00
John Colvin 95f638175d refactor: Use 'is null' in null asserts, add msg param 2022-01-27 12:57:18 -05:00
John Colvin 6c6bf492b0 fix: Show candidate output in vs grid readonly cells 2022-01-27 12:18:47 -05:00
John Colvin 2fdce0280a refactor: Clean up MarketViewRow
* Define fields of the same type in separate statements
* Insert some new lines for easier code browsing
* Replace large delegates with local fns
2022-01-27 12:18:47 -05:00
John Colvin dfa18c632e Add greeks to mview 2022-01-27 12:18:47 -05:00
Taha Afzal f8276adaa7 Fixed the save_marker in VolSurfaceInputSnapshot 2022-01-26 23:12:25 -05:00
John Colvin f184dd5743 fix: Update vs previous_states dropdown on grid change 2022-01-26 19:43:51 -05:00
John Colvin 21da6c813c Select vs grid row when cell enters edit mode 2022-01-26 19:28:11 -05:00
John Colvin 2601519e8b Only listen to drag events when IsDragSelectionEnable is true 2022-01-26 19:15:58 -05:00
John Colvin 97cce473e8 refactor: Move DIYGridRowsPresenter to its own file 2022-01-26 19:14:22 -05:00
John Colvin 227a977697 fix: Invalidate vs graph when points change 2022-01-26 18:06:47 -05:00
Taha Afzal c1a59eba47 Merge branch 'spark_crypto' of bitbucket.org:bluetradesys/spark into spark_crypto 2022-01-26 15:26:51 -05:00
Taha Afzal 1034ac8fe1 AnalyticsParametersManager now publishes a dictionary of all values, including empty ones 2022-01-26 14:35:38 -05:00
Taha Afzal 5602fc0b1b Fixing the wing detection as per John 2022-01-26 13:13:43 -05:00
John Colvin 332c32893c fix: Use IValueConverter (not vs display grid) to fmt/parse input
Bugs (fixed):
   * User input isn't multiplied by the display multiplier

This issue was that the input text was getting parsed twice before being stored
in the display grid (once by the IValueConverter, and once by the display grid
itself).  The parse fn divides by the display multiplier, while the format fn
multiplies by it.  Thus, the input was effectively divided by the display
multiplier (bc 1/dm * 1/dm * dm == 1/dm)
2022-01-26 00:40:14 -05:00
John Colvin 9ee52c0827 refactor: Remove unused/deprecated DataGridEx utils 2022-01-25 22:22:18 -05:00
Taha Afzal ad0c4b25a5 Options 'books' can optionally be built from quotes now 2022-01-25 22:15:44 -05:00
Taha Afzal 14af01182c Caching volume on statistics_change and passing it over to handl.add_trade 2022-01-25 22:15:44 -05:00
Taha Afzal ac22ed553e Fixed the TS timestamp 2022-01-25 22:15:44 -05:00
Taha Afzal 310c7fa4a3 Cleaning up 2022-01-25 22:15:44 -05:00
Taha Afzal be3daae175 Removing SIM: from Deribit security desc 2022-01-25 22:15:44 -05:00
Taha Afzal fdc4e59d09 Working around Deribit option md bugs 2022-01-25 22:15:44 -05:00
Taha Afzal 8af07756ef logs in the VolSurfaceDisplayModel 2022-01-25 18:22:50 -05:00
Taha Afzal b522b9875e Merge branch 'volsurface-ui' of bitbucket.org:bluetradesys/spark into volsurface-ui 2022-01-25 17:47:37 -05:00
Taha Afzal 8059ebfad1 Changing the hard coded test vol surface's fwd to be close to reality 2022-01-25 17:47:30 -05:00
John Colvin 5aa3de21bb fix: Notify vs display model when [candidate] cell input changes
Bugs (fixed):
   * The commit/revert buttons in vs window are always disabled
2022-01-25 17:34:01 -05:00
John Colvin 230e02014c refactor: Drop 'Simplified' from vs grid/column class names 2022-01-25 17:25:01 -05:00
John Colvin be8bc54e46 fix: Remove configserver arg when parsing CLIOptions 2022-01-25 14:14:45 -05:00
John Colvin c8d37c2dfc fix: Simplify and fix revert-cell cmd 2022-01-25 14:00:07 -05:00
John Colvin 21300a858c fix: Flip call/put wing start comparison operators 2022-01-25 12:33:51 -05:00
John Colvin c97887993f Make vs graph legend translucent 2022-01-24 19:55:34 -05:00
John Colvin 198311c7c4 feat: Add vis toggle for vs exp graph series parts 2022-01-24 19:55:34 -05:00
John Colvin 1db24a8b72 fix: Define c/p wing strike range w/ VolCurveDisplayGraph wing_start props 2022-01-24 19:49:20 -05:00
John Colvin 9ef492acdc Update PlotModel.IsVisible in vm is_visible setter 2022-01-24 19:29:27 -05:00
John Colvin f8a74bbcbd fix: Copy settings.stroke_thickness to vm member 2022-01-24 19:29:27 -05:00
John Colvin eade3d0ee3 fix: Use consistent window-type ids for saving/loading vs wins
Bugs (fixed):
   The vol surface, and exp params windows aren't restored with workspace
2022-01-24 19:29:26 -05:00
John Colvin c65c16f476 refactor: Init vs line series vms w/ LineSeriesSettings
Previously, was assigning props explicitly from the settings object
2022-01-24 14:43:40 -05:00
John Colvin 6fa7b3cb88 Add committed/candidate prefix to vs atm series title 2022-01-24 14:42:06 -05:00
Taha Afzal e5a8209127 Options 'books' can optionally be built from quotes now 2022-01-24 14:13:35 -05:00
Taha Afzal aa768fabc0 Caching volume on statistics_change and passing it over to handl.add_trade 2022-01-24 13:33:33 -05:00
John Colvin 0c94dbd32c Update externals 2022-01-24 01:01:28 -05:00
John Colvin 89df1b5836 Increase padding in vs graph legend
This makes it easier to move the legend around (via drag)
2022-01-24 01:01:28 -05:00
John Colvin c8d682c0b9 Fix analytics-exp-params window
Bugs (fixed):
   * Exp params window crash on launch
   * A few 'dirty' props don't notify view of changes

* Use AnalyticsExpirationParametersWindowFactory to create/restore win
* Rename AnalyticsExpirationParametersVM.StartupData ->
  AnalayticsExpirationParametersSettings
* Simplify 'dirty' prop-changed notification logic
2022-01-24 00:58:37 -05:00
Taha Afzal 088c5bc0b9 Fixed the TS timestamp 2022-01-23 21:48:50 -05:00
John Colvin 6cbe93a9bb Replace Any CPU w/ x64 in spark_client.sln 2022-01-23 16:15:11 -05:00
John Colvin 1d6e90a429 Fix typo in editorconfig 2022-01-23 16:15:11 -05:00
John Colvin 6fb842c619 Tether temp vs window (outside workspace) to dummy shell win 2022-01-23 16:15:11 -05:00
John Colvin 6d90b6079e Implement vs grid settings command 2022-01-23 16:15:11 -05:00
John Colvin 084cbfcef6 Bind selection to immutablelist to get 1 instance/mutation 2022-01-23 16:15:11 -05:00
John Colvin 45a773fc69 Clean up DragDropDocumentPreview
* Make class internal
* Run formatter
2022-01-23 16:15:11 -05:00
John Colvin 3c147e7079 refactor: Clean up FloatingWindow
* Make internal
* Sort class members
* Fix naming violations
* Run formatter
2022-01-23 16:15:11 -05:00
John Colvin 1c4e574512 Add observe_immutable ext fn for ObservableCollection<T>
Converts sequence of CollectionChanged events to an
IObservable<ImmutableList<T>>
2022-01-23 16:15:11 -05:00
John Colvin 6901fe07d7 Add some mouse events to WPFTracer 2022-01-23 16:15:10 -05:00
John Colvin d1bf278bf2 refactor: Overload string join ext fn with params string[] 2022-01-23 16:15:10 -05:00
John Colvin 0d0f670629 refactor: Remove unused template param from string join ext fn 2022-01-23 16:15:10 -05:00
John Colvin 7c85a226d9 refactor: Overload empty_if_null ext fn for generic List/Array (rebase note: Used in AxisVM) 2022-01-23 16:15:10 -05:00
John Colvin b18ae91f37 Remove duplicate VolSurfaceRowView class
This was inadvertantly added, but didn't break the build because it was
in a different namespace (mbts.ui.shell) from the true VolSurfaceRowView
(mbts.ui)
2022-01-23 16:15:10 -05:00
John Colvin 025a5f49e3 diagnostics: Impl VolGridCellVM.ToString 2022-01-23 16:15:10 -05:00
John Colvin 146a136cd5 Remove magic const '-1' in drag/drop is_sufficient_delta fn
Not sure why this const was ever added in the first place, it appears to
arbitrarily prevent drag/drop ops from starting, when the mouse is at
coordinate (1,1)
2022-01-23 16:15:10 -05:00
John Colvin 8e8c532750 refactor: Use UIElement in drag/drop logic
As opposed to using FrameworkElement
2022-01-23 16:15:10 -05:00
John Colvin 5b973a2462 Add EnableDragMove dp (behavior) to PopupViewController 2022-01-23 16:15:10 -05:00
John Colvin 5bcd00d499 refactor: Clean up VolSurfaceSimplifiedGridVM 2022-01-23 16:15:10 -05:00
John Colvin cf9591ae83 Init value for vs cell view DIYGrid.ColumnProperty 2022-01-23 16:15:10 -05:00
John Colvin 64a5c44726 Define view style/behavior in VolSurfaceCellView rather than in vs column 2022-01-23 16:15:10 -05:00
John Colvin bbae90059e Write vs candidate vals to grid model so it updates the graph 2022-01-23 16:15:10 -05:00
John Colvin 1d953c31eb Use IValueConverter to fmt/parse cell vals in vs grid 2022-01-23 16:15:10 -05:00
John Colvin 49164aef3a Remove HistoricVolSurfaceRowControl
The new VolSurfaceRowView seems solid enough to stand on its own
2022-01-23 16:15:10 -05:00
John Colvin 2cc8810830 Init x_axis.position in vs graph vm 2022-01-23 16:15:09 -05:00
John Colvin f8813bda36 Fit axes to series on vs graph double click 2022-01-23 16:15:09 -05:00
John Colvin 98f3c5c433 Fix typo in launch-exp-params-view-cmd binding 2022-01-23 16:15:09 -05:00
John Colvin 65a6317527 Hook up context menu in vs grid 2022-01-23 16:15:02 -05:00
John Colvin 925c301cbe refactor: Change MultiSelectDropDowns to ComboCheckBox in vs settings 2022-01-23 15:25:41 -05:00
John Colvin b6ac345ee6 Port VolSurfaceGridSettingsEditor over from edge 2022-01-23 15:25:41 -05:00
John Colvin b3bc3ca18d Add TickUp/DownCommand dps to VolSurfaceCellView 2022-01-23 15:25:41 -05:00
John Colvin 568d9da42f Add TickFactors member to vs columns
For formatting/parsing doubles by tick
2022-01-23 15:25:41 -05:00
John Colvin 37fef31ed6 Implement _to_string to format doubles for volsurfaces 2022-01-23 15:25:41 -05:00
John Colvin 4d1c0869f1 fix: Don't publish invalid VolSurfaceUsageListImmutable 2022-01-23 15:25:41 -05:00
John Colvin 3ed16ff186 Ensure some vs settings props are non-null in getter 2022-01-23 15:25:41 -05:00
John Colvin 8a30fdd4c5 cli (client): Add user/pw opts to automate login 2022-01-23 15:25:41 -05:00
John Colvin a9b4881e7b refactor: Clean up ShellBootstrapper.cs 2022-01-23 15:25:41 -05:00
John Colvin f76e3968f8 refactor: Clean up App.xaml.cs
* Sort members
* Fix naming violations
* Remove unneccesary using directives
* Run formatter
2022-01-23 15:25:41 -05:00
John Colvin eb777fd14f Bind diygrid row hover fill to SelectionHighlight 2022-01-23 15:25:41 -05:00
John Colvin fffae3b519 Show decimal part by default in tick format fn 2022-01-23 15:25:41 -05:00
John Colvin 2aaa729ae9 refactor: Make VolSurfaceView class internal 2022-01-23 15:25:40 -05:00
John Colvin c2d6046a1f refactor: Use PopupAdorner to display vs graph legend 2022-01-23 15:25:40 -05:00
John Colvin 7b4d5766ef refactor: Use observable backings in cell vms 2022-01-23 15:25:40 -05:00
John Colvin 17978d2306 style: Use vs (not code) to format VolSurfaceView.xaml 2022-01-23 15:25:40 -05:00
John Colvin aadbef2a99 Add IsDragAdornerEnabled prop to DIYGrid 2022-01-23 15:25:40 -05:00
John Colvin 53e9d90bf9 refactor: Use nifty extension fns in vs grid vm 2022-01-23 15:25:40 -05:00
John Colvin 9df339c4a7 refactor: Make vs 'visible_rows' strongly typed
The prior weakly typed collection was a vestige from edge.  The view
property to which selected items was bound in edge was of type
ObservableCollection<object>
2022-01-23 15:25:40 -05:00
John Colvin 7c26572c0b refactor: Clean up volsurface axis/series vms 2022-01-23 15:25:40 -05:00
John Colvin 67f26d4318 refactor: Make ComboCheckBox.SelectedItems type IList 2022-01-23 15:25:40 -05:00
John Colvin cd3d1ab2f4 Add volsurface to MultiThreadedWindows conf 2022-01-23 15:25:40 -05:00
John Colvin 9314911cc8 build (client): Activate venv in msbuild target
Now buildspark.py can run outside of venv
2022-01-23 15:25:32 -05:00
John Colvin 67dc07c4f5 build (client): Add cli opts to build cpp and/or csharp 2022-01-23 15:25:06 -05:00
Taha Afzal 331e35cd42 Cleaning up 2022-01-23 15:24:47 -05:00
John Colvin 40890f9ad2 build: Upgrade client build to vs 17 2022
If vs 17 2022 isn't installed, buildspark.py should still work for vs 16 2019
2022-01-23 13:17:46 -05:00
John Colvin cb7606edca Fix x/y typo in GraphPointVM 2022-01-23 13:09:58 -05:00
John Colvin abab98cea6 Add null check in _recompute_and_publish 2022-01-23 13:09:58 -05:00
John Colvin d271e2a3ef refactor: Use VolSurfaceWindowFactory to create win 2022-01-23 13:09:58 -05:00
John Colvin 579e2a7a93 refactor: Rename VolSurafceView2 -> VolSurfaceView 2022-01-23 13:09:58 -05:00
John Colvin 0ac028c546 refactor: Ensure VolSurfaceWindowSettings lists non-null 2022-01-23 13:09:58 -05:00
John Colvin c6b374a934 refactor: Clean up VolSurfaceDisplayGrid
* Use new c# language features to make code prettier
*  Run formatter
2022-01-23 13:09:58 -05:00
John Colvin eeddde332e fix aw2, diygrid, mview after cherry-picking mview popups 2022-01-23 13:09:58 -05:00
John Colvin 9b9926502c fix flickering pnl hyperlink hover background 2022-01-23 13:09:58 -05:00
John Colvin a0e772885c fix flickering mview hyperlink hover background 2022-01-23 13:09:58 -05:00
John Colvin a0384c6d33 PNLView - HyperlinkCell mouse hover animation 2022-01-23 13:09:58 -05:00
John Colvin d18242e0f2 set HyperlinkCell 'HyperlinkClickMode' default to 'Anywhere' 2022-01-23 13:09:58 -05:00
John Colvin 2177451371 remove HyperlinkColumn props 'padding' and 'HyperlinkClickMode' (callers should set them through the ElementStyle prop) 2022-01-23 13:09:58 -05:00
John Colvin 5adb85582a after opening, mview remembers subsequent security criteria changes in workspace 2022-01-23 13:09:58 -05:00
John Colvin 35a2074de4 mview synth fills popup only shows fills of synth root algos 2022-01-23 13:09:58 -05:00
John Colvin de43f14552 mview mini ob only shows working orders 2022-01-23 13:09:57 -05:00
John Colvin d675ae17da mview mini orderbook only shows exchange orders for outrights, spreader orders for synths 2022-01-23 13:09:57 -05:00
John Colvin 0ae61d3e82 fix mview sorting (use new ColumnSortManager) 2022-01-23 13:09:57 -05:00
John Colvin c6c7350dad MarketViewVM - move local methods (in constructor) to bottom 2022-01-23 13:09:57 -05:00
John Colvin 75efd7a2d5 mview order ticket popup closes on send 2022-01-23 13:09:57 -05:00
John Colvin aaebf3b4fb mview toolbar menu items open regular windows instead of minis (for now) 2022-01-23 13:09:57 -05:00
John Colvin 76adc09b16 mview fills/orderbook toolbar menu items open the new popups 2022-01-23 13:09:57 -05:00
John Colvin 5b26252d25 DIYGridRowsPresenter initialization in Loaded callback is idempotent (Loaded event not always followed by Unloaded event) 2022-01-23 13:09:57 -05:00
John Colvin db813a8191 mview popups use AutoHideScrollBar to prevent scrollbars from covering data 2022-01-23 13:09:57 -05:00
John Colvin 4e0740d7b4 mview 'Position' column shows day position (uses position service) 2022-01-23 13:09:57 -05:00
John Colvin 5c74814b95 SP-257 mview popups for working orders & day fills 2022-01-23 13:09:57 -05:00
John Colvin 504aadac16 spruce up hamburger menu 2022-01-23 13:09:56 -05:00
John Colvin f12e8deeab add 'Freeze' prop to BrushExtension 2022-01-23 13:09:56 -05:00
John Colvin fa9ab9c033 DIYGridCellHoverAdorner 2022-01-23 13:09:56 -05:00
John Colvin d5dd63d528 refactor DIYGrid.SelectionHighlight to be Color instead of Brush (also fixes drag rect adorner bug, where the color wouldn't respond to settings changes) 2022-01-23 13:09:56 -05:00
John Colvin 4d2b3d4a77 market view row 'inside working orders' comparison to bbo was backwards 2022-01-23 13:09:56 -05:00
John Colvin 5f2da9421b MarketViewVM does not derive from SecurityMDGrid 2022-01-23 13:09:56 -05:00
John Colvin dcea38d038 factor out pnl auxiliary popups for general use (mview) 2022-01-23 13:09:56 -05:00
John Colvin f97538edf2 introduce WindowStyle.UnsafeWindow dp 2022-01-23 13:09:56 -05:00
John Colvin dff3cd1424 refactor ChildBounds extensions to be for UIElement 2022-01-23 13:09:55 -05:00
John Colvin 62fb9bd74d aw2: Make custom VolSurfaceCellView control for aw2
This control hosts input and output views for cells in the volsurface
grid (only one of which is visible at any time).  The input view is
activated when the cell is focused
2022-01-23 13:09:55 -05:00
John Colvin 5ac5ecb55e diag: Add WPFTracer class 2022-01-23 13:09:55 -05:00
John Colvin e6d16b419b Impl non-generic IEqualityComparer.GetHashCode 2022-01-23 13:09:55 -05:00
Taha Afzal 23fa1bd0bc Removing SIM: from Deribit security desc 2022-01-23 11:07:07 -05:00
Taha Afzal e7350b2528 Working around Deribit option md bugs 2022-01-23 00:13:22 -05:00
John Colvin 4e5bf8f3c1 Remove unneccessary dependecy store lookup 2022-01-22 12:46:52 -05:00
John Colvin 1b9ac61588 Add save-log script to backup log file
The current date and time is appended to the log file name
2022-01-22 12:46:52 -05:00
John Colvin 616818aa52 Make our FirstOrDefault ext behave like linq's without predicates 2022-01-22 12:46:52 -05:00
John Colvin 3481a36735 Clean up VolSurfaceDisplayGridExpiration
* Make readonly fields props
* Implement ToString
* Use auto_phase in GetHashCode
* Run formatter
2022-01-22 12:46:52 -05:00
taha afzal ad530c242d Adding options securities for Deribit 2022-01-21 14:45:34 -05:00
taha afzal fef2b64933 Hooking trades, as well as reducing the log level to DIAG for most market data callbacks 2022-01-20 13:38:34 -05:00
taha afzal fac10e0da7 tick interval set up correctly now for deribit securities 2022-01-19 23:09:31 -05:00
taha afzal e7295ccf9a Made the dumper method in ShmDumper public to allow access for Logging from other places: 2022-01-19 16:13:47 -05:00
taha afzal d4be0e7ef6 Merge branch 'spark_crypto' of bitbucket.org:bluetradesys/spark into spark_crypto 2022-01-19 15:44:53 -05:00
taha afzal 15beef99f9 Deribit market data (futures) integrated 2022-01-19 15:44:34 -05:00
John Colvin 3524ad56ee fix build: Don't deconstruct result of add/remove op
Two of the deconstructed members were unreferenced variables
2022-01-12 11:24:17 -05:00
taha afzal d7bfdf4397 Merge branch 'spark_crypto' of bitbucket.org:bluetradesys/spark into spark_crypto 2022-01-11 20:01:03 -05:00
John Colvin d1edb41b9d build: Don't explicitly link emumba deps
The should all be in the emumba-deribit-connector-library_LIBRARIES var
2022-01-11 18:14:54 -05:00
John Colvin ad5b32319c build: Add deribit demo log level var to CMakeLists 2022-01-11 18:14:54 -05:00
John Colvin d646b4b54f refactor: Replace terse 'unused' attributes w/ macro 2022-01-11 18:14:54 -05:00
John Colvin 7e710870ec Actually run the deribit connector 2022-01-11 18:14:54 -05:00
John Colvin b902fc372f Remove custom spdlogger from deribit demo 2022-01-11 18:14:54 -05:00
John Colvin e9caab16ba Update externals: add emumba-deribit-connector lib 2022-01-11 18:14:54 -05:00
John Colvin 3c8ece1eee Update externals to include linux libssl 1.1.1m 2022-01-11 13:56:39 -05:00
John Colvin 7d1fe3098a Add break statement to end of switch case
The code wasn't technically broken (yet), bc the switch case in question
was falling through to the empty default case.
2022-01-11 13:56:39 -05:00
John Colvin a8f642ebd7 refactor: Add '_params' suffix to create_binance_subscription fn 2022-01-11 13:56:39 -05:00
John Colvin cc85c658d9 refactor: Use UnorderedSetMap for ref counts 2022-01-11 13:56:39 -05:00
Taha Afzal fbeb65b53b Logs for strike vs vols 2022-01-11 12:57:40 -05:00
Taha Afzal 66e312c2b8 Cleanup + logs 2022-01-11 00:16:42 -05:00
Taha Afzal b1300eb52a 2 tags were not naming their type names, and mapping to the same 'key' 2022-01-10 10:48:40 -05:00
Taha Afzal 4c34a532ce More logs 2022-01-10 10:29:55 -05:00
Taha Afzal 4e3a02c31b Request-Reply works 2022-01-10 00:00:40 -05:00
Taha Afzal 30fa5891e9 Adding torubleshooting logs 2022-01-09 17:21:01 -05:00
John Colvin 53b6c19565 refactor: Clean up DIYGrid a bit
* Don't define more than one variable in a single statement (this messes
  with the c# omnisharp extension in vscode)
* Remove private keywords (in accordance with our coding style)
* Sort class members
2022-01-07 23:11:31 -05:00
John Colvin cd19cbf0b4 Early cut of aw2 ui (most likely will have bugs)
Rough around the edges, but functional enough to be a useful diagnostic tool as
we iron out aw2
2022-01-07 23:11:31 -05:00
John Colvin 8958507385 refactor: Make UIAdapter classes internal 2022-01-07 23:06:54 -05:00
John Colvin 730174b6ff Support multiple props w/ same name in detect_property_changes
It is possible for a type to have multiple properties with the same name
if that type is a reference type that inherits from a parent type, and hides
one of the parent types properties with the 'new' keyword
2022-01-07 22:33:33 -05:00
John Colvin cee79afc23 Make VolSurfaceDisplayModel class internal 2022-01-07 22:33:33 -05:00
John Colvin 79c55793af refactor: Clean up VolSurfaceOutput
* Implement generic ICloneable<VolSurfaceOutput>
* Run formatter
2022-01-07 22:33:33 -05:00
John Colvin 43d614dde2 Add generic ICloneable interface
For some reason this very basic utility isn't defined in dot net
2022-01-07 22:33:32 -05:00
John Colvin fde11dc4a3 Remove unneccessary comment warning abt perf costs 2022-01-07 22:33:32 -05:00
John Colvin 36a84d28e2 refactor: Improve RemoveWhere ext fn impl
* Don't allocate list of items to remove
* Return the number of items removed
2022-01-07 22:33:32 -05:00
John Colvin 6f7e2ab201 refactor: Clean up VolSurfaceExtensions
* Run formatter
* Replace foreach loops w/ less verbose linq style extensions
2022-01-07 22:33:32 -05:00
John Colvin fe7097771b Derive SparkWindow from DisposableViewModelBase 2022-01-07 22:33:32 -05:00
John Colvin 5a81c223c1 Remove old 'PAndl' window 2022-01-07 22:33:32 -05:00
John Colvin 8a4e90e1be refactor: Clean up BTSColor
* Rename argb props to be lower case
* Make some member fns static extensions
* Remove Serializable attribute
* Use a single uint prop (rather than 4 byte props) for protobuf
serialization
2022-01-07 22:33:32 -05:00
Taha Afzal 9d0cc5ef91 Adding include opitonal to fix the build 2022-01-07 15:42:18 -05:00
Taha Afzal 10bd10fbf1 Update externals (adds missing std dir to includes) 2022-01-07 14:27:26 -05:00
taha afzal 21aefed58f Stats, Trades etc also itegrated 2022-01-04 21:57:56 -05:00
taha afzal 13133053f6 error and book updates hooked 2022-01-04 16:23:06 -05:00
John Colvin b41f321723 style: Add comments to binance md classes 2022-01-04 13:43:17 -05:00
John Colvin a90f6badfd refactor: Clean up binance md classes
* Remove unneccessary includes in a few files
* Remove erroneous commented out fwd decls
* Remove unused class BinanceMarketDataSubscription
* Make a few public accessor fns private
2022-01-04 13:34:33 -05:00
taha afzal 92feb60ec5 EmMDListener security addition completed 2022-01-03 22:32:54 -05:00
taha afzal 8561944900 Adding the Emumba-Spark bridge 2022-01-03 11:30:41 -05:00
taha afzal 2ca7b3bf7a Fixing build 2021-12-31 15:14:51 -05:00
taha afzal 032acffb03 Merge branch 'spark_crypto' of bitbucket.org:bluetradesys/spark into spark_crypto 2021-12-31 00:27:35 -05:00
taha afzal 8c7c7b6af5 Adding a commented out class to start integration of emumba-Deribit 2021-12-31 00:25:36 -05:00
John Colvin 3a6e55a5ea fix build (gcc release): Ensure ValueWrappers are initialized 2021-12-30 14:02:30 -05:00
John Colvin fb8ea23744 fix build (gcc debug): Return vec of unique_ptrs w/ move 2021-12-30 13:52:13 -05:00
John Colvin 1ce44e3bd9 Show config_path on parse error in deribit demo 2021-12-30 13:44:02 -05:00
John Colvin d329b1c88d Update DeribitDemoListener to use emumba-deribit-connector 2.0.0 2021-12-30 13:43:24 -05:00
John Colvin 13dbc0826d refactor: Put DeribitDemoListener inside namespace 2021-12-30 13:40:34 -05:00
John Colvin f34a41d19c Fix synth book net change test
Net change doesn't depend on tick size anymore (not sure why it ever
did, but now the ui is in charge of such display behavior)
2021-12-29 22:30:17 -05:00
John Colvin 6198bc2a64 Update linux docker 2021-12-29 21:59:12 -05:00
John Colvin 1f40818dda Update docker/linux 2021-12-29 16:05:54 -05:00
John Colvin 1df7b51be9 Remove unused 'apioptions' import from proto files
This removes a couple warnings in the client build
2021-12-29 13:38:22 -05:00
John Colvin e45f186cd9 Add deribit to sec formating code 2021-12-29 13:18:49 -05:00
John Colvin 6874c8f6b9 style: Use dos line endings in QuickBusClientChannel.cs 2021-12-29 13:18:49 -05:00
Taha Afzal b03979cf65 Fake Deribit securuties show up in the UI 2021-12-29 13:18:49 -05:00
Taha Afzal d5d6605a41 Forgot the break in the case 2021-12-29 13:18:49 -05:00
Taha Afzal 139c0d2c51 Added DeribitExchangeData 2021-12-29 13:18:49 -05:00
Taha Afzal 25faf081fc Added Deribit to Venues proto 2021-12-29 13:18:49 -05:00
Taha Afzal cf1a5ada49 KeyValue pair add/update is being dealt properly now 2021-12-29 13:18:48 -05:00
Taha Afzal 7986bff968 Temporary test runner for analytics tests 2021-12-29 13:18:48 -05:00
Taha Afzal 6b305f0593 More logs added to SystemContractData 2021-12-29 13:18:48 -05:00
Taha Afzal 1de81e35f9 SystemContractData had a bug while hashing strikes 2021-12-29 13:18:48 -05:00
Taha Afzal 6714e47d4c All providers are hooked up 2021-12-29 13:18:48 -05:00
Taha Afzal 23e8294502 Enabling SingleVolSurfaceTheoSource 2021-12-29 13:18:47 -05:00
Taha Afzal 27079865e2 Enabled SingleVolSurfaceRequestCalculator 2021-12-29 13:18:47 -05:00
Taha Afzal 2f8e9e9859 Enabling SingleVolSurfaceCommittedOutputRetriever 2021-12-29 13:18:47 -05:00
Taha Afzal d3c4772d59 SingleVolSurfaceCommittedOutputRetriever enabled 2021-12-29 13:18:47 -05:00
Taha Afzal e4c13622f0 SingleVolSurfaceNonVolDataSource cleaned up 2021-12-29 13:18:46 -05:00
Taha Afzal a5ffdd5180 Cleaning up option driver publishing 2021-12-29 13:18:46 -05:00
John Colvin f0d86b92fb build: Add target opt to build cmd 2021-12-29 13:18:46 -05:00
John Colvin b67d2a45d0 refactor: Rename ContractPickerModel -> ContractPickerVM
Renames class, and file, as well as variables and class members of type
ContractPickerVM
2021-12-29 13:18:46 -05:00
John Colvin 6d1bad8b8c Clean up ContractPicker (model and view) 2021-12-29 13:18:45 -05:00
John Colvin 092f8fc371 Add queue_execute/flags params to defer_execution
This serves a common use case where the caller wants to invoke an action
once, at the end of a code block
2021-12-29 00:50:11 -05:00
John Colvin 15c2d416a8 refactor: Make security_type an ext fn (not member) 2021-12-29 00:50:11 -05:00
John Colvin c68c4ea9c9 Add ext fns for ImmutableSortedSet
AddRange, RemoveRange, and SetItems
2021-12-29 00:50:11 -05:00
John Colvin eacfd5c8fe Add SetItems ext fn for IImmutableSet/ImmutableHashSet 2021-12-29 00:50:11 -05:00
John Colvin 65304e6003 style: Clean up ImmutableSetExtensions 2021-12-29 00:50:11 -05:00
John Colvin 1a51a2e7a7 Fix bug where 'add' button was disabled in ContractPicker
This bug was occurring after the user added a criteria clause, and then
[only] changed the strike selection
2021-12-29 00:50:11 -05:00
John Colvin 8ddfa65f5f Make sec type list in ContractPicker constant
Don't filter security types based on selected exchange (consider them
orthogonal). This preserves the selected instrument type if you toggle
the selected exchange between one that lacks a particular instrument
type, and one that doesn't.
2021-12-29 00:50:11 -05:00
John Colvin 15ca25bf6d Remove ISecurityBasedSettings and TickDisplayParameters
These classes weren't referenced anywhere
2021-12-29 00:50:11 -05:00
John Colvin bc0689b529 refactor: Clean up GlbxSecurityFormatter
* Replace if blocks w/ switch statement
* Replace Substring calls w/ new c# range operator
2021-12-29 00:50:11 -05:00
John Colvin 43a5e27e8f Add options to ContractPicker 2021-12-29 00:50:10 -05:00
John Colvin 486e4c7113 build: Fix PYTHONPATH in CompileProto3 build tgt 2021-12-29 00:50:10 -05:00
John Colvin 83773d1335 Add fmt_pretty ext fn to SecurityCriteriaClause 2021-12-29 00:50:10 -05:00
John Colvin f0b8d3d44f Initialize tick fields in fake md 2021-12-29 00:50:10 -05:00
John Colvin 26e1d6e939 Add all_flags, all_flags_except fns to EnumHelper 2021-12-29 00:50:10 -05:00
John Colvin e6f5e437b7 Remove redundant security_in_criteria fn
Replace calls to ContractPickerModel.security_in_criteria with
SecurityCriteria.includes extension method, which should perform better.
Each clause represents an  'and' chain of smaller predicates, the fn
being replaced always evaluates all of the smaller predicates, while its
replacement only evaluates them as long as they return true.
2021-12-29 00:50:10 -05:00
John Colvin 22a3325d0c Add strikes/callputs to SecurityCriteria 2021-12-29 00:50:10 -05:00
John Colvin caa17b0073 Don't import apioptions in SparkProtos
The import is unused, and was causing a compilation warning as a result
2021-12-29 00:50:09 -05:00
John Colvin e3128c11a2 build: Copy (rather than symlink) .build_proxy to build
The sole purpose of the buildspark_redirect script is to workaround a bug in
the vscode c# extension.  Unfortunately some buggy behavior persists when these
dirs are symlinked.
2021-12-29 00:50:09 -05:00
John Colvin f06c1a86ea refactor: Clean up security extension/helper fns
* Define all security-related extension fns in SecurityExtensions
* Rename security extension/helper fns to be in snake_case
2021-12-29 00:50:09 -05:00
Taha Afzal fbccc80c77 Changing file name 2021-12-21 14:44:20 -05:00
Taha Afzal 73183aa007 Added BBO to fake securities 2021-12-21 14:44:20 -05:00
Taha Afzal 0d49c4c0fe Made the fake sec's consistent 2021-12-21 14:44:19 -05:00
Taha Afzal 9f2627869b Publishing fake options md 2021-12-21 14:44:19 -05:00
Taha Afzal 13139e6943 MDConsumerHandle abstracted out to allow the client to inject Fake securities 2021-12-21 14:44:19 -05:00
Taha Afzal 08e9157f17 Added IMDConsumerHandle as an indirection to innjetc market data in the system 2021-12-21 14:44:19 -05:00
Taha Afzal 076302a6b0 Adding saving exp params to AnalyticsTester 2021-12-21 14:44:19 -05:00
Taha Afzal 4c4c748be6 VolSurfaces are updated now 2021-12-21 14:37:04 -05:00
Taha Afzal 76dfd02aa8 AnalyticsServiceServer.save_volsurface was not calling the response return function 2021-12-21 14:34:46 -05:00
Taha Afzal 452a3eb698 Adding test code to create vs's 2021-12-21 14:31:20 -05:00
Taha Afzal adb88708fc Timer event etc... 2021-12-21 14:31:20 -05:00
Taha Afzal b399a1f9fb VoLSurfaceBBManager streamlined 2021-12-21 14:31:20 -05:00
Taha Afzal f2d000a91a Added VolSurfaceDisplayModel 2021-12-21 14:31:20 -05:00
Taha Afzal 9f28ef19ef ThreadedBB funciton name change 2021-12-21 14:31:20 -05:00
Taha Afzal 85c0e7780f Writes to threaded bb are also temptalized 2021-12-21 14:31:19 -05:00
Taha Afzal 145cf2d975 All Bus subscribers are using the templatized subscriptions 2021-12-21 14:31:19 -05:00
Taha Afzal 9d8dba23b9 threaded bb interacts with bus now 2021-12-21 14:31:19 -05:00
Taha Afzal 5a2c5e4c9a SingleVolSurfaceMarketImpliedVolSource 2021-12-21 14:31:19 -05:00
Taha Afzal 2480575e67 Straightened out (partially) some security misaallignments bw spark and aw2, added SingleOptionDriverPricePublisher 2021-12-21 14:31:19 -05:00
Taha Afzal d9337e1086 New AnalyticsServer completely hooked up 2021-12-21 14:31:19 -05:00
Taha Afzal 4a0fe9a19b Cleaning up VolSurfaceBlackboardManager 2021-12-21 14:31:19 -05:00
John Colvin 0c73900f57 build: Add --link-output-dir arg to buildspark.py 2021-12-21 11:50:54 -05:00
John Colvin f66749ee25 buildspark.py exists with code 1 on exception 2021-12-21 11:50:54 -05:00
John Colvin 043a9ecb4a Reword buildspark --output-dir help text 2021-12-21 11:50:54 -05:00
John Colvin f240b562ff Update linux docker 2021-12-21 11:32:01 -05:00
John Colvin a91ce93d43 Update externals 2021-12-21 11:31:51 -05:00
John Colvin 7819c1175a Upgrade compiler to clang-10 2021-12-11 15:50:50 -05:00
John Colvin 2ef66bc91f Fix server build after upgrading externals 2021-12-11 15:20:41 -05:00
John Colvin ea8bad4ece dev/john: Fix typo in Dockerfile 2021-12-09 14:16:52 -06:00
John Colvin 9ef529ab6c Upgrade docker 2021-12-09 11:53:49 -05:00
John Colvin fdb848eecb Remove unused import (apioptions.proto) from apicore.proto 2021-12-09 11:40:50 -05:00
John Colvin beecbbeb61 Upgrade pip when creating python virtual environment 2021-12-09 11:40:50 -05:00
Taha Afzal 58aa01de1b SingleVolSurfaceGateway completed 2021-12-09 11:40:50 -05:00
Taha Afzal b8bcc4a5f4 AnalyticsExpirationParameters 2021-12-09 11:40:50 -05:00
Taha Afzal 1cc00a9577 Hooking VolSurfaceBlackboatdManager to AnalyticsService 2021-12-09 11:40:50 -05:00
Taha Afzal 5eb1db7dd7 Start of interfacing the UI to the AnalyticsService 2021-12-09 11:40:50 -05:00
Taha Afzal c09b4e5ef4 Adding AnalyticsService to Run 2021-12-09 11:40:50 -05:00
Taha Afzal d86d621d38 Comments and wrapping up 2021-12-09 11:40:50 -05:00
Taha Afzal 0ee03a0d30 Persistence layer for vols 2021-12-09 11:40:50 -05:00
Taha Afzal 533a5c8f4a Filling up AnalyticsService 2021-12-09 11:40:50 -05:00
Taha Afzal 521e988b3a Added AnalyticsServiceServer 2021-12-09 11:40:50 -05:00
Taha Afzal 8786b48f33 Added AnalyticsService.proto 2021-12-09 11:40:50 -05:00
Taha Afzal 3f2d90c0ac Moving VoLSurfaceBlackboardManager 2021-12-09 11:40:50 -05:00
Taha Afzal 9b563e3dcb TheoPoint added 2021-12-09 11:40:50 -05:00
Taha Afzal a210e063f0 Migrating more code from edge 2021-12-09 11:40:50 -05:00
Taha Afzal 9055a6facb More classes moved 2021-12-09 11:40:49 -05:00
Taha Afzal 8f3ee23f6c SingleVolSurfaceOptionDriverSource added 2021-12-09 11:40:49 -05:00
Taha Afzal 29870ae7b0 More bus inhabitants added 2021-12-09 11:40:49 -05:00
Taha Afzal 7403155a88 Addedd SingleVolSurfaceTheoSource 2021-12-09 11:40:49 -05:00
Taha Afzal 4af73414cf Hooked a few more sources 2021-12-09 11:40:49 -05:00
Taha Afzal 6110a70b32 Added ThreadedBB interface and one user (SingleVolSurfaceDataSource) 2021-12-09 11:40:49 -05:00
Taha Afzal ed5e0a54cb Re-org'ing some 2021-12-09 11:40:49 -05:00
Taha Afzal 082b6aa86d Moved all UIAdapters from edge 2021-12-09 11:40:49 -05:00
Taha Afzal 18fb15dec4 Moving more AW2 ui code 2021-12-09 11:40:49 -05:00
Taha Afzal bf6658a265 Moved AW2 tags over 2021-12-09 11:40:49 -05:00
Taha Afzal 02728ddc56 Added tests 2021-12-09 11:40:49 -05:00
Taha Afzal 31bb4c418e Adding VoLSurface calulation code 2021-12-09 11:40:49 -05:00
John Colvin c0e75c2de2 Update CMakeDeps, CMakeDeps_win 2021-12-09 11:40:48 -05:00
John Colvin 62bf1d069c Fix build errors caused by big merge, externals upgrade
A lot of server-side changes were just merged as part of the Brandon
project (crypto).  Many of those changes were in libspark (a lib on
which both the client and server depend), and upgrades to its external
dependencies.  As a result, windows counterparts of several upgraded
external libs needed to be similarly upgraded (or added for the first
time).  These libs include: boost, btree, catch, curl, fmt, nlohmann json,
openssl, range, rxcpp, websocketpp

This change also makes protobuf generation compatible with python3, and thus
eliminates the build's dependency on python2
2021-12-09 11:40:42 -05:00
John Colvin 9091d50690 Remove Quantity negation '-' operator
This operator was a mistake to begin with, bc Quantity is unsigned
2021-12-08 10:58:00 -05:00
John Colvin 0544e21c97 Remove unnecessary includes in FlatUnorderedMap.h 2021-12-08 10:58:00 -05:00
John Colvin e9bb8201ed Add pragma once to ConfigurationState.h 2021-12-08 10:58:00 -05:00
John Colvin 75f8963ecd Merge remote-tracking branch 'origin/spark_crypto_base.server' into spark_crypto_base.client_server_merge 2021-12-07 18:33:18 -05:00
John Colvin e769926429 Update externals 2021-12-07 17:52:47 -05:00
John Colvin e09d4d24ba build: Add option to build sdk (or not)
The sdk isn't needed right now, and it adds several seconds to the build
2021-12-07 17:52:47 -05:00
John Colvin ed0924df02 fix build: Replace now-deprecated option in web build
Replace '-p' w/ '--mode production'
2021-12-07 17:52:47 -05:00
John Colvin cd6fcacc4f refactor: Clean up CryptoCommand
* Replace BinanceDemo w/ general purpose LiveLadderDemo
* Get rid of CryptoConfig.proto, as it inappropriately depended on
non-config protos
2021-12-07 17:52:42 -05:00
John Colvin 16bf52e193 refactor: Clean up MarketDataSubscription
* Define as class (not struct) to agree w/ fwd decls
* Make ctr inline since its defined in header
* Pass params to ctr by value (and std::move) rather than by const ref
  (and copy)
2021-12-06 16:41:24 -05:00
John Colvin df5aecd102 refactor: Replace refs to google/btree w/ Kronuz/btree
The former has been replaced with the latter in externals
2021-12-05 16:24:34 -05:00
John Colvin 75c0fee5bf Merge remote-tracking branch 'origin/spark_crypto_base.server' into spark_crypto_base.client_server_merge 2021-11-22 19:57:53 -05:00
John Colvin 5c251f4126 build: Add cmd to workaround vscode c# extension bug
For some reason, the build fails when the output dir is referenced by the c#
extension in vscode.  It produces errors saying various g.cs files (which are
generated for the spark csproj) could not be found.  However, examining the
contents of the output directory after the build "fails" show that those files
exist, and are in the proper build subdirectory.  Seems like a race.
2021-11-22 19:04:51 -05:00
John Colvin ccff827008 Remove unused file spark_server.sln 2021-11-22 18:26:26 -05:00
John Colvin 160769ea60 Add ladder scrollable_tick_window_size to config 2021-11-22 18:22:39 -05:00
John Colvin 16ecaa91b0 style: Clean up LadderOrdersHost 2021-11-22 17:54:06 -05:00
John Colvin 2614f91353 fix: Make order badges appear in ladder
Their positions in the LadderOrderHost were not in sync with the new
lazy/virtual visible tick range in LadderGridHost
2021-11-22 17:42:33 -05:00
John Colvin 2a9a041a36 fix: Init size_calculator earlier in NeworderTicketVM ctr
Avoids null reference exception
2021-11-22 17:33:56 -05:00
John Colvin c37ce8fab9 build (client, style): Fix typo in clean opt help text 2021-11-20 14:50:55 -05:00
John Colvin 3f38654652 refactor: Remove unused files TextBoxDialog.xaml(.cs) 2021-11-20 14:50:55 -05:00
John Colvin d54c6fe710 externals: Update linux boost includes 2021-11-20 14:50:55 -05:00
John Colvin 1ac8ceebe1 build (client): Fwd args from buildspark.cmd to buildspark.py 2021-11-20 14:50:55 -05:00
John Colvin 8cc72e6c96 build (style): Add comment abt paths wrapped in quotes 2021-11-20 14:50:55 -05:00
John Colvin 90ecb3c016 build (client): Add toggle opt to run msbuild /t:restore 2021-11-20 14:50:23 -05:00
John Colvin b3db213b1a build (client): Remove pygit2 dependency 2021-11-20 14:48:32 -05:00
John Colvin e389770e55 build (client): Don't choke on symlinked build dir 2021-11-20 14:48:32 -05:00
John Colvin 4d19101d01 build (client): Configure build with abs path to source dir 2021-11-20 14:48:32 -05:00
John Colvin 88d0f425d2 build (client): Add '--no' toggle to flag opts in buildspark.py 2021-11-20 14:48:32 -05:00
John Colvin 5a205304bb build (client): Fix build for non-default out dirs
Was building libspark and Spark.csproj separately, using msbuild for the
former and dotnet build for the latter
2021-11-20 14:48:07 -05:00
John Colvin 723442227c Update externals to include new websocketpp 2021-11-19 16:30:58 -05:00
John Colvin d4c867a835 Resurrect webserver
The webserver code was commented out when boost was upgraded, as the
former dependend on websocketpp, which, at that time, depended on the
previous version of boost.  Websocketpp has since been updated, so that
the dependency conflict no longer exists
2021-11-19 16:30:58 -05:00
John Colvin fd271b992a Remove ICE symbols from default conf 2021-11-19 16:30:58 -05:00
John Colvin f880399c4c Add unsubscribe fn to MarketDataGateway
Seems like this was accidentally omitted
2021-11-19 16:30:58 -05:00
John Colvin b1d3acb9f7 fix typo: Change < to <= in WebsocketClient::start 2021-11-19 16:30:58 -05:00
John Colvin 68848a74a4 fix build: Correct typo in include path in spreader_tests 2021-11-19 16:30:58 -05:00
John Colvin 9b7ac8d6eb refactor: Shorten field names in SecurityCommon
* security_id -> id
* security_group -> group
* security_desc -> desc
2021-11-19 16:30:58 -05:00
John Colvin 493262c99a Update docker/linux 2021-11-19 16:30:58 -05:00
John Colvin d9ff44cc93 docker (dev/john): Don't backup default .bashrc and .profile 2021-11-19 16:30:58 -05:00
John Colvin 5e3530faef docker (dev/john): Don't build fish docs
This breaks the build for some reason (don't care enough to investigate)
2021-11-19 16:30:58 -05:00
John Colvin c5ca47396b docker (dev/john): Don't install apt fish or git-powerline 2021-11-19 16:30:58 -05:00
John Colvin 2c21d4ddad docker (dev/john): Run apt w/ noninteractive frontend 2021-11-19 16:30:58 -05:00
John Colvin 8d5cae835f docker (dev/john): Update apt before installing fish dep 2021-11-19 16:30:58 -05:00
John Colvin 84221fe0d8 cli: Add emumba deribit demo subcommand 2021-11-19 16:30:58 -05:00
John Colvin 644613749d style (dev/john): Clean up Dockerfile
* Indent command chains
2021-11-19 16:30:58 -05:00
John Colvin c2a783ce96 refactor: Use protos in new Security class 2021-11-19 16:30:58 -05:00
John Colvin 23d645473c Update docker/linux to upgraded_18.04 branch 2021-11-19 16:30:58 -05:00
John Colvin 0f43de79e1 Update externals to use new json.hpp and node_modules 2021-11-19 16:30:58 -05:00
John Colvin eb86db3ef6 build (web): Symlink new node_module dirs in setup_builds 2021-11-19 16:30:58 -05:00
John Colvin 263c0503dc Don't link libiml (it's an artifact from spartan) 2021-11-19 16:30:58 -05:00
John Colvin 47cef95b11 build (web): Upgrade node packages 2021-11-19 16:30:58 -05:00
John Colvin 5a71cb4ac6 Add john's vscode files 2021-11-19 16:30:58 -05:00
John Colvin 0c3b3e9aa6 fix build: Comment out unused refs in websocketclient 2021-11-19 16:30:58 -05:00
John Colvin 09a5343daa Fix fsharp indentation error in gen'd code 2021-11-19 16:30:58 -05:00
John Colvin 254dcff1f6 Try to fix the goddamn web build
These dependencies are way to fragile.  It is a nightmare trying to
upgrade them.
2021-11-19 16:30:58 -05:00
John Colvin 2891e01de1 Add john's dev scripts (docker-related) 2021-11-19 16:30:58 -05:00
John Colvin f42568bed4 docker (john): Get john's vim files in Dockerfile 2021-11-19 16:30:58 -05:00
John Colvin a28f667df5 docker (john): Get john's bash config in Dockerfile 2021-11-19 16:30:58 -05:00
John Colvin ff1d561f7b docker (john): Change user to 'john' 2021-11-19 16:30:58 -05:00
John Colvin 94a91215fb Upgrade dev/john Dockerfile to ubuntu 21.04 2021-11-19 16:30:58 -05:00
John Colvin dccb50d269 fix build: Satisfy new compilers gcc10, clang12 2021-11-19 16:30:58 -05:00
John Colvin 6ca7d3904d Make plugin.py use env python (not hardcoded path) 2021-11-19 16:30:58 -05:00
John Colvin 0f81af3095 cli: Add crypto subcommand
This runs a test/example app that subscribes to binance md and prints
depth to the console
2021-11-19 16:30:58 -05:00
John Colvin 1ae124f0b2 Add SecurityResolver w/ fn bones 2021-11-19 16:30:58 -05:00
John Colvin e83c466bf2 Port over some handy tools from spartan 2021-11-19 16:30:58 -05:00
John Colvin 9a63cfa956 Add .tmp to gitignore 2021-11-19 16:30:58 -05:00
John Colvin 18250a98f7 Add fn to init WebsocketClientConfiguration w/ a url 2021-11-19 16:30:58 -05:00
John Colvin d18547806e Add output operators to websocket classes 2021-11-19 16:30:58 -05:00
John Colvin 03b475add1 fix build: Resolve struct/class fwd decl conflicts 2021-11-19 16:30:58 -05:00
John Colvin b35c43b55c refactor: Rename communication namespace to match path 2021-11-19 16:20:45 -05:00
John Colvin 48862f2b8d refactor: Rename 'communication' dir 'io' 2021-11-19 16:20:45 -05:00
John Colvin 41714fe3f2 Stop tracking .vscode 2021-11-19 16:20:45 -05:00
John Colvin f9db93e41a Add simple HTTPClient
The binance depth stream must be bootstrapped with a depth snapshot,
which is retrieved via an HTTP GET request
2021-11-19 16:20:45 -05:00
John Colvin 6573985bea Overload price comp fns to accept doubles 2021-11-19 16:20:41 -05:00
John Colvin 77dfe79d95 Add proto file settings to clang-format 2021-11-19 16:19:26 -05:00
John Colvin 1679dc61a1 Add bts_assert_msgf macro for templated assert msgs 2021-11-19 16:19:26 -05:00
John Colvin 07afba0b9e Remove websocket bones 2021-11-19 16:19:26 -05:00
John Colvin c018f86671 Add SecurityStore bones/basic impl 2021-11-19 16:19:26 -05:00
John Colvin 7eb8f0d685 Add protos for crypto 2021-11-19 16:19:26 -05:00
John Colvin 2e7bdbcac5 Add classes that mirror binance json structures 2021-11-19 16:19:26 -05:00
John Colvin 66f7474d62 style: Declare default copy ctrs for good taste
This will also satisfy more recent compilers, for when we finally
do upgrade the build
2021-11-19 16:19:26 -05:00
John Colvin 1ed3008c1c refactor: Split OrderGateway classes into sep files 2021-11-19 16:19:26 -05:00
John Colvin b3dbc041b5 refactor: Split md gateway classes into sep files 2021-11-19 16:19:26 -05:00
John Colvin 7bc5385783 Port Book type over from spartan 2021-11-19 16:19:23 -05:00
John Colvin 02513a8779 refactor: Make BookLevel fields non-const
Incremental diff streams would otherwise have to create entire new books
for each update (no copy assignment operator for elements which are stored in
an array)
2021-11-19 16:18:20 -05:00
John Colvin 27100e2e2d Implement OptionSecurity (was empty class) 2021-11-19 16:18:20 -05:00
John Colvin 4860d0cb3d refactor: Move classes out of MarketDataCommon.h into own files 2021-11-19 16:18:15 -05:00
John Colvin a0ce1b361f Add >=, <= operators to ValueWrapper 2021-11-19 15:42:35 -05:00
John Colvin 7ede27e90b refactor: Clean up ValueWrapper 2021-11-19 15:42:33 -05:00
John Colvin 0cfb27feba refactor (flatten): Move ExecutionGatewayFactory to own file 2021-10-25 13:27:12 -04:00
John Colvin 85c567ffc5 refactor (flatten): Move OrderServices to orderman dir 2021-10-25 13:27:12 -04:00
John Colvin 694309f80b refactor (flatten): Move OrderBuilder to orderman dir 2021-10-25 13:27:12 -04:00
John Colvin 0a6a4c35fa refactor (flatten): Move OrderServiceServer to orderman dir 2021-10-25 13:27:12 -04:00
John Colvin 923d9ee512 refactor (flatten): Move ChildOrder to orderman dir 2021-10-25 13:27:12 -04:00
John Colvin f2671ea4ba refactor: Remove unused file IOrderServices 2021-10-25 13:27:12 -04:00
John Colvin 0d3e27932a refactor (flatten): Move OrderRouter to orderman dir 2021-10-25 13:27:12 -04:00
John Colvin cc81fd3244 refactor (flatten): Move ilink3 dir to lib/orderman 2021-10-25 13:27:12 -04:00
John Colvin 014effef90 refactor: Move IExchangeGateways to gateways dir 2021-10-25 13:27:12 -04:00
John Colvin 903e59a814 refactor: Move order msg classes to own files 2021-10-25 13:27:12 -04:00
John Colvin 7e2b21602a refactor: Move Governor defs to .cpp 2021-10-25 13:27:12 -04:00
John Colvin aee394a792 refactor (flatten): Move Governor.h out of own dir 2021-10-25 13:27:12 -04:00
John Colvin e5e20af1f7 style: Clean up OrderServices
* Move non-template definitions to .cpp
* Move template definitions to bottom of .h
2021-10-25 13:27:12 -04:00
John Colvin 2d09a1ce33 Add .clangd to gitignore 2021-10-25 13:27:12 -04:00
John Colvin e0f9e0c48c Add .cache to gitignore 2021-10-25 13:27:12 -04:00
John Colvin f4f67d4289 Let the ui convert synth net change to n ticks
Whether or not to display a price in dollar or n ticks form is a display
setting, and furthermore the front end assumes all prices are in dollar
form
2021-10-25 13:27:12 -04:00
John Colvin ce68617d86 refactor: Rename TestObserver -> TestAlgo 2021-10-25 13:27:12 -04:00
John Colvin ba53334a7c Introduce SyntheticBook class
* Price levels are computed lazily

* Once computed, a price level can be accessed in O(1)

* Unit tests piggy back on rigorous existing unit tests in
  'synthetic_book_computation'

* Not integrated into the matcher, as that is non-trivial
  work, and the March 2021 roll is fast approaching
2021-10-25 13:27:12 -04:00
John Colvin 91925f9ec6 style: Run clang format on a few files 2021-10-25 13:27:12 -04:00
John Colvin 6b9b8ac403 Add ++/-- operators to Quantity 2021-10-25 13:27:12 -04:00
John Colvin 01d9af0bb2 Remove Price::abs method's price param, since it's non-static 2021-10-25 13:27:12 -04:00
John Colvin 63549fd3e2 refactor: Break up BookStatRecorder 2021-10-25 13:27:12 -04:00
John Colvin e3cd1e9fc3 refactor: Replace includes w/ fwd decls to speed up build
Also replace public templated function FifoMatcherContext::reset
with non-templated overloads, which call a private templated impl
2021-10-25 13:27:12 -04:00
John Colvin d0ceed37b5 cli: Remove ValidateFifo cmd (obsolete) 2021-10-25 13:27:12 -04:00
taha afzal 849adc5d7c Completed OrderGatewy inteface 2021-10-22 07:47:39 -04:00
Taha Afzal 317fc93c76 OrderGateway added for EMumba integration 2021-10-20 20:04:42 -04:00
Taha Afzal 3ff6c725a3 Hooked book 2021-10-18 13:51:01 -04:00
Taha Afzal 205953d928 Added more handler code to EmumbaMDListener 2 2021-10-15 19:32:46 -04:00
Taha Afzal 8a01969796 Added more handler code to EmumbaMDListener 2021-10-15 16:13:35 -04:00
Taha Afzal 38d94663cf More flesh on the skeleton 2021-10-14 16:09:14 -04:00
Taha Afzal c85ef44a1b Added skeleton for EmumbaMDListener 2021-10-13 12:48:33 -05:00
Taha Afzal 648a30ecf8 Fixing clang build 2021-10-11 19:46:34 -04:00
Taha Afzal fc7237c7b9 WebsocketClient working after and getting data from binance after adding the SSL handshake 2021-10-08 00:22:52 -04:00
Taha Afzal 936a3b624b Added WebsocketSyncClientTests 2021-10-07 14:20:49 -04:00
Taha Afzal fc4fa3893c added comments to the websocket interface and structures 2021-10-04 17:34:30 -04:00
Taha Afzal e34a2f5195 WebsocketClient - allows a user of this class to connect to a host url, and send and receive data asyncronously 2021-10-04 15:55:46 -04:00
Pedro Pinto ce98e862c3 Upgraded boost 2021-10-03 14:39:36 -04:00
Taha Afzal 930357d11c WebsocketClient 2021-09-27 11:52:57 -05:00
Taha Afzal 43c3584dd2 unified market data interface on which we will connect to crypto exchanges 2021-09-21 13:18:46 -05:00
John Colvin c0def90173 refactor (flatten): Move ExecutionGatewayFactory to own file 2021-09-15 23:53:59 -04:00
John Colvin 0d918510fd refactor (flatten): Move OrderServices to orderman dir 2021-09-15 23:53:59 -04:00
John Colvin 06141850fa refactor (flatten): Move OrderBuilder to orderman dir 2021-09-15 23:53:58 -04:00
John Colvin 8eab9a3f15 refactor (flatten): Move OrderServiceServer to orderman dir 2021-09-15 23:53:58 -04:00
John Colvin a7b7c45657 refactor (flatten): Move ChildOrder to orderman dir 2021-09-15 23:53:58 -04:00
John Colvin 15004f2762 refactor: Remove unused file IOrderServices 2021-09-15 23:53:58 -04:00
John Colvin be8242c7ac refactor (flatten): Move OrderRouter to orderman dir 2021-09-15 23:53:58 -04:00
John Colvin 601fd98508 refactor (flatten): Move ilink3 dir to lib/orderman 2021-09-15 23:53:58 -04:00
John Colvin c8bf9b41e4 refactor: Move IExchangeGateways to gateways dir 2021-09-15 23:53:57 -04:00
John Colvin 8d73cef4b2 refactor: Move order msg classes to own files 2021-09-15 23:53:57 -04:00
John Colvin 6f4a0f7ce4 refactor: Move Governor defs to .cpp 2021-09-15 23:53:57 -04:00
John Colvin a67056fbc9 refactor (flatten): Move Governor.h out of own dir 2021-09-15 23:53:57 -04:00
John Colvin cc67c3ced1 style: Clean up OrderServices
* Move non-template definitions to .cpp
* Move template definitions to bottom of .h
2021-09-15 23:53:57 -04:00
John Colvin edb2f1bac2 Fix server build (linux compiler doesn't like pragma push) 2021-09-15 23:53:57 -04:00
John Colvin 264ce8ddc4 Add .cache to gitignore 2021-09-15 23:53:57 -04:00
John Colvin 17642ca84b build: Use dotnet build (instead of msbuild) for c# projects
Continue using msbuild for c++ (i.e., libspark)
2021-09-15 23:53:57 -04:00
John Colvin f46d91a57e build: Remove erroneous PropertyGroup 2021-09-15 23:53:57 -04:00
John Colvin 8d145c9075 build: Remove erroneous AvailableItemName tags 2021-09-15 23:53:57 -04:00
John Colvin 78403a0baf style: Format msbuild project files 2021-09-15 23:53:57 -04:00
John Colvin 353b2fd7e0 build: Remove unused items in msbuild files 2021-09-15 23:53:57 -04:00
John Colvin ec1e1fda92 Add recursive .vscode dirs to gitignore 2021-09-15 23:53:57 -04:00
John Colvin da5331d8ca Stop tracking .vscode files 2021-09-15 23:53:57 -04:00
John Colvin 939f44b48c build: Refine build scripts so they work out of the box
* Automatically create python virtual envs
* Automatically actvate the vs dev prompt

Note: the python39 virtual env will remain active in the calling shell.
This behavior may be changed down the road.
2021-09-15 23:53:57 -04:00
John Colvin 5939df9345 Define naming conventions in editorconfig 2021-09-15 23:53:57 -04:00
John Colvin c366b9f4c8 style: Fix name violations, etc. on LadderGridHost 2021-09-15 23:53:52 -04:00
Taha Afzal d23baec6d9 comments and los 2021-09-10 09:13:59 -05:00
John Colvin 835e0f50ca Run dotnet format on spark proj 2021-09-06 19:35:31 -04:00
John Colvin ff4f338898 Add dotnet format tool 2021-09-06 19:35:30 -04:00
John Colvin 113871a150 Rename requirements.txt -> requirements27.txt
A requirements39.txt file was created (for a python 3.9 venv) after
requirements.txt, so the version specifier now seems appropriate.
2021-09-06 19:35:30 -04:00
John Colvin c31b5cf2b4 Run omnisharp formatter on spark project 2021-09-06 19:35:24 -04:00
John Colvin 7d75a6c3a9 Make ladder panel prices hyperlinks to jump to price 2021-09-06 18:34:28 -04:00
John Colvin 3995351b54 Fix bug where session range hidden 2021-09-06 18:34:28 -04:00
John Colvin 795942d8a9 Add style.yapf (python formatting config) 2021-09-06 18:34:28 -04:00
John Colvin f4be975fec Add omnisharp.json (c# formatting config) 2021-09-06 18:34:28 -04:00
John Colvin b7a0cc5c24 Add .venv dirs to .gitignore 2021-09-06 18:34:28 -04:00
John Colvin 8a666ae397 Add requirements39.txt for python 3.9 env 2021-09-06 18:34:28 -04:00
John Colvin 2cc8e519d8 Add cached branch build dirs to gitignore 2021-09-06 18:34:28 -04:00
John Colvin 48cd21aa46 build: Add option to cache branch builds 2021-09-06 18:34:27 -04:00
John Colvin 531fbb63be build: Add buildspark.py (bc bat is a horrible language) 2021-09-06 18:27:32 -04:00
John Colvin 6f3945cced Implement IObservable in SingleValuePump for convenience 2021-09-06 18:27:32 -04:00
John Colvin 9dc3c32769 Add bit_span param to auto_phase (hash fn)
Brought over from DJ_ICE bc it seems like a useful param for custom
hash impls (though there isn't an immediate need for it).
2021-09-06 18:27:32 -04:00
John Colvin 3f2f19f73c fix: Load FairValueLine price type in settings dialog 2021-09-06 18:27:32 -04:00
John Colvin 9a013d783e Add fair value lines for DJ 2021-09-06 18:27:32 -04:00
John Colvin 6ea217b674 fix: ContractPicker syncs selected sec/md w/ selected key 2021-09-06 18:27:32 -04:00
John Colvin 0356221066 ui (DJ): Avoid darkening price text in session range in ladder
Put the session range visual beneath the column backgrounds
(on the z axis), and make the background slightly translucent
while leaving the font color fully opaque.  This effectively
darkens the former without changing the latter.
2021-09-06 18:27:32 -04:00
John Colvin 50a0ed3823 Set alpha bits to 'FF' in historic ladder settings colors 2021-09-06 18:27:32 -04:00
John Colvin 1686d41c0c ui (dj): Reduce opacity of session range layer in ladder 2021-09-06 18:27:32 -04:00
John Colvin 65f2efa9a0 ui (dj): Make ladder look more like tt
These changes can be configured via LadderKnobs (defined in UI.proto)
2021-09-06 18:27:32 -04:00
John Colvin 84e9cf5261 fix: Correct visibility binding in ladder session high/low
The other price points visibility bindings were refactored
in a similar manner, for consistency's sake.
2021-09-06 18:27:32 -04:00
John Colvin dd256409e9 feat (DJ): Right align bid, price, and ask column text in ladder
This is hardcoded (not configurable via settings).
2021-09-06 18:27:32 -04:00
John Colvin 1e68c047ea feat (DJ): Give bid/ask cells with markets a lighter background in ladder
There is a small chance this will impact performance when
a large number of ladders (50+) are open.  Therefore, this
behavior can be toggled on/off in config, via
LadderKnobs.lighten_market_background.
2021-09-06 18:27:31 -04:00
John Colvin 56340fcc60 refactor: Consolidate tick tests after tricky merge
The branches that were merged, DJ_ICE and
DJ_ICE_ladder_price_aggregation, both added new
tick tests.  The former put them in a new file,
"TickTests.cs," while the latter added them
to "SecurityTests.cs."  This commit places all
tick tests in "TickTests.cs."
2021-09-06 18:27:31 -04:00
John Colvin af639286e1 Add tooltips to ladder left-panel price points 2021-09-06 18:27:31 -04:00
John Colvin bf32b6262d Tailor default ladder price point settings for DJ 2021-09-06 18:27:31 -04:00
John Colvin f2dd283751 feat (DJ): Display settings for ladder left-panel price points
* Add background and font settings for all price points

* Indicate 'day change' sign with modal settings (positive,
  zero, and negative) for background and font color

* Hide 'day change' leading zeros in tick part

* Don't show 'day change' zero integer part (e.g.,
  '25' instead of '0.25')
2021-09-06 18:27:31 -04:00
John Colvin c27cd8ca54 Make a few classes/structs public in spark_core
They are referenced in spark proj, so prob should have always been
public.
2021-09-06 18:27:31 -04:00
John Colvin 75c86f7b69 config toggle to show/hide ladder scrollbar for dj (defaults to hide) 2021-09-06 18:27:31 -04:00
John Colvin 2e1d65fa33 frozen price lines in ladder (for dj) 2021-09-06 18:27:31 -04:00
John Colvin 5cdd2629bf Copy a few ext methods from DJ_ICE 2021-09-06 18:27:31 -04:00
John Colvin 026bf6fb07 fix ColumnBase.SortDirection binding to DIYGridColumnModel 2021-09-06 18:27:31 -04:00
John Colvin 9054049ebf SelectionModel should only select the pending selection once (was reselecting it every time the items changed) 2021-09-06 18:27:31 -04:00
John Colvin d7a044c894 remove unused 'actual_width' prop from DIYGridColumnModel 2021-09-06 18:27:31 -04:00
John Colvin 2da8895f3e synchronize column model's GridColumnSettings with the column view 2021-09-06 18:27:31 -04:00
John Colvin 1e1a5897bc TextCell available_size is updated in ArrangeOverride 2021-09-06 18:27:31 -04:00
John Colvin d3a635b156 parameterize SecurityStore.join (don't mess with core logic/impl) 2021-09-06 18:27:31 -04:00
John Colvin f08c8a51ad made new SelectorVM (todo: replace refs to old one) 2021-09-06 18:27:31 -04:00
John Colvin 2f08e92a5e add SimpleGridSettingsManagerVM (uses DIYGridColumnModels instead of the view type ColumnBase) 2021-09-06 18:27:30 -04:00
John Colvin 336b009f24 add DIYGridColumnModel, so the DIYGrid column paradigm is cleanear mvvm 2021-09-06 18:27:30 -04:00
John Colvin e027454a36 add get/load_state methods to non-generic IDataGridColumnFilter 2021-09-06 18:27:30 -04:00
John Colvin af968c2c58 add PropertyEqualityComparerAttribute (supports simple automatic equality impl) 2021-09-06 18:27:30 -04:00
John Colvin 25a954b13c unify SecurityCriteria initialization with securities (use pretty_name if single sec) 2021-09-06 18:27:30 -04:00
John Colvin a45d8761e5 remove with_reguard_to_price param from tick 'format' extension 2021-09-06 18:27:30 -04:00
John Colvin e1d9ca6325 fix typo in ConvertUtils.update_value_type (was missing negation '!') 2021-09-06 18:27:30 -04:00
John Colvin d3853ddbf8 fix tick unit tests, and reorganize security tests a bit 2021-09-06 18:27:30 -04:00
John Colvin 7efa62c994 add precision param (epsilon) to tickup/down methods 2021-09-06 18:27:29 -04:00
John Colvin 9284bf5b14 TickFactors are cached in a ThreadStatic dictionary rather than concurrent (no locks required) 2021-09-06 18:27:29 -04:00
John Colvin 88ebf9f86f ticksize extension handles invalid tick props gracefully 2021-09-06 18:27:29 -04:00
John Colvin 85ab9d98de remove unused parameter from TickTestHelper.full_ticks_from_zero 2021-09-06 18:27:29 -04:00
John Colvin b8278bb310 fix ladder session low/high grid animation (was not using the ticks per row setting) 2021-09-06 18:27:29 -04:00
John Colvin 00ef27bf8c LadderGridHost invalidates '_spec' on connect_vm (not just on settings updates) 2021-09-06 18:27:29 -04:00
John Colvin d090a6d851 fix typo in LadderGridHost._spec getter (was accidentally returning the fallback value) 2021-09-06 18:27:29 -04:00
John Colvin 573b5e1c62 make tick unit tests more robust (test tick_up/down, use these methods to covalidate results) 2021-09-06 18:27:29 -04:00
John Colvin f6b1cf7c3a include Sim ContractSpecs in tick unit tests 2021-09-06 18:27:29 -04:00
John Colvin 08643c8af1 ladder settings dialog - fix 'when implied is > 0' label alignment 2021-09-06 18:27:29 -04:00
John Colvin b2b8c083a6 added tick unit test (namely for 'full_ticks_from_zero' method) 2021-09-06 18:27:29 -04:00
John Colvin fa882d5472 added 'full_ticks_from' method which accepts an origin price (instead of just an arbitrary 0) 2021-09-06 18:27:28 -04:00
John Colvin 8760481153 TickUtils.full_ticks_from_zero checks pricebreak 2021-09-06 18:27:28 -04:00
John Colvin 33338d2a0a move LadderUtils methods to TickUtils (all were related to ticks) 2021-09-06 18:27:28 -04:00
John Colvin 5b85c20d32 move tick data\utils to spark_core 2021-09-06 18:27:28 -04:00
John Colvin bbf8decd0a add 'ticks per row' ladder setting 2021-09-06 18:27:28 -04:00
John Colvin d5315054a2 add TickUp/DownCommand dependency props to TickUpDownUInt 2021-09-06 18:27:28 -04:00
John Colvin 6e7aa3fe9a fix ladder autoscroll (works perfect now) 2021-09-06 18:27:28 -04:00
John Colvin 48b42bf41f check pt 2021-09-06 18:27:28 -04:00
John Colvin e2f7c2ef20 Update devcmd.cmd for vs 16 2019 2021-09-06 17:45:53 -04:00
John Colvin 27294822ef Restore .vscode files in dev directory 2021-09-06 17:45:53 -04:00
John Colvin f0250338eb Don't track .vscode files in source control 2021-09-06 17:45:50 -04:00
John Colvin 7ee3ef4737 build: Init spark_build_python_path in Directory.Build.Props 2021-09-06 17:41:56 -04:00
John Colvin 03a1cf0395 Add .tmp to gitignore 2021-09-06 17:41:53 -04:00
John Colvin 5ad70b83d6 build: Add step to copy cpp libs to new client out dir 2021-09-06 17:40:58 -04:00
John Colvin 8eba500d1b Avoid race conditions exposed by new OnDispatcher impl 2021-09-06 17:40:58 -04:00
John Colvin 0a3d361621 refactor code to use dotnet core 6
Most changes revolve around MEF, as the new version (5.0.0) lacks
feature parity with the previous version (3.1)
2021-09-06 17:40:58 -04:00
John Colvin fd5f54d8c9 Implement 'OnDispatcher' for dotnet core 6
That extension method doesn't exist in this version
2021-09-06 17:40:58 -04:00
John Colvin 957daf5392 build: Upgrade client build to net5.0 2021-09-06 17:40:58 -04:00
John Colvin c4953590bc Remove spark_excel from spark_client.sln 2021-09-06 17:40:58 -04:00
John Colvin 578d6c8518 build: Update win compiler to Visual Studio 16 2019 2021-09-06 17:35:03 -04:00
John Colvin 54bcff0b8f import compute_synthetic_book method from spartan 2021-09-06 17:32:34 -04:00
Pete Fisher 9f74e57a05 updating submodule to latest 2021-09-06 17:28:33 -04:00
John Colvin a58298edb9 Update externals for vs 2019 compilation 2021-09-06 15:03:04 -04:00
John Colvin c7e2905255 Disable align related warning in vs 2019 build 2021-09-06 15:03:04 -04:00
John Colvin 799126f06a Update build scripts to use vs 2019 build tools 2021-09-06 15:03:04 -04:00
Taha Afzal 1d041357aa Merge branch 'spartan_tas' of bitbucket.org:bluetradesys/spark into spartan_tas 2021-04-08 22:59:17 -04:00
Pedro Pinto d53bfb70ff Added structured logging to SQLite. 2021-02-16 18:20:37 -05:00
Pedro Pinto e4a9636583 Added spartan logging. 2021-02-16 16:06:59 -05:00
Pedro Pinto 28cfa69a23 Added ringbuffer. 2021-02-14 10:26:29 -05:00
Pedro Pinto e4c8437f1f And yet some more. 2021-02-12 12:52:52 -05:00
Pedro Pinto b5668d9534 Fixed the build some more. 2021-02-12 12:39:21 -05:00
Pedro Pinto e756fece66 Fix build. 2021-02-12 12:34:49 -05:00
Pedro Pinto 80c2c58a5a More refactoring 2021-02-12 09:17:28 -05:00
Pedro Pinto 047aa43880 The great flatening. 2021-02-12 09:03:20 -05:00
Pedro Pinto e0d33e6099 Cleaner feed handler. 2021-02-11 17:52:40 -05:00
Pedro Pinto f60a55815d Cleaned up gateway. 2021-02-11 17:47:59 -05:00
Pedro Pinto 33bde966b7 Algo manager. 2021-02-11 17:10:30 -05:00
Pedro Pinto 77210f7c90 Cleaning up Error handling. 2021-02-11 16:58:21 -05:00
Pedro Pinto 058f32c941 IL3 cleanup. 2021-02-11 16:49:33 -05:00
Pedro Pinto 979f06e6d0 Fixed release build. 2021-02-11 14:58:20 -05:00
Pedro Pinto 595b77c3c6 More clean up. 2021-02-11 13:40:51 -05:00
Pedro Pinto 2788ea31ff Moved to delegates. 2021-02-11 13:07:46 -05:00
Pedro Pinto 94d9601d23 Removed obsolete interfaces. 2021-02-10 14:41:24 -05:00
Pedro Pinto 51520e0e0a Changed MD to use delegates. 2021-02-10 14:34:00 -05:00
Pedro Pinto 6bb8da9a36 Minor doc. 2021-02-10 08:52:18 -05:00
Pedro Pinto cde3f7900f Fixed broken build scripts. 2021-02-10 08:50:06 -05:00
Pedro Pinto 357d4625fa Cleaned up delegate. 2021-02-10 08:49:18 -05:00
Pedro Pinto 51b37abae7 Merge branch 'spartan_tas' of bitbucket.org:bluetradesys/spark into spartan_tas 2021-02-09 21:57:18 -05:00
Pedro Pinto cca7ded152 More algo man. 2021-02-09 21:56:37 -05:00
Pedro Pinto 3d9aa58ac1 Added a FAF Delegate. 2021-02-09 21:55:58 -05:00
John Colvin 695d7e4f74 fix: Initialize '_args' member in md subcommands 2021-02-09 16:33:12 -06:00
John Colvin 7bec8a103b build: Change build path to 'build/<compiler>/<build_type>' 2021-02-09 16:33:12 -06:00
John Colvin 3be4c57530 style: Format vscode json files
* Indent with 2 spaces
2021-02-09 12:18:23 -06:00
John Colvin 70d0ed54a4 fix: Apply ib qty change in OrderModification::apply 2021-02-09 12:11:15 -06:00
John Colvin 36ac807635 vscode: Tweak presentation of linux_build task 2021-02-09 12:11:15 -06:00
John Colvin 430a9b38ef refactor: Make SecurityMatcher::book return const BookSide& 2021-02-09 12:11:15 -06:00
Pedro Pinto e3574e9d23 mdp3 removal. 2021-02-09 07:47:01 -05:00
Pedro Pinto 6591ed7a3c less mdp3. 2021-02-08 21:45:17 -05:00
Pedro Pinto 5f292ae46a More mdp3 excising. 2021-02-08 20:30:24 -05:00
Pedro Pinto bd9f5ff862 Removing mdp3. 2021-02-08 19:50:03 -05:00
Pedro Pinto 69614a158e Towards removing mdp3:: 2021-02-08 19:46:37 -05:00
Pedro Pinto cf8ec8bbad Merge branch 'spartan_tas' of bitbucket.org:bluetradesys/spark into spartan_tas 2021-02-08 16:50:46 -05:00
Pedro Pinto 91c3d820fc Towards an algo manager. 2021-02-08 16:50:40 -05:00
7482 changed files with 183513 additions and 71367 deletions

No files matched your search

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loaded 100 of 7482 files, more files were not shown because too many files have changed in this diff. Show more