开发者
REST 接口、样例数据和字段说明。付费前可以先下载一天的样例数据自己验证。
快速开始
鉴权只有一个请求头 X-API-Key。所有时间是 UTC 毫秒,非有限数返回 null,每个带时间的响应都带 delay_s 和 as_of_ms。
curl -s -H "X-API-Key: $HL_KEY" "/v1/wall?coin=BTC&table=liq" | jq '.summary'
import requests
API = ""
H = {"X-API-Key": "hlk_..."} # 不带 Key 即为免费档
wall = requests.get(f"{API}/v1/wall", params={"coin": "BTC", "table": "liq"}, headers=H).json()
print(wall["as_of_ms"], wall["delay_s"], wall["summary"]["f3_long_nearest_big_px"])
hist = requests.get(f"{API}/v1/wall/history", params={"coin": "BTC", "step_s": 300}, headers=H).json()
# hist["notional"][时间序号][价位序号],单位美元样例数据
Parquet 加 gzip CSV,含字段说明和校验和,仅供评估加载中…
接口参考
加载中…
各套餐的接口限制
加载中…