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