Commit Graph
10388 Commits
Author SHA1 Message Date
Pedro Pinto 125fe90aaf Refactored instrument definition. 2020-12-31 16:56:47 -05:00
Pedro Pinto c7a4d08372 Working on instrument definition. 2020-12-31 16:01:38 -05:00
Pedro Pinto d2bae92e92 Refactored. 2020-12-31 13:07:21 -05:00
Pedro Pinto 9ff4c81a11 More refactor. 2020-12-31 12:15:24 -05:00
Pedro Pinto bda105c550 Merged 2020-12-31 12:08:17 -05:00
Pedro Pinto df36b6d24f Refactored iceberg quantity. 2020-12-31 12:06:33 -05:00
Pedro Pinto b34ef9283d Refactored quantity. 2020-12-31 11:57:22 -05:00
Pedro Pinto 7e13e8cb67 More refactoring. 2020-12-31 11:48:21 -05:00
Taha Afzal a51f96cc6f Added product to polygon values 2020-12-31 01:43:07 -05:00
Taha Afzal 99ea103944 merging 2020-12-31 00:34:55 -05:00
Taha Afzal 3b2e5e5d95 Spartan run with sql option, can optionally (based on config) not write the books to the database 2020-12-30 23:24:46 -05:00
Pedro Pinto e06ce66513 Refactor MDP3TimeStamp to TimeStamp. 2020-12-30 21:11:00 -05:00
Pedro Pinto 738862cb22 Tweaked header layout. 2020-12-30 17:32:41 -05:00
Pedro Pinto de063e51f0 Another clang-format run, changed how parameters are binned 2020-12-30 17:30:10 -05:00
Pedro Pinto 8f21a77150 Ran clang-format across all files 2020-12-30 17:11:18 -05:00
Pedro Pinto a27321df2e Apparently you need a newline at the end of afile 2020-12-30 16:50:01 -05:00
Pedro Pinto 0fb7ba5987 Ran clang-format on spartan, changed format defaults. 2020-12-30 16:30:37 -05:00
Pedro Pinto a0a508e64f More documentation. 2020-12-30 16:16:46 -05:00
Pedro Pinto d8a80419eb Added some documentatio, run clang-format on iLink3 code. 2020-12-30 14:22:56 -05:00
Pedro Pinto 862df2efb6 Made MDP3 compression tolerant of data loss. 2020-12-30 14:02:08 -05:00
Pedro Pinto 9dcbab9628 Refactor. 2020-12-29 20:02:04 -05:00
Pedro Pinto ae7b25e120 Refactor. 2020-12-29 20:01:48 -05:00
Pedro Pinto bb1e7df7a9 Merge branch 'spartan_tas' of bitbucket.org:bluetradesys/spark into spartan_tas 2020-12-29 17:15:38 -05:00
John Colvin b620d33f98 fix build: correct typo 'view' -> 'views'
Both 'view' and 'views' are namespaces within
the 'ranges' namespace.  They contain some methods
with identitical signatures, although those in
the former are deprecated.
2020-12-29 16:10:18 -06:00
Pedro Pinto 19b5004920 Merged 2020-12-29 16:46:49 -05:00
John Colvin 337fb2ae45 Restore (uncomment) iceberg impl in Sim
The bug that was the reason it was originally commented out
has been fixed.
2020-12-29 12:58:24 -06:00
John Colvin e87d4a796a fix: IcebergFinder bootstraps with 'orders' instead of 'order_changes' 2020-12-29 12:58:24 -06:00
John Colvin a419ee9ed1 cli: Make icebergs_csv cmd's columns match those in sql 2020-12-29 12:58:24 -06:00
John Colvin 2fe6e3dcab cli: Make icebergs_csv command always generate new csv
Change the command so it does not attempt to retrieve the
icebergs from a bin file before observing the pcap, nor does it
write the icebergs to a bin file after observation.  This behavior
was originally intended as a way to avoid wasting time regenerating
the same set of icebergs when pcap observation was significantly slower.
2020-12-29 12:58:24 -06:00
John Colvin 262b6352a6 test: Add unit tests for synth book computation 2020-12-29 12:58:24 -06:00
John Colvin a18d29b66a Add several MDP3Quantity int binary operators 2020-12-29 12:58:24 -06:00
John Colvin b464b9ab88 Overload SidePriceComp '()' operator for SmallBookLevel 2020-12-29 12:58:24 -06:00
John Colvin 8bf8b6b36e Clean up, and optimize compute_synthetic_book method
* Improve code-readability

* Add documentation

* Avoid copying leg books
2020-12-29 12:58:24 -06:00
John Colvin cbd10c7a7c Refactor book_utils::fmt_ladder
* use md::IntPrice/MDP3Quantity rather than double/uint32_t

* overload fmt_ladder to accept a single book-side, and an
  optional 'side' argument.  If 'side' isn't specified, deduce
  the side by comparing 2 price levels.
2020-12-29 12:54:47 -06:00
John Colvin a6bfa8f976 fix: compute_synthetic_book sometimes only populates 1st price level
Incorrect 'limiting factor' logic was causing the method to exit
when the qty in the first price level of the first leg was used.
2020-12-29 12:54:47 -06:00
John Colvin 8850d7d188 fix: running_cost accumulation in 'change_unit_qty' method 2020-12-29 12:54:47 -06:00
Taha Afzal 9b62a70c8f PolygonFinder can be parameterized for symbols(assets), expirations 2020-12-29 12:54:47 -06:00
Taha Afzal 950887851a Added a product list config for polygon generation 2020-12-29 12:54:47 -06:00
Pedro Pinto 6f5c41ca14 Merge branch 'spartan_tas' of bitbucket.org:bluetradesys/spark into spartan_tas 2020-12-29 08:06:54 -05:00
Pedro Pinto 5223529af1 Sorted match effects so that price updates are delivered before order updates. 2020-12-29 08:06:27 -05:00
Taha Afzal 2632d7ea9f Merge branch 'spartan_tas' of bitbucket.org:bluetradesys/spark into spartan_tas 2020-12-28 23:17:28 -05:00
Taha Afzal de60a0abd1 PolygonFinder can be parameterized for symbols(assets), expirations 2020-12-28 23:17:23 -05:00
Pedro Pinto c4e4ff57d8 Multiple changes to sniper including use of quantity in shot selection. 2020-12-28 20:06:43 -05:00
Pedro Pinto b6f108f7ea More precise alignment of sim time and pcap time. 2020-12-28 20:05:33 -05:00
Pedro Pinto 96c39e68ee More deterministic names for polygons. 2020-12-28 20:03:49 -05:00
Pedro Pinto a3d5e63fb6 DB Fixes. 2020-12-28 20:03:35 -05:00
Pedro Pinto c1be834e54 Changed logging. 2020-12-28 20:02:48 -05:00
Pedro Pinto caf0914b4d Better names for sim time. 2020-12-28 20:02:24 -05:00
Pedro Pinto 0fc522f8c2 Removed commented out code. 2020-12-25 13:41:46 -05:00
Pedro Pinto a247f7e396 Re-enabling all polygons. 2020-12-25 13:36:45 -05:00