set_crypto_position
Manually track a crypto holding by fetching the current BRL quote and storing its market value snapshot. Set quantity to zero to remove the position.
Instructions
Manually track a crypto holding (e.g. BTC, ETH). Fetches the current BRL quote (multi-source: Mercado Bitcoin → Foxbit → Binance) and stores a snapshot market value (quantity × current price) as a CRIPTO position, which then flows into get_portfolio_summary and calculate_allocation_drift. quantity=0 removes the holding (idempotent). Re-run to refresh the value. Outbound-gated. Snapshot only — no cost basis / P&L is recorded.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ticker | Yes | Crypto symbol, uppercase (e.g. 'BTC'). | |
| quantity | Yes | Amount held (fractional ok). 0 removes the holding. |