Skip to main content

Parameters

ParameterRequiredDescription
modelIdYesCanonical 32-byte ModelID.
intervalYesBucket size: 60, 300, 900, or 3600 seconds.
fromNoInclusive Unix timestamp for the first bucket.
limitNoMaximum number of chronological buckets, up to the service limit.

Response

Candles are derived only from swaps within their exact time bucket. The first trade sets the open, the final trade sets the close, and high and low are the maximum and minimum indexed execution prices.

Real-time charting

Poll the current interval while the page is visible. Merge updates by time instead of appending every response as a new candle. A candle’s timestamp is the start of its interval, not the arrival time of the API response. When switching intervals, request a fresh series rather than aggregating already rounded client data.