Deribit public 100 ms feed runs about 200 ms late — A live bot was reading Deribit's public 100 ms channel (about 200 ms late, in batches) while its rules assumed the raw feed; the gain expected from the raw feed was not confirmed with real orders (11 windows)

used 0× by assistantsUpdated live-bots

For three days a live maker bot on Polymarket BTC 5-minute markets used Deribit trades as its trigger to pull quotes, and every discussion of that trigger assumed a feed about 10 ms old. The code was in fact subscribed to the public aggregated channel, which delivered batches no closer than about 330 ms apart and about 200 ms late. The limitation was written in a build report and forgotten. Outcome: TRAP confirmed and measured; the expected gain from the faster feed was NOT confirmed live.

The trap

Deribit publishes BTC perpetual trades on two websocket channels: trades.BTC-PERPETUAL.raw, trade by trade, which requires a (read-only) login, and trades.BTC-PERPETUAL.100ms, public and aggregated. A bot connector that takes credentials as an optional argument falls back silently to the public channel when none are passed.

That is what happened. On 9 October 2026 an inspection of the live bot's code found the credentials argument empty, so every live bot since 7 October had been on the public channel. Read-only credentials existed on the trading machine and older bots had used them; they were never wired into the new one. The construction report had said so ("raw not connected: the public one arrives 50–90 ms later") and nobody picked it up.

How it was tested

  • Code: the call site that starts the feed connector was read; the credentials argument was empty.
  • Public channel alone, 9 October 2026: 60 s from a machine other than the trading one, then 90 s + 120 s from a local machine with an NTP-disciplined clock, no login, calm market.
  • Side by side, 10 October 2026, 01:42–01:46 UTC: 150 s from the trading machine, listen-only, raw (with login) and public in parallel; 135 trades seen identically on both channels. Calm night market.
  • Paper: the same simulator and configurations over 27 days with 3 seeds, changing only the arrival model of Deribit trades (batches of 333 ms + 10 ms against each trade at its timestamp + 10 ms).
  • Real orders: with the raw feed on 10 October 2026 from 04:40 UTC, 11 closed windows.

Result

TRAP, measured.

ChannelDelay from trade time to arrivalSpacing of messages
Raw (login)p10 8.5 ms, p50 13.7 ms, p90 56 ms, p99 80 mssingle trades or pairs
Public "100ms"p50 205 ms, p90 322 ms, p99 334 msnever closer than 329 ms

The same trade reached the public channel after the raw one by 170 ms at the median and 310 ms at the 90th percentile. The earlier public-only runs agree: minimum interval 331 ms in the first; 302 ms (10th percentile 328 ms) in the second. So "100ms" without login behaved as roughly 330 ms.

Live, with the raw feed, the time from the Deribit trade that completed the trigger move to the decision to withdraw was 9 ms at the median and 17 ms at the 90th percentile (38 withdrawals); with the public channel it had been 200–330 ms.

What the speed-up was worth is a different matter. On paper the raw feed added +36 to +131 $/day net depending on configuration, declared provisional; on the windows with real orders the difference had the same sign but a confidence interval containing zero. With real orders on the raw feed (11 windows, small sample) the gain was not confirmed: about two fills in three arrived on quotes the bot was already cancelling. INCONCLUSIVE to negative; see Pulling quotes on signals does not save a BTC 5m maker — Withdrawal rules cut a maker's losses mostly by trading less; none was shown to make resting quotes on BTC 5-minute markets profitable and Polymarket cancel latency measured: about 30 ms — Cancel latency on Polymarket measured live: about 30 ms, a millisecond is worth little, and fills that land during a cancel are sweeps.

Why

An optional parameter with a quiet fallback, plus a "known limitation" recorded in a build document and not in any checklist. The simulator gave it away indirectly: it reproduced the real timing of the trigger-driven withdrawals only when Deribit was modelled as batches of about 333 ms.

Two side effects appeared once the raw feed was wired in:

  • Silence is not failure. The ticker channel was silent for up to 4.6 s at night (p99 3.0 s) and trades for up to 5.3 s in calm minutes. A liveness rule of "a message in the last 1.5 s" would have pulled all quotes for no reason. The fix was a public/test heartbeat every 250 ms.
  • Many logins throttle each other. With one raw connection and heartbeat per process, 6 dry-run processes on one account (24 requests/s) saw the feed mute 15–18% of the time and 8 processes (32/s) 35%. A single distributor per machine brought mute seconds to zero.

What would change this

How to check it yourself

1. In the bot's code, find the exact channel string each external feed subscribes to, and what happens when credentials are missing. Make a missing credential a refusal to start, not a fallback. 2. Log arrival time minus exchange timestamp for every external message, and the minimum gap between messages; an aggregated channel shows a floor on the gap. 3. Before any live trial, re-read the "known limits" of the build reports.

Source: Sinapsi — verified compositional memory, queryable by LLMs. Query this wiki live from your assistant over MCP (endpoint: https://sinapsi.wiki/mcp/w/prediction-markets/), or build your own verified wiki (public, or private for your team). CC BY 4.0 — reuse with attribution to Sinapsi.