Orders Message Layout Version 1

Number

Name

Description

Included in Subversions

Always Provided

Type/Format

1

CQGOrderNumber

CQG identifier for the related order.

0+

Y

Integer

2

CQGOriginalOrderNumber

CQG identifier for the first order in the chain.

0+

Y

Integer

3

CQGParentOrderNumber

CQG identifier for the previous order in the chain.

0+

N

Integer

4

CQGExchangeNumber

CQG Exchange number. It can be referenced in the Exchanges.txt data. (Please contact the CQG FCM Support Desk for the latest version of the Exchanges.txt file.)

0+

Y

Integer

5

FullCQGContractName

Full CQG contract name. For futures, this looks like "F.US.EP.M08". For options, "C.US.EP.M08.1100". For LME futures, "X.US.LDKZ".

0+

Y

String(32)

6

BuySell

b = buy

s = sell

0+

Y

String(1)

7

OrderQuantity

Order quantity.

0+

Y

Integer

8

TimeInForce

Time-in-force identifier for the order.

0+

Y

String(5)

9

CQG Order Type

CQG order type. This may be a CQG synthetic order type and can differ from the native order type (i.e. the exchange order type).

0+

Y

String(8)

10

Native Order Type

The native order type, as recognized by the exchange.

0+

N

String(8)

11

ExecutionInstructions

This is a multi-valued field that stores execution instruction IDs.

e.g. “1/2/3” indicates:

1 = all or nothing

2 = quantity-triggered stop

3 = iceberg

0+

N

String(32)

12

TriggerQuantity

This is the quantity associated with certain types of execution instructions (e.g. QTS orders).

0+

N

Integer

13

Currency Code

Three-letter currency code associated with the contract. Be careful that currencies  may have codes that do not fit into this field and therefore may have non-unique or non-usable value.

 

ISO-4217-based currency code, note that cryptos use codes that are ISO-4217-style, though usually not actual ISO codes and can be longer than 3 chars.

 

0-22

 

 

23+

 

N

 

 

N

 

String(3)

 

 

String(64)

14

Limit Price

Order limit price in CQG format.

0+

N

Float

15

Stop Price

Order stop price in CQG format.

0+

N

Float

16

AccountRep

Sales rep for the account, if provided.

0+

Y

String(16)

17

AccountNumber

FCM account number.

0+

Y

String(256)

18

CQGTraderName

CQG user name of the trader that placed the order, or the on-behalf-of trader.

0+

N

String(32)

19

OrderName

Front-end name assigned to the order. This is not required to be unique. It may be useful in confirming the original order placement.

0+

N

String(48)

20

ExpirationDate

Expiration date of the order. This field represents the calculated expiration date, and can change with time based on the type of order in question. Examples include:

2nd in OPO pair is stored initially with a GTC expiration and when activated is recalculated with a Day expiration.

For filled GTD orders, the order is expired that day regardless of expiration.

0+

Y

Date

21

ExpirationTime

Expiration time of the order. This field represents the calculated expiration time, and can change with time based on the type of order in question. See ExpirationDate for details.

The format of this value changed from HHMMSS to HH:MM:SS.ssssss as of version 13+. See Type/Format definitions in Data Files.

0+

Y

Time

22

ContractDate

Contract prompt date in YYYYMMDD format.

Note: In the case of relative daily futures, the prompt date for a future can change from one day to the next. This field reflects the prompt date associated with the future at the time the file is generated.

0+

Y

Date

23

RecordCreatedDate

Date fill record was created in Gateway. UTC or local depending on configuration. See Type/Format definitions in Data Files.

0+

Y

Date

24

RecordCreatedTime

Time fill record was created in Gateway. UTC or local depending on configuration.

The format of this value changed from HHMMSS to HH:MM:SS.ssssss as of version 13+. See Type/Format definitions in Data Files.

0+

Y

Time

25

OrderComments

Comments associated with the order contained in double quotes. If no order comments were specified, then “” populates the field.

1+

N

String(64)

26

ContractType

 

f = future

c = call

p = put

d = daily future

(space) = other contract types, such as strategies and FX

1+

Y

String(1)

27

CQGSymbol

Commodity symbol in CQG form. It can be referenced in the Symbols.txt file. (Please contact the CQG FCM Support Desk for the latest version of the Symbols.txt file.)

Does not uniquely identify commodity, even with CQGSymbolPrefix.

The type of this value changed from String(6) to String(32) as of version 18+.

1+

Y

String(6)

28

CQGStrikePrice

Strike price in the CQG format.

1+

N

Integer

29

ExchOrderNumber

Ticket number for the related order. Format is CQG-specific and can vary by exchange, but the value is based on exchange-reported identifier for the order.

1+

N

String(128)

30

CQGAccountID

CQG identifier for the account.

2+

Y

Integer

31

CQGTraderID

The CQG identifier for the trader, or the on-behalf-of trader ID.

2+

N

Integer

32

RejectionReason

Reason order was rejected. This field is populated only for rejected order requests.

3+

N

String(1024)

33

ExternalManualOrder

y = manual external CAST orders

n = order placed by trader in Gateway

4+

Y

String(1)

34

ClientRegulatoryAlgorithmID

Client-supplied algorithm ID, i.e. incoming value received with the order.

5+

N

Big Integer

35

EffectiveRegulatoryAlgorithmID

Algorithm ID sent to exchange with the order, if any. Reflects ClientRegulatoryAlgorithmID plus any subsequent CQG algorithmic trading functionality.

5+

N

Big Integer

36

CQGInstrumentGroup

CQG instrument group identifier. For example:

1 = futures

2 = options

3 = strategies

It can be referenced in the InstrumentGroups.txt file. (Please contact the CQG FCM Support Desk for the latest version of the InstrumentGroups.txt file.)

6+

Y

Integer

37

AllocationIndicator

r = regular order

n = allocation order

d = allocated order

7+

Y

String(1)

38

CQGSymbolPrefix

Commodity prefix in CQG form. Can be referenced in the Symbols.txt file. (Please contact the CQG FCM Support Desk for the latest version of the Symbols.txt file.)

It is possible to have several commodities with different prefixes but the same CQGSymbol code, e.g. US.xx and AU.xx.

8+

Y

String(2)

39

OmnibusAccountNumber

Omnibus account number. Empty unless order was executed via omnibus account.

9+

N

String(256)

40

OmnibusFCMName

Omnibus account FCM. Empty unless order was executed via omnibus account.

9+

N

String(32)

41

ClientAlgoStrategy

Algorithmic strategy short name provided by client.

10+

N

String(16)

42

ClientOrderExtras

Client order extras.

10+

N

String(4096)

43

OpenClose

Specifies whether the order is opening/increasing or closing/reducing a position.

O = opening new current day position

C = closing (current day only if instrument uses explicit close)

P = closing previous day (if instrument uses explicit close)

11+

N

String(1)

44

SpeculationType

Specifies a speculation type for an order.

S = Speculation

H = Hedge

A = Arbitrage

11+

N

String(1)

45

MifidAlgorithm

MiFID Algorithm applied to this request, if any (empty string if none applied).

12+

N

String(50)

46

MifidAlgorithmIsCQG

Indicates whether MifidAlgorithm contains an external (0) or CQG (1) MiFID Algo ID.

12+

N

String(1)

47

MifidExecutionDecision

Effective value for MiFID “Execution within firm” for this request.

May be a mapped Short Code, external FCM algo ID, or default value “CLIENT”

12+

N

String(50)

48

MifidExecutionDecisionIsAlgo

Indicates whether MifidExecutionDecision identifies a person (0) or algo (1).

12+

N

String(1)

49

MifidInvestmentDecision

Effective value for MiFID “Investment decision within firm” for this request.

May be a mapped Short Code or default value “” (empty string).

12+

N

String(50)

50

MifidInvestmentDecisionIsAlgo

Indicates whether MifidInvestmentDecision identifies a person (0) or algo (1).

12+

N

String(1)

51

DiscretionaryOffset

Discretion offset in the number of discretionary ticks.

Maximum number of allowed ticks is calculated as tick_size/discretionary_tick_size - 1.

14+

N

Integer

52

SenderOperatorID (was: OnBehalfOfSubID)

Explicit "sender operator ID" supplied to CQG with the order request, if any. Supported by Web API (see OrderRequest.sender_operator_id) and FIX Connect in DirectOnBehalfOfSubID Mode (see OnBehalfOfSubID(116) and https://help.cqg.com/apihelp/#!Documents/directonbehalfofsubidmode.htm). Empty in other cases.

15+

N

String(32)

53

OTCInternalMatch

y – if the fill originated as a result of an internal cross from the CQG OTC  Internal Match First engine.

n – otherwise

16+

Y

String(1)

54

ExecutionSourceCode

The single character that indicates source of execution. "Y" = Electronic (Default), "W" = Desk, "C" = Vendor-provided Platform billed by Executing Broker, "G" = Sponsored Access via Exchange API or FIX provided by Executing Broker, "H" = Premium Algorithmic Trading Provider billed by Executing Broker, "D" = Other, including Other-provided Screen

17+

N

String(1)

55

ExtendedSide

Refines side attribute: 5 = Sell Short

19+

N

String(1)

56

LocateID

Identifies a broker that lent an equity being sold short

19+

N

String(64)

57

EffectiveOperatorID

The effective "operator ID" applied to this order request by CQG. It is based on either supplied value (see also SenderOperatorID) or Trader configuration, further modified by applicable Operator ID mapping configuration. Note: only present for exchanges/routes that utilize operator ID.

20+

N

String(64)

58

ISIN

ISIN per ISO 6166, where available in CQG reference data at time of file generation.

21+

N

String(12)

59

GiveUpFirm

The order's give up firm.

22+

N

String(24)