获取 API Key
访问 quantdash.net 注册账户,在控制台创建 API Key。API 地址
接入方式
Python SDK
推荐方式,5 分钟上手
Rest API
任意语言直接调用
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
3 分钟接入 QuantDash 数据 API
https://api.quantdash.net
from quantdash import QuantDash
qd = QuantDash(api_key="your-api-key")
# 获取贵州茅台日K线
df = qd.klines.get("600519.SH", period="1d", count=10, to_dataframe=True)
print(df[["trade_date", "close", "volume"]])
# 获取全部 A 股实时行情
df = qd.quotes.get(universes=["CN_Stock"], to_dataframe=True)
print(f"共 {len(df)} 只标的")