Trades
Subscribe to Trades
Subscribe to a stream of executions data for the authenticated user. Returns historical executions as well as real-time updates as new trades occur.
Request
str+{"realtimeUpdatesOnly": bool, "days": int}
Properties
The leading topic message indicating a request to subscribe to trades data.
Determines whether to include historical executions or only real-time executions. Defaults to false, which includes historical executions.
The number of days of execution history to return. Defaults to 1.
Response
Properties
Returns the topic of the request. Returns "str".
Array of execution objects, each representing one trade.
Execution identifier of the specific trade.
Ticker symbol of the traded contract.
Determines if the contract supports the tax optimizer. Client Portal only.
Indicates if the order was a buy or sell.
Full description of the order. Format: "{SIDE} {SIZE} @ {PRICE} on {EXCHANGE}".
Traded date and time in UTC. Format: "YYYYMMDD-HH:mm:ss".
Traded datetime of the execution in epoch time.
Quantity of shares or contracts traded.
Custom order identifier (cOID) from order placement, if specified.
Price at which the trade executed.
Exchange on which the order executed.
Total amount traded after applying the contract multiplier.
Account on which the order was traded.
Account on which the order was traded.
Full company name for the contract.
Underlying symbol of the contract.
Full description of the derivative contract, if applicable.
Security type of the traded contract.
Contract identifier for the traded contract.
Returns the conidEx of the order if specified; otherwise returns the conid.
Indicates if the execution was a closing trade. Returns "???" if the position was already open but not a closing order.
Indicates if the trade was the result of a liquidation.
Determines if the order can be used with EventTrader.
Unsubscribe from Trades
utr
Request to cancel the trades data subscription.
Request
Properties
Cancels the trades data subscription.
No additional parameters are required.
Response Example
Unsubscribing from trades updates does not deliver any acknowledgement. It would be expected for str responses to immediately halt.

