TT CORE SDK 2.0.1.1
TT CORE SDK documentation
Loading...
Searching...
No Matches
OrderSide.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 OrderSide
29 {
30 NotSet = 0,
31 Buy = 1,
32 Sell = 2,
33 BuyMinus = 3,
34 SellPlus = 4,
35 SellShort = 5,
37 Undisclosed = 7,
38 Cross = 8,
39 CrossShort = 9,
41 AsDefined = 11,
42 Opposite = 12,
43 Subscribe = 13,
44 Redeem = 14,
45 Lend = 15,
46 Borrow = 16,
47 Invalid = 17,
48 Held = 18,
49 };
50
51 inline const char* ToString(const OrderSide value)
52 {
53 switch (value)
54 {
56 return "NotSet";
57 case OrderSide::Buy:
58 return "Buy";
59 case OrderSide::Sell:
60 return "Sell";
62 return "BuyMinus";
64 return "SellPlus";
66 return "SellShort";
68 return "SellShortExempt";
70 return "Undisclosed";
72 return "Cross";
74 return "CrossShort";
76 return "CrossShortExempt";
78 return "AsDefined";
80 return "Opposite";
82 return "Subscribe";
84 return "Redeem";
85 case OrderSide::Lend:
86 return "Lend";
88 return "Borrow";
90 return "Invalid";
91 case OrderSide::Held:
92 return "Held";
93 default:
94 return "Unknown";
95 }
96 }
97}
OrderSide
Definition OrderSide.h:29
const char * ToString(const AccountConnectionStatus::ConnectionStatus status)
Definition connection.h:50
@ NotSet
Definition environment.h:7