TT CORE SDK 2.1.1.1
TT CORE SDK documentation
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
19namespace 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 {
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}
TradeType
Definition TradeType.h:22
const char * ToString(const AccountConnectionStatus::ConnectionStatus status)
Definition connection.h:50
@ NotSet
Definition environment.h:7