riesgo-pais-argentina
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseRiesgo Pais Argentina
阿根廷国家风险
Consulta la serie historica y el ultimo dato de riesgo pais de Argentina.
查询阿根廷国家风险的历史数据及最新数值。
API Overview
API 概述
- Base URL:
https://anduin.ferminrp.workers.dev - Auth: None required
- Response format: JSON
- Endpoint principal:
/api/v1/indices/riesgo-pais - Timestamp de respuesta:
timestamp - Metadatos utiles: ,
data.cached,data.fetchedAtdata.totalRegistros
- 基础URL:
https://anduin.ferminrp.workers.dev - 认证:无需认证
- 响应格式:JSON
- 主端点:
/api/v1/indices/riesgo-pais - 响应时间戳:
timestamp - 实用元数据:,
data.cached,data.fetchedAtdata.totalRegistros
Endpoint
端点
GET /api/v1/indices/riesgo-pais
Ejemplos:
bash
curl -s "https://anduin.ferminrp.workers.dev/api/v1/indices/riesgo-pais" | jq '.'
curl -s "https://anduin.ferminrp.workers.dev/api/v1/indices/riesgo-pais" | jq '.data.datos[-1]'
curl -s "https://anduin.ferminrp.workers.dev/api/v1/indices/riesgo-pais" | jq '.data.datos | map(select(.fecha >= "2025-01-01" and .fecha <= "2025-12-31"))'GET /api/v1/indices/riesgo-pais
示例:
bash
curl -s "https://anduin.ferminrp.workers.dev/api/v1/indices/riesgo-pais" | jq '.'
curl -s "https://anduin.ferminrp.workers.dev/api/v1/indices/riesgo-pais" | jq '.data.datos[-1]'
curl -s "https://anduin.ferminrp.workers.dev/api/v1/indices/riesgo-pais" | 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)riesgo-pais - (array de
datos){ fecha, valor } - (int)
totalRegistros - (ISO datetime)
fetchedAt - (bool)
cached
- 顶层字段:
- (布尔值)
success - (ISO格式日期时间)
timestamp
- 字段:
data- (预期值:
slug)riesgo-pais - (包含
datos的数组){ fecha, valor } - (整数)
totalRegistros - (ISO格式日期时间)
fetchedAt - (布尔值)
cached
Workflow
工作流程
- Detectar intencion del usuario (ultimo dato, rango, serie completa o comparacion simple).
- Llamar endpoint con .
curl -s - Validar y existencia de
success == true.data.datos - Si pide periodo, filtrar localmente con por
jq.fecha - Responder primero con snapshot:
- Ultimo
valor - del ultimo registro
fecha - o
timestampfetchedAt
- Ultimo
- Luego mostrar detalle breve en tabla () segun pedido.
fecha | 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:
- Reportar codigo HTTP y endpoint consultado.
- :
success: false- Mostrar si existe.
error.message
- Mostrar
- JSON invalido o inesperado:
- Mostrar salida minima cruda y advertir 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 riesgo pais
- Fecha del dato
- Cantidad de registros usados
- Para multiples filas:
- Tabla corta
fecha | valor
- Tabla corta
- Aclarar fuente y tiempo de actualizacion (o
timestamp).fetchedAt - No emitir asesoramiento financiero o economico; solo informar datos.
- 优先展示:
- 最新国家风险数值
- 数据对应的日期
- 使用的记录数量
- 多条数据时:
- 用简短表格展示
fecha | valor
- 用简短表格
- 说明数据来源及更新时间(或
timestamp)。fetchedAt - 不得提供金融或经济咨询;仅展示数据。
Out of Scope
超出范围
Esta skill no debe usar en v1:
- (listado general)
/api/v1/indices /api/v1/indices/inflacion-mensual/api/v1/indices/icl/api/v1/indices/uva- Cualquier endpoint fuera de
riesgo-pais
V1版本中本Skill不得使用以下内容:
- (通用列表)
/api/v1/indices /api/v1/indices/inflacion-mensual/api/v1/indices/icl/api/v1/indices/uva- 任何之外的端点
riesgo-pais