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
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
Taha Afzal
3e189a751d
Allow negative payups
2020-12-23 12:32:45 -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
John Colvin
22cf50282c
.vscode: change python interpreter path setting
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
7e04f9a5b3
Merge branch 'spartan_tas' of bitbucket.org:bluetradesys/spark into spartan_tas
2020-12-21 10:00:13 -05:00
Pedro Pinto
1835d490a3
Added the ida of parameter sets in the simulator.
2020-12-21 09:59:38 -05:00
Taha Afzal
36bf94aad9
placeholder orders are not fired in file mode
2020-12-18 09:17:28 -05:00
Taha Afzal
468df062c3
Merge branch 'spartan_tas' of bitbucket.org:bluetradesys/spark into spartan_tas
2020-12-17 12:15:27 -05:00
Taha Afzal
544a9212cf
Sniper launched placeholder orders that are then used to snipe
2020-12-17 12:15:19 -05:00
Pedro Pinto
822f43c5a1
Better logging of shot sequence number.
2020-12-17 10:22:53 -05:00
Pedro Pinto
85106cb293
Better logging of clean/saved/forced shots.
2020-12-17 10:22:33 -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
Taha Afzal
ffcebdf94a
Perf logs in the sniper
2020-12-16 00:05:31 -05:00