Access comprehensive historical pricing data for various cryptocurrencies and tokens across multiple blockchain networks.
Key Features
- Multi-chain support: Track historical prices for native coins and tokens across different blockchains.
Bitcoin ecosystem coverage: Includes specialized tracking for:
- BRC-20 tokens
- Runes protocols
- ARC-20 assets
- SRC-20 tokens
- Extended Bitcoin support: Fractal Bitcoin chain BRC-20 token price history.
API Endpoint
GET https://web3.okx.com/api/v5/wallet/token/historical-priceRequest Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
chainIndex | String | Yes | Unique blockchain identifier |
tokenAddress | String | No | Token contract address (leave blank for native coin) |
limit | String | No | Records per query (default: 50, max: 200) |
cursor | String | No | Pagination cursor |
begin | String | No | Start timestamp (milliseconds) |
end | String | No | End timestamp (milliseconds) |
period | String | No | Time interval: 1m,5m,30m,1h,1d |
Response Structure
| Field | Type | Description |
|---|---|---|
prices | Array | Historical price records |
>time | String | Minute-aligned timestamp |
>price | String | USD price (18 decimal precision) |
cursor | String | Pagination 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.