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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ticker": "<ticker>",
"quantity": "<quantity>"
},
"name": "set_crypto_position"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ticker | Yes | Crypto symbol, uppercase (e.g. 'BTC'). | |
| quantity | Yes | Amount held (fractional ok). 0 removes the holding. |