get_pnl
PnL of an account: every position (open / closed / settled) with the desk's mark, unrealized and realized PnL, fees paid
and the total, all USDG raw (1e6) signed from the account's side, plus a one-line summary in USDG.
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": {
"account": "<account>"
},
"name": "get_pnl"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes |