us-fundamental

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

US Fundamental — 美股基础数据

US Fundamental — 美股基础数据

所有接口均为 V2 版本(
/api/v2/...
)。
所有接口均为 V2 版本(
/api/v2/...
)。

Curl Setup

Curl 配置

bash
BASE="http://43.167.234.49:3101"
AUTH=(-H "X-API-Key: 123456" -H "Content-Type: application/json")

bash
BASE="http://43.167.234.49:3101"
AUTH=(-H "X-API-Key: 123456" -H "Content-Type: application/json")

代码格式规则

代码格式规则

规则
日期格式
YYYYMMDD

规则
日期格式
YYYYMMDD

端点详情

端点详情

GET /api/v2/usstock/symbols — 美股列表

GET /api/v2/usstock/symbols — 美股列表

无参数。
无参数。

GET /api/v2/usstock/trade-cal — 美股交易日历

GET /api/v2/usstock/trade-cal — 美股交易日历

ParameterTypeRequiredDescription
startDate
stringNoYYYYMMDD
endDate
stringNoYYYYMMDD
limit
intNo1-10000 (默认 1000)

参数类型是否必填描述
startDate
stringYYYYMMDD
endDate
stringYYYYMMDD
limit
int1-10000 (默认 1000)

调用示例

调用示例

bash
undefined
bash
undefined

美股列表

美股列表

curl -sS "${AUTH[@]}" "$BASE/api/v2/usstock/symbols"
curl -sS "${AUTH[@]}" "$BASE/api/v2/usstock/symbols"

美股交易日历

美股交易日历

curl -sS "${AUTH[@]}" "$BASE/api/v2/usstock/trade-cal?startDate=20240101&endDate=20240630"

---
curl -sS "${AUTH[@]}" "$BASE/api/v2/usstock/trade-cal?startDate=20240101&endDate=20240630"

---

错误排查

错误排查

错误原因修复
400日期格式错误
YYYYMMDD
错误码原因修复方法
400日期格式错误使用
YYYYMMDD
格式