Skip to main content
This guide takes you from an API key to live indicator values in four requests. It assumes you already have a key with the INDICATOR:ALL:READ scope and know the exchange and symbol of a security: the Platform API quickstart covers both.

1. Pick an indicator

List the built-in indicators. Each entry carries a short uid, a longer human-readable slug you can use in its place, and the latest published version:

2. Read its parameters

The indicator details list the parameter IDs the values endpoint accepts as param.<id>, with their types, defaults and ranges, and the output IDs that key the computed values:

3. Compute values

Ask for the SMA of the 5-minute Binance BTC/USDT candles with a length of 20. Only exchange, symbol, and timeframe are required. Without a range, the endpoint returns the last 1,000 bars — use limit to narrow the window:
The response echoes the resolved parameters in meta.params, so you can see which defaults filled the gaps, and returns one bar per candle with the values keyed by output ID:
The last bar has "closed": false: it is still forming and its value will change until the bar closes. A bar inside an indicator’s warm-up period has no value for that output, and the key is absent from values rather than null. Pin the version for anything that runs unattended (for example, version=9). Without it the latest published version runs, and a new version may change the outputs.

4. Subscribe to live values

Open a WebSocket connection with the same subscription parameters in the query string and the key in the handshake header. replay sets how many latest bars the snapshot carries:
The server sends three kinds of frames and the client sends nothing after the handshake. First comes an info frame (the resolved subscription in the same shape as meta above), followed by one snapshot frame with the last replay bars, and then an update frame for every change to the forming bar and every new bar:
An update whose timestamp matches an existing bar replaces that bar — update it in place instead of appending. The seq field numbers the data frames within a single connection, starting at 1 with the snapshot. After a reconnect the new snapshot replaces whatever you hold; a longer gap is filled from the values endpoint. A stream that ends with an error frame is over, and the socket closes right after it. Reconnect with exponential backoff, waiting at least retryAfter seconds when the frame carries it. The frame shapes and the query parameters are on the Live indicator stream page.

Next steps

  • The Indicators API overview lists every endpoint, the window parameters, what each request costs, and the error codes.
  • Before you scale up, read Credits and limits: indicators spend the same REST and stream quotas as market data.