POST
/
api
/
v1
/
developer
/
prices
/
latest
curl --request POST \
  --url https://api.allium.so/api/v1/developer/prices/latest \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '[
  {
    "chain": "string",
    "token_address": "string"
  }
]'
{
  "items": [
    {
      "timestamp": "2023-11-07T05:31:56Z",
      "chain": "<string>",
      "mint": "<string>",
      "decimals": 123,
      "price": 123,
      "open": 123,
      "high": 123,
      "close": 123,
      "low": 123,
      "volume": 123,
      "trade_count": 123
    }
  ],
  "cursor": "<string>"
}

This endpoint returns the latest price and OHLC values for a list of tokens. Prices and OHLC values are aggregated from trades in the most recent completed minute interval. If no trades occurred in the last minute, the endpoint returns the most recent available data.

For inactive tokens, the last known price is derived from the most recent on-chain trade. If no trade has occurred within the past 7 days, the endpoint will return no data for that token. We recommend looking at the timestamp included in the response, which corresponds to the last trade time.

Pagination:

This endpoint returns prices for up to 200 tokens in a single request.

Supported Chains

Authorizations

X-API-KEY
string
header
required

Body

application/json · PayloadTokenAddress · object[]

The body is of type PayloadTokenAddress · object[].

Response

200
application/json

Successful Response

The response is of type object.