TT CORE SDK 2.0.1.1
TT CORE SDK documentation
Loading...
Searching...
No Matches
OrderRejectReason.h
Go to the documentation of this file.
1/***************************************************************************
2*
3* Unpublished Work Copyright (c) 2019-2020
4* Trading Technologies International, Inc.
5* All Rights Reserved Worldwide
6*
7* * * * S T R I C T L Y P R O P R I E T A R Y * * *
8*
9* WARNING: This program (or document) is unpublished, proprietary property
10* of Trading Technologies International, Inc. and is to be maintained in
11* strict confidence. Unauthorized reproduction, distribution or disclosure
12* of this program (or document), or any program (or document) derived from
13* it is prohibited by State and Federal law, and by local law outside of
14* the U.S.
15*
16****************************************************************************
17*
18* This file is auto generated - do not modify by hand.
19* Run the auto generation against the message template files.
20* Generated from messaging\order\enums.proto
21* Package tt.messaging.order.enums
22*
23***************************************************************************/
24#pragma once
25
26namespace ttsdk
27{
29 {
30 NotSet = -1,
31 Unknown = 0,
32 Broker = 1,
33 UnknownSymbol = 2,
42 TooLateToEnter = 11,
43 UnknownOrder = 12,
44 DuplicateOrder = 13,
46 StaleOrder = 15,
48 Other = 17,
51 MessagePending = 20,
52 RoutingError = 21,
54 TooLateToCancel = 23,
57 Origordmodtime = 26,
63 MarketClosed = 32,
72 OrderNotInBook = 41,
73 OrderNotInBook2 = 42,
75 UnknownContract = 44,
79 DifferentSide = 48,
80 DifferentGroup = 49,
83 DifferentQty = 52,
99 OrderQtyTooLow = 68,
100 OrderRejected = 69,
101 MarketInNoCancel = 70,
116 DuplicateQuote = 85,
117 PendingReplace = 91,
118 PendingCancel = 92,
124 InvalidRequest = 98,
126 ActionNotSupported = 100,
127 SendError = 101,
131 ServerOverload = 105,
132 PendingNew = 106,
134 OrderTimedOut = 108,
135 InvalidSecurityId = 109,
138 ApiNotReady = 200,
139 };
140
141 inline const char* ToString(const OrderRejectReason value)
142 {
143 switch (value)
144 {
146 return "NotSet";
148 return "Unknown";
150 return "Broker";
152 return "UnknownSymbol";
154 return "InvalidInvestorId";
156 return "UnsupportedOrderCharacteristic";
158 return "SurveillenceOption";
160 return "IncorrectQuantity";
162 return "IncorrectAllocatedQuantity";
164 return "UnknownAccount";
166 return "ExchangeClosed";
168 return "OrderExceedsLimit";
170 return "TooLateToEnter";
172 return "UnknownOrder";
174 return "DuplicateOrder";
176 return "DuplicateOfAVerballyCommunicatedOrder";
178 return "StaleOrder";
180 return "TradeAlongRequired";
182 return "Other";
184 return "InvalidPriceIncrement";
186 return "PriceExceedsCurrentPriceBand";
188 return "MessagePending";
190 return "RoutingError";
192 return "OrderRetransmitted";
194 return "TooLateToCancel";
196 return "OrderAlreadyInPendingCancelOrPendingReplaceStatus";
198 return "UnableToProcessOrderMassCancelRequest";
200 return "Origordmodtime";
202 return "DuplicateClordid";
204 return "PriceExceedsCurrentPrice";
206 return "UnableToReduceForInternalization";
208 return "OrderExceedsThrottleLimit";
210 return "CannotForceDeleteUnknownOrder";
212 return "MarketClosed";
214 return "FixFieldMissingOrIncorrect";
216 return "RequiredFieldMissing";
218 return "FixFieldIncorrect";
220 return "PriceMustBeGreaterThanZero";
222 return "InvalidOrderQualifier";
224 return "UserNotAuthorized";
226 return "MarketOrdersNotSupportedByOpposite";
228 return "InvalidExpireDate";
230 return "OrderNotInBook";
232 return "OrderNotInBook2";
234 return "DisclosedQtyCannotBeGreater";
236 return "UnknownContract";
238 return "CancelWithDifferentSenderCompId";
240 return "ClordidDifferentThanCorrelationclordid";
242 return "ClordidDifferentThanOriginalclordid";
244 return "DifferentSide";
246 return "DifferentGroup";
248 return "DifferentSecurityType";
250 return "DifferentAccount";
252 return "DifferentQty";
254 return "CancelWithDifferentTraderId";
256 return "StopPriceMustBeGreater";
258 return "StopPriceMustBeSmaller";
260 return "SellStopPriceMustBeBelowLtp";
262 return "BuyStopPriceMustBeAboveLtp";
264 return "DifferentProduct";
266 return "DifferentInflightFillMitigation";
268 return "ModifyWithDifferentSenderCompId";
270 return "ModifyWithDifferentTraderId";
272 return "OrderQtyOutsideAllowableRange";
274 return "InvalidOrderTypeForPcp";
276 return "OrderPriceOutsideLimits";
278 return "OrderPriceOutsideBands";
280 return "InvalidOrderTypeForGroup";
282 return "InstrumentCrossRequestInProgress";
284 return "OrderQtyTooLow";
286 return "OrderRejected";
288 return "MarketInNoCancel";
290 return "InvalidOrderTypeForReservedMarket";
292 return "OrderSessionDateInPast";
294 return "DisclosedQtyCannotBeSmaller";
296 return "MarketMakerProtectionHasTripped";
298 return "EngineDidNotRespond";
300 return "ContractNotGtcGtdEligible";
302 return "ContractPastExpiration";
304 return "MaxContractWorkingQtyExceeded";
306 return "ModifyWithDifferentSide";
308 return "ContractNotGtcGtdEligible2";
310 return "NoTradingCalendarForExpireDate";
312 return "ExpireDateBeyondInstrumentExpiration";
314 return "ExpireDateBeyondLegInstrumentExpiration";
316 return "TechnicalErrorFunctionNotPerformed";
318 return "DuplicateQuote";
320 return "PendingReplace";
322 return "PendingCancel";
324 return "CleanupPendingAction";
326 return "PendingOrderRejectedDueToResend";
328 return "OrderStagedOrderCancelRejectedByClaimant";
330 return "OrderStagedOrderReplaceRejectedByClaimant";
332 return "OrderStaleStagedOrderReplaceAcceptedByClaimant";
334 return "InvalidRequest";
336 return "BeforeSendHandlerReject";
338 return "ActionNotSupported";
340 return "SendError";
342 return "AotcCrossesOrderInSameAccount";
344 return "PreventDuplicateOrder";
346 return "NoPriceSubForDeviationCalc";
348 return "ServerOverload";
350 return "PendingNew";
352 return "ReviewStatusInvalidTransition";
354 return "OrderTimedOut";
356 return "InvalidSecurityId";
358 return "UnknownMarketSegmentId";
360 return "FieldMissingOrIncorrect";
362 return "ApiNotReady";
363 default:
364 return "Unknown";
365 }
366 }
367}
@ ExpireDateBeyondInstrumentExpiration
@ ClordidDifferentThanCorrelationclordid
@ OrderAlreadyInPendingCancelOrPendingReplaceStatus
@ ExpireDateBeyondLegInstrumentExpiration
@ UnableToProcessOrderMassCancelRequest
const char * ToString(const AccountConnectionStatus::ConnectionStatus status)
Definition connection.h:50
@ NotSet
Definition environment.h:7
@ OrderAlreadyInPendingCancelOrPendingReplaceStatus
@ OrderStaleStagedOrderReplaceAcceptedByClaimant