mcpField
C
cotizacion-dolar-argentina

cotizacion-dolar-argentina

github.com/ferminrp其他3954 次安装13 周前更新
代码仓库

关于 cotizacion-dolar-argentina

使用公共 DolarAPI 查询阿根廷汇率的 Skill,供需要查看美元买入价、卖出价或特定外币报价的人使用。结果包含更新时间,不提供金融建议。

主要功能

  1. 01查询多种美元报价类型
  2. 02查询 EUR、BRL、CLP 和 UYU 报价
  3. 03显示买入价、卖出价和更新时间
  4. 04按报价机构比较多项汇率

适用场景

  1. 01查看蓝美元的买入价和卖出价
  2. 02比较阿根廷公布的不同美元报价
  3. 03查询欧元或周边国家货币报价

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/ferminrp/agent-skills --skill cotizacion-dolar-argentina

安装后在 Claude Code 中输入/cotizacion-dolar-argentina确认已加载。

详细介绍

阿根廷美元汇率

使用 DolarAPI 查询阿根廷的美元和其他货币汇率。

API 概述

  • 基础 URL:https://dolarapi.com
  • 身份验证:无需身份验证
  • 响应格式:JSON
  • 来源:DolarAPI 公共端点
  • 时间戳:fechaActualizacion 为 ISO UTC 格式,例如 2026-02-17T13:59:00.000Z

端点

美元(列表和按类型查询)
  • GET /v1/dolares
  • GET /v1/dolares/{tipoCotizacion}

{tipoCotizacion} 支持的类型:

  • oficial
  • blue
  • bolsa
  • contadoconliqui
  • tarjeta
  • mayorista
  • cripto

示例:

curl -s https://dolarapi.com/v1/dolares | jq '.'
curl -s https://dolarapi.com/v1/dolares/blue | jq '.'
其他货币
  • GET /v1/cotizaciones
  • GET /v1/cotizaciones/{codigoMoneda}

{codigoMoneda} 支持的代码:

  • eur
  • brl
  • clp
  • uyu

示例:

curl -s https://dolarapi.com/v1/cotizaciones | jq '.'
curl -s https://dolarapi.com/v1/cotizaciones/eur | jq '.'

支持的值

  • tipoCotizacion:oficial、blue、bolsa、contadoconliqui、tarjeta、mayorista、cripto
  • codigoMoneda:eur、brl、clp、uyu

便于理解用户表达的映射:

  • “MEP” -> bolsa
  • “CCL” 或 “contado con liqui” -> contadoconliqui

关键字段

响应中的基础字段:

  • moneda
  • casa
  • nombre
  • compra
  • venta
  • fechaActualizacion

观察到的可选字段:

  • variacion(某些情况下可能出现,例如 mayorista)

工作流

  1. 识别用户意图:
    • 查询总体美元汇率或特定类型
    • 查询其他货币(eur、brl、clp、uyu)
  2. 根据意图选择正确的端点。
  3. 验证请求的值(tipoCotizacion 或 codigoMoneda)。
  4. 使用 curl -s 执行请求,并用 jq 解析。
  5. 先显示简短摘要,再显示详细信息。
  6. 始终在回复中包含 fechaActualizacion。
  7. 如果有多个汇率,按 casa 提供对比。

错误处理

  • 404 且响应体为空:
    • 当 tipoCotizacion 或 codigoMoneda 不存在时会发生。
    • 使用清晰的消息回复:“不支持的类型”或“不支持的货币”。
  • 网络故障/超时:
    • 短暂延迟后最多重试 2 次。
    • 如果仍然失败,返回查询的端点和错误信息。
  • JSON 格式异常:
    • 显示最少量但有用的原始数据,并说明来源数据存在不一致。

展示结果

  • 优先展示 compra、venta 和价差(venta - compra)。
  • 美元的建议排序:
    • oficial、blue、bolsa、contadoconliqui、mayorista、cripto、tarjeta
  • 说明时间戳的时区(来源为 UTC)。
  • 不提供金融建议;仅报告汇率。

不在范围内

此技能在 v1 中不得使用:

  • /v1/ambito/dolares*
  • /v1/estado
  • 其他国家的端点

评论

支持 Markdown