DexTrades
OHLCV candles for a token in a single pool (USD). Ascending by time.
Changed onget/v1/dextrades/{token}/candles
Request
- Base URLhttps://backend.swap.coffee
- Auth
- none
- or API key in header X-Api-Key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
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
Changes
- info
added the new optional
queryrequest parametercurrency
- info
- breaking
the response's body type changed from
arraytoobjectfor status - info
added the new optional
queryrequest parameterpool - info
added the optional property
to the response with the status - info
added the required property
to the response with the status
- breaking