Get OHLC Data
Retrieve OHLC market data.
The last entry in the OHLC array is for the current, not-yet-committed timeframe, and will always be present, regardless of the value of since.
Returns up to 720 of the most recent entries (older data cannot be retrieved, regardless of the value of since).
Query Parameters
Asset pair to get data for
Controls whether response keys and asset identifier fields use Kraken's internal names or display names.
- Omitted (default): internal names are used. Asset keys use legacy
X/Z-prefixed format (XXBT,ZUSD). Pair keys use the internal format (XXBTZUSD). Asset identifier fields (base,quote,fee_volume_currency) also use internal names. assetVersion=1: display names are used. Asset keys become their canonical display names (BTC,USD). Pair keys become the slash-separated display format (BTC/USD). On/public/AssetPairs, thebase,quote, andfee_volume_currencyfields also switch to display names.
Only assetVersion=1 is currently supported. The altname and wsname fields are not affected by this parameter.
1 Time frame interval in minutes
1, 5, 15, 30, 60, 240, 1440, 10080, 21600 Return OHLC entries since the given timestamp (intended for incremental updates)
This parameter is required on requests for non-crypto pairs, i.e. use tokenized_asset for xstocks.
tokenized_asset