K-line (Candlestick) Data
Market Data APIs
Historical K-Line
Get historical K-line data for completed time periods.
GET
K-line (Candlestick) Data
Notes
- This endpoint returns historical K-line data for completed periods, data is fixed and will not change
- Suitable for strategy backtesting, technical indicator calculation, and data archiving
- For real-time K-line data in the current period, use Real-time K-Line:
/v1/market/kline/latest
Supported Markets
Forex, Metals, Indices, US Stocks, HK Stocks, A-Shares, China Futures, Crypto Examples:- Forex: EURUSD, GBPUSD, USDJPY
- Metals: XAUUSD, XAGUSD
- Indices: SPX, NDX, DJI
- US Stocks: AAPL.US, TSLA.US, MSFT.US
- HK Stocks: 700.HK, 9988.HK, 3690.HK
- A-Shares: 600519.SH, 000001.SZ, 920186.BJ
- China Futures: BU2609, IC2606, AP8888
- Crypto: BTCUSDT, ETHUSDT, ADAUSDT
Request Parameters
Response Fields
Authorizations
Query Parameters
Trading symbol
Example:
"700.HK"
K-line interval
Available options:
1m, 5m, 15m, 30m, 1h, 2h, 4h, 1d, 1w, 1M Example:
"1h"
Number of records (default 100, max 1000)
Required range:
1 <= x <= 1000Example:
100
Start timestamp in milliseconds
Example:
1703123456789
End timestamp in milliseconds
Example:
1703209856789
Symbol type, optional. Not required when the symbol is unambiguous; if the API returns an AMBIGUOUS_SYMBOL error, pass the value as indicated
Available options:
stock, indices, crypto, forex, futures Example:
"stock"
