Read closed CEX PnL
read_closed_pnlREAD-ONLY: realized/closed-PnL history on a CEX connection (one row per closed position carrying net pnl + fees, for diary sync). Never moves funds. Rows whose venue reports no side stay null — side is never inferred from the PnL sign; Binance rows carry entryPrice 0 = unknown (the income feed has no entry price) and exitPrice is the paired closing fill when one was found.
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": "read_closed_pnl"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Lookback in days, 1..90 (default 30) | |
| pair | No | Optional filter, e.g. BTC/USDT | |
| limit | No | Max rows, newest-first, 1..500 (default 100) | |
| 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. |