Обмен валюты
add_currency_exchangeRecord a currency exchange transaction by specifying the sold amount and currency, the received amount and currency, and the source account.
Instructions
Обмен валюты: продано from_amount в from_currency, получено to_amount в to_currency.
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": {
"from_amount": "<from_amount>",
"from_currency": "<from_currency>",
"to_amount": "<to_amount>",
"to_currency": "<to_currency>",
"account": "<account>"
},
"name": "add_currency_exchange"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Дата YYYY-MM-DD или YYYY-MM-DD HH:mm (по умолчанию — сейчас) | |
| account | Yes | Счёт, с которого списана исходная валюта | |
| comment | No | ||
| to_amount | Yes | ||
| to_account | No | Счёт, куда зачислена новая валюта (по умолчанию тот же) | |
| from_amount | Yes | ||
| to_currency | Yes | ||
| from_currency | Yes |