fx_revalue
Revalue active foreign-currency accounts as of a date using a specified or last recorded exchange rate, posting gains or losses to a designated account without changing native balances.
Instructions
Revalue one or all active foreign-currency monetary accounts as of a date. Supply a gain/loss account and a decimal rate, or use the last recorded rate for each pair. Returns a receipt for each posting; native balances do not change.
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": {
"company": "<company>",
"fx_gain_loss_account": "<fx_gain_loss_account>",
"as_of": "<as_of>"
},
"name": "fx_revalue"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rate | No | Positive decimal functional major units per native major unit, e.g. 0.85 | |
| as_of | Yes | A real calendar date. Text input accepts the CLI's legacy unpadded dates. | |
| account | No | ||
| company | Yes | ||
| fx_gain_loss_account | Yes |