riesgo-pais-argentina

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Riesgo 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.fetchedAt
    ,
    data.totalRegistros
  • 基础URL
    https://anduin.ferminrp.workers.dev
  • 认证:无需认证
  • 响应格式:JSON
  • 主端点
    /api/v1/indices/riesgo-pais
  • 响应时间戳
    timestamp
  • 实用元数据
    data.cached
    ,
    data.fetchedAt
    ,
    data.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:
    • success
      (bool)
    • timestamp
      (ISO datetime)
  • data
    :
    • slug
      (esperado:
      riesgo-pais
      )
    • datos
      (array de
      { fecha, valor }
      )
    • totalRegistros
      (int)
    • fetchedAt
      (ISO datetime)
    • cached
      (bool)
  • 顶层字段:
    • success
      (布尔值)
    • timestamp
      (ISO格式日期时间)
  • data
    字段:
    • slug
      (预期值:
      riesgo-pais
    • datos
      (包含
      { fecha, valor }
      的数组)
    • totalRegistros
      (整数)
    • fetchedAt
      (ISO格式日期时间)
    • cached
      (布尔值)

Workflow

工作流程

  1. Detectar intencion del usuario (ultimo dato, rango, serie completa o comparacion simple).
  2. Llamar endpoint con
    curl -s
    .
  3. Validar
    success == true
    y existencia de
    data.datos
    .
  4. Si pide periodo, filtrar localmente con
    jq
    por
    fecha
    .
  5. Responder primero con snapshot:
    • Ultimo
      valor
    • fecha
      del ultimo registro
    • timestamp
      o
      fetchedAt
  6. Luego mostrar detalle breve en tabla (
    fecha | valor
    ) segun pedido.
  7. Mantener respuesta descriptiva, sin recomendaciones financieras.
  1. 识别用户意图(最新数据、时间范围、完整历史数据或简单对比)。
  2. 使用
    curl -s
    调用端点。
  3. 验证
    success == true
    data.datos
    存在。
  4. 若用户查询时间段,使用
    jq
    根据
    fecha
    本地过滤数据。
  5. 先返回概览信息:
    • 最新
      valor
      (数值)
    • 最新记录的
      fecha
      (日期)
    • timestamp
      fetchedAt
  6. 随后根据用户请求以表格形式展示简要详情(
    fecha | valor
    )。
  7. 回复需描述性强,不得提供金融建议。

Error Handling

错误处理

  • HTTP no exitoso:
    • Reportar codigo HTTP y endpoint consultado.
  • success: false
    :
    • Mostrar
      error.message
      si existe.
  • 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
  • Aclarar fuente y tiempo de actualizacion (
    timestamp
    o
    fetchedAt
    ).
  • No emitir asesoramiento financiero o economico; solo informar datos.
  • 优先展示:
    • 最新国家风险数值
    • 数据对应的日期
    • 使用的记录数量
  • 多条数据时:
    • 用简短表格
      fecha | valor
      展示
  • 说明数据来源及更新时间(
    timestamp
    fetchedAt
    )。
  • 不得提供金融或经济咨询;仅展示数据。

Out of Scope

超出范围

Esta skill no debe usar en v1:
  • /api/v1/indices
    (listado general)
  • /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
    之外的端点