End-of-day stock prices by ticker — OHLCV, 70+ exchanges
eodhd.eodDaily OHLCV for a symbol across 70+ global exchanges — symbol carries the exchange suffix (AAPL.US, BMW.XETRA)
- 价格
- 价格待定按供应商原价
- 成功率
- —暂无成功率数据暂无成功率数据
- 延迟 p50
- ——
- 最后验证
- 2026年8月15日实测可用
GEThttps://toolswitch.dev/v1/tools/eodhd.eod?fmt=json&from=2026-08-10&symbol=AAPL.US预览在线试用即将上线供应商文档 ↗
- 可用平台额度调用
- 同步返回
- 读取公开数据
参数
| 参数 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| 查询参数 | ||||
to | 字符串 | 可选 | ||
fmt | 字符串 | 必填 | json — the API defaults to CSV without it | json |
from | 字符串 | 可选 | YYYY-MM-DD | 2026-08-10 |
period | 字符串 | 可选 | d | w | m | |
symbol | 字符串 | 必填 | path parameter — TICKER.EXCHANGE | AAPL.US |
- 查询参数
to字符串可选fmt字符串必填json — the API defaults to CSV without it
示例:
jsonfrom字符串可选YYYY-MM-DD
示例:
2026-08-10period字符串可选d | w | m
symbol字符串必填path parameter — TICKER.EXCHANGE
示例:
AAPL.US
代码示例
将 $TOOLSWITCH_KEY 替换为你在控制台创建的密钥。
预览
curl -X GET 'https://toolswitch.dev/v1/tools/eodhd.eod?fmt=json&from=2026-08-10&symbol=AAPL.US' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/eodhd.eod?fmt=json&from=2026-08-10&symbol=AAPL.US",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/eodhd.eod?fmt=json&from=2026-08-10&symbol=AAPL.US", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());网关接口为预览版,地址与鉴权方式可能调整。 示例参数仅为样例数据。