Trade History
Retrieve a list of trades, up to a maximum of 7 days prior.
Authentication
AuthorizationBearer
SSO bearer token.
Query parameters
days
The number of prior days prior to include in response, up to a maximum of 7. If omitted, only the current day's executions will be returned.
Response
trades
execution_id
IB-assigned execution identifier.
symbol
Symbol of the instrument involved in the execution.
supports_tax_opt
Indicates whether the order is supported by IB's Tax Optimization tool.
Allowed values:
side
Side of the execution.
Allowed values:
order_description
Human-readable description of the outcome of the execution.
trade_time
UTC date and time of the execution in format YYYYMMDD-hh:mm:ss.
trade_time_r
Unix timestamp of the execution time in milliseconds.
size
The size of the execution in units of the instrument.
price
The price at which the execution occurred.
order_ref
The client-provided customer order identifier. Specified via cOID during order submission in the Web API.
submitter
The IB username that originated the order ticket against which the execution occurred.
exchange
The exchange or other venue on which the execution occurred.
commission
Commissions incurred by the execution. May also include
net_amount
net_amount
account
The IB account ID of the account that received the execution.
accountCode
The IB account ID of the account that received the execution.
account_allocation_name
The IB account ID of the account that received the execution.
company_name
Name of business associated with instrument, or otherwise description of instrument.
contract_description_1
Human-readable description of the order’s instrument.
sec_type
IB asset class identifier.
listing_exchange
The primary exchange on which the instrument is listed.
conid
Contract ID of the order's instrument.
conidEx
Contract ID and routing destination in format 123456@EXCHANGE.
clearing_id
Identifier of the firm clearing the trade. Value is "IB" if account is cleared by Interactive Brokers.
clearing_name
Name of the firm clearing the trade. Value is "IB" if account is cleared by Interactive Brokers.
liquidation_trade
Indicates whether the trade is the result of a liquidiation by IB.
Allowed values:
is_event_trading
Indicates whether the order ticket is an Event Trading order.
Allowed values:
order_id
Order ID
Errors
401
Unauthorized Error
500
Internal Server Error
503
Service Unavailable Error

