fx_revaluation_reverse
Revert a posted period-end FX revaluation by atomically booking mirror entries and their next-day reversal, so positions and account 6949 net to zero while originals stay unchanged.
Instructions
Revert a posted FX revaluation run (D129 Q2): books the mirror of the revaluation entry dated the period end (source fx) plus its own next-day reversal, atomically, so every position and account 6949 net to zero on both dates and nothing is edited. runId is the run post_fx_revaluation returned. Refuses not_posted for a run that posted nothing, already_reversed, later_run_exists naming the later period end whose run still stands (revert newest first), and period_locked for a locked period. Idempotent on idempotencyKey. CONSEQUENCE: Reverts the period-end currency revaluation with mirror entries, so every account nets to zero. The original entries stay visible beside them; this revert can't be reverted again.
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": {
"workspaceId": "<workspaceId>",
"runId": "<runId>",
"idempotencyKey": "<idempotencyKey>"
},
"name": "fx_revaluation_reverse"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| runId | Yes | ||
| workspaceId | Yes | ||
| idempotencyKey | Yes |