Executions
get_executionsRetrieve recent account executions (fills) with commission and realized P&L, sorted newest first. Filter by symbol, side, security type, or time. Covers the current trading day.
Instructions
List the account's executions (fills), newest first, with commission and realized P&L.
Covers the current trading day only (up to 7 days if the gateway's trade-log setting
allows); older trades are not available through the API. `commission` is null until
IBKR reports it (usually within seconds of the fill); realized_pnl is 0 for fills
that opened a position. Default limit 100, maximum 1000.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | No | Only buys (BUY) or sells (SELL). | |
| limit | No | Maximum number of items to return. Omit for the tool's default; larger values are capped. The result's truncated flag says whether more were available. | |
| since | No | Only executions at or after this time (ISO 8601; no zone = UTC). | |
| symbol | No | Only this symbol, e.g. AAPL. | |
| account | No | IBKR account id, e.g. DU1234567. Omit to use the default account; list_accounts shows which accounts are allowed. | |
| sec_type | No | Only this security type, e.g. STK or OPT. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total | Yes | How many executions matched before the limit. | |
| account | Yes | ||
| truncated | No | True when the result was cut to the limit. | |
| executions | Yes |