Skip to main content
GET
K-line (Candlestick) Data

注意事项

  • 本接口返回已结束周期的历史K线数据,数据已固定不会变化
  • 适用于策略回测、技术指标计算、数据归档存储
  • 若需获取当前周期内正在更新的K线,请使用实时K线:/v1/market/kline/latest

支持的市场

外汇贵金属指数美股港股A股中国期货加密货币 示例:
  • 外汇:EURUSD、GBPUSD、USDJPY
  • 贵金属:XAUUSD、XAGUSD
  • 指数:SPX、NDX、DJI
  • 美股:AAPL.US、TSLA.US、MSFT.US
  • 港股:700.HK、9988.HK、3690.HK
  • A股:600519.SH、000001.SZ、920186.BJ
  • 中国期货:BU2609、IC2606、AP8888
  • 加密货币:BTCUSDT、ETHUSDT、ADAUSDT

请求参数

返回字段说明

授权

X-API-Key
string
header
必填

查询参数

symbol
string
默认值:700.HK
必填

Trading symbol

示例:

"700.HK"

interval
enum<string>
默认值:1h
必填

K-line interval

可用选项:
1m,
5m,
15m,
30m,
1h,
2h,
4h,
1d,
1w,
1M
示例:

"1h"

limit
integer

Number of records (default 100, max 1000)

必填范围: 1 <= x <= 1000
示例:

100

start_time
integer

Start timestamp in milliseconds

示例:

1703123456789

end_time
integer

End timestamp in milliseconds

示例:

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

可用选项:
stock,
indices,
crypto,
forex,
futures
示例:

"stock"

响应

200 - application/json

Successful response

code
integer
示例:

0

message
string
示例:

"success"

data
object