关于 inflacion-argentina-ipc
此技能用于查询阿根廷月度 IPC 通胀数据,适合需要查看最新值、历史序列或指定日期范围的人。它通过单一 API 端点获取数据,并指导验证、筛选和呈现结果,不提供金融建议。
主要功能
- 01查询最新月度 IPC 数据
- 02获取完整历史序列
- 03按日期范围筛选记录
- 04检查响应状态与更新时间
- 05以简表呈现数据
适用场景
- 01查看阿根廷最新月度通胀值
- 02提取指定期间的 IPC 记录
- 03浏览完整历史数据序列
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ ferminrp/ agent-skills --skill inflacion-argentina-ipc安装后在 Claude Code 中输入/inflacion-argentina-ipc确认已加载。
详细介绍
阿根廷通胀 IPC
查询阿根廷月度通胀(IPC)的历史序列和最新数据。
API 概览
- Base URL:
https://anduin.ferminrp.com - Auth:无需认证
- Response format:JSON
- 主要端点:
/api/v1/indices/inflacion-mensual - 响应时间戳:
timestamp - 实用元数据:
data.cached、data.fetchedAt、data.totalRegistros
端点
GET /api/v1/indices/inflacion-mensual
示例:
curl -s "https://anduin.ferminrp.com/api/v1/indices/inflacion-mensual" | jq '.'
curl -s "https://anduin.ferminrp.com/api/v1/indices/inflacion-mensual" | jq '.data.datos[-1]'
curl -s "https://anduin.ferminrp.com/api/v1/indices/inflacion-mensual" | jq '.data.datos | map(select(.fecha >= "2025-01-01" and .fecha <= "2025-12-31"))'
关键字段
- 顶层:
success(bool)timestamp(ISO datetime)
data:slug(预期值:inflacion-mensual)datos({ fecha, valor }数组)totalRegistros(int)fetchedAt(ISO datetime)cached(bool)
工作流
- 判断用户意图(最新数据、时间范围、完整序列或简单比较)。
- 使用
curl -s调用端点。 - 验证
success == true且存在data.datos。 - 如果用户指定了时段,使用
jq按fecha在本地筛选。 - 首先提供快照:
- 最新的
valor - 最新记录的
fecha timestamp或fetchedAt
- 最新的
- 然后根据请求提供简短的表格详情(
fecha、valor)。 - 保持描述性,不提供金融建议。
错误处理
- HTTP 请求未成功:
- 告知 HTTP 状态码和查询的端点。
success: false:- 如果存在,显示
error.message。
- 如果存在,显示
- JSON 无效或格式异常:
- 显示最精简的原始输出,并说明存在不一致。
- 网络错误或超时:
- 短暂等待后最多重试 2 次。
- 序列为空:
- 告知“当前没有可用数据”。
结果呈现
- 优先提供:
- 最新月度 IPC 数据
- 数据日期
- 纳入统计的记录数
- 如果有多行,使用简短表格:
fecha | valor
- 说明数据来源和更新时间(
timestamp或fetchedAt)。 - 不提供金融或经济建议;仅报告数据。
范围之外
此技能在 v1 中不得使用:
/api/v1/indices(通用列表)/api/v1/indices/riesgo-pais/api/v1/indices/icl/api/v1/indices/uva- 除
inflacion-mensual以外的任何端点
评论
支持 Markdown