TT CORE SDK
2.1.1.1
TT CORE SDK documentation
Main Page
Namespaces
Classes
Files
File List
File Members
enums
TradeType.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
#pragma once
18
19
namespace
ttsdk
20
{
21
enum class
TradeType
22
{
23
NotSet
= 0,
24
Take
= 16,
25
Hit
= 32,
26
Rest
= 64,
27
Unknown
= 255,
28
};
29
30
inline
const
char
*
ToString
(
const
TradeType
value)
31
{
32
switch
(value)
33
{
34
case
TradeType::NotSet
:
35
return
"NotSet"
;
36
case
TradeType::Hit
:
37
return
"Hit"
;
38
case
TradeType::Take
:
39
return
"Take"
;
40
case
TradeType::Rest
:
41
return
"Rest"
;
42
default
:
43
return
"Unknown"
;
44
}
45
}
46
}
ttsdk
Definition
account.h:21
ttsdk::AlgoType::Unknown
@ Unknown
Definition
AlgoType.h:42
ttsdk::TradeType
TradeType
Definition
TradeType.h:22
ttsdk::TradeType::Rest
@ Rest
Definition
TradeType.h:26
ttsdk::TradeType::Take
@ Take
Definition
TradeType.h:24
ttsdk::TradeType::Hit
@ Hit
Definition
TradeType.h:25
ttsdk::TradeType::NotSet
@ NotSet
Definition
TradeType.h:23
ttsdk::ToString
const char * ToString(const AccountConnectionStatus::ConnectionStatus status)
Definition
connection.h:50
ttsdk::NotSet
@ NotSet
Definition
environment.h:7
Generated by
1.15.0