Pedro Pinto
3164c0fd56
Refactor.
2021-02-05 21:58:44 -05:00
Pedro Pinto
bdfed43b01
Refactor.
2021-02-05 21:09:37 -05:00
Pedro Pinto
1e794aaa12
Refactored.
2021-02-05 20:30:16 -05:00
Pedro Pinto
1297b97b2d
Fixed build.
2021-02-05 20:06:18 -05:00
Pedro Pinto
ca80857607
Merge branch 'spartan_tas' of bitbucket.org:bluetradesys/spark into spartan_tas
2021-02-05 18:41:02 -05:00
Pedro Pinto
417e331e8e
Cleaned up mdp3.
2021-02-05 18:37:12 -05:00
taha
8602da1753
Merge branch 'spartan_tas' of bitbucket.org:bluetradesys/spark into spartan_tas
2021-02-05 00:25:21 -06:00
taha
0c9af3ffee
Added order key to 2 log messages
2021-02-05 00:25:15 -06:00
John Colvin
12ba2a2724
fix (cli): Add md->channels subcmd
2021-02-04 13:08:39 -06:00
Pedro Pinto
e892b8b3e5
Towards il3 new
2021-02-04 13:49:17 -05:00
John Colvin
8d91d597fe
fix: Repair 'sparkd run' cmd (so client/ui can connect)
...
This was broken in the cli11 revamp.
2021-02-03 23:59:54 -06:00
Pedro Pinto
b8f146364b
Windows continues to suck ass.
2021-02-03 16:17:28 -05:00
Pedro Pinto
3866f8709f
Fucking windows include order bullshit.
2021-02-03 16:17:14 -05:00
Pedro Pinto
0eeffd1984
Merge branch 'spartan_tas' of bitbucket.org:bluetradesys/spark into spartan_tas
2021-02-03 14:54:24 -05:00
Pedro Pinto
b15973b00c
Adding market segment id.
2021-02-03 14:54:08 -05:00
Pedro Pinto
ddf65972c0
Trying to fix windows build.
2021-02-03 14:52:05 -05:00
Taha Afzal
c10bf44bfc
Merge branch 'spartan_tas' of bitbucket.org:bluetradesys/spark into spartan_tas
2021-02-03 14:46:35 -05:00
Taha Afzal
4bf9be860b
comments added for sniper
2021-02-03 14:46:29 -05:00
Pedro Pinto
e0313958b3
Merged
2021-02-03 11:15:57 -05:00
Pedro Pinto
cda4c522fd
Some refactoring in il3 store.
2021-02-03 11:12:44 -05:00
Taha Afzal
38bd2ac74c
Removing sim switch for security names
2021-02-02 20:31:42 -06:00
Pedro Pinto
36da47f66e
MDP3 refactoring.
2021-02-02 14:11:04 -05:00
Taha Afzal
805efc912e
Merge branch 'spartan_tas' of bitbucket.org:bluetradesys/spark into spartan_tas
2021-02-02 13:37:59 -05:00
Taha Afzal
3642dbcd86
more guard rails
2021-02-02 13:37:37 -05:00
Pedro Pinto
d3cfe1f6e1
Refactor.
2021-02-02 09:43:09 -05:00
John Colvin
88acbdd8b9
refactor: Replace std::maps with boost flat_maps in Trace
2021-02-01 23:44:21 -06:00
John Colvin
214f2667f2
vscode: Reference clang symbols/include paths in c_cpp_properties
2021-02-01 23:44:21 -06:00
John Colvin
7b16cc9d7b
fix: Clear used_order_keys in Matcher::clear
2021-02-01 23:44:21 -06:00
John Colvin
9035ed453f
vscode: Add spartan dir to include/browse paths
2021-02-01 23:44:21 -06:00
John Colvin
b0affc8611
Add BookLevel != operator
...
Define both == and != operators in BookLevel.cc
2021-02-01 23:44:21 -06:00
John Colvin
09fb35c80b
refactor: Move Quantity method/op defs to Quantity.cc
...
Also restyle code in a manner similar to that of the Price operator
code (it's a little cleaner, and brings about consistency).
2021-02-01 23:44:21 -06:00
John Colvin
6badc8099f
refactor: Make ValueWrapper constructors constexpr
2021-02-01 23:44:21 -06:00
John Colvin
8520add970
Replace includes with fwd declarations in FifoMatcherContext
2021-02-01 23:44:21 -06:00
John Colvin
058b4d0020
refactor: Move MatcherOrder struct into its own file
2021-02-01 23:44:21 -06:00
John Colvin
68db9e1254
refactor: Make FifoMatcherContext a class instead of struct
2021-02-01 23:44:21 -06:00
John Colvin
0cddda43f2
Replace includes with fwd declarations in FifoMergedSecurityMatcher
2021-02-01 23:44:21 -06:00
John Colvin
077ce786cb
refactor: Rename 'fill_depot' files 'FillDepot'
2021-02-01 23:44:21 -06:00
John Colvin
46de6b8d8b
Optimize FifoMergedSecurityMatcher logging
...
* Reduce string copying by using fmt::format
* Shorten log header prefix (messages that fit on one line are easier to
read)
2021-02-01 23:44:21 -06:00
John Colvin
1aea4beffe
refactor: Matcher conveys updates with OrderModification struct
...
The OrderModification explicitly indicates which order properties have
changed, so the FifoSecurityMatcher does not need to infer this
information from arbitrary signals in the OrderUpdate.
2021-02-01 23:44:21 -06:00
John Colvin
38a5341d08
fix: Don't automatically reset show qty on passive updates
2021-02-01 23:44:21 -06:00
John Colvin
17752dcce1
refactor: FifoImpliedSecurityMatcher uses new LegDefinition type
2021-02-01 23:44:21 -06:00
John Colvin
1aedac39fd
fix: FifoSecurityMatcher::book_side only includes visible qty
2021-02-01 23:44:21 -06:00
John Colvin
1cfb7ee6a4
refactor: Re-implement implied market logic in 'ImpliedMarketModel'
2021-02-01 23:44:21 -06:00
John Colvin
290b5d9da2
refactor: Clean up FifoImpliedSecurityMatcher
...
* Remove dependency on symbol (was only there to make logs prettier, but
sec id alone provides sufficient information)
* Remove several includes from the header to reduce compilation overhead
2021-02-01 23:44:21 -06:00
John Colvin
b66241b006
Remove unused method in FifoMergedSecurityMatcher
2021-02-01 23:44:21 -06:00
John Colvin
cf615efcd0
refactor: Move LegDef into its own file
...
The struct is renamed 'LegDefinition' to use a naming scheme consistent
with 'SecurityDefinition.' However, an alias for 'LegDef' is
declared for convenience, and to avoid replacing 'LegDef' with
'LegDefinition' in existing references.
2021-02-01 23:44:21 -06:00
John Colvin
c57b832305
fix: Only flip implied_candidates_dirty when they've actually changed
2021-02-01 23:44:21 -06:00
John Colvin
e5c3ae1f9f
Add permutation 'of length' method, and permutation unit tests
2021-02-01 23:44:21 -06:00
John Colvin
e9232e3bae
Add math utils 'factorial' and 'choose'
2021-02-01 23:44:21 -06:00
John Colvin
f4bb9544d4
fix: Fill same-priced passive icebergs evenly
...
When an agressor order crosses multiple [direct/implied] passive markets
at the same price, the aggressor is filled against the visible quantity
in each passive market, before passive icebergs (if any) are reloaded.
This simple iterative step is repeated until the aggressor is filled, or
no longer crosses the market.
2021-02-01 23:44:21 -06:00