TT CORE SDK 2.0.1.1
TT CORE SDK documentation
Loading...
Searching...
No Matches
AlgoResponseCode.h
Go to the documentation of this file.
1/***************************************************************************
2*
3* Unpublished Work Copyright (c) 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#pragma once
19
20namespace ttsdk
21{
23 {
24 Ok = 0,
25 UnknownSymbol = 1,
26 QtyNotSet = 2,
27 PriceNotSet = 3,
28 TypeNotSet = 4,
29 TIFNotSet = 5,
30 SideNotSet = 6,
31 AccountNotSet = 7,
34 UnknownOrder = 10,
35 DuplicateOrder = 11,
38 RoutingError = 14,
39 AlgoNotWorking = 15,
40 InvalidPrice = 16,
41 InvalidQty = 17,
43 PendingAction = 19,
45 InvalidRequest = 21,
46 PriceSubFailed = 22,
47 Other = 23,
49 };
50
51 inline const char* ToString(const AlgoResponseCode value)
52 {
53 switch (value)
54 {
56 return "NotSet";
58 return "UnknownSymbol";
60 return "QtyNotSet";
62 return "PriceNotSet";
64 return "TypeNotSet";
66 return "TIFNotSet";
68 return "SideNotSet";
70 return "AccountNotSet";
72 return "MissingParameters";
74 return "InvalidParameters";
76 return "UnknownOrder";
78 return "DuplicateOrder";
80 return "RiskRejectReceived";
82 return "InvalidAlgoInstrument";
84 return "RoutingError";
86 return "AlgoNotWorking";
88 return "InvalidPrice";
90 return "InvalidQty";
92 return "UserNotAuthorized";
94 return "NotSupportedAction";
96 return "InvalidRequest";
98 return "Other";
99 default:
100 return "Unknown";
101 }
102 }
103}
const char * ToString(const AccountConnectionStatus::ConnectionStatus status)
Definition connection.h:50