Twelve Data Get Stocks
0.5积分/次
ae_twelvedata_get_stocks
浏览每日更新的可用股票代码列表,并可按交易所、国家、资产类型和标识符筛选。
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_stocks' \
--header "X-Api-Key: $AGENTEARTH_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"params": {}
}'- 请求方式
- 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"
}
}工具参数
未传入的可选参数将使用平台默认值。
| 参数 | 类型 | 必填 | 说明 | 默认值 |
|---|---|---|---|---|
cik | string | 否 | The CIK of an instrument for which data is requested | — |
isin | string | 否 | ISIN of the instrument. Use a real non-empty identifier; if this instrument is unavailable by ISIN, resolve its ticker symbol first. | — |
page | integer | 否 | Zero-based page index when outputsize is provided: 0 is the first page, 1 is the second page, and so on. Use page together with outputsize for pagination. For an exact single-symbol lookup, omit pagination unless needed. | 0 |
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. | — |
format | enum (JSON | CSV) | 否 | The format of the response data | JSON |
symbol | string | 否 | The ticker symbol of an instrument for which data is requested | — |
country | string | 否 | Filter by country name or alpha code, e.g., `United States` or `US` | — |
exchange | string | 否 | Filter by exchange name | — |
mic_code | string | 否 | Filter by market identifier code (MIC) under ISO 10383 standard | — |
delimiter | string | 否 | The separator used in the CSV response data | ; |
show_plan | boolean | 否 | Adds info on which plan symbol is available | false |
outputsize | integer | 否 | Number of records per page. Combine with page=0 for the first page, then page=1, page=2, etc. Page and outputsize are not mutually exclusive. If omitted, all matching available records may be returned. | — |
include_delisted | boolean | 否 | Include delisted identifiers | false |

