agentsclimarketplace

Economic us economic by type

Skill FTShare-Lab/FTShare-skills/ftshare-market-data/sub-skills/economic-us-economic-by-type

Get US economic indicator time series by type (美国经济指标按类型查询). Use when user asks about 美国 ISM, 美国非农, 美国 CPI/PPI, 美国失业率, 美国贸易帐, 美国新屋开工, 美国成屋销售, 美国耐用品订单, 美国咨商会信心指数, 美国 GDP 年率, 美国联邦基金利率, US economic data.From its SKILL.md

Install
npx -y skills add FTShare-Lab/FTShare-skills --skill economic-us-economic-by-type

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

SKILL.md

3.7 KB, ~1.2k tokens by cl100k_base, as published. Nobody here has run it

美国经济指标 - 按类型查询

1. 接口描述

项目说明
接口名称按类型查询美国经济指标(统一接口)
外部接口GET /api/v1/market/data/economic/us-economic
请求方式GET
适用场景通过参数 type 指定指标类型,获取对应美国经济指标的时间序列(时间、前值、现值、发布日期);支持 16 类指标

2. 请求参数

说明:type 为必填项,指定要查询的指标类型。

参数名类型是否必填描述取值示例备注
typestring是指标类型ism-manufacturing见下方「type 取值列表」

type 取值列表

type 值说明单位/备注
ism-manufacturing美国 ISM 制造业指数百分比
ism-non-manufacturing美国 ISM 非制造业指数百分比
nonfarm-payroll美国非农就业人数变化万人(接口已换算)
trade-balance美国贸易帐亿美元(接口已换算)
unemployment-rate美国失业率百分比
ppi-mom美国生产者物价指数月率百分比
cpi-mom美国消费者物价指数月率百分比
cpi-yoy美国消费者物价指数年率百分比
core-cpi-mom美国核心消费者物价指数月率百分比
core-cpi-yoy美国核心消费者物价指数年率百分比
housing-starts美国新屋开工万户(接口已换算)
existing-home-sales美国成屋销售万套
durable-goods-orders-mom美国耐用品订单月率百分比
cb-consumer-confidence美国咨商会消费者信心指数无单位
gdp-yoy-preliminary美国 GDP 年率初值百分比;季度数据,时间为「YYYY年第N季度」
fed-funds-rate-upper美国央行公布利率决议(上限)百分比

3. 用法

从用户问题中识别要查的美国经济指标类型,对应到上表 type 值,执行:

python script/handler.py --type <type值>

示例:

python script/handler.py --type ism-manufacturing
python script/handler.py --type nonfarm-payroll
python script/handler.py --type cpi-mom
python script/handler.py --type fed-funds-rate-upper

脚本输出 JSON 数组,按时间倒序,每项含 month(或季度格式)、prev_value、current_value、release_date,以表格展示给用户。

4. 响应说明

返回值为该指标的时间序列数组,按时间倒序。

单条记录结构(UsEconomicItem)

字段名类型是否可为空说明单位
monthString否时间;月度为「YYYY年MM月」,季度(如 GDP)为「YYYY年第N季度」-
prev_valueNumber/String是上一期数值见各 type 说明
current_valueNumber/String是当期数值,最新期可能为 null见各 type 说明
release_dateString否发布日期,YYYY-MM-DD-

说明:部分指标为季度(如 gdp-yoy-preliminary),其余为月度。

5. 请求示例

GET /api/v1/market/data/economic/us-economic?type=ism-manufacturing

6. 注意事项

  • 必须传入合法的 type,否则接口可能报错或返回空。
  • 数组按时间倒序,最新在前;数值单位见各 type 说明。

What ships with it: 1 file

2.0 KB alongside SKILL.md, 1 of them executable

scripts/

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.