Finnhub Stock Usa Spending
0.5积分/次
ae_finnhub_stock_usa_spending
查询 USASpending 数据集中与美国上市公司有关的政府支出活动,可用于了解公司获得政府合同的情况,适合国防、航空航天、教育等行业的相关研究。API 仅提供近期数据。填写公司的股票代码以及 YYYY-MM-DD 格式的起止日期;日期按 actionDate 筛选。
0.5积分/次
价格说明
0.5积分/次
| 条件 | 费用 |
|---|---|
| 每次调用 | 0.5积分/次 |
API 调用
通过统一工具网关发起同步请求,鉴权和计费由 AgentEarth 处理。
cURL
curl --request POST \
--url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_finnhub_stock_usa_spending' \
--header "X-Api-Key: $AGENTEARTH_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"params": {
"to": "xxx",
"from": "xxx",
"symbol": "xxx"
}
}'- 请求方式
- 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"
}
}工具参数
未传入的可选参数将使用平台默认值。
| 参数 | 类型 | 必填 | 说明 | 默认值 |
|---|---|---|---|---|
to | string | 是 | To date <code>YYYY-MM-DD</code>. Filter for <code>actionDate</code> | — |
from | string | 是 | From date <code>YYYY-MM-DD</code>. Filter for <code>actionDate</code> | — |
symbol | string | 是 | 必填。填写要查询的美国上市公司的股票代码(symbol),不要填写公司名称、URL 或占位符。若尚未确定代码,先通过股票代码查询确认,不要猜测。 | — |

