Reconcile realized PnL against the daily loss cap
reconcile_realized_pnlCounts the venue's realized LOSSES against the daily risk counters. A trade closed by the VENUE's own stop never goes through the close path, so without this the daily loss cap can never fire on it. Idempotent: each venue trade is counted exactly once, tracked in the realized-PnL ledger. Never moves funds, never places an order. Returns how many trades were counted, the loss recorded, and what was skipped and why.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "reconcile_realized_pnl"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | How far back to reconcile, in days, 1..30 (default 2) | |
| exchange | No | CEX slug, e.g. kucoin (resolved to an active connection; connectionId wins when both are given) | |
| connectionId | No | CEX connection id (see list_connections). Takes precedence over exchange. |