Commit Graph
2169 Commits
Author SHA1 Message Date
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 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 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
John Colvin 03d5047798 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-24 14:22:58 -06:00
John Colvin 391b8ece7a fix: running_cost accumulation in 'change_unit_qty' method 2020-12-24 14:22:42 -06:00
Taha Afzal 7d75654cf0 Merge branch 'spartan_tas' of bitbucket.org:bluetradesys/spark into spartan_tas 2020-12-24 12:53:31 -05:00
Taha Afzal 6a46ad2b0e Added a product list config for polygon generation 2020-12-24 12:53:27 -05:00
Pedro Pinto e413ad216e Merge branch 'spartan_tas' of bitbucket.org:bluetradesys/spark into spartan_tas 2020-12-24 10:44:43 -05:00
Pedro Pinto d582005d64 Added assert to make sure books are correct. 2020-12-24 10:44:29 -05:00
Pedro Pinto 02fa07552b Added expiration to instrument definition. 2020-12-24 10:44:08 -05:00
Taha Afzal b032926581 hooking polygon book calc to polygon_values 2020-12-23 18:05:03 -05:00
Pedro Pinto 189cb66daf Merge branch 'spartan_tas' of bitbucket.org:bluetradesys/spark into spartan_tas 2020-12-23 14:24:47 -05:00
Pedro Pinto 36f1df58f0 Intermediate commit. 2020-12-23 14:24:23 -05:00
Taha Afzal 8489eda3a6 Merging 2020-12-23 12:42:37 -05:00
Pedro Pinto b2f6be6d10 Added back all polygons, had a temp break to debug synth book. 2020-12-23 12:22:48 -05:00
John Colvin b656632e86 fix: synthetic book computation
* the fix was technically in the 'change_unit_qty' method,
  which is called from 'compute_synthetic_books.'

* Although the 'change_unit_qty' method was correctly dividing
  quantity by 'unit_qty', it was not scaling the prices.
2020-12-23 10:28:59 -06:00
Taha Afzal 7650e15a52 Merge branch 'spartan_tas' of bitbucket.org:bluetradesys/spark into spartan_tas 2020-12-23 10:55:20 -05:00
Taha Afzal 235d6ecd2f Polygon values have legs books (as text columns), and synthetic books. There is a also new view that joins polygon values with events 2020-12-23 10:55:10 -05:00
Pedro Pinto c9a0d4489b Added max loss, added start/stop times for simulation, added price only order changes. 2020-12-22 10:58:05 -05:00
Pedro Pinto c6697b82fe Added code to convert ptime to mdp3 time. 2020-12-22 10:56:16 -05:00
Pedro Pinto e0231c7dd5 Fixed PCapReader destructor. 2020-12-22 10:55:42 -05:00
Pedro Pinto f3bcbf85dd Reduced console logging. 2020-12-21 10:16:41 -05:00
Pedro Pinto 1835d490a3 Added the ida of parameter sets in the simulator. 2020-12-21 09:59:38 -05:00
Pedro Pinto 822f43c5a1 Better logging of shot sequence number. 2020-12-17 10:22:53 -05:00
Pedro Pinto ebd0fa4809 Added utility to parse performance logs. 2020-12-17 09:40:04 -05:00
Pedro Pinto 43f4fe2011 Better logging for sniper model. 2020-12-17 09:39:41 -05:00
Pedro Pinto f0b76f244c Added packet structure to sql DB. 2020-12-15 17:01:27 -05:00
Pedro Pinto afb88122ad Added performance logging. 2020-12-15 13:40:08 -05:00