Twelve Data Get EOD
0.5积分/次
ae_twelvedata_get_eod
获取金融工具在指定交易日的收盘价及相关日终数据,支持查询历史日期。
0.5积分/次
价格说明
0.5积分/次
| 条件 | 费用 |
|---|---|
| 每次调用 | 0.5积分/次 |
API 调用
通过统一工具网关发起同步请求,鉴权和计费由 AgentEarth 处理。
cURL
curl --request POST \
--url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_twelvedata_get_eod' \
--header "X-Api-Key: $AGENTEARTH_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"params": {
"symbol": "AAPL"
}
}'- 请求方式
- POST
- 接口地址
- /agent-api/v1/tool/execute
- 鉴权方式
- X-Api-Key
- 超时时间
- 60 秒
响应示例
{
"error_no": 0,
"error_msg": "",
"result": [
{
"type": "text",
"text": "xxx"
}
],
"platform_annotations": {
"source": "AgentEarth",
"platform_note": "xxx",
"platform_suggestion": "xxx"
}
}工具参数
未传入的可选参数将使用平台默认值。
| 参数 | 类型 | 必填 | 说明 | 默认值 |
|---|---|---|---|---|
dp | integer | 否 | Specifies the number of decimal places for floating values Should be in range [0,11] inclusive | 5 |
date | string | 否 | If not null, then return data from a specific date | — |
isin | string | 否 | ISIN of the instrument. Use a real non-empty identifier; if this instrument is unavailable by ISIN, resolve its ticker symbol first. | — |
type | enum (American Depositary Receipt | Bond | Bond Fund | Closed-end Fund | Common Stock | Depositary Receipt | Digital Currency | ETF | Exchange-Traded Note | Global Depositary Receipt | Limited Partnership | Mutual Fund | Physical Currency | Preferred Stock | REIT | Right | Structured Product | Trust | Unit | Warrant) | 否 | The asset class to which the instrument belongs | — |
cusip | string | 否 | CUSIP of the instrument. Use a real non-empty identifier; if this instrument is unavailable by CUSIP, resolve its ticker symbol first. | — |
symbol | string | 是 | Ticker symbol of the instrument, for example AAPL, EUR/USD or ETH/BTC. Use a real non-empty symbol; a supported ISIN or CUSIP may be used instead when this endpoint accepts it. | — |
country | string | 否 | Country where instrument is traded, e.g., `United States` or `US` | — |
exchange | string | 否 | Exchange where instrument is traded | — |
mic_code | string | 否 | Market Identifier Code (MIC) under ISO 10383 standard | — |

