OnixS C++ CME MDP Premium Market Data Handler 5.9.0
Users' manual and 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
23#include <OnixS/CME/MDH/Time.h>
26
28ONIXS_CMEMDH_DATA_PACKING_BEGIN(1)
29
30
33typedef Char Asset[6];
34
38typedef Char CFICode[6];
39
41typedef Char CHAR;
42
46typedef Char CountryCode[2];
47
51typedef Char Currency[3];
52
55
57typedef Int16 Int16;
58
60typedef Int32 Int32;
61
63typedef Int8 Int8;
64
69
73typedef Char LongName[35];
74
77
80
83
86
90typedef Char FeedType[3];
91
94
97
101typedef Char QuoteReqId[23];
102
107
112
117
122
127
132
136typedef Char String12[12];
137
141typedef Char String20[20];
142
146typedef Char String25[25];
147
151typedef Char String3[3];
152
156typedef Char String5[5];
157
161typedef Char String6[6];
162
166typedef Char String7[7];
167
171typedef Char String8[8];
172
176typedef Char Symbol[20];
177
181typedef Char Text[180];
182
187
191typedef Char UnitOfMeasure[30];
192
197
200
203
206
208typedef UInt8 UInt8;
209
212{
213 typedef UInt8 Base;
214
215 enum Enum
216 {
219
222 };
223};
224
227{
228 typedef UInt8 Base;
229
230 enum Enum
231 {
234
236 Buy = 1,
237
240 };
241};
242
245{
246 typedef UInt8 Base;
247
248 enum Enum
249 {
252
255 };
256};
257
290
293{
294 typedef UInt8 Base;
295
296 enum Enum
297 {
300
303 };
304};
305
308{
309 typedef CHAR Base;
310
311 enum Enum
312 {
314 Bid = '0',
315
317 Offer = '1',
318
320 Trade = '2',
321
324
327
330
333
335 VWAP = '9',
336
339
342
345
348
351
354
357
360
363
366
369
372 };
373};
374
377{
378 typedef CHAR Base;
379
380 enum Enum
381 {
383 Bid = '0',
384
386 Offer = '1',
387
390
393
396
399
402 };
403};
404
407{
408 typedef CHAR Base;
409
410 enum Enum
411 {
414
417
420
423 };
424};
425
428{
429 typedef CHAR Base;
430
431 enum Enum
432 {
435
438
440 LowTrade = '8',
441
443 VWAP = '9',
444
447
450 };
451};
452
455{
456 typedef UInt8 Base;
457
458 enum Enum
459 {
461 New = 0,
462
465
468
471
474
477 };
478};
479
482{
483 typedef UInt8 Base;
484
485 enum Enum
486 {
488 Money = 1,
489
491 Par = 2
492 };
493};
494
521
524{
525 typedef UInt8 Base;
526
527 enum Enum
528 {
530 New = 0,
531
534
537 };
538};
539
542{
543 typedef UInt8 Base;
544
545 enum Enum
546 {
549
552
555
558 };
559};
560
563{
564 typedef UInt8 Base;
565
566 enum Enum
567 {
569 Put = 0,
570
573 };
574};
575
578{
579 typedef UInt8 Base;
580
581 enum Enum
582 {
585
588 GC = 1,
589
593 };
594};
595
598{
599 typedef UInt8 Base;
600
601 enum Enum
602 {
604 CUSIP = 1,
605
608 };
609};
610
613{
614 typedef UInt8 Base;
615
616 enum Enum
617 {
620
623
626
629
632
635 };
636};
637
640{
641 typedef UInt8 Base;
642
643 enum Enum
644 {
647
649 Close = 4,
650
653
656
659
662
665
668
670 Cross = 25,
671
674
676 NoChange = 103,
677
680
683 };
684};
685
688{
689 typedef CHAR Base;
690
691 enum Enum
692 {
694 Add = 'A',
695
697 Delete = 'D',
698
700 Modify = 'M'
701 };
702};
703
706{
707 typedef UInt8 Base;
708
709 enum Enum
710 {
712 Buy = 1,
713
716 };
717};
718
721{
722 typedef UInt8 Base;
723
724 enum Enum
725 {
728
731
734
737 };
738};
739
742{
743public:
746 typedef UInt32 Bits;
747
750 {
751 return 0 != (bits_ & 0x1);
752 }
753
756 {
757 return 0 != (bits_ & 0x2);
758 }
759
762 {
763 return 0 != (bits_ & 0x4);
764 }
765
767 bool efpEligible() const
768 {
769 return 0 != (bits_ & 0x8);
770 }
771
773 bool ebfEligible() const
774 {
775 return 0 != (bits_ & 0x10);
776 }
777
779 bool efsEligible() const
780 {
781 return 0 != (bits_ & 0x20);
782 }
783
785 bool efrEligible() const
786 {
787 return 0 != (bits_ & 0x40);
788 }
789
791 bool otcEligible() const
792 {
793 return 0 != (bits_ & 0x80);
794 }
795
798 {
799 return 0 != (bits_ & 0x100);
800 }
801
804 {
805 return 0 != (bits_ & 0x200);
806 }
807
810 {
811 return 0 != (bits_ & 0x400);
812 }
813
815 bool isFractional() const
816 {
817 return 0 != (bits_ & 0x800);
818 }
819
822 {
823 return 0 != (bits_ & 0x1000);
824 }
825
827 bool rfqCrossEligible() const
828 {
829 return 0 != (bits_ & 0x2000);
830 }
831
834 {
835 return 0 != (bits_ & 0x4000);
836 }
837
840 {
841 return 0 != (bits_ & 0x8000);
842 }
843
846 {
847 return 0 != (bits_ & 0x10000);
848 }
849
852 {
853 return 0 != (bits_ & 0x20000);
854 }
855
858 {
859 return 0 != (bits_ & 0x40000);
860 }
861
864 {
865 return 0 != (bits_ & 0x80000);
866 }
867
870 {
871 return 0 != (bits_ & 0x100000);
872 }
873
876 {
877 return 0 != (bits_ & 0x200000);
878 }
879
881 bool invertedBook() const
882 {
883 return 0 != (bits_ & 0x400000);
884 }
885
887 bool isAoNInstrument() const
888 {
889 return 0 != (bits_ & 0x800000);
890 }
891
893 bool sefRegulated() const
894 {
895 return 0 != (bits_ & 0x1000000);
896 }
897
899 bool mtfRegulated() const
900 {
901 return 0 != (bits_ & 0x2000000);
902 }
903
905 bool eFIXInstrument() const
906 {
907 return 0 != (bits_ & 0x4000000);
908 }
909
911 bool hedgeInstrument() const
912 {
913 return 0 != (bits_ & 0x8000000);
914 }
915
917 inline Bits bits() const
918 {
919 return bits_;
920 }
921
923 : bits_(bits)
924 {
925 }
926
927private:
928 Bits bits_;
929};
930
933{
934public:
937 typedef UInt8 Bits;
938
940 bool lastTradeMsg() const
941 {
942 return 0 != (bits_ & 0x1);
943 }
944
946 bool lastVolumeMsg() const
947 {
948 return 0 != (bits_ & 0x2);
949 }
950
952 bool lastQuoteMsg() const
953 {
954 return 0 != (bits_ & 0x4);
955 }
956
958 bool lastStatsMsg() const
959 {
960 return 0 != (bits_ & 0x8);
961 }
962
964 bool lastImpliedMsg() const
965 {
966 return 0 != (bits_ & 0x10);
967 }
968
970 bool recoveryMsg() const
971 {
972 return 0 != (bits_ & 0x20);
973 }
974
976 bool reserved() const
977 {
978 return 0 != (bits_ & 0x40);
979 }
980
982 bool endOfEvent() const
983 {
984 return 0 != (bits_ & 0x80);
985 }
986
988 inline Bits bits() const
989 {
990 return bits_;
991 }
992
994 : bits_(bits)
995 {
996 }
997
998private:
999 Bits bits_;
1000};
1001
1004{
1005public:
1008 typedef UInt8 Bits;
1009
1011 bool finalDaily() const
1012 {
1013 return 0 != (bits_ & 0x1);
1014 }
1015
1017 bool actual() const
1018 {
1019 return 0 != (bits_ & 0x2);
1020 }
1021
1023 bool rounded() const
1024 {
1025 return 0 != (bits_ & 0x4);
1026 }
1027
1029 bool intraday() const
1030 {
1031 return 0 != (bits_ & 0x8);
1032 }
1033
1035 bool reservedBits() const
1036 {
1037 return 0 != (bits_ & 0x10);
1038 }
1039
1041 bool nullValue() const
1042 {
1043 return 0 != (bits_ & 0x80);
1044 }
1045
1047 inline Bits bits() const
1048 {
1049 return bits_;
1050 }
1051
1053 : bits_(bits)
1054 {
1055 }
1056
1057private:
1058 Bits bits_;
1059};
1060
1061
1064
1067
1070
1073
1076
1079
1082
1085{
1086 return Timestamp(TimeSpan(days, 0, 0, 0, 0).ticks());
1087}
1088
1089ONIXS_CMEMDH_DATA_PACKING_END
#define ONIXS_CMEMDH_NAMESPACE_BEGIN
Definition Bootstrap.h:67
#define ONIXS_CMEMDH_LTWT
Definition Bootstrap.h:46
#define ONIXS_CMEMDH_NAMESPACE_END
Definition Bootstrap.h:68
bool rfqCrossEligible() const
Indicates whether RFQCrossEligible bit is set.
Definition Fields.h:827
bool decayingProductEligibility() const
Indicates whether DecayingProductEligibility bit is set.
Definition Fields.h:839
bool electronicMatchEligible() const
Indicates whether ElectronicMatchEligible bit is set.
Definition Fields.h:749
bool ebfEligible() const
Indicates whether EBFEligible bit is set.
Definition Fields.h:773
bool negativeStrikeEligible() const
Indicates whether NegativeStrikeEligible bit is set.
Definition Fields.h:803
bool efsEligible() const
Indicates whether EFSEligible bit is set.
Definition Fields.h:779
bool efrEligible() const
Indicates whether EFREligible bit is set.
Definition Fields.h:785
bool sefRegulated() const
Indicates whether SEFRegulated bit is set.
Definition Fields.h:893
bool impliedMatchingEligibility() const
Indicates whether ImpliedMatchingEligibility bit is set.
Definition Fields.h:863
bool iLinkIndicativeMassQuotingEligible() const
Indicates whether iLinkIndicativeMassQuotingEligible bit is set.
Definition Fields.h:797
bool hedgeInstrument() const
Indicates whether HedgeInstrument bit is set.
Definition Fields.h:911
bool zeroPriceOutrightEligible() const
Indicates whether ZeroPriceOutrightEligible bit is set.
Definition Fields.h:833
bool eFIXInstrument() const
Indicates whether eFIXInstrument bit is set.
Definition Fields.h:905
bool isFractional() const
Indicates whether IsFractional bit is set.
Definition Fields.h:815
bool efpEligible() const
Indicates whether EFPEligible bit is set.
Definition Fields.h:767
bool gtOrdersEligibility() const
Indicates whether GTOrdersEligibility bit is set.
Definition Fields.h:857
bool variableProductEligibility() const
Indicates whether VariableProductEligibility bit is set.
Definition Fields.h:845
bool dailyProductEligibility() const
Indicates whether DailyProductEligibility bit is set.
Definition Fields.h:851
bool variableCabEligible() const
Indicates whether VariableCabEligible bit is set.
Definition Fields.h:875
bool otcEligible() const
Indicates whether OTCEligible bit is set.
Definition Fields.h:791
bool isAoNInstrument() const
Indicates whether IsAoNInstrument bit is set.
Definition Fields.h:887
Bits bits() const
Returns elements as they packed in the set.
Definition Fields.h:917
bool volatilityQuotedOption() const
Indicates whether VolatilityQuotedOption bit is set.
Definition Fields.h:821
bool triangulationEligible() const
Indicates whether TriangulationEligible bit is set.
Definition Fields.h:869
bool invertedBook() const
Indicates whether InvertedBook bit is set.
Definition Fields.h:881
bool mtfRegulated() const
Indicates whether MTFRegulated bit is set.
Definition Fields.h:899
bool negativePriceOutrightEligible() const
Indicates whether NegativePriceOutrightEligible bit is set.
Definition Fields.h:809
bool blockTradeEligible() const
Indicates whether BlockTradeEligible bit is set.
Definition Fields.h:761
bool orderCrossEligible() const
Indicates whether OrderCrossEligible bit is set.
Definition Fields.h:755
bool reserved() const
Indicates whether Reserved bit is set.
Definition Fields.h:976
bool endOfEvent() const
Indicates whether EndOfEvent bit is set.
Definition Fields.h:982
bool lastTradeMsg() const
Indicates whether LastTradeMsg bit is set.
Definition Fields.h:940
bool recoveryMsg() const
Indicates whether RecoveryMsg bit is set.
Definition Fields.h:970
bool lastStatsMsg() const
Indicates whether LastStatsMsg bit is set.
Definition Fields.h:958
bool lastQuoteMsg() const
Indicates whether LastQuoteMsg bit is set.
Definition Fields.h:952
bool lastVolumeMsg() const
Indicates whether LastVolumeMsg bit is set.
Definition Fields.h:946
Bits bits() const
Returns elements as they packed in the set.
Definition Fields.h:988
bool lastImpliedMsg() const
Indicates whether LastImpliedMsg bit is set.
Definition Fields.h:964
bool reservedBits() const
Indicates whether ReservedBits bit is set.
Definition Fields.h:1035
bool intraday() const
Indicates whether Intraday bit is set.
Definition Fields.h:1029
bool nullValue() const
Indicates whether NullValue bit is set.
Definition Fields.h:1041
bool actual() const
Indicates whether Actual bit is set.
Definition Fields.h:1017
bool rounded() const
Indicates whether Rounded bit is set.
Definition Fields.h:1023
bool finalDaily() const
Indicates whether FinalDaily bit is set.
Definition Fields.h:1011
Bits bits() const
Returns elements as they packed in the set.
Definition Fields.h:1047
Represents time point without time-zone information.
Definition Time.h:388
Char CHAR
char.
Definition Fields.h:41
Char LongName[35]
Definition Fields.h:73
IntegralConstant< Int8, 24 > InstAttribType
Eligibility.
Definition Fields.h:54
IntegralConstant< UInt8, 4 > SecurityAltIDSourceISIN
Definition Fields.h:106
Char String6[6]
Definition Fields.h:161
Char UnderlyingSymbol[20]
Definition Fields.h:186
UInt16 LocalMktDate
Definition Fields.h:68
Int8 Int8
int8.
Definition Fields.h:63
Char String7[7]
Definition Fields.h:166
Char String25[25]
Definition Fields.h:146
Char Currency[3]
Definition Fields.h:51
Char SecurityExchange[4]
Definition Fields.h:111
Char SecurityType[6]
Definition Fields.h:131
UInt64 UInt64
uInt64.
Definition Fields.h:205
IntegralConstant< Int8, 0 > UpdateTypeNew
MDUpdateTypeNew.
Definition Fields.h:96
IntegralConstant< Char, 'e'> EntryTypeVol
MDEntryTypeVol.
Definition Fields.h:85
IntegralConstant< Int8, 0 > UpdateActionNew
MDUpdateActionNew.
Definition Fields.h:93
IntegralConstant< Int32, 2147483647 > NullInt32
Null value for optional Int32 field.
Definition Fields.h:1063
Int32 Int32
int32.
Definition Fields.h:60
IntegralConstant< UInt64, 18446744073709551615ULL > NullUInt64
Null value for optional UInt64 field.
Definition Fields.h:1078
IntegralConstant< UInt16, 65535 > NullLocalMktDate
Null value for optional LocalMktDate field.
Definition Fields.h:1069
IntegralConstant< UInt8, 255 > NullUInt8
Null value for optional UInt8 field.
Definition Fields.h:1081
char Char
Character type alias.
Definition String.h:36
IntegralConstant< Int8, 127 > NullInt8
Null value for optional Int8 field.
Definition Fields.h:1066
Char Symbol[20]
Definition Fields.h:176
Char String5[5]
Definition Fields.h:156
Char QuoteReqId[23]
Definition Fields.h:101
Char Text[180]
Definition Fields.h:181
Char String3[3]
Definition Fields.h:151
Char String8[8]
Definition Fields.h:171
IntegralConstant< Char, '8'> SecurityIDSource
Definition Fields.h:121
Char UnitOfMeasure[30]
Definition Fields.h:191
UInt32 UInt32
uInt32.
Definition Fields.h:202
Timestamp localMktDateToTimestamp(LocalMktDate days)
Converts days since epoch to Timestamp value.
Definition Fields.h:1084
Char FeedType[3]
Definition Fields.h:90
IntegralConstant< UInt32, 4294967295 > NullUInt32
Null value for optional UInt32 field.
Definition Fields.h:1075
Char UserDefinedInstrument
Definition Fields.h:196
Int16 Int16
int16.
Definition Fields.h:57
IntegralConstant< Char, 'g'> EntryTypeLimits
MDEntryTypeLimits.
Definition Fields.h:79
Char CFICode[6]
Definition Fields.h:38
IntegralConstant< Char, '2'> EntryTypeTrade
MDEntryTypeTrade.
Definition Fields.h:82
UInt8 UInt8
uInt8.
Definition Fields.h:208
UInt16 UInt16
uInt16.
Definition Fields.h:199
Char SecurityGroup[6]
Definition Fields.h:116
Char CountryCode[2]
Definition Fields.h:46
Char SecuritySubType[5]
Definition Fields.h:126
Char String20[20]
Definition Fields.h:141
Char String12[12]
Definition Fields.h:136
IntegralConstant< Char, 'J'> EntryTypeChannelReset
Channel Reset message entry type.
Definition Fields.h:76
Char Asset[6]
Definition Fields.h:33
IntegralConstant< UInt16, 65535 > NullUInt16
Null value for optional UInt16 field.
Definition Fields.h:1072
AggressorFlag type.
Definition Fields.h:212
@ NotAggressor
Not Aggressor.
Definition Fields.h:218
AggressorSide type.
Definition Fields.h:227
@ NoAggressor
No Aggressor.
Definition Fields.h:233
MDEntryTypeBook type.
Definition Fields.h:377
@ ImpliedOffer
Implied Offer.
Definition Fields.h:392
@ MarketBestOffer
Market Best Offer.
Definition Fields.h:398
@ MarketBestBid
Market Best Bid.
Definition Fields.h:401
MDEntryTypeDailyStatistics type.
Definition Fields.h:407
MDEntryTypeStatistics type.
Definition Fields.h:428
@ VWAP
Trading Session Volume Weighted Average Price.
Definition Fields.h:443
MDEntryType type.
Definition Fields.h:308
@ OpenInterest
Open Interest.
Definition Fields.h:341
@ ImpliedBid
Implied Bid.
Definition Fields.h:344
@ SessionHighBid
Session High Bid.
Definition Fields.h:353
@ ImpliedOffer
Implied Offer.
Definition Fields.h:347
@ MarketBestOffer
Market Best Offer.
Definition Fields.h:368
@ FixingPrice
Fixing Price.
Definition Fields.h:359
@ VWAP
Trading Session Volume Weighted Average Price.
Definition Fields.h:335
@ ThresholdLimitsandPriceBandVariation
Threshold Limits and Price Band Variation.
Definition Fields.h:365
@ ClearedVolume
Cleared Volume.
Definition Fields.h:338
@ SessionLowOffer
Session Low Offer.
Definition Fields.h:356
@ SettlementPrice
Settlement Price.
Definition Fields.h:326
@ BookReset
Book Reset.
Definition Fields.h:350
@ TradingSessionHighPrice
Trading Session High Price.
Definition Fields.h:329
@ MarketBestBid
Market Best Bid.
Definition Fields.h:371
@ ElectronicVolume
Electronic Volume.
Definition Fields.h:362
@ OpenPrice
Open Price.
Definition Fields.h:323
@ TradingSessionLowPrice
Trading Session Low Price.
Definition Fields.h:332
EventType type.
Definition Fields.h:245
@ LastEligibleTradeDate
Last Eligible Trade Date.
Definition Fields.h:254
@ Activation
Activation.
Definition Fields.h:251
HaltReason type.
Definition Fields.h:260
@ InstrumentExpiration
Instrument Expiration.
Definition Fields.h:278
@ MarketEvent
Market Event.
Definition Fields.h:272
@ RecoveryInProcess
Recovery In Process.
Definition Fields.h:284
@ GroupSchedule
Group Schedule.
Definition Fields.h:266
@ TradeDateRoll
Trade Date Roll.
Definition Fields.h:287
@ InstrumentActivation
Instrument Activation.
Definition Fields.h:275
@ SurveillanceIntervention
Surveillance Intervention.
Definition Fields.h:269
LegSide type.
Definition Fields.h:293
@ SellSide
Sell Side.
Definition Fields.h:302
MoneyOrPar type.
Definition Fields.h:482
@ Money
Money Filled.
Definition Fields.h:488
OpenCloseSettlFlag type.
Definition Fields.h:497
@ RepoAverage8_30AM
Repo Average 8-30 AM.
Definition Fields.h:512
@ RepoAverage10AM
Repo Average 10 AM.
Definition Fields.h:515
@ PrevSessionRepoAverage10AM
Prev Session Repo Average 10 AM.
Definition Fields.h:518
@ IntradayVWAP
Latest update to VWAP.
Definition Fields.h:509
@ IndicativeOpeningPrice
Indicative Opening Price.
Definition Fields.h:506
@ DailyOpenPrice
Daily Open Price.
Definition Fields.h:503
OrderUpdateAction type.
Definition Fields.h:524
PriceSource type.
Definition Fields.h:542
@ MarketPlaceAssistant
Globex Market Surveillance team.
Definition Fields.h:548
@ Globex
Globex Trading Activity.
Definition Fields.h:551
@ ICAP
Icap Market Data Feed.
Definition Fields.h:557
PutOrCall type.
Definition Fields.h:563
RepoSubType type.
Definition Fields.h:578
@ Special
Repo on a single underlying instrument.
Definition Fields.h:584
SecurityAltIDSource type.
Definition Fields.h:598
SecurityTradingEvent type.
Definition Fields.h:613
@ ResetStatistics
Reset Statistics.
Definition Fields.h:625
@ ImpliedMatchingON
Implied Matching ON.
Definition Fields.h:628
@ ImpliedMatchingOFF
Implied Matching OFF.
Definition Fields.h:631
SecurityTradingStatus type.
Definition Fields.h:640
@ UnknownorInvalid
Unknown or Invalid.
Definition Fields.h:661
@ NewPriceIndication
New Price Indication.
Definition Fields.h:652
@ NotAvailableForTrading
Not Available For Trading.
Definition Fields.h:658
SecurityUpdateAction type.
Definition Fields.h:688
MDUpdateAction type.
Definition Fields.h:455
WorkupTradingStatus type.
Definition Fields.h:721
@ NotAvailableForTrading
Not Available For Trading.
Definition Fields.h:730