POST
/
api
/
v1
/
developer
/
prices
/
stats
curl --request POST \
  --url https://api.allium.so/api/v1/developer/prices/stats \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '[
  {
    "chain": "string",
    "token_address": "string"
  }
]'
{
  "items": [
    {
      "mint": "<string>",
      "chain": "<string>",
      "timestamp": "2023-11-07T05:31:56Z",
      "low_all_time": 123,
      "high_all_time": 123,
      "latest_price": 123,
      "low_24h": 123,
      "high_24h": 123,
      "low_1h": 123,
      "high_1h": 123,
      "volume_1h": 123,
      "volume_24h": 123,
      "percent_change_24h": 123,
      "percent_change_1h": 123
    }
  ],
  "cursor": "<string>"
}

This endpoint returns token prices stats based on onchain activity. Those stats are calculated from our onchain dex based prices.

StatTime window
High/lowAll time, 24h, 1h
% price change24h, 1h
Volume24h, 1h

Note:

  • Price high/low and price changes are calculated from the filtered prices to avoid outlying trade producing inaccurate values.
  • Volume stats are calculated from all trades (no filtering) to reflect the total volume on the tracked protocols.
  • Volume is calculated from onchain activity only. Centralized exchange trading volume is not included.

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[]

List of token addresses to get stats for.

Response

200
application/json

Successful Response

The response is of type object.