TT CORE SDK 2.0.1.1
TT CORE SDK documentation
Loading...
Searching...
No Matches
RejectCode.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\reject_reason.proto
21* Package tt.messaging.order
22*
23***************************************************************************/
24#pragma once
25
26namespace ttsdk
27{
28 enum class RejectCode
29 {
30 NotSet = -1,
31 Invalid = 0,
32 UnknownOrder = 1,
35 InvalidQty = 4,
36 NotAllowed = 5,
37 NoConnection = 6,
39 NoLimit = 8,
46 TifForbidden = 15,
47 DeleteForbidden = 16,
48 SubmitForbidden = 17,
49 GtcGtdForbidden = 18,
54 SpreadForbidden = 23,
55 TradingDisabled = 24,
59 InvalidPrice = 28,
62 MobileForbidden = 31,
64 CrossedOrder = 33,
71 LbmSendFailure = 40,
79 RfqDisabled = 48,
82 DuplicateQuote = 51,
91 TooLateToAmend = 60,
92 ModifyForbidden = 61,
100 };
101
102 inline const char* ToString(const RejectCode value)
103 {
104 switch (value)
105 {
107 return "NotSet";
109 return "Invalid";
111 return "UnknownOrder";
113 return "UnknownProduct";
115 return "UnknownInstrument";
117 return "InvalidQty";
119 return "NotAllowed";
121 return "NoConnection";
123 return "DuplicateOrder";
125 return "NoLimit";
127 return "ExceedsMaxOrderSize";
129 return "ExceedsMaxProductPosition";
131 return "ExceedsMaxInstrumentPosition";
133 return "ExceedsCreditLimit";
135 return "IncorrectInstrumentType";
137 return "ExceedsLongShort";
139 return "TifForbidden";
141 return "DeleteForbidden";
143 return "SubmitForbidden";
145 return "GtcGtdForbidden";
147 return "MarketOrderForbidden";
149 return "AlgoOrderForbidden";
151 return "WholesaleOrderForbidden";
153 return "OutrightForbidden";
155 return "SpreadForbidden";
157 return "TradingDisabled";
159 return "ExceedsPriceReasonability";
161 return "AseOrderForbidden";
163 return "UnsupportedSecurityType";
165 return "InvalidPrice";
167 return "ManualFillSubmitForbidden";
169 return "MalformedRequest";
171 return "MobileForbidden";
173 return "UnsupportedMarket";
175 return "CrossedOrder";
177 return "UnsupportedRequest";
179 return "ExceedsReserveQty";
181 return "NotTradableInstrument";
183 return "CrossedOrderNoTtint";
185 return "CrossedOrderMultiLeg";
187 return "ChildOrderQtyChangeForbidden";
189 return "LbmSendFailure";
191 return "IncorrectBrokerId";
193 return "InvalidCounterpartyId";
195 return "SubmitStagedForbidden";
197 return "ClaimStagedForbidden";
199 return "CancelReplaceStagedForbidden";
201 return "StagedChildForbidden";
203 return "StagedAlreadyInPending";
205 return "RfqDisabled";
207 return "PositionNotOffSetting";
209 return "ProductMarginNotSet";
211 return "DuplicateQuote";
213 return "InterproductForbidden";
215 return "TradingDisabledAutoLiquidate";
217 return "ExceedsMaxFamilyPosition";
219 return "StagedOrderCancelRejectedByClaimant";
221 return "StagedOrderReplaceRejectedByClaimant";
223 return "StaleStagedOrderReplaceAcceptedByClaimant";
225 return "StagedOrderNewPendingRequestArrived";
227 return "PreventDuplicateOrder";
229 return "TooLateToAmend";
231 return "ModifyForbidden";
233 return "TradingDisabledMic";
235 return "ReviewStatusInvalidTransition";
237 return "StagedOrderCancelRejectedChildNosUnacked";
239 return "ClearingAccountModifyForbidden";
241 return "OtdRequestTimedOut";
243 return "TtMarginOverrideNotEnabled";
245 return "ExceedsSpanCreditLimit";
246 default:
247 return "Unknown";
248 }
249 }
250}
@ StaleStagedOrderReplaceAcceptedByClaimant
@ StagedOrderReplaceRejectedByClaimant
@ StagedOrderCancelRejectedByClaimant
@ StaleStagedOrderReplaceAcceptedByClaimant
@ StagedOrderNewPendingRequestArrived
@ StagedOrderCancelRejectedChildNosUnacked
@ StagedOrderReplaceRejectedByClaimant
const char * ToString(const AccountConnectionStatus::ConnectionStatus status)
Definition connection.h:50
@ NotSet
Definition environment.h:7