-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathenums.h
148 lines (136 loc) · 3.45 KB
/
enums.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
#pragma once
#include <cstdint>
// Type-safe representations of the single character alphanumeric codes used in the spec.
// See the specification for documentation.
namespace asx24itch
{
enum class ContractType : uint8_t
{
FutureOrForward = 'F',
RegularOption = 'O',
EquityOption = 'E',
SingleSessionOption = 'N',
CalendarOrIntraSpread = 'S',
ArbitrageOrInterSpread = 'A',
EquityCFDOrShareFuture = 'D'
};
enum class EventCode : uint8_t
{
Open = 'O',
Start = 'S',
Close = 'C',
Pause = 'P',
Resume = 'R'
};
enum class FinancialType : uint8_t
{
Commodity = 'C',
CFD = 'D',
Equity = 'E',
GovernmentBond = 'X',
BankBill = 'B'
};
enum class MessageType : uint8_t
{
TimeMessage = 'T',
SystemEvent = 'S',
FutureSymbolDirectory = 'f',
SpreadSymbolDirectory = 'g',
OptionSymbolDirectory = 'h',
OrderBookState = 'O',
OrderAdded = 'A',
OrderReplaced = 'U',
OrderVolumeCancelled = 'X',
OrderDeleted = 'D',
ImpliedOrderAdded = 'j',
ImpliedOrderReplaced = 'l',
ImpliedOrderDeleted = 'k',
CustomMarketOrderAdded = 'm',
CustomMarketOrderReplaced = 'n',
CustomMarketOrderDeleted = 'r',
OrderExecuted = 'E',
OrderExecutedWithPrice = 'C',
SpreadExecuted = 'e',
TradeSpreadExecutionChain = 'P',
CustomMarketExecuted = 'u',
CustomMarketTrade = 'p',
TradeCancellation = 'B',
EquilibriumPrice = 'Z',
OpenHighLowLastTradeAdjustment = 't',
MarketSettlement = 'Y',
TextMessage = 'x',
RequestForQuote = 'q',
SnapshotComplete = 'G',
AnomalousOrderThresholdPublish = 'W',
VolumeAndOpenInterest = 'V'
};
enum class OptionActivated : uint8_t
{
Activated = 'Y',
Deactivated = 'N'
};
enum OptionType : uint8_t
{
Put = 'P',
Call = 'C'
};
enum class Printable : uint8_t
{
IsPrintable = 'Y',
NonPrintable = 'N'
};
enum class SettlementType : uint8_t
{
Interim = 'I',
Final = 'F',
Adjustment = 'A'
};
enum class Side : uint8_t
{
Buy = 'B',
Sell = 'S',
Undefined = ' ',
};
enum class TradeType : uint8_t
{
Normal = 'T',
Sweeping = 'W',
Levelling = 'L',
SpreadToUnderlying = 'S',
IntraSpread = 'R',
InterSpread = 'Q',
Custom = 'U',
CrossNormal = 't',
CrossSweeping = 'w',
CrossLevelling = 'l',
CrossSpreadToUnderlying = 's',
CrossIntraSpread = 'r',
CrossInterSpread = 'q',
CrossCustom = 'u'
};
enum class TradingStatus : uint8_t
{
Pending = 'p',
Halted = 'H',
PreOpen = 'P',
Closed = 'C',
Levelling = 'l',
Locked = 'L',
Opened = 'O',
EndLockOrUnavailable = 'U',
PrePriceDiscovery = 'd',
Inactive = 'I',
PriceDiscovery = 'D',
Activated = 'A',
RegulatoryHalt = 'R'
};
enum class MarketUpdates : uint8_t
{
OpeningTradePrice = 0x01,
HighestTradedPrice = 0x02,
LowestTradedPrice = 0x04,
TotalTradedVolumeAndTotalTrades = 0x08,
LastTradedPrice = 0x10,
LastTradedVolume = 0x20
};
}