Realized profit and loss
account_realized_pnlRetrieve realized gains and losses for closed trades, filtered by stock and period, to review trading performance.
Instructions
Realized gains and losses of closed trades, filterable by stock and period.
Needs the trading session (stockbit-mcp login --trading). Values IDR; lots of 100 shares.
Returns (Stockbit's data field): {data:{history:[...], metadata:{pagination:{cursor:{next}}}}}
Endpoint: GET carina /history/realized.
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": "account_realized_pnl"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cursor | No | cursor | |
| period | No | period | |
| stock_code | No | stock_code | |
| transaction_types | No | repeated key (paramsSerializer indexes:null) |