v1

latestOpenAPI 3.0.42026-07-26432241.7 KB
Tokens

Get the latest candlestick data for token by id

get/tokens/prices/latest/{tokenId}

Path parameters

tokenIdstring required
Example:0.0.731861

Token id (shard.realm.num)

Query parameters

interval'FIVEMIN' | 'HOUR' | 'DAY' | 'WEEK' required
Example:HOUR

Data interval

Headers

x-api-keystring required

API key for authentication. The demo api key provided is globally rate limited. Do not use in production.

Response

Successful response

tokenIdstring required

Token id (shard.realm.num)

openinteger required

The open price of the token in tinybars (i.e. first minutely observation over the INTERVAL)

openUsdnumber float required

The open price of the token in USD (i.e. first minutely observation over the INTERVAL)

highinteger required

The high price of the token over the INTERVAL, in tinybars

highUsdnumber float required

The high price of the token over the INTERVAL, in USD

lowinteger required

The low price of the token over the INTERVAL, in tinybars

lowUsdnumber float required

The low price of the token over the INTERVAL, in USD

closeinteger required

The close price of the token over the INTERVAL, in tinybars

closeUsdnumber float required

The close price of the token over the INTERVAL, in USD

avgnumber float required

The (minutely) avg price of the token over the INTERVAL, in tinybars

avgUsdnumber float required

The (minutely) avg price of the token over the INTERVAL, in USD

volumestring required

The sum of total volume traded of the token over the INTERVAL, in tinybars

liquiditystring required

The point in time liquidity of the token, as of timestampSeconds (the end timestamp of the INTERVAL), in tinybars

volumeUsdnumber float required

The sum of total volume traded of the token over the INTERVAL, in USD

{"stackTrail":"components:schemas:TokenCandlestickData:properties:liquidityUsd","oasType":"schema","type":"unknown","description":"The point in time liquidity of the token, as of timestampSeconds (the end timestamp of the INTERVAL), in USD","example":2784930.18}
timestampSecondsinteger required

The end unix timestamp of the INTERVAL, in seconds

startTimestampSecondsinteger required

The start unix timestamp of the INTERVAL, in seconds

Example response

[
  {
    "tokenId": "0.0.731861",
    "open": 36358807,
    "openUsd": 0.017246927356274498,
    "high": 36370090,
    "highUsd": 0.017248478665373164,
    "low": 36334867,
    "lowUsd": 0.0169388611613325,
    "close": 36353193,
    "closeUsd": 0.0169388611613325,
    "avg": 36347000.92028988,
    "avgUsd": 0.017085609229304164,
    "volume": "4484168318250",
    "liquidity": "5976854242691456",
    "volumeUsd": 2110.33,
    "liquidityUsd": 2784930.18,
    "timestampSeconds": 1697681880,
    "startTimestampSeconds": 1697673600
  }
]