Commit Graph
2311 Commits
Author SHA1 Message Date
John Colvin 13719170c9 refactor: Move OrderKey.h into domain/order 2021-02-01 23:41:23 -06:00
John Colvin 2c4db5bf02 refactor: Move Order types into domain/order 2021-02-01 23:41:23 -06:00
John Colvin 7e957527ac Add Price::nan method 2021-02-01 23:07:01 -06:00
John Colvin b94a1d943f refactor: Clean up Price
* Move impl from Price.h to Price.cc

* Make ctrs, methods, ops constexpr (where possible)

* Overload all binary ops to accept Price, or int64 param
2021-02-01 23:07:01 -06:00
John Colvin 3efb4da14b diag: Add Trace parameter to matcher constructor
This makes it easy for matcher-validation commands to bind trace
parameters, such as order/event ids, to cli options.
2021-02-01 22:56:21 -06:00
John Colvin 9c53f4b949 refactor: Move Trace into its own file 2021-02-01 22:56:21 -06:00
John Colvin 35d395fc35 refactor: Hide private matcher members behind PImpl 2021-02-01 22:56:21 -06:00
John Colvin cf19a63aac Delete superfluous move constructor/operator in Matcher 2021-02-01 22:56:21 -06:00
John Colvin 6456060a6c refactor: Define AlgoEventID struct, and EventID alias
A few advantages the struct offers (over an alias for a pair of size_ts):

* A custom output operator

* Eliminates potential conflict with pairs of size_ts that don't
  represent an algo id

* The ability to (eventually) choose precise member names for both
  components of the event, rather than 'first' and 'second'
2021-02-01 22:56:21 -06:00
John Colvin 702547a88b refactor: Revamp 'md' command with CLI11 App
The files 'run_md.h/cpp' are removed, as their functionality is
distributed among the subcommands: md, run, and web.
2021-02-01 22:56:21 -06:00
John Colvin 2447da3c08 refactor: Rename 'map_utils.h' -> 'MapUtils.h/cc'
Also refactor the relevant namespace 'bts::utils' methods to be static
methods in the newly created class 'MapUtils.'  This is part of the
effort to favor static class methods over namespaced functions.
2021-02-01 22:56:21 -06:00
John Colvin 8df420c37c refactor: Rename 'table_display.h' -> 'TableDisplay.h/cc'
Also refactor the namespace 'table_display' methods to be static methods
in the newly created class 'TableDisplay.'  This is part of the effort
to favor static class methods over namespaced functions.
2021-02-01 22:56:21 -06:00
John Colvin d18a345b5b refactor: Rename 'permutation.h' -> 'Permutation.h/cc'
Also refactor the namespace 'all_permutations' methods to be static
methods in the newly created class 'Permutation.'  This is part of
the effort to favor static class methods over namespaced functions.
2021-02-01 22:56:21 -06:00
John Colvin 1770274dd0 refactor: Rename 'action_summarizer' -> 'ActionSummarizer' 2021-02-01 22:56:21 -06:00
John Colvin 746dd506f8 refactor: Rename 'file_stream_utils.h' -> 'FileUtils.h/cc'
Also refactor the namespace 'file_stream_utils' methods to be static
methods in the newly created class 'FileUtils'.  This is part of
the effort to favor static class methods over namespaced functions.
2021-02-01 22:56:21 -06:00
John Colvin 78be0004af refactor: Rename 'reverse_comp.h' -> 'ReverseComp.h' 2021-02-01 22:56:21 -06:00
John Colvin 333a378230 refactor: Rename 'string_splitter.h' -> 'StringUtils.h/cpp'
Also refactor the namespace 'string_splitter' methods to be static
methods in the newly created class 'StringUtils'.  This is part of
the effort to favor static class methods over namespaced functions.
2021-02-01 22:56:21 -06:00
John Colvin 5e8f776334 refactor: Rename dir 'spartan/util' -> 'spartan/utils' 2021-02-01 22:56:21 -06:00
Pedro Pinto 5470a82b94 Real time ilink3 handler code complete. 2021-02-01 20:28:44 -05:00
Pedro Pinto aeb4bec02d Refactored sim types to have a sim prefix. 2021-02-01 13:57:16 -05:00
Pedro Pinto 2cffaa9d73 Refactored include path for spartan. 2021-01-30 15:11:46 -05:00
Pedro Pinto 86b7f30e0e Towards realtime il3 handler. 2021-01-29 15:22:32 -05:00
Pedro Pinto f81c0280e4 Initial cert tests pass. 2021-01-28 22:35:16 -05:00
Pedro Pinto b13ffff044 Tests work for il3 connection setup. 2021-01-27 20:56:37 -05:00
Pedro Pinto d068ac40ec Am able to set party details. 2021-01-27 14:27:23 -05:00
Pedro Pinto db5e428709 Starting to test il3. 2021-01-25 16:42:32 -05:00
Pedro Pinto 77396111aa Can build. 2021-01-25 12:57:22 -05:00
Pedro Pinto 8665ad24c1 Refactored. 2021-01-22 14:59:35 -05:00
Pedro Pinto 72e6e11238 Towards il3 gateway. 2021-01-20 16:49:07 -05:00
Pedro Pinto fb7496aaf2 Added commission model to sim. 2021-01-18 15:21:03 -05:00
Pedro Pinto 9193653773 Added new spartan 'test' subcommand. 2021-01-18 15:20:47 -05:00
Pedro Pinto a80641f8f4 Added testing note to docs. 2021-01-16 16:04:27 -05:00
Pedro Pinto eb7f1ba9ee Disabled IB cross test. 2021-01-16 12:38:19 -05:00
Pedro Pinto 39820205ce Market matcher tests as part of spartan. 2021-01-16 12:33:38 -05:00
Pedro Pinto 2cffcb4e25 Merged 2021-01-16 12:32:34 -05:00
Pedro Pinto 2d2c664ce9 More il3 gateway work. 2021-01-16 11:53:04 -05:00
John Colvin ca4e477f56 fix: CLI11 integration
* Run 'sparkd tests' outside of the CLI::App framework
  (delegate to 'catch', which has a solid cli).  This
  fixes a bug which prevented callers from specifying
  test tags (in the form of '[<tag>]'), as the CLI::App's
  parse method removes square brackets from cli options.

