Skip to main content
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

X-API-Key
string
header
required

Query Parameters

symbol
string
default:700.HK
required

Trading symbol

Example:

"700.HK"

interval
enum<string>
default:1h
required

K-line interval

Available options:
1m,
5m,
15m,
30m,
1h,
2h,
4h,
1d,
1w,
1M
Example:

"1h"

limit
integer

Number of records (default 100, max 1000)

Required range: 1 <= x <= 1000
Example:

100

start_time
integer

Start timestamp in milliseconds

Example:

1703123456789

end_time
integer

End timestamp in milliseconds

Example:

1703209856789

type
enum<string>

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"

Response

200 - application/json

Successful response

code
integer
Example:

0

message
string
Example:

"success"

data
object