Base asset symbol (e.g. BTC)
Quote asset symbol (e.g. USD)
The unix timestamp in seconds to retrieve historical price data. This endpoint will return the first update whose timestamp is <= the provided value.
If not provided, returns the latest available price.
1_647_820_800: Returns price data from March 21, 2022 00:00:00 UTCnull: Returns the most recent price updateNOTE: This only works for median aggregation
Time interval for aggregated price data. Different intervals affect how price data is aggregated and can be used to get OHLC (Open/High/Low/Close) data at various timeframes.
100ms: 100 milliseconds - High frequency trading1s: 1 second - Real-time trading5s: 5 seconds - Short-term price movements1min: 1 minute - Intraday trading15min: 15 minutes - Medium-term analysis1h: 1 hour - Daily trading patterns2h: 2 hours (default) - Extended market analysis1d: 1 day - Long-term trends1w: 1 week - Strategic market overview100ms, 1s, 5s, 10s, 1min, 5min, 15min, 1h, 2h, 1d, 1w Enable price routing through intermediate pairs. When true, if a direct price for the requested pair is not available, the system will attempt to calculate it using intermediate pairs.
For BTC/EUR when routing is enabled:
Default: true
Method used to aggregate prices from multiple sources.
median: Middle value (default, more manipulation resistant)mean: Average of all valuestwap: Time-Weighted Average Pricemedian, twap Type of market entry to retrieve
spot: Spot market prices (default)perp: Perpetual futures pricesfuture: Fixed-expiry futures pricesspot, perp, future Expiry date for future contracts in ISO 8601 format.
Only applicable when entry_type is "future".
"2024-12-31": December 31, 2024 expirynull: Not applicable for spot/perp marketsInclude source components in the response. When true, the response will include price data from individual sources.
true: Include source breakdown in responsefalse: Return aggregated data only (default)