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
20
namespace
ttsdk
21
{
22
enum class
AlgoResponseCode
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,
32
MissingParameters
= 8,
33
InvalidParameters
= 9,
34
UnknownOrder
= 10,
35
DuplicateOrder
= 11,
36
RiskRejectReceived
= 12,
37
InvalidAlgoInstrument
= 13,
38
RoutingError
= 14,
39
AlgoNotWorking
= 15,
40
InvalidPrice
= 16,
41
InvalidQty
= 17,
42
UserNotAuthorized
= 18,
43
PendingAction
= 19,
44
NotSupportedAction
= 20,
45
InvalidRequest
= 21,
46
PriceSubFailed
= 22,
47
Other
= 23,
48
AlgoRecoveryDisabled
= 24,
49
};
50
51
inline
const
char
*
ToString
(
const
AlgoResponseCode
value)
52
{
53
switch
(value)
54
{
55
case
AlgoResponseCode::Ok
:
56
return
"NotSet"
;
57
case
AlgoResponseCode::UnknownSymbol
:
58
return
"UnknownSymbol"
;
59
case
AlgoResponseCode::QtyNotSet
:
60
return
"QtyNotSet"
;
61
case
AlgoResponseCode::PriceNotSet
:
62
return
"PriceNotSet"
;
63
case
AlgoResponseCode::TypeNotSet
:
64
return
"TypeNotSet"
;
65
case
AlgoResponseCode::TIFNotSet
:
66
return
"TIFNotSet"
;
67
case
AlgoResponseCode::SideNotSet
:
68
return
"SideNotSet"
;
69
case
AlgoResponseCode::AccountNotSet
:
70
return
"AccountNotSet"
;
71
case
AlgoResponseCode::MissingParameters
:
72
return
"MissingParameters"
;
73
case
AlgoResponseCode::InvalidParameters
:
74
return
"InvalidParameters"
;
75
case
AlgoResponseCode::UnknownOrder
:
76
return
"UnknownOrder"
;
77
case
AlgoResponseCode::DuplicateOrder
:
78
return
"DuplicateOrder"
;
79
case
AlgoResponseCode::RiskRejectReceived
:
80
return
"RiskRejectReceived"
;
81
case
AlgoResponseCode::InvalidAlgoInstrument
:
82
return
"InvalidAlgoInstrument"
;
83
case
AlgoResponseCode::RoutingError
:
84
return
"RoutingError"
;
85
case
AlgoResponseCode::AlgoNotWorking
:
86
return
"AlgoNotWorking"
;
87
case
AlgoResponseCode::InvalidPrice
:
88
return
"InvalidPrice"
;
89
case
AlgoResponseCode::InvalidQty
:
90
return
"InvalidQty"
;
91
case
AlgoResponseCode::UserNotAuthorized
:
92
return
"UserNotAuthorized"
;
93
case
AlgoResponseCode::NotSupportedAction
:
94
return
"NotSupportedAction"
;
95
case
AlgoResponseCode::InvalidRequest
:
96
return
"InvalidRequest"
;
97
case
AlgoResponseCode::Other
:
98
return
"Other"
;
99
default
:
100
return
"Unknown"
;
101
}
102
}
103
}
ttsdk
Definition
account.h:21
ttsdk::AlgoResponseCode
AlgoResponseCode
Definition
AlgoResponseCode.h:23
ttsdk::AlgoResponseCode::AlgoRecoveryDisabled
@ AlgoRecoveryDisabled
ttsdk::AlgoResponseCode::QtyNotSet
@ QtyNotSet
ttsdk::AlgoResponseCode::AlgoNotWorking
@ AlgoNotWorking
ttsdk::AlgoResponseCode::InvalidParameters
@ InvalidParameters
ttsdk::AlgoResponseCode::RiskRejectReceived
@ RiskRejectReceived
ttsdk::AlgoResponseCode::TIFNotSet
@ TIFNotSet
ttsdk::AlgoResponseCode::TypeNotSet
@ TypeNotSet
ttsdk::AlgoResponseCode::UserNotAuthorized
@ UserNotAuthorized
ttsdk::AlgoResponseCode::SideNotSet
@ SideNotSet
ttsdk::AlgoResponseCode::Other
@ Other
ttsdk::AlgoResponseCode::PendingAction
@ PendingAction
ttsdk::AlgoResponseCode::UnknownSymbol
@ UnknownSymbol
ttsdk::AlgoResponseCode::InvalidAlgoInstrument
@ InvalidAlgoInstrument
ttsdk::AlgoResponseCode::DuplicateOrder
@ DuplicateOrder
ttsdk::AlgoResponseCode::PriceSubFailed
@ PriceSubFailed
ttsdk::AlgoResponseCode::InvalidQty
@ InvalidQty
ttsdk::AlgoResponseCode::AccountNotSet
@ AccountNotSet
ttsdk::AlgoResponseCode::Ok
@ Ok
ttsdk::AlgoResponseCode::UnknownOrder
@ UnknownOrder
ttsdk::AlgoResponseCode::InvalidPrice
@ InvalidPrice
ttsdk::AlgoResponseCode::PriceNotSet
@ PriceNotSet
ttsdk::AlgoResponseCode::RoutingError
@ RoutingError
ttsdk::AlgoResponseCode::InvalidRequest
@ InvalidRequest
ttsdk::AlgoResponseCode::MissingParameters
@ MissingParameters
ttsdk::AlgoResponseCode::NotSupportedAction
@ NotSupportedAction
ttsdk::ToString
const char * ToString(const AccountConnectionStatus::ConnectionStatus status)
Definition
connection.h:50
Header Files
enums
AlgoResponseCode.h
Generated by
1.10.0