viewTrades

Use this command to retrieve trade details. The response will provide the order_id, exec_id, item and other fields to help identify which executed trades to modify when using the addToQueue command. Note that even though an executed trade may show in the response, it may not be available for modification. For example, if a trade has been modified but not submitted to the clearinghouse, the trade will not be eligible for modification until the clearinghouse submission has been completed.

A response to viewTrades is limited to 10,000 trade records. The following table describes the filters that can be added to the viewTrades command in order to reduce the number of trades returned in the response.

Table 1. viewTrades
ParameterRequired Description
commandYviewTrades
clearing_corpNValid values included OCC or CCUS. If field not specified, the value defaults to OCC.
accountY
call_put_flagY
  • Valid values include the following.
  • C = Call
  • P = Put
capacityY
  • The capacity for the order.
  • C = Customer
  • F = Firm
  • M = Market Maker
  • U = Professional Customer
  • N = Away Market Maker
  • B = Broker-Dealer
  • J = Joint Back Office
  • L = Non-TPH Affiliate (C1 and C2 only)
cl_order_id (C1 only)YID chosen by client, 20 characters or less. Characters in ASCII range 33-126 are allowed, except for comma, semicolon, and pipe
clearing_accountYReferred to as Sub Account in GUI.
clearing_firmYThe EFID used in the relationship. Referred to as Broker Id in GUI. Returned as "executing_firm_id" in the viewTrades results.
cmtaY
  • compression_trade
  • (C1 only)
YOnly Y and N values are accepted.
exec_idYCboe-created execution id.
  • floor_trader
  • (C1 only)
Y
  • frequent_trader_id
  • (C1 only)
YIdentifies the frequent trader program in which the order is participating, 6 characters or less, ASCII 33-126
  • occ_id
  • (C1 only)
Y
open_closeY
  • Valid values include the following.
  • O = Open
  • C = Close
order_idYCboe-created order id.
ors_eligible (C1 only)YOnly Y and N values are accepted.
osi_rootY
priceY
sideYValid values are B and S.
statusY
  • Valid values include the following.
  • <empty>=(no filters)
  • all_matched
  • all_related
  • all_unmatched
  • contra_unmatched
  • modified
  • pending
  • related_unmatched
  • unmatched
  • unrelated_unmatched
strategy_id (C1 only)Y
  • Valid values include the following.
  • <single space>=Unspecified
  • C = Conversion
  • R = Reversal
  • M = Merger
  • S = Short stock interests
  • J = Jelly roll
  • F = CompressionForum
  • B = BoxSpread
  • A = BoxSwap
strike_priceY

Example Response

{"code":"200",
 "data":[
  {"cmta":"111", "call_put_flag":"Call", "executing_firm_id":"CBOE", "size":"10", "capacity":"Customer", "ts":"09:30:01.02021", "expire_date":"3006-01-01", "cl_order_id":"AAAAAAAAAAAAA", "sub_account":"", "revision":0,"status":"", "strike_price":"10.0000", "order_id":"123456789012", "price":"0.6000", "account":"AAAA", "firm_sub_id":"0003", "firm_id":"CBOE", "position":"Open", "osi_root":"A", "exec_id":"01XX00001", "routing_broker":"", "item":"", "mod_contact_id":0,"side":"Buy", "clearing_opt_data": ""}
],
 "msg":""
}
Cboe Titanium U.S. Secure Web API - viewTrades | Cboe