Historical Token Price Data

ยท

Access comprehensive historical pricing data for various cryptocurrencies and tokens across multiple blockchain networks.

Key Features

API Endpoint

GET https://web3.okx.com/api/v5/wallet/token/historical-price

Request Parameters

ParameterTypeRequiredDescription
chainIndexStringYesUnique blockchain identifier
tokenAddressStringNoToken contract address (leave blank for native coin)
limitStringNoRecords per query (default: 50, max: 200)
cursorStringNoPagination cursor
beginStringNoStart timestamp (milliseconds)
endStringNoEnd timestamp (milliseconds)
periodStringNoTime interval: 1m,5m,30m,1h,1d

Response Structure

FieldTypeDescription
pricesArrayHistorical price records
>timeStringMinute-aligned timestamp
>priceStringUSD price (18 decimal precision)
cursorStringPagination cursor

๐Ÿ‘‰ Explore our Web3 API documentation for implementation examples and advanced features.

Frequently Asked Questions

What time periods are available for historical data?

Our API supports minute, hourly, and daily granularity with custom date ranges.

How far back does the historical data go?

The database maintains comprehensive records for all supported assets since their respective blockchain launches.

Can I get prices for multiple tokens simultaneously?

Currently, each API call processes one token at a time for optimal performance.

Are there rate limits for historical data queries?

Standard API rate limits apply, with higher tiers available for enterprise users.

How frequently is the price data updated?

All price information refreshes in real-time with blockchain confirmations.

๐Ÿ‘‰ Discover our complete Web3 solutions including wallet APIs and developer tools.

Note: This documentation provides technical specifications only and doesn't constitute financial advice. Always verify token contract addresses before implementation.