TT CORE SDK 2.0.1.1
TT CORE SDK documentation
Loading...
Searching...
No Matches
TimeInForce.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\enums.proto
21* Package tt.messaging.order.enums
22*
23***************************************************************************/
24#pragma once
25
26namespace ttsdk
27{
28 enum class TimeInForce
29 {
30 NotSet = -1,
31 Unknown = 0,
32 Day = 1,
34 AtTheOpening = 3,
36 FillOrKill = 5,
38 GoodTillDate = 7,
39 AtTheClose = 8,
41 AtCrossing = 10,
42 Auction = 13,
43 GoodInSession = 14,
44 DayPlus = 15,
47 GoodTillTime = 18,
50 FillOrKillPlus = 21,
53 };
54
55 inline const char* ToString(const TimeInForce value)
56 {
57 switch (value)
58 {
60 return "NotSet";
62 return "Unknown";
64 return "Day";
66 return "GoodTillCancel";
68 return "AtTheOpening";
70 return "ImmediateOrCancel";
72 return "FillOrKill";
74 return "GoodTillCrossing";
76 return "GoodTillDate";
78 return "AtTheClose";
80 return "GoodThroughCrossing";
82 return "AtCrossing";
84 return "Auction";
86 return "GoodInSession";
88 return "DayPlus";
90 return "GoodTillCancelPlus";
92 return "GoodTillDatePlus";
94 return "GoodTillTime";
96 return "ClosingPriceCross";
98 return "ImmediateOrCancelPlus";
100 return "FillOrKillPlus";
102 return "MorningAtTheClose";
104 return "AfternoonAtTheClose";
105 default:
106 return "Unknown";
107 }
108 }
109}
const char * ToString(const AccountConnectionStatus::ConnectionStatus status)
Definition connection.h:50
@ NotSet
Definition environment.h:7