Archived
feat(polymarket): hash-verified order books for a subset of symbols
Collects the order books of Polymarket's 20 busiest markets (40 symbols) into the template's SBE format: a Delta per level change, plus Snapshots on subscribe, every minute, and whenever a fresh book corrects ours. Every change is checked against Polymarket's own book hash; a failed check resyncs the symbol on the open socket, and the log counts losses apart from the few ms our own resync hides. Runs until SIGINT, which closes the socket and flushes the output; reconnects when the server drops it. A `reconcile` binary checks an output file against itself.
This commit is contained in:
22 files changed
+6423
-84
No files matched your search
+1
-1
@@ -25,7 +25,7 @@ The two claims split apart:
|
||||
|
||||
- **Completeness is cleanly measurable on recorded data.** Treat our output as
|
||||
ground truth, make a lossy copy (drop a % of messages, skip some
|
||||
re-snapshots), run the same strategy on both, compare P&L. The gap = cost of
|
||||
resyncs), run the same strategy on both, compare P&L. The gap = cost of
|
||||
dropped data. No live trading needed.
|
||||
- **Latency is NOT measurable from recorded data.** Collection latency is baked
|
||||
into a recording; a backtest can't show "we'd have been a few ms faster." A
|
||||
|
||||
Reference in new issue
Block a user