Order Entry V2 Websocket - Search For Trades




Contents

Input - Search for Trades


Request a trade record using custom criteria. Based on query parameters, one or more trades may be returned.


Fields

RefFieldNameData TypeValuesUsageDescription
1header
2→ applicationNameApplication NameString
REQUIRED

Identifies the application generating the message.

3→ applicationVendorApplication VendorString
REQUIRED

Identifies the vendor of the application generating the message.

4→ applicationVersionApplication VersionString
REQUIRED

Identifies the version of the application generating the message.

5→ messageTypeMessage TypeMessageType
  • TRDQ (Trade Search)
REQUIRED
6→ requestIdRequest IDString
REQUIRED

A unique identifier for the request provided by the client for correlation.

7→ sentTimeSent TimeDateTime
REQUIRED

Timestamp of the message leaving the producing application.

8payload
9→ customerAccountIds[]Customer Account IDsString
  • Length: ≤ 12
OPTIONAL
10→ customerOrderIds[]Customer Order IDsString
  • Length: ≤ 20
OPTIONAL
11→ executingFirmIds[]Executing Firm IDsString
  • Length: 1 - 10
REQUIRED
12→ glbxSecurityIds[]Globex Security IDsInteger
OPTIONAL
13→ manualIndManual IndicatorYesNoIndicator
  • NO (No) - No
  • YES (Yes) - Yes
REQUIRED

Indicates whether the order was generated by automated trading logic.

14→ transactionTimeEndTransaction Time EndDateTime
OPTIONAL
15→ transactionTimeStartTransaction Time StartDateTime
OPTIONAL
16→ venueExecutionIdVenue Execution IDString
OPTIONAL
17→ venueOrderIds[]Venue Order IDsString
OPTIONAL

Output - Search for Trades Response - Success

Fields

RefFieldNameData TypeValuesUsageDescription
1header
2→ messageTypeMessage TypemessageType
  • TRDR (Trade Response)
ALWAYS
3→ possibleRetransIndPossible Retransmission IndicatoryesNoIndicator
  • NO (No) - No
  • YES (Yes) - Yes
OPTIONAL
4→ requestIdRequest IDstring
ALWAYS

A unique identifier for the request provided by the client for correlation.

5→ responseClippedIndResponse Clipped IndicatoryesNoIndicator
  • NO (No) - No
  • YES (Yes) - Yes
OPTIONAL
6→ responseCountResponse Countint32
OPTIONAL
7→ responseIndexResponse Indexint32
OPTIONAL
8→ sentTimeSent TimedateTime
ALWAYS

Timestamp of the message leaving the producing application.

9→ sequenceNbrSequence Numberstring
ALWAYS
10payload[]
11→ actionActionorderAction
  • TRADE (Trade)
ALWAYS
12→ executionTimeExecution TimedateTime
ALWAYS
13→ instrument
14→ → glbxSecurityIdGlobex Security IDint32
ALWAYS
15→ side
16→ → aggressorIndAggressor IndicatoryesNoIndicator
  • NO (No) - No
  • YES (Yes) - Yes
ALWAYS
17→ → entities
18→ → → customerAccountIdCustomer Account Idstring
ALWAYS
19→ → → executingFirmIdExecuting Firm IDstring
ALWAYS
20→ → → operatorIdOperator IDstring
ALWAYS
21→ → → senderCountrySender Countrystring
ALWAYS
22→ → → senderStateSender Statestring
OPTIONAL
23→ → order
24→ → → customerOrderIdCustomer Order IDstring
ALWAYS
25→ → → remainingQtyIntRemaining Quantity Integerint32
ALWAYS
26→ → → statusStatusorderStatus
 Click here to expand...
  • CANCELED (Canceled)
  • EXPIRED (Expired)
  • FILLED (Filled)
  • NEW (New)
  • PARTIAL (Partial)
  • REJECTED (Rejected)
  • REPLACED (Replaced)
ALWAYS
27→ → → typeTypeorderType
  • LIMIT (Limit) - A Limit order defines the upper price limit at which to buy an instrument and lower price limit at which to sell an instrument. The price limit is defined in the Price field. If the price is not immediately available, the Limit order will rest until filled or cancelled.
  • MARKET (Market) - A Market order with protection is filled within a pre-defined range of prices referred to as the protected range. For buy orders, protection points are added to the current best offer price to calculate the protection price limit. For sell orders, protection points are subtracted from the current best bid price.
  • MARKET_TO_LIMIT (Market to Limit) - A Market-limit order is executed at the best price available in the market. If the market-limit order can only be partially filled, the order becomes a limit order and the remaining quantity remains on the order book at the specified limit price.
  • STOP (Stop) - A Stop order is an order which, when accepted, does not immediately go on the book, but must be "triggered" by a trade in the market at the price level submitted with the order. A Stop order goes on the book as a Market order once triggered.
  • STOP_LIMIT (Stop Limit) - A Stop order is an order which, when accepted, does not immediately go on the book, but must be "triggered" by a trade in the market at the price level submitted with the order. A Stop-Limit order goes on the book as a Limit order once triggered.
ALWAYS
28→ → → venueOrderIdVenue Order IDstring
ALWAYS
29→ → pricePriceprice
ALWAYS
30→ → qtyIntQuantity Integerint32
ALWAYS
31→ → sideIndSide IndicatormarketSideIndicator
  • BUY (Buy) - Identifies a buy side order
  • CROSS (Cross)
  • SELL (Sell) - Identifies a sell side order
ALWAYS
32→ → venueExecutionIdVenue Execution IDstring
ALWAYS
33→ spreadReportType[]SpreadReportTypespreadReportType
  • LEG (Leg of Spread)
  • OUTRIGHT (Outright)
  • SPREAD (Spread)
ALWAYS
34→ tradeDtTrade Datedate
ALWAYS
35→ venueTradeSeqVenue Trade Sequencestring
ALWAYS

Output - Search for Trades Response - Error

Fields

RefFieldNameData TypeValuesUsageDescription
1errors[]
2→ codeCodestring
ALWAYS
3→ messageMessagestring
ALWAYS
4→ referenceFieldReference Fieldstring
OPTIONAL
5header
6→ messageTypeMessage TypemessageType
  • TRDRJ (Trade Search)
ALWAYS
7→ requestIdRequest IDstring
ALWAYS

A unique identifier for the request provided by the client for correlation.

8→ sentTimeSent TimedateTime
ALWAYS

Timestamp of the message leaving the producing application.

9→ sequenceNbrSequence Numberstring
ALWAYS
10payload[]
11→ transactionTimeTransaction TimedateTime
OPTIONAL



How was your Client Systems Wiki Experience? Submit Feedback

Copyright © 2024 CME Group Inc. All rights reserved.