DexTrades

OHLCV candles for a token in a single pool (USD). Ascending by time.

Changed on
get/v1/dextrades/{token}/candles

Request

Path parameters

tokenstring required
Example:EQCl0S4xvoeGeFGijTzicSA8j6GiiugmJW5zxQbZTUntre-1

Query parameters

resolutioninteger required

Candle length in seconds

frominteger required

Unix timestamp in seconds

tointeger required

Unix timestamp in seconds

poolstring

Pool contract address; omitted — the primary pool is resolved by the backend

currency'usd' | 'ton'

Currency the OHLC values are expressed in. Candles are stored in the pool's own quote token and converted by a single rate per bucket, so the candle shape is identical in every currency.

Response

candles of the pool, ascending by time

poolstring

Pool the candles were computed for; absent — no pool found for the token

Changes

    • info

      added the new optional query request parameter currency

    • breaking

      the response's body type changed from array to object for status

    • info

      added the new optional query request parameter pool

    • info

      added the optional property to the response with the status

    • info

      added the required property to the response with the status