OnixS C++ ICE Binary Order Entry Handler 1.0.0
API Documentation
Loading...
Searching...
No Matches
Fields.h
Go to the documentation of this file.
1// Copyright Onix Solutions Limited [OnixS]. All rights reserved.
2//
3// This software owned by Onix Solutions Limited [OnixS] and is
4// protected by copyright law and international copyright treaties.
5//
6// Access to and use of the software is governed by the terms of the applicable
7// OnixS Software Services Agreement (the Agreement) and Customer end user license
8// agreements granting a non-assignable, non-transferable and non-exclusive license
9// to use the software for it's own data processing purposes under the terms defined
10// in the Agreement.
11//
12// Except as otherwise granted within the terms of the Agreement, copying or
13// reproduction of any part of this source code or associated reference material
14// to any other location for further reproduction or redistribution, and any
15// amendments to this copyright notice, are expressly prohibited.
16//
17// Any reproduction or redistribution for sale or hiring of the Software not in
18// accordance with the terms of the Agreement is a violation of copyright law.
19//
20
21#pragma once
22
28
30
33
34
39
40
44typedef UInt16 UTCDateOnly;
45
46
51
52
56typedef UInt64 UTCTimestamp;
57
58
62typedef Char CharType;
63
64
68typedef Int8 Int8NULL;
69
70
75
76
81
82
87
88
93
94
99
100
105
106
111
112
125
130{
133};
134
138enum class ExecInstEnum : Char
139{
141 AON = 'G',
142
144 PNC = 'P',
145
147 DP = 'D'
148};
149
154{
157
159 OTHER = 99
160};
161
166{
168 APT = 'A',
169
171 G = 'G'
172};
173
178{
180 C = 'C',
181
183 D = 'D',
184
186 G = 'G',
187
189 H = 'H',
190
192 W = 'W',
193
195 Y = 'Y'
196};
197
202{
205
207 Limit = 2,
208
210 Stop = 3,
211
214};
215
220{
223
226
229
231 NPV = 101,
232
235
238};
239
244{
247};
248
253{
255 Open = 'O',
256
258 Close = 'C'
259};
260
265{
267 DEAL = 0,
268
270 MTCH = 1,
271
274};
275
290
295{
297 Day = 0,
298
300 GTC = 1,
301
303 FAK = 3,
304
306 FOK = 4,
307
309 GTD = 6
310};
311
316{
319
322
325
328
331};
332
337{
339 New = '0',
340
343
345 Fill = '2',
346
349
351 Replaced = '5',
352
354 Rejected = '8',
355
357 Restated = 'D',
358
361
364};
365
370{
372 New = 0,
373
376
378 Fill = 2,
379
382
385
388};
389
393enum class SideEnum : UInt8
394{
396 Buy = 1,
397
400};
401
405enum class BooleanEnum : UInt8
406{
408 False = 0,
409
412};
413
443
462
467{
469 FUT = 1,
470
472 OPT = 2,
473
476
479};
480
483{
486
488 PNC = 1,
489
491 DP = 2,
492
494 LIS = 3
495};
496
499{
501 ICE = 0,
502
504 ENDEX = 1,
505
508};
509
537
540{
543
546
549};
550
592
596enum class CrossTypeEnum : Char
597{
599 AON = '1',
600
602 IOC = '2'
603};
604
609{
612
615};
616
619{
622
625
628
631
634};
635
683
698
708
721
739
744{
746 Info = 1,
747
750
752 Error = 3,
753
756};
757
770
795
800{
803
806
809};
810
826
829{
832
835
838};
839
844{
846 LRGS = 1,
847
849 SIZE = 2,
850
853};
854
856enum class OrderFlags : UInt8
857{
859 None = 0,
860
863
866
869
872
874 Reserved4 = 0x10,
875
877 Reserved5 = 0x20,
878
880 Reserved6 = 0x40,
881
884};
885
887
889enum class TradeFlags : UInt8
890{
892 None = 0,
893
896
899
902
905
907 Reserved4 = 0x10,
908
910 Reserved5 = 0x20,
911
913 Reserved6 = 0x40,
914
917};
918
920
922enum class HeaderFlags : UInt8
923{
925 None = 0,
926
928 PossDupe = 0x1,
929
932
935
938
940 Reserved4 = 0x10,
941
943 Reserved5 = 0x20,
944
946 Reserved6 = 0x40,
947
950};
951
953
954
956typedef
957IntegralConstant<Int64, -9223372036854775807LL-1>
959
960
962typedef
965
966
968typedef
971
972
974typedef
977
978
980typedef
983
984
986typedef
987IntegralConstant<Int16, -32768>
989
990
992typedef
993IntegralConstant<Int32, -2147483647-1>
995
996
998typedef
999IntegralConstant<Int64, -9223372036854775807LL-1>
1001
1002
1004typedef
1007
1008
1010typedef
1013
1014
1016typedef
1019
1020
1022typedef
1025
1026
1027
1029{
1030 return Timestamp(TimeSpan(value, 0, 0, 0, 0).ticks());
1031}
1032using dateToTimestamp = ONIXS_ICEBOE_WRAP_F(dateToTimestampImpl);
1033
1035{
1036 return static_cast<UTCDateOnly>(TimeSpan(value.sinceEpoch()).days());
1037}
1038using timestampToDate = ONIXS_ICEBOE_WRAP_F(timestampToDateImpl);
1039
1041{
1042 return Timestamp(value);
1043}
1044using ticksToTimestamp = ONIXS_ICEBOE_WRAP_F(ticksToTimestampImpl);
1045
1047{
1048 return value.sinceEpoch();
1049}
1050using timestampToTicks = ONIXS_ICEBOE_WRAP_F(timestampToTicksImpl);
1051
1052
#define ONIXS_ICEBOE_MESSAGING_NAMESPACE_BEGIN
Definition ABI.h:102
#define ONIXS_ICEBOE_MESSAGING_NAMESPACE_END
Definition ABI.h:106
#define ONIXS_ICEBOE_DEFINE_SET(set)
Definition Bits.h:112
Days days() const noexcept
Definition Time.h:224
The time point without the time-zone information.
Definition Time.h:470
ONIXS_ICEBOE_WRAP_F(ticksToTimestampImpl) ticksToTimestamp
Definition Fields.h:1044
UInt8 Uint8NULL
uint8NULL.
Definition Fields.h:92
IntegralConstant< Int8, -128 > NullInt8NULL
Null value for an optional Int8NULL field.
Definition Fields.h:982
PriceTypeEnum
PriceTypeEnumNULL type.
Definition Fields.h:220
@ FixedCabinetTradePrice
FixedCabinetTradePrice.
Definition Fields.h:225
Char CharType
Type alias for the CharType.
Definition Fields.h:62
OrderFlags
OrderFlags type.
Definition Fields.h:857
@ StopLimitPriceChanged
Stop order price updated.
Definition Fields.h:862
@ Reserved5
0=Reserved For Future Use.
Definition Fields.h:877
@ Reserved4
0=Reserved For Future Use.
Definition Fields.h:874
@ Reserved7
0=Reserved For Future Use.
Definition Fields.h:883
@ StopElected
Stop order elected.
Definition Fields.h:865
@ Reserved3
0=Reserved For Future Use.
Definition Fields.h:871
@ Reserved2
0=Reserved For Future Use.
Definition Fields.h:868
@ Reserved6
0=Reserved For Future Use.
Definition Fields.h:880
RFCStatusEnum
RFCStatusEnum type.
Definition Fields.h:446
@ PartialSuccessBidFailure
PartialSuccessBidFailure.
Definition Fields.h:454
@ PartialSuccessOfferFailure
PartialSuccessOfferFailure.
Definition Fields.h:457
OrderStateEnum
OrderStateEnumNULL type.
Definition Fields.h:316
Timestamp ticksToTimestampImpl(UTCTimestamp value) noexcept
Definition Fields.h:1040
BenchmarkPriceTypeEnum
BenchmarkPriceTypeEnumNULL type.
Definition Fields.h:244
IntegralConstant< UInt16, 65535 > NullUint16NULL
Null value for an optional Uint16NULL field.
Definition Fields.h:1012
IntegralConstant< Int32, -2147483647-1 > NullInt32NULL
Null value for an optional Int32NULL field.
Definition Fields.h:994
OrderTypeEnum
OrderTypeEnum type.
Definition Fields.h:202
TradeFlags
TradeFlags type.
Definition Fields.h:890
@ DealAdjustIndicator
Set on trade bust to indicate trade was adjusted.
Definition Fields.h:898
@ LiquidityIndicator
0 = Removed Liquidity. 1 = Added Liquidity.
Definition Fields.h:895
MassCancelResponseEnum
MassCancelResponseEnum type.
Definition Fields.h:711
SecurityResponseTypeEnum
SecurityResponseTypeEnum type.
Definition Fields.h:813
@ RejectedSecurityPerRequest
RejectedSecurityPerRequest.
Definition Fields.h:821
@ AcceptedSecurityAsDefined
AcceptedSecurityAsDefined.
Definition Fields.h:815
@ AcceptedSecurityPerRequest
AcceptedSecurityPerRequest.
Definition Fields.h:818
MassCancelRejectEnum
MassCancelRejectEnumNULL type.
Definition Fields.h:726
@ InvalidTradingSession
InvalidTradingSession.
Definition Fields.h:731
BooleanEnum
BooleanEnum type.
Definition Fields.h:406
UInt32 Uint32NULL
uint32NULL.
Definition Fields.h:104
IntegralConstant< UInt32, 4294967295 > NullUint32NULL
Null value for an optional Uint32NULL field.
Definition Fields.h:1018
WaiverIndicatorEnum
WaiverIndicatorEnumNULL type.
Definition Fields.h:844
@ SIZE
Above specified size: Off-exchange trade (except EFP) less than LIS.
Definition Fields.h:849
@ LRGS
Large In Scale (LIS): Off-exchange trade (except EFP) greater than or equal to LIS.
Definition Fields.h:846
IntegralConstant< UInt8, 255 > NullUint8NULL
Null value for an optional Uint8NULL field.
Definition Fields.h:1006
MassCancelRequestTypeEnum
MassCancelRequestTypeEnum type.
Definition Fields.h:701
@ CancelForTradingSession
CancelForTradingSession.
Definition Fields.h:703
QuoteEntryRejectReasonEnum
QuoteEntryRejectReasonEnumNULL type.
Definition Fields.h:688
@ RiskProtectionActiveForSellSide
RiskProtectionActiveForSellSide.
Definition Fields.h:696
HandlInstEnum
HandlInstEnumNULL type.
Definition Fields.h:130
Int8 Int8NULL
int8NULL.
Definition Fields.h:68
ExchangeSiloEnum
ExchangeSiloEnum type.
Definition Fields.h:499
SideEnum
SideEnum type.
Definition Fields.h:394
MultiLegReportingTypeEnum
MultiLegReportingTypeEnum type.
Definition Fields.h:115
IntegralConstant< Char, '\x0'> NullCharType
Null value for an optional CharType field.
Definition Fields.h:976
Int32 Int32NULL
int32NULL.
Definition Fields.h:80
ExecTypeEnum
ExecTypeEnum type.
Definition Fields.h:337
ExecRestatementReasonEnum
ExecRestatementReasonEnumNULL type.
Definition Fields.h:154
CancelReasonEnum
CancelReasonEnumNULL type.
Definition Fields.h:418
@ CanceledAtMarketClose
CanceledAtMarketClose.
Definition Fields.h:429
@ CanceledForReasonabilityLimits
CanceledForReasonabilityLimits.
Definition Fields.h:426
ExecInstEnum
ExecInstEnumNULL type.
Definition Fields.h:139
@ PNC
Privately negotiated contract.
Definition Fields.h:144
IntegralConstant< UInt64, 0ULL > NullUTCTimestamp
Null value for an optional UTCTimestamp field.
Definition Fields.h:970
UInt64 UTCTimestamp
Nanoseconds since Unix epoch (January 1st, 1970).
Definition Fields.h:50
Int64 Decimal9
Quantity, Price with constant exponent -9.
Definition Fields.h:32
UTCDateOnly timestampToDateImpl(Timestamp value) noexcept
Definition Fields.h:1034
AllocHandlInstEnum
AllocHandlInstEnumNULL type.
Definition Fields.h:166
@ APT
Average price transaction.
Definition Fields.h:168
char Char
Character type alias.
Definition String.h:31
SelfMatchPreventionInstructionEnum
SelfMatchPreventionInstructionEnumNULL type.
Definition Fields.h:280
IntegralConstant< Int64, -9223372036854775807LL-1 > NullInt64NULL
Null value for an optional Int64NULL field.
Definition Fields.h:1000
SettlMethodEnum
SettlMethodEnum type.
Definition Fields.h:609
SeverityLevelEnum
SeverityLevelEnumNULL type.
Definition Fields.h:744
IntegralConstant< Int64, -9223372036854775807LL-1 > NullDecimal9
Null value for an optional Decimal9 field.
Definition Fields.h:958
BlockTypeEnum
BlockTypeEnum type.
Definition Fields.h:483
TradingCapacityEnum
TradingCapacityEnumNULL type.
Definition Fields.h:265
IntegralConstant< UInt64, 18446744073709551615ULL > NullUint64NULL
Null value for an optional Uint64NULL field.
Definition Fields.h:1024
CrossTypeEnum
CrossTypeEnum type.
Definition Fields.h:597
SecurityRequestTypeEnum
SecurityRequestTypeEnum type.
Definition Fields.h:773
@ RequestListofStrategies
RequestListofStrategies.
Definition Fields.h:784
UInt16 UTCDateOnly
UTC days since Unix epoch (January 1st, 1970).
Definition Fields.h:38
Int16 Int16NULL
int16NULL.
Definition Fields.h:74
CustOrderHandlingInstEnum
CustOrderHandlingInstEnumNULL type.
Definition Fields.h:178
@ C
Vendor-provided platform billed by executing broker.
Definition Fields.h:180
@ H
Premium algorithmic trading provider billed by executing broker.
Definition Fields.h:189
@ D
Other, including other-provided screen.
Definition Fields.h:183
QuoteCancelTypeEnum
QuoteCancelTypeEnum type.
Definition Fields.h:760
@ CancelByUnderlyingMarket
CancelByUnderlyingMarket.
Definition Fields.h:762
TimeInForceEnum
TimeInForceEnum type.
Definition Fields.h:295
PositionEffectEnum
PositionEffectEnum type.
Definition Fields.h:253
QuoteAckStatusEnum
QuoteAckStatusEnum type.
Definition Fields.h:619
SecurityTypeEnum
SecurityTypeEnum type.
Definition Fields.h:467
HeaderFlags
HeaderFlags type.
Definition Fields.h:923
StrikeExerciseStyleEnum
StrikeExerciseStyleEnumNULL type.
Definition Fields.h:800
ONIXS_ICEBOE_WRAP_F(timestampToTicksImpl) timestampToTicks
Definition Fields.h:1050
Timestamp dateToTimestampImpl(UTCDateOnly value) noexcept
Definition Fields.h:1028
ONIXS_ICEBOE_WRAP_F(timestampToDateImpl) timestampToDate
Definition Fields.h:1038
UTCTimestamp timestampToTicksImpl(Timestamp value) noexcept
Definition Fields.h:1046
SecurityTradingStatusEnum
SecurityTradingStatusEnum type.
Definition Fields.h:512
@ UnknownOrInvalid_Expired
UnknownOrInvalid_Expired.
Definition Fields.h:529
@ TradingAsStrategyLegOnly_Open
TradingAsStrategyLegOnly_Open.
Definition Fields.h:535
@ NoOpen_NoResume_PreClose
NoOpen_NoResume_PreClose.
Definition Fields.h:517
@ NotAvailableForTrading_Close
NotAvailableForTrading_Close.
Definition Fields.h:523
OrderStatusEnum
OrderStatusEnumNULL type.
Definition Fields.h:370
UInt64 Uint64NULL
uint64NULL.
Definition Fields.h:110
RejectResponseToEnum
RejectResponseToEnum type.
Definition Fields.h:540
IntegralConstant< Int16, -32768 > NullInt16NULL
Null value for an optional Int16NULL field.
Definition Fields.h:988
RejectEnum
RejectEnumNULL type.
Definition Fields.h:555
@ MissingPermissions
MissingPermissions.
Definition Fields.h:578
@ OrderExceedsLimit
OrderExceedsLimit.
Definition Fields.h:566
@ UnableToProcessRequest
UnableToProcessRequest.
Definition Fields.h:569
@ CancelOrReplacePending
CancelOrReplacePending.
Definition Fields.h:584
@ RiskProtectionActive
RiskProtectionActive.
Definition Fields.h:590
QuoteRejectReasonEnum
QuoteRejectReasonEnumNULL type.
Definition Fields.h:640
@ NoClearingAccountForTrader
NoClearingAccountForTrader.
Definition Fields.h:657
@ ExceedsAllowedMassQuotes
ExceedsAllowedMassQuotes.
Definition Fields.h:678
@ FirstSetMassQuoteIsEmpty
FirstSetMassQuoteIsEmpty.
Definition Fields.h:663
@ InvalidClearingAccountStatus
InvalidClearingAccountStatus.
Definition Fields.h:666
@ InvalidClearingLimits
InvalidClearingLimits.
Definition Fields.h:669
@ ExceedsAllowedMassQuoteSets
ExceedsAllowedMassQuoteSets.
Definition Fields.h:675
Int64 Int64NULL
int64NULL.
Definition Fields.h:86
ONIXS_ICEBOE_WRAP_F(dateToTimestampImpl) dateToTimestamp
Definition Fields.h:1032
UInt16 Uint16NULL
uint16NULL.
Definition Fields.h:98
RequestStatusEnum
RequestStatusEnum type.
Definition Fields.h:829
IntegralConstant< UInt16, 0 > NullUTCDateOnly
Null value for an optional UTCDateOnly field.
Definition Fields.h:964
Error processing client request.
Definition Messages.h:1339