AgentSkillsCN

opengasti-prices

从 DolarAPI 获取并更新蓝美元汇率,用于 BeanCount 个人理财。当用户询问美元汇率、报价、蓝美元、更新价格,或需要价格更新时使用。触发词:‘/prices’、‘/dolar’、‘/cotizacion’。

SKILL.md
--- frontmatter
name: opengasti-prices
description: Fetch and update blue dollar exchange rate from DolarAPI for beancount personal finance. Use when user asks for dollar rate, cotización, dólar blue, actualizar precios, or price updates. Triggers: '/prices', '/dolar', '/cotizacion'.

opengasti-prices

Update the Argentine blue dollar exchange rate in your beancount ledger using DolarAPI.

Workflow

To update the prices, run the make prices command. This will fetch the latest blue dollar rate and save it to your ledger.

Commands

  • make prices: Fetch the current blue dollar rate (default).
  • uv run python scripts/fetch_prices.py --all: Fetch all available exchange rates (blue, official, bolsa, etc.).
  • uv run python scripts/fetch_prices.py --casa oficial: Fetch a specific exchange rate (e.g., official).

Output

The fetched prices are saved to prices/auto-generated.bean.

Initial Setup

After running the command for the first time, you must ensure that the generated file is included in your main ledger.

Open main.bean and uncomment the following line (around line 40):

beancount
include "prices/auto-generated.bean"