* Bind cli options to instance members of their subcommand's
  CLI::App derived class.  This seems to fix a bug which caused
  the [static instance] binding source to be destructed twice.

 * Add help text for several subcommands
2021-01-16 00:01:15 -06:00
Pedro Pinto 3ec36c4db1 Refactoring IReactorConnection and friends. 2021-01-15 09:41:11 -05:00
Pedro Pinto d593696df2 Tagged spartan tests. 2021-01-15 08:49:28 -05:00
John Colvin 45de55a552 Remove unused files 'args_parser.h/cpp' 2021-01-15 00:32:55 -06:00
John Colvin 17d20bac8b Remove unused file 'ImpliedFifoSecurityMatcher.h'
This was an old version of the implied fifo matcher,
now defined in 'FifoImpliedSecurityMatcher.h'.
2021-01-15 00:32:55 -06:00
John Colvin f42137d86c Don't assert that an iceberg order's vis qty <= show qty
There isn't a compelling reason to enforce this
constraint.  The show qty is the 'reload' qty, and
is orthogonal to the current [visible] qty.
2021-01-15 00:32:55 -06:00
John Colvin 456177af30 typo: Flip ternary op clauses, and delete superfluous 'return' 2021-01-15 00:32:55 -06:00
John Colvin 41374d62ea spartan cli: Add SimBooks command
This command is a diagnostic tool that produces a
csv file of matcher-generated books for a
particular pcap, which can then be imported to
sql, and joined with the actual books table for
comparison.
2021-01-15 00:32:55 -06:00
John Colvin 25395fcac3 refactor: Replace api::Side w/ spartan::Side 2021-01-15 00:32:55 -06:00
John Colvin 9b49c66136 fix: Require valid side param in 'has_min_qty' method
Although the side can be inferred by comparing the
first two price levels, the book may not have two
price levels to compare.
2021-01-15 00:32:55 -06:00
John Colvin 36bfc9e770 Add SecurityCriteria struct to filter instrument sets
Inspired by the c# 'SecurityCriteria' class from
spark's front end.  This may come in handy as a cli
option for spartan subcommands, among other things.
2021-01-15 00:32:55 -06:00
John Colvin 2a04341b3b Allow for non-null, or non-empty effects vector in 'match' method 2021-01-15 00:07:02 -06:00
John Colvin c0a7f1b3fe refactor: Use c++ 'char_traits::length' instead of c 'strlen' 2021-01-15 00:07:02 -06:00
John Colvin 66e1b94d1b refactor: Revamp cli with CLI11 App 2021-01-15 00:07:02 -06:00