Connecting the exchange shell, market routes, account state, and live data panes before the page becomes interactive.
Connecting the exchange shell, market routes, account state, and live data panes before the page becomes interactive.
Two books price the same contract, but they don't move at the same instant. When the leader jumps, the laggard's resting quotes are briefly wrong — take them with IOC orders that can never rest, and you've bought at yesterday's price after the news.
The BTC spot/index feed moves first; native CLOB quotes update when makers re-quote. After a sharp BTC move, the feed has repriced while stale resting quotes can still sit in the book for a second or two. Whoever takes those quotes first collects the difference — this is the oldest HFT trade there is, runnable here at human speeds because the venue's natural latency is seconds, not microseconds.
IOC (immediate-or-cancel) is the entire risk model: the order fills against whatever stale size exists and cancels the rest. You never leave a resting order that someone faster can pick off in turn.
feed.btc channel) is a third, even faster leader: a $50 spot jump predicts BOTH binary books re-pricing.move = leader_mid − laggard_mid.|move| ≥ TRIGGER and the laggard's touch hasn't re-priced within STALE_MS: fire one IOC at the laggard's stale touch in the direction of the move.TRIGGER = 4 # cents of divergence between the two mids
STALE_MS = 800 # laggard touch unchanged for this long = stale
COOLDOWN = 5 # seconds between shots
SIZE = 20
on leader book update:
move = mid(leader) - mid(laggard)
if abs(move) < TRIGGER: return
if ms_since_last_change(laggard.touch) < STALE_MS: return
if cooling_down(): return
if move > 0: # leader repriced UP, laggard asks are stale-cheap
px, side = best_ask(laggard), "BUY"
else: # leader repriced DOWN, laggard bids are stale-rich
px, side = best_bid(laggard), "SELL"
POST /v1/orders {market_id: laggard, side: side, type: "LIMIT",
tif: "IOC", price: px, qty: SIZE}
start_cooldown()
on laggard reprice (mid within 1c of leader):
unwind any open position with reduce-only IOC at the touchTRIGGER above your round-trip cost: the binary taker fee is ~1¢/contract near 50¢ on EACH leg, so a 4¢ trigger nets ~2¢ when the books reconverge. Below 3¢ you are donating fees.| Parameter | Starting value | Why |
|---|---|---|
| TRIGGER | 4¢ | Two taker fees + slippage ≈ 2.5¢; the trigger needs daylight beyond that. |
| STALE_MS | 800ms | Confirms the laggard hasn't already repriced — firing into a fresh quote is just paying the spread. |
| SIZE | 20 | Stale size is usually thin; oversizing converts edge into market impact. |
| COOLDOWN | 5s | One stale book = one trade. The refill is informed. |
Related: Lead-Lag Maker