Fastest crypto price API, live head lag across 6 data providers
Wall-clock head lag in seconds from on-chain swap event to API emission, measured live for Mobula, Codex, GeckoTerminal, Serialized, OKX and Birdeye on Base, BNB Chain, Solana and Robinhood Chain. OKX and Birdeye are measured on Base, BNB Chain and Solana, the three chains where the headline does not read their own timestamps; neither indexes Robinhood Chain.
TL;DR. As of , Serialized and Codex both post the lowest head lag, tied at 0.20 s (p50, 24h) across 6 ranked providers. Source: OpenChainBench, https://openchainbench.com/benchmarks/aggregator-head-lag.
This benchmark measures the question every builder of a trading UI, a PnL tracker or a live DEX dashboard has to answer before picking a data provider. how many seconds elapse between a swap landing on chain and the same event appearing on the provider's feed. Marketing pages quote "real-time" without a number; this page quotes the number. Mobula's WebSocket, Codex's GraphQL feed, GeckoTerminal's REST endpoint and Serialized's WebSocket trades stream are watched from three regions (us-east, eu-west, sgp). On Base the zero point is the sequencer's flashblock preconfirmation stream, which we hold ourselves; on BNB Chain, Solana and Robinhood Chain it is the on-chain timestamp against canonical-tip archive nodes. Because each chain has its own base block cadence (Solana's ~400 ms slots vs Base/BNB's 2-3 s blocks), the headline winner shifts by chain. On Solana the leader is Codex at <0.01 s; on Base it's Codex at 0.06 s; on BNB Chain it's Codex at 0.05 s. p50 and p99 are computed via Prometheus `quantile_over_time` over a 24-hour window so the leaderboard reflects sustained freshness, not a cherry-picked cold-start sample. The same harness tracks presence (2,880 expected samples per provider per day), so a provider whose feed dropped for an hour shows it on the success rate column rather than disappearing silently from the latency aggregate.
Methodology
We measure the gap between a transaction settling on chain and the same transaction appearing on each aggregator's data feed. The harness watches reference pools across Base, BNB Chain, Solana and Robinhood Chain from three regions (us-east, eu-west, sgp), records every new on-chain event with millisecond timestamps, and observes when each aggregator's WebSocket reflects the same event.
- Aggregators measured: Mobula, Codex, GeckoTerminal and Serialized on all four chains; OKX and Birdeye on Base, BNB and Solana. Neither can scope a subscription to a pool, so both are subscribed per token and matched to the bench pool by transaction hash, their off-pool trades discarded rather than scored. Both send whole-second timestamps, which is why they are measured only on chains whose headline reads a clock we hold rather than the provider's own.
- Robinhood Chain carries four of the six feeds. Neither OKX nor Birdeye indexes it, measured rather than inferred: both accept the subscription and then deliver nothing (0 trades in 40 to 45 s, on the pool and on its non-stable leg) while Base and BNB on the same code delivered hundreds. An accepted subscription is not evidence of coverage on either feed.
- Chains: Base, BNB Chain, Solana, Robinhood Chain.
- Reference on BNB Chain: a node subscription we hold ourselves, every emission matched to it by transaction hash, the ruler Base uses. Until 2026-10-03 the column used each provider's own timestamp, assuming BNB's chain-supplied timestamps sat within roughly 60 ms of a trade becoming observable. Measured, that gap is 569 ms, so the old column tracked block time more than any pipeline: the four feeds sat within 9% of each other, against the common clock they spread over a factor of four.
- Solana (since 2026-09-16): the headline is the lag behind the first feed to report the trade, our own node subscription included in the race. Solana has no on-chain timestamp with sub-second precision, so the timestamps providers send compare conventions: Mobula's `date` (its ingestion time) read as a constant 0.10 s, Serialized's `at` (blockTime, whole seconds) as 0.75 s, while against a common clock the two feeds are 10 to 30 ms apart.
- Solana zero point: no RPC WebSocket we hold, public or keyed (mainnet-beta, Helius, Alchemy), precedes the providers' geyser feeds, so an absolute zero point is not available and the first observation is the ruler. Our node stays in the race: it validates the hash on chain and bounds the field whenever a feed is slower than a plain RPC subscription.
- Race: every feed's arrival for a transaction is compared to the earliest feed's (exactly one feed wins each trade, the earliest arrival, so the shares add up to 100; trades only one feed reported are not scored). Published on every chain as `head_lag_first_share_pct`, the First to report view: the share of the last 24 h of trades a feed reported before every other feed.
- Race eligibility (since 2026-10-04): only trades our own pool subscription saw are raced. OKX and Birdeye are subscribed per token and see every pool on it, so the book had filled with trades from pools this bench does not measure, scored as a race between those two alone. After the filter, Solana discards hundreds of thousands of off-pool races an hour and scores of order 100, its rate before those feeds arrived. Feeds seeing only our pool had been divided by a denominator they could not enter.
- Consequence for the Solana column: `head_lag_seconds` there is the lag behind the first feed in a race, so it moved with the same fix. Figures published before 2026-10-04 for OKX and Birdeye on that column were measured on a wider set of trades than the other four feeds.
- Solana headline: `head_lag_seconds` is the lag behind the first observation of the trade, our node included, floored at 1 ms. GeckoTerminal polls and lands 15 to 100 s later; it is measured against the same first arrival.
- Reading the Solana column: the leading feed's figure is the floor, not a measured latency. Whichever feed wins a race has a lag of zero by definition, published as 1 ms so the row renders, and over a recent 30 minutes the leader sat on that floor for 94% of its samples with p50 and p90 both at 1 ms. So the gap between the leader and the next feed is not a speed ratio; it is how far behind the others arrived. Read the leader through First to report and the others through their own lag.
- Regions: us-east, eu-west, sgp. Cross-region median reported in the headline.
- Reference on Base: two preconfirmation sources held by us in every region, the sequencer's flashblock stream and the sequencer node's `pendingLogs` subscription, with the earliest sighting of each transaction taken as the zero point. A Base block becomes queryable about 0.36 s after the timestamp it carries, while flashblocks publish every 200 ms inside the 2 s interval, so that timestamp is not the moment a trade becomes knowable.
- Why Base has two reference sources, since 2026-10-29: the flashblock endpoint is served through a CDN and carries a tail of 170 to 220 ms on its slowest decile. A reference that is late flatters every provider measured against it, and by late October one provider was arriving before our own reference on more Base races than it lost, so the zero point had stopped bounding the field.
- Adding that second Base source can only move the zero point earlier, never later, because the clock keeps the first sighting of a transaction and discards the rest. Base head-lag figures published before 2026-10-29 are therefore smaller than the same measurement would be today, by up to the size of that tail. The first-to-report shares are unaffected: that race is between providers, and the reference does not compete in it.
- Base emissions we cannot match to a flashblock are dropped rather than measured against a different ruler. Measuring against the block timestamp charged a provider reading preconfirmations with a negative lag, and described the chain's stamping convention rather than the provider's pipeline.
- Metric: gauge `head_lag_seconds`, scraped every 30 seconds. Aggregated over the 24-hour window using `quantile_over_time`.
- Success rate: presence ratio. Share of expected sampling slots where a value was actually emitted (2,880 expected per provider per day at the 30 s scrape). 100% means the aggregator's feed was reachable for the full window.
- Coverage is not the same as presence. Birdeye's stream carries part of the bench pool's flow rather than all of it: 106 of 442 and 13 of 44 pool swaps over two Base windows, about a quarter. Its percentiles therefore describe the trades it does report, and the presence ratio above measures whether the feed was reachable, not how much of the pool it covered.
- Cardinality: four aggregators on four chains plus two on three (OKX, Birdeye) is 22 aggregator-chain pairs × 3 regions = 66 active series.
- Probe placement: the three probes run in their named regions on Railway (europe-west4, us-east4, asia-southeast1). Until 2026-09-15 all three ran in asia-southeast1 under regional labels; region columns before that date are three Singapore vantage points.
- Codex endpoints: the Solana subscription reads Codex's Frankfurt edge node (`fra.edge.codex.io`) from all three regions; Base, BNB Chain and Robinhood Chain read the standard `graph.codex.io` endpoint. Solana and Base subscribe at Codex's Processed commitment level (on Base, the flashblock preconfirmation the Base reference also reads); BNB Chain and Robinhood Chain at the default.
- Codex auth: the harness authenticates with an API key Codex supplied for this bench. Earlier figures read every chain from `graph.codex.io` with a token minted from a defined.fi web session, Base at the default commitment level.
Results: 6 providers ranked by Head lag (p50, 24h)
| № | Providers | p50 | p90 | p99 | First to report | Success |
|---|---|---|---|---|---|---|
| 1 | Serialized | 0.20 s | 0.38 s | 0.57 s | 44.1% | 99.87% (n=34514) |
| 2 | Codex | 0.20 s | 0.33 s | 0.42 s | 46.2% | 99.86% (n=34513) |
| 3 | Mobula | 0.25 s | 0.46 s | 0.84 s | 9.53% | 99.87% (n=34515) |
| 4 | OKX | 0.75 s | 1.0 s | 1.3 s | 0.22% | 99.87% (n=25885) |
| 5 | Birdeye | 1.7 s | 2.3 s | 3.1 s | 0.044% | 96.42% (n=24991) |
| 6 | GeckoTerminal | 20 s | 1.1 min | 1.8 min | 0% | 91.01% (n=31453) |
Frequently asked
Which crypto data API has the lowest latency right now?
It depends on the chain, because each chain's base block cadence sets a different floor. On Solana the leader is Codex at <0.01 s (p50, 24 h). On Base it's Codex at 0.06 s. On BNB Chain it's Codex at 0.05 s. On Robinhood Chain it's Serialized at 0.66 s. Pick a provider based on the chain you are integrating, not a cross-chain average.
What is head lag in a crypto data feed?
Head lag is the wall-clock interval between a transaction landing in a confirmed block on chain and the same transaction appearing on the data provider's feed. A provider with 200 ms head lag pushes the event a fifth of a second after it settled; a provider with 6 s head lag pushes it after six seconds. The number controls how live a trading UI, a chart or a PnL tracker actually feels when the underlying chain moves.
Is WebSocket faster than REST for crypto market data?
Yes, structurally. A WebSocket connection pushes events the moment the provider's indexer has them, so latency tracks the publisher's indexer speed and the network path. REST polling adds the poll interval to every read: a one-second poll cadence puts a floor of one second on top of whatever the indexer adds. The leaderboard shows the difference live, with Mobula on a WebSocket feed, Codex on GraphQL subscriptions and GeckoTerminal on REST.
How fast does GeckoTerminal update prices?
GeckoTerminal currently sits at 20 s (p50, 24 h) head lag on this benchmark. REST endpoints update at the publisher's chosen cadence rather than the moment a swap lands, which is the architectural reason REST polling reads slower than WebSocket feeds for the same underlying chain data.
Why does the Solana leader show a lag near zero?
Because on Solana the ruler is the first feed to report the trade, not the chain. Solana's blockTime has one-second resolution and nothing on chain marks the millisecond a trade became observable, so measuring each provider against the timestamp it sends compared clock conventions: one provider's field was its own ingestion time (a constant 0.10 s), another's the blockTime (0.75 s on average). Against a common clock the two are 10 to 30 ms apart. The First to report view answers the question directly: the share of trades each feed delivered first. Our own node runs in the race and only wins on a small share of trades, which tells you these push feeds beat a plain RPC subscription; an absolute number needs a geyser-grade reference, which no RPC WebSocket we tested provides.
How is head lag measured on OpenChainBench?
On Base the harness holds two of the sequencer's preconfirmation sources in every region, the flashblock stream and a `pendingLogs` subscription on the sequencer node, and timestamps each transaction the first time it appears on either; on BNB Chain it holds a node subscription and matches every provider emission to it by transaction hash; on Solana and Robinhood Chain it uses canonical-tip archive nodes. Every swap is timestamped with millisecond precision. The harness then watches each provider's feed for the same event and computes the delta. p50, p90 and p99 are aggregated over 24 hours via Prometheus `quantile_over_time`. Errors and dropouts are tracked separately as a presence ratio so a fast feed that disappears does not silently rank above a slower feed that stays up.
Which data provider should I pick for a real-time trading interface?
Read both the p50 and the p99 columns. p50 tells the typical experience, p99 tells the worst minute a user will see when a chain spikes or a region's path degrades. A 500 ms p50 with a 30 s p99 means most of the time the UI feels snappy and once per minute it stutters. The leaderboard splits both, plus the success rate column flags providers whose feed dropped during the measurement window.
Source code github.com/ChainBench/OpenChainBench/tree/main/harnesses/aggregator-head-lag