inflacion-argentina-ipc
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseInflacion Argentina IPC
阿根廷通胀IPC查询
Consulta la serie historica y el ultimo dato de inflacion mensual (IPC) en Argentina.
查询阿根廷的月度通胀(IPC)历史数据序列及最新数据。
API Overview
API概述
- Base URL:
https://anduin.ferminrp.workers.dev - Auth: None required
- Response format: JSON
- Endpoint principal:
/api/v1/indices/inflacion-mensual - Timestamp de respuesta:
timestamp - Metadatos utiles: ,
data.cached,data.fetchedAtdata.totalRegistros
- 基础URL:
https://anduin.ferminrp.workers.dev - 认证: 无需认证
- 响应格式: JSON
- 主端点:
/api/v1/indices/inflacion-mensual - 响应时间戳:
timestamp - 实用元数据: ,
data.cached,data.fetchedAtdata.totalRegistros
Endpoint
端点
GET /api/v1/indices/inflacion-mensual
Ejemplos:
bash
curl -s "https://anduin.ferminrp.workers.dev/api/v1/indices/inflacion-mensual" | jq '.'
curl -s "https://anduin.ferminrp.workers.dev/api/v1/indices/inflacion-mensual" | jq '.data.datos[-1]'
curl -s "https://anduin.ferminrp.workers.dev/api/v1/indices/inflacion-mensual" | jq '.data.datos | map(select(.fecha >= "2025-01-01" and .fecha <= "2025-12-31"))'GET /api/v1/indices/inflacion-mensual
示例:
bash
curl -s "https://anduin.ferminrp.workers.dev/api/v1/indices/inflacion-mensual" | jq '.'
curl -s "https://anduin.ferminrp.workers.dev/api/v1/indices/inflacion-mensual" | jq '.data.datos[-1]'
curl -s "https://anduin.ferminrp.workers.dev/api/v1/indices/inflacion-mensual" | jq '.data.datos | map(select(.fecha >= "2025-01-01" and .fecha <= "2025-12-31"))'Campos clave
关键字段
- Top-level:
- (bool)
success - (ISO datetime)
timestamp
- :
data- (esperado:
slug)inflacion-mensual - (array de
datos){ fecha, valor } - (int)
totalRegistros - (ISO datetime)
fetchedAt - (bool)
cached
- 顶层字段:
- (布尔值)
success - (ISO格式日期时间)
timestamp
- 字段:
data- (预期值:
slug)inflacion-mensual - (包含
datos的数组){ fecha, valor } - (整数)
totalRegistros - (ISO格式日期时间)
fetchedAt - (布尔值)
cached
Workflow
工作流程
- Detectar intencion del usuario (ultimo dato, rango, serie completa o comparacion simple).
- Llamar el endpoint con .
curl -s - Validar y existencia de
success == true.data.datos - Si el usuario pide periodo, filtrar localmente con por
jq.fecha - Responder primero con snapshot:
- Ultimo
valor - del ultimo registro
fecha - o
timestampfetchedAt
- Ultimo
- Luego mostrar detalle tabular corto (,
fecha) segun el pedido.valor - Mantener respuesta descriptiva, sin recomendaciones financieras.
- 识别用户意图(最新数据、时间范围、完整序列或简单对比)。
- 使用调用端点。
curl -s - 验证且
success == true存在。data.datos - 如果用户请求时间段,使用基于
jq本地过滤数据。fecha - 首先返回快照信息:
- 最新的值
valor - 最新记录的
fecha - 或
timestampfetchedAt
- 最新的
- 然后根据请求显示简短的表格详情(,
fecha)。valor - 保持回复描述性,不提供金融建议。
Error Handling
错误处理
- HTTP no exitoso:
- Informar codigo HTTP y endpoint consultado.
- :
success: false- Mostrar si existe.
error.message
- Mostrar
- JSON invalido o inesperado:
- Mostrar salida minima cruda y aclarar inconsistencia.
- Red o timeout:
- Reintentar hasta 2 veces con espera corta.
- Serie vacia:
- Informar "sin datos disponibles actualmente".
- HTTP请求失败:
- 告知HTTP状态码及所查询的端点。
- :
success: false- 如果存在则显示该信息。
error.message
- 如果存在
- JSON无效或不符合预期:
- 显示最基础的原始输出,并说明数据存在不一致。
- 网络问题或超时:
- 最多重试2次,间隔短时间等待。
- 数据序列为空:
- 告知“当前无可用数据”。
Presenting Results
结果展示
- Priorizar:
- Ultimo dato de IPC mensual
- Fecha del dato
- Cantidad de registros considerados
- Si hay multiples filas, usar tabla breve:
fecha | valor
- Aclarar fuente y tiempo de actualizacion (o
timestamp).fetchedAt - No emitir asesoramiento financiero o economico; solo informar datos.
- 优先展示:
- 最新月度IPC数据
- 数据对应的日期
- 涉及的记录数量
- 如果有多行数据,使用简洁表格:
fecha | valor
- 说明数据来源及更新时间(或
timestamp)。fetchedAt - 不提供金融或经济咨询;仅提供数据。
Out of Scope
超出范围
Esta skill no debe usar en v1:
- (listado general)
/api/v1/indices /api/v1/indices/riesgo-pais/api/v1/indices/icl/api/v1/indices/uva- Cualquier endpoint fuera de
inflacion-mensual
本技能v1版本不使用以下内容:
- (通用列表)
/api/v1/indices /api/v1/indices/riesgo-pais/api/v1/indices/icl/api/v1/indices/uva- 任何之外的端点
inflacion-mensual