Skip to content

OrderDTO

Idinteger, (int64)

The row ID. Read-only. Only present in response

OrderIdstring or null

The OrderId. Only required in NewAutotradeOrder and ReplaceAutotradeOrder endpoints

StrategyIdinteger or null, (int64)

The C2 StrategyId

StrategyNamestring or null

The C2 Strategy name. Read-only. Only present in response

SignalIdinteger or null, (int64)

Only required in ReplaceAutotradeOrder endpoint. The C2 SignalId

AvgPxnumber or null, (double)

The order average fill price

OrderTypestring or null

'1' = Market, '2' = Limit, '3' = Stop

Enum ValueDescription
1

Market

2

Limit

3

Stop

Example:"1"
Sidestring or null

'1' = Buy, '2' = Sell

Enum ValueDescription
1

Buy

2

Sell

Example:"1"
OpenClosestring or null

Only required in ReplaceAutotradeOrder endpoint. 'O' = Open, 'C' = Close

Enum ValueDescription
O

Open

C

Close

Example:"O"
OrderQuantitynumber or null, (double)

The unsigned order quantity

Limitnumber or null, (double)

The C2-formatted Limit Price

Stopnumber or null, (double)

The C2-formatted Stop Price

TIFstring or null

The time in force. 0 = Day, 1 = Good Till Cancel (GTC)

Enum ValueDescription
0

Day

1

GTC

Example:"0"
ProfitTargetnumber or null, (double)

Only available in NewStrategyOrder endpoint. The C2-formatted Price at which to place a exit conditional order

StopLossnumber or null, (double)

Only available in NewStrategyOrder endpoint. The C2-formatted Price at which to place a exit conditional order

DoNotCreateOCAGroupboolean or null

Only available in NewStrategyOrder endpoint. Default is false. Used to indicate the ProfitTarget and StopLoss orders should not be added to a OCA group. Each exit order will be managed separately

CancelReplaceSignalIdinteger or null, (int64)

Used to specify that this order replaces another

ParentSignalIdinteger or null, (int64)

Used to specify that this order is conditional (a child) on another

ParkedUntilDatestring or null, (date-time)

The New-York date/time when the signal should be released. Applies only to Strategy signals

DoNotSyncToOpenboolean or null

Used to indicate this order should not be synched in the brokerage account. Only applies to Opening non-market orders

C2Symbolobject(C2SymbolDTO)
ExchangeSymbolobject(ExchangeSymbolDTO)
RejectMessagestring or null

The order rejection message. Only available in response when OrderStatus = '8' (Rejected)

{ "Id": 0, "OrderId": "string", "StrategyId": 0, "StrategyName": "string", "SignalId": 0, "AvgPx": 0.1, "OrderType": "1", "Side": "1", "OpenClose": "O", "OrderQuantity": 0.1, "Limit": 0.1, "Stop": 0.1, "TIF": "0", "ProfitTarget": 0.1, "StopLoss": 0.1, "DoNotCreateOCAGroup": true, "CancelReplaceSignalId": 0, "ParentSignalId": 0, "ParkedUntilDate": "2019-08-24T14:15:22Z", "DoNotSyncToOpen": true, "C2Symbol": { "FullSymbol": "string", "SymbolType": "string", "Underlying": "string", "Expiry": "string", "PutOrCall": "string", "StrikePrice": 0.1, "Description": "string" }, "ExchangeSymbol": { "Symbol": "string", "Currency": "string", "SecurityExchange": "string", "SecurityType": "string", "MaturityMonthYear": "string", "PutOrCall": 0, "StrikePrice": 0.1, "PriceMultiplier": 0.1 }, "RejectMessage": "string" }