Skip to content
Terminal

Where prices come from

Spot prices come from Coinbase public market data. The feed listens to public trades and builds candles from those trades. This feed does not use an account key.

How often a price is written

The latest price and the candle for the current minute are written every 2 seconds. Each candle covers 1 minute. A finished minute is the trades from that minute. A minute with no trades, when the feed could see the whole minute, is stored as a flat minute at the last trade price. That is a real reading of a quiet minute. It is not a filled-in gap.

When Kraken is used

If Coinbase sends nothing for 30 seconds, the feed uses Kraken public trades for the coins Kraken lists. When Coinbase has been sending messages again for 20 seconds, Coinbase is used for every coin and the Kraken connection closes.

A coin moves to Kraken only when Kraken's price is within 5% of Coinbase's last price from the past 10 minutes. If the two prices are farther apart, that coin has no live price until Coinbase returns. We do not blend the two prices.

Reference prices from CoinDesk Data

Alerts are checked on the feed above. The price on an alert comes from that feed too, and so does every price after it, on its receipts. Each number names the feed it came from.

Receipts on CoinDesk Data's reference index are built, opening after Terminal's CoinDesk Data key is in place.

What stale means

A live price carries a time. We treat a followed coin as stale when that time is older than 5 minutes. An alert check uses its own limit, which depends on the plan and can be shorter or longer. That limit is on the check interval page. A stale price is not used. The check does not fire on it.

When data is missing

A minute with no candle is unknown. We do not fill the gap with zero, and we do not copy an older price into that minute. On an alert, a missing price is shown as Last price unavailable. We do not put a zero in its place.

Candles are kept for 35 days. A new coin starts with 31 days of earlier candles. After that, older minutes are dropped. The feed follows the 100 Coinbase USD markets with the most trading, and any other coin on a watchlist or in an alert. A coin added that way is followed within about 5 minutes. A coin Coinbase does not list has no price here.

Updated .