cotizacion-dolar-argentina

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Cotizacion Dolar Argentina

阿根廷美元汇率查询

Consulta cotizaciones de dolar y monedas para Argentina con DolarAPI.
使用DolarAPI查询阿根廷的美元及其他货币汇率。

API Overview

API概述

  • Base URL:
    https://dolarapi.com
  • Auth: None required
  • Response format: JSON
  • Fuente: DolarAPI endpoint publico
  • Timestamp:
    fechaActualizacion
    viene en ISO UTC, por ejemplo
    2026-02-17T13:59:00.000Z
  • 基础URL
    https://dolarapi.com
  • 授权:无需授权
  • 响应格式:JSON
  • 数据源:DolarAPI公开端点
  • 时间戳
    fechaActualizacion
    采用ISO UTC格式,例如
    2026-02-17T13:59:00.000Z

Endpoints

端点说明

Dolares (lista y por tipo)

美元(列表及按类型查询)

  • GET /v1/dolares
  • GET /v1/dolares/{tipoCotizacion}
Tipos admitidos para
{tipoCotizacion}
:
  • oficial
  • blue
  • bolsa
  • contadoconliqui
  • tarjeta
  • mayorista
  • cripto
Ejemplos:
bash
curl -s https://dolarapi.com/v1/dolares | jq '.'
curl -s https://dolarapi.com/v1/dolares/blue | jq '.'
  • GET /v1/dolares
  • GET /v1/dolares/{tipoCotizacion}
支持的
{tipoCotizacion}
类型:
  • oficial
  • blue
  • bolsa
  • contadoconliqui
  • tarjeta
  • mayorista
  • cripto
示例:
bash
curl -s https://dolarapi.com/v1/dolares | jq '.'
curl -s https://dolarapi.com/v1/dolares/blue | jq '.'

Otras monedas

其他货币

  • GET /v1/cotizaciones
  • GET /v1/cotizaciones/{codigoMoneda}
Codigos admitidos para
{codigoMoneda}
:
  • eur
  • brl
  • clp
  • uyu
Ejemplos:
bash
curl -s https://dolarapi.com/v1/cotizaciones | jq '.'
curl -s https://dolarapi.com/v1/cotizaciones/eur | jq '.'
  • GET /v1/cotizaciones
  • GET /v1/cotizaciones/{codigoMoneda}
支持的
{codigoMoneda}
代码:
  • eur
  • brl
  • clp
  • uyu
示例:
bash
curl -s https://dolarapi.com/v1/cotizaciones | jq '.'
curl -s https://dolarapi.com/v1/cotizaciones/eur | jq '.'

Valores admitidos

支持的参数值

  • tipoCotizacion
    :
    oficial
    ,
    blue
    ,
    bolsa
    ,
    contadoconliqui
    ,
    tarjeta
    ,
    mayorista
    ,
    cripto
  • codigoMoneda
    :
    eur
    ,
    brl
    ,
    clp
    ,
    uyu
Mapeos utiles para lenguaje del usuario:
  • "MEP" ->
    bolsa
  • "CCL" o "contado con liqui" ->
    contadoconliqui
  • tipoCotizacion
    oficial
    ,
    blue
    ,
    bolsa
    ,
    contadoconliqui
    ,
    tarjeta
    ,
    mayorista
    ,
    cripto
  • codigoMoneda
    eur
    ,
    brl
    ,
    clp
    ,
    uyu
实用的用户用语映射:
  • "MEP" ->
    bolsa
  • "CCL" 或 "contado con liqui" ->
    contadoconliqui

Campos clave

关键字段

Campos base de respuesta:
  • moneda
  • casa
  • nombre
  • compra
  • venta
  • fechaActualizacion
Campo opcional observado:
  • variacion
    (puede aparecer en algunos casos, por ejemplo
    mayorista
    )
响应基础字段:
  • moneda
  • casa
  • nombre
  • compra
    (买入价)
  • venta
    (卖出价)
  • fechaActualizacion
    (更新时间)
可选字段(部分场景出现):
  • variacion
    (涨跌幅,例如
    mayorista
    类型可能包含此字段)

Workflow

工作流程

  1. Detectar intencion del usuario:
    • Dolar general o tipo especifico
    • Otra moneda (
      eur
      ,
      brl
      ,
      clp
      ,
      uyu
      )
  2. Elegir endpoint correcto segun la intencion.
  3. Validar valor solicitado (
    tipoCotizacion
    o
    codigoMoneda
    ).
  4. Ejecutar request con
    curl -s
    y parsear con
    jq
    .
  5. Mostrar resumen corto primero y detalle despues.
  6. Incluir siempre
    fechaActualizacion
    en la respuesta.
  7. Si hay multiples cotizaciones, presentar comparativa por
    casa
    .
  1. 检测用户意图:
    • 通用美元或特定类型美元
    • 其他货币(
      eur
      ,
      brl
      ,
      clp
      ,
      uyu
  2. 根据意图选择正确的端点。
  3. 验证请求的参数值(
    tipoCotizacion
    codigoMoneda
    )。
  4. 使用
    curl -s
    发起请求并通过
    jq
    解析。
  5. 先展示简短摘要,再展示详细信息。
  6. 响应中始终包含
    fechaActualizacion
  7. 若存在多个汇率,按
    casa
    进行对比展示。

Error Handling

错误处理

  • 404 con body vacio:
    • Ocurre cuando
      tipoCotizacion
      o
      codigoMoneda
      no existe.
    • Responder con mensaje claro: "tipo no soportado" o "moneda no soportada".
  • Falla de red/timeout:
    • Reintentar hasta 2 veces con delay corto.
    • Si falla de nuevo, devolver endpoint consultado y error.
  • JSON inesperado:
    • Mostrar minimo crudo util y aclarar inconsistencia del origen.
  • 404 且响应体为空: 当
    tipoCotizacion
    codigoMoneda
    不存在时触发。 返回清晰提示:“不支持该类型”或“不支持该货币”。
  • 网络故障/超时: 最多重试2次,每次间隔短延迟。 若仍失败,返回查询的端点及错误信息。
  • 意外JSON格式: 展示最少可用的原始内容,并说明数据源存在不一致。

Presenting Results

结果展示

  • Priorizar
    compra
    ,
    venta
    y spread (
    venta - compra
    ).
  • Orden sugerido para dolares:
    • oficial
      ,
      blue
      ,
      bolsa
      ,
      contadoconliqui
      ,
      mayorista
      ,
      cripto
      ,
      tarjeta
  • Aclarar timezone del timestamp (UTC en origen).
  • No dar recomendaciones financieras; solo informar cotizaciones.
  • 优先展示买入价、卖出价及点差(卖出价 - 买入价)。
  • 美元建议排序:
    oficial
    ,
    blue
    ,
    bolsa
    ,
    contadoconliqui
    ,
    mayorista
    ,
    cripto
    ,
    tarjeta
  • 说明时间戳的时区(数据源为UTC)。
  • 不提供金融建议,仅展示汇率信息。

Out of Scope

超出范围

Esta skill no debe usar en v1:
  • /v1/ambito/dolares*
  • /v1/estado
  • Endpoints de otros paises
本技能在v1版本中不得使用以下内容:
  • /v1/ambito/dolares*
  • /v1/estado
  • 其他国家的端点