OnixS C++ B3 BOE Binary Order Entry 1.3.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
26
28
30typedef
31IntegralConstant<Char, '\x0'>
33
34
36typedef
39
40
42typedef
45
46
48typedef
51
52
54typedef
57
59typedef
60IntegralConstant<Int8, -128>
62
63
65typedef
66IntegralConstant<Int16, -32768>
68
69
71typedef
72IntegralConstant<Int32, -2147483647-1>
74
75
77typedef
78IntegralConstant<Int64, -9223372036854775807LL-1>
80
81
85typedef UInt64 AllocID;
86
87
91typedef UInt64 ClOrdID;
92
93
97typedef UInt64 ClOrdIDOptional;
98
99
103typedef UInt32 SessionID;
104
105
109typedef UInt32 SessionIDOptional;
110
111
115typedef UInt64 SessionVerID;
116
117
121typedef UInt64 SessionVerIDOptional;
122
123
127typedef UInt32 SeqNum;
128
129
133typedef UInt32 SeqNumOptional;
134
135
139typedef UInt64 Quantity;
140
141
145typedef UInt64 QuantityOptional;
146
147
151typedef UInt16 LocalMktDate;
152
153
157typedef UInt16 LocalMktDateOptional;
158
159
163typedef UInt32 Account;
164
165
169typedef UInt32 AccountOptional;
170
171
175typedef UInt32 Firm;
176
177
181typedef UInt32 FirmOptional;
182
183
187typedef UInt16 DaysToSettlement;
188
189
193typedef
194UInt16
196
197
201typedef UInt64 ExecID;
202
203
207typedef UInt64 ExecIDOptional;
208
209
213typedef UInt64 OrderID;
214
215
219typedef UInt64 OrderIDOptional;
220
221
225typedef UInt32 RejReason;
226
227
231typedef UInt32 RejReasonOptional;
232
233
237typedef UInt64 AllocReportID;
238
239
243typedef UInt64 PosMaintRptID;
244
245
249typedef
250UInt64
252
253
257typedef UInt64 PosReqID;
258
259
263typedef UInt64 PosReqIDOptional;
264
265
269typedef UInt64 SecurityReqRespID;
270
271
275typedef UInt64 BusinessRejectRefID;
276
277
281typedef UInt64 MassActionReportID;
282
283
287typedef
288UInt64
290
291
295typedef UInt8 OrdTagID;
296
297
301typedef UInt8 MarketSegmentID;
302
303
307typedef
308UInt8
310
311
315typedef UInt64 SecurityID;
316
317
321typedef UInt64 SecurityIDOptional;
322
323
327typedef UInt64 CrossID;
328
329
333typedef UInt64 CrossIDOptional;
334
335
339typedef UInt32 TradeID;
340
341
345typedef UInt32 TradeIDOptional;
346
347
351typedef UInt64 QuoteID;
352
353
357typedef UInt64 QuoteIDOptional;
358
359
363typedef UInt64 QuoteReqID;
364
365
369typedef UInt64 QuoteReqIDOptional;
370
371
375typedef UInt8 TotNoRelatedSym;
376
377
381typedef UInt32 MessageCounter;
382
383
387typedef Int32 StrategyIDOptional;
388
389
393typedef UInt8 Uint8EnumEncoding;
394
395
399typedef UInt16 Uint16EnumEncoding;
400
401
406{
407 typedef UInt8 Base;
408
410 enum Enum
411 {
414
417 };
418
421 static
422 std::string
423 toString(
424 Enum);
425};
426
431{
432 typedef Char Base;
433
435 enum Enum
436 {
438 New = '0',
439
441 Cancel = '2'
442 };
443
446 static
447 std::string
448 toString(
449 Enum);
450};
451
456{
457 typedef Char Base;
458
460 enum Enum
461 {
464 };
465
468 static
469 std::string
470 toString(
471 Enum);
472};
473
478{
479 typedef Char Base;
480
482 enum Enum
483 {
486 };
487
490 static
491 std::string
492 toString(
493 Enum);
494};
495
500{
501 typedef Char Base;
502
504 enum Enum
505 {
508 };
509
512 static
513 std::string
514 toString(
515 Enum);
516};
517
522{
523 typedef Char Base;
524
526 enum Enum
527 {
529 Accepted = '0',
530
533 };
534
537 static
538 std::string
539 toString(
540 Enum);
541};
542
547{
548 typedef UInt8 Base;
549
551 enum Enum
552 {
555
558
561
564
567
569 Pass = 11,
570
573 };
574
577 static
578 std::string
579 toString(
580 Enum);
581};
582
587{
588 typedef Char Base;
589
591 enum Enum
592 {
594 Quote = '0',
595
598
601
604 };
605
608 static
609 std::string
610 toString(
611 Enum);
612};
613
618{
619 typedef UInt8 Base;
620
622 enum Enum
623 {
626 };
627
630 static
631 std::string
632 toString(
633 Enum);
634};
635
640{
641 typedef Char Base;
642
644 enum Enum
645 {
648
651
654
657
660
663 };
664
667 static
668 std::string
669 toString(
670 Enum);
671};
672
677{
678 typedef UInt8 Base;
679
686
689 static
690 std::string
691 toString(
692 Enum);
693};
694
699{
700 typedef UInt8 Base;
701
714
717 static
718 std::string
719 toString(
720 Enum);
721};
722
727{
728 typedef Char Base;
729
731 enum Enum
732 {
734 Rejected = '0',
735
738 };
739
742 static
743 std::string
744 toString(
745 Enum);
746};
747
752{
753 typedef UInt8 Base;
754
767
770 static
771 std::string
772 toString(
773 Enum);
774};
775
780{
781 typedef UInt8 Base;
782
795
798 static
799 std::string
800 toString(
801 Enum);
802};
803
808{
809 typedef Char Base;
810
812 enum Enum
813 {
815 Accepted = '0',
816
818 Rejected = '2',
819
822
825 };
826
829 static
830 std::string
831 toString(
832 Enum);
833};
834
839{
840 typedef Char Base;
841
843 enum Enum
844 {
847
850 };
851
854 static
855 std::string
856 toString(
857 Enum);
858};
859
864{
865 typedef UInt8 Base;
866
868 enum Enum
869 {
872
875
878 };
879
882 static
883 std::string
884 toString(
885 Enum);
886};
887
892{
893 typedef Char Base;
894
896 enum Enum
897 {
899 New = '1',
900
902 Cancel = '3'
903 };
904
907 static
908 std::string
909 toString(
910 Enum);
911};
912
917{
918 typedef Char Base;
919
921 enum Enum
922 {
925
928
930 Mutual = 'X'
931 };
932
935 static
936 std::string
937 toString(
938 Enum);
939};
940
945{
946 typedef UInt8 Base;
947
949 enum Enum
950 {
952 None = 0,
953
956
959
962 };
963
966 static
967 std::string
968 toString(
969 Enum);
970};
971
976{
977 typedef UInt8 Base;
978
980 enum Enum
981 {
984
987
990
993 };
994
997 static
998 std::string
999 toString(
1000 Enum);
1001};
1002
1007{
1008 typedef UInt8 Base;
1009
1130
1133 static
1134 std::string
1135 toString(
1136 Enum);
1137};
1138
1143{
1144 typedef UInt8 Base;
1145
1147 enum Enum
1148 {
1150 None = 0,
1151
1154
1157
1160 };
1161
1164 static
1165 std::string
1166 toString(
1167 Enum);
1168};
1169
1174{
1175 typedef UInt8 Base;
1176
1219
1222 static
1223 std::string
1224 toString(
1225 Enum);
1226};
1227
1291
1296{
1297 typedef UInt8 Base;
1298
1359
1362 static
1363 std::string
1364 toString(
1365 Enum);
1366};
1367
1372{
1373 typedef UInt8 Base;
1374
1405
1408 static
1409 std::string
1410 toString(
1411 Enum);
1412};
1413
1418{
1419 typedef UInt8 Base;
1420
1436
1439 static
1440 std::string
1441 toString(
1442 Enum);
1443};
1444
1449{
1450 typedef Char Base;
1451
1453 enum Enum
1454 {
1456 Buy = '1',
1457
1459 Sell = '2'
1460 };
1461
1464 static
1465 std::string
1466 toString(
1467 Enum);
1468};
1469
1474{
1475 typedef Char Base;
1476
1478 enum Enum
1479 {
1481 Day = '0',
1482
1485
1488
1491
1494
1497
1500 };
1501
1504 static
1505 std::string
1506 toString(
1507 Enum);
1508};
1509
1514{
1515 typedef Char Base;
1516
1518 enum Enum
1519 {
1521 Day = '0',
1522
1525
1528 };
1529
1532 static
1533 std::string
1534 toString(
1535 Enum);
1536};
1537
1542{
1543 typedef Char Base;
1544
1546 enum Enum
1547 {
1549 Market = '1',
1550
1552 Limit = '2',
1553
1556
1559
1562
1564 Rlp = 'W',
1565
1568 };
1569
1572 static
1573 std::string
1574 toString(
1575 Enum);
1576};
1577
1582{
1583 typedef Char Base;
1584
1586 enum Enum
1587 {
1589 Market = '1',
1590
1592 Limit = '2'
1593 };
1594
1597 static
1598 std::string
1599 toString(
1600 Enum);
1601};
1602
1607{
1608 typedef UInt8 Base;
1609
1611 enum Enum
1612 {
1615
1618
1621
1624 };
1625
1628 static
1629 std::string
1630 toString(
1631 Enum);
1632};
1633
1638{
1639 typedef Char Base;
1640
1642 enum Enum
1643 {
1645 Trade = 'F',
1646
1649 };
1650
1653 static
1654 std::string
1655 toString(
1656 Enum);
1657};
1658
1663{
1664 typedef Char Base;
1665
1667 enum Enum
1668 {
1670 New = '0',
1671
1674
1676 Filled = '2',
1677
1680
1683
1686
1688 Expired = 'C',
1689
1692
1695 };
1696
1699 static
1700 std::string
1701 toString(
1702 Enum);
1703};
1704
1709{
1710 typedef UInt8 Base;
1711
1718
1721 static
1722 std::string
1723 toString(
1724 Enum);
1725};
1726
1731{
1732 typedef UInt8 Base;
1733
1743
1746 static
1747 std::string
1748 toString(
1749 Enum);
1750};
1751
1830
1835{
1836 typedef Char Base;
1837
1850
1853 static
1854 std::string
1855 toString(
1856 Enum);
1857};
1858
1863{
1864 typedef Char Base;
1865
1893
1896 static
1897 std::string
1898 toString(
1899 Enum);
1900};
1901
1906{
1907 typedef UInt8 Base;
1908
1910 enum Enum
1911 {
1914
1917 };
1918
1921 static
1922 std::string
1923 toString(
1924 Enum);
1925};
1926
1931{
1932 typedef UInt8 Base;
1933
1935 enum Enum
1936 {
1938 New = 0,
1939
1942
1945 };
1946
1949 static
1950 std::string
1951 toString(
1952 Enum);
1953};
1954
1959{
1960 typedef UInt8 Base;
1961
1963 enum Enum
1964 {
1967
1970 };
1971
1974 static
1975 std::string
1976 toString(
1977 Enum);
1978};
1979
1984{
1985 typedef Char Base;
1986
1988 enum Enum
1989 {
1991 Isin = '4',
1992
1995 };
1996
1999 static
2000 std::string
2001 toString(
2002 Enum);
2003};
2004
2009{
2010 typedef UInt16 Base;
2011
2013 enum Enum
2014 {
2017
2020
2023 };
2024
2027 static
2028 std::string
2029 toString(
2030 Enum);
2031};
2032
2037{
2038 typedef UInt8 Base;
2039
2041 enum Enum
2042 {
2045
2048 };
2049
2052 static
2053 std::string
2054 toString(
2055 Enum);
2056};
2057
2062{
2063 typedef UInt8 Base;
2064
2066 enum Enum
2067 {
2070
2073
2075 Open = 17,
2076
2079
2082
2085 };
2086
2089 static
2090 std::string
2091 toString(
2092 Enum);
2093};
2094
2099{
2100 typedef UInt8 Base;
2101
2103 enum Enum
2104 {
2107
2110
2113
2116
2119
2122
2125
2128 };
2129
2132 static
2133 std::string
2134 toString(
2135 Enum);
2136};
2137
2142{
2143 typedef UInt8 Base;
2144
2154
2157 static
2158 std::string
2159 toString(
2160 Enum);
2161};
2162
2165{
2166 typedef UInt8 Base;
2167
2169 enum Enum
2170 {
2172 None = 0,
2173
2176
2179 };
2180
2183 static
2184 std::string
2185 toString(
2186 Enum);
2187};
2188
2191{
2192public:
2195 typedef UInt8 Bits;
2196
2197 enum
2198 {
2199 Size = sizeof(Bits)
2200 };
2201
2204
2207 struct MemberTraits
2208 {
2209 enum { Count = 1 };
2210
2211 typedef Bits FirstArgType;
2212 };
2213
2216 bool possResend() const
2218 {
2219 return 0 != (bits_ & 0x1);
2220 }
2221
2225 {
2226 if (value) bits_ |= 0x1; else bits_ &= ~0x1;
2227 return *this;
2228 }
2229
2232 bool lowPriority() const
2234 {
2235 return 0 != (bits_ & 0x2);
2236 }
2237
2241 {
2242 if (value) bits_ |= 0x2; else bits_ &= ~0x2;
2243 return *this;
2244 }
2245
2248 bool reserved2() const
2250 {
2251 return 0 != (bits_ & 0x4);
2252 }
2253
2257 {
2258 if (value) bits_ |= 0x4; else bits_ &= ~0x4;
2259 return *this;
2260 }
2261
2264 bool reserved3() const
2266 {
2267 return 0 != (bits_ & 0x8);
2268 }
2269
2273 {
2274 if (value) bits_ |= 0x8; else bits_ &= ~0x8;
2275 return *this;
2276 }
2277
2280 bool reserved4() const
2282 {
2283 return 0 != (bits_ & 0x10);
2284 }
2285
2289 {
2290 if (value) bits_ |= 0x10; else bits_ &= ~0x10;
2291 return *this;
2292 }
2293
2296 bool reserved5() const
2298 {
2299 return 0 != (bits_ & 0x20);
2300 }
2301
2305 {
2306 if (value) bits_ |= 0x20; else bits_ &= ~0x20;
2307 return *this;
2308 }
2309
2312 bool reserved6() const
2314 {
2315 return 0 != (bits_ & 0x40);
2316 }
2317
2321 {
2322 if (value) bits_ |= 0x40; else bits_ &= ~0x40;
2323 return *this;
2324 }
2325
2328 bool reserved7() const
2330 {
2331 return 0 != (bits_ & 0x80);
2332 }
2333
2337 {
2338 if (value) bits_ |= 0x80; else bits_ &= ~0x80;
2339 return *this;
2340 }
2341
2343 Bits bits() const
2345 {
2346 return bits_;
2347 }
2348
2350 explicit
2353 : bits_(bits)
2354 {
2355 }
2356
2359 std::string
2360 toString() const;
2361
2364 bool
2366 const EventIndicator& other) const
2368 {
2369 return !(*this == other);
2370 }
2371
2374 bool
2376 const EventIndicator& other) const
2378 {
2379 return this->bits_ == other.bits_;
2380 }
2381
2382private:
2383 Bits bits_;
2384};
2385
2386
2388typedef
2391
2392
2394typedef
2397
2398
2400typedef
2403
2404
2406typedef
2409
2410
2412typedef
2415
2416
2418typedef
2421
2422
2424typedef
2427
2428
2430typedef
2433
2434
2436typedef
2439
2440
2442typedef
2445
2446
2448typedef
2451
2452
2454typedef
2457
2458
2460typedef
2463
2464
2466typedef
2469
2470
2472typedef
2475
2476
2478typedef
2481
2482
2484typedef
2487
2488
2490typedef
2493
2494
2496typedef
2499
2500
2502typedef
2505
2506
2508typedef
2511
2512
2514typedef
2517
2518
2520typedef
2523
2524
2526typedef
2529
2530
2532typedef
2535
2536
2538typedef
2541
2542
2544typedef
2547
2548
2549
2551inline
2555{
2556 return Timestamp(TimeSpan(days, 0, 0, 0, 0).ticks());
2557}
2558
2559inline
2563{
2564 return static_cast<LocalMktDate>(TimeSpan(timestamp.sinceEpoch()).days());
2565}
2566
#define ONIXS_B3_BOE_LTWT_STRUCT
Definition ABI.h:88
#define ONIXS_B3_BOE_MESSAGING_NAMESPACE_END
Definition ABI.h:144
#define ONIXS_B3_BOE_MESSAGING_NAMESPACE_BEGIN
Definition ABI.h:140
#define ONIXS_B3_BOE_NODISCARD
Definition Compiler.h:191
#define ONIXS_B3_BOE_NOTHROW
Definition Compiler.h:182
Days days() const noexcept
Definition Time.h:223
The time point without the time-zone information.
Definition Time.h:468
IntegralConstant< UInt8, 0 > NullMarketSegmentIDOptional
Null value for an optional MarketSegmentIDOptional field.
Definition Fields.h:2492
UInt32 MessageCounter
Counter of related messages.
Definition Fields.h:381
IntegralConstant< UInt64, 0ULL > NullQuantityOptional
Null value for an optional QuantityOptional field.
Definition Fields.h:2414
UInt64 PosMaintRptID
Unique identifier for this position maintenance report message.
Definition Fields.h:243
IntegralConstant< UInt8, 0 > NullUint8EnumEncoding
Null value for an optional Uint8EnumEncoding field.
Definition Fields.h:2540
UInt64 Quantity
Quantity in order/trade.
Definition Fields.h:139
UInt64 ClOrdID
Unique identifier of the order as assigned by the market participant.
Definition Fields.h:91
UInt64 QuoteReqID
Unique identifier for quote request.
Definition Fields.h:363
UInt64 SessionVerIDOptional
Optional session version identification: unique identification of a sequence of messages to be transm...
Definition Fields.h:121
UInt16 LocalMktDate
Local calendar date: days since Unix epoch (January 1st, 1970).
Definition Fields.h:151
UInt64 MassActionReportID
Unique ID of Order Mass Action Report as assigned by the matching engine.
Definition Fields.h:281
UInt32 SeqNum
Sequence number of a given SessionID/SessionVerID.
Definition Fields.h:127
UInt64 ExecIDOptional
Optional unique identifier of execution message as assigned by exchange.
Definition Fields.h:207
IntegralConstant< UInt8, 0 > NullOrdTagID
Null value for an optional OrdTagID field.
Definition Fields.h:2486
IntegralConstant< UInt16, 0 > NullLocalMktDateOptional
Null value for an optional LocalMktDateOptional field.
Definition Fields.h:2420
UInt64 OrderIDOptional
Optional exchange-generated order identifier.
Definition Fields.h:219
IntegralConstant< Int8, -128 > NullInt8
Null value for an optional Int8 field.
Definition Fields.h:61
UInt8 MarketSegmentIDOptional
Optional identifier of the market segment.
Definition Fields.h:309
LocalMktDate timestampToLocalMktDate(const Timestamp &timestamp) noexcept
Definition Fields.h:2562
IntegralConstant< Int32, -2147483647-1 > NullInt32
Null value for an optional Int32 field.
Definition Fields.h:73
IntegralConstant< UInt64, 0ULL > NullSessionVerIDOptional
Null value for an optional SessionVerIDOptional field.
Definition Fields.h:2402
IntegralConstant< UInt64, 0ULL > NullClOrdIDOptional
Null value for an optional ClOrdIDOptional field.
Definition Fields.h:2390
UInt64 OrderID
Exchange-generated order identifier.
Definition Fields.h:213
IntegralConstant< UInt64, 0ULL > NullSecurityIDOptional
Null value for an optional SecurityIDOptional field.
Definition Fields.h:2498
UInt16 DaysToSettlement
Deadline for completing the forward deal.
Definition Fields.h:187
IntegralConstant< UInt32, 0 > NullSeqNumOptional
Null value for an optional SeqNumOptional field.
Definition Fields.h:2408
UInt64 ExecID
Unique identifier of execution message as assigned by exchange.
Definition Fields.h:201
UInt64 SecurityReqRespID
Unique ID of a Security Definition Request/Response.
Definition Fields.h:269
UInt16 Uint16EnumEncoding
Type used to encode enum with zero nullValue.
Definition Fields.h:399
UInt32 SessionID
Client connection identification on the gateway assigned by B3.
Definition Fields.h:103
UInt32 TradeID
The unique identification assigned to the trade entity once it is received or matched by the exchange...
Definition Fields.h:339
IntegralConstant< UInt64, 0ULL > NullQuoteIDOptional
Null value for an optional QuoteIDOptional field.
Definition Fields.h:2516
IntegralConstant< UInt8, 0 > NullTotNoRelatedSym
Null value for an optional TotNoRelatedSym field.
Definition Fields.h:2528
UInt64 SecurityIDOptional
Optional security identification as defined by exchange.
Definition Fields.h:321
UInt64 SecurityID
Security identification as defined by exchange.
Definition Fields.h:315
UInt32 RejReasonOptional
Optional code to identify reason for order rejection.
Definition Fields.h:231
IntegralConstant< UInt32, 0 > NullFirmOptional
Null value for an optional FirmOptional field.
Definition Fields.h:2432
IntegralConstant< Int16, -32768 > NullInt16
Null value for an optional Int16 field.
Definition Fields.h:67
IntegralConstant< UInt64, 18446744073709551615ULL > NullUInt64
Null value for an optional UInt64 field.
Definition Fields.h:56
IntegralConstant< UInt32, 0 > NullTradeIDOptional
Null value for an optional TradeIDOptional field.
Definition Fields.h:2510
UInt32 RejReason
Code to identify reason for order rejection.
Definition Fields.h:225
UInt64 QuoteID
Unique identifier for quote.
Definition Fields.h:351
IntegralConstant< Char, '\x0'> NullChar
Null value for an optional Char field.
Definition Fields.h:32
IntegralConstant< UInt64, 0ULL > NullOrderIDOptional
Null value for an optional OrderIDOptional field.
Definition Fields.h:2450
IntegralConstant< UInt8, 255 > NullUInt8
Null value for an optional UInt8 field.
Definition Fields.h:38
char Char
Character type alias.
Definition String.h:30
UInt64 SessionVerID
Session version identification: unique identification of a sequence of messages to be transmitted to ...
Definition Fields.h:115
UInt64 QuantityOptional
Optional quantity in order/trade.
Definition Fields.h:145
UInt16 LocalMktDateOptional
Local calendar date: days since Unix epoch (January 1st, 1970).
Definition Fields.h:157
UInt64 PosReqIDOptional
Optional unique identifier for the position maintenance request.
Definition Fields.h:263
IntegralConstant< UInt16, 0 > NullUint16EnumEncoding
Null value for an optional Uint16EnumEncoding field.
Definition Fields.h:2546
Int32 StrategyIDOptional
Optional unique identification of a client-assigned strategy.
Definition Fields.h:387
IntegralConstant< UInt64, 0ULL > NullMassActionReportIDOptional
Null value for an optional MassActionReportIDOptional field.
Definition Fields.h:2480
UInt8 MarketSegmentID
Identifies the market segment.
Definition Fields.h:301
UInt32 Account
Account mnemonic.
Definition Fields.h:163
UInt64 PosReqID
Unique identifier for the position maintenance request.
Definition Fields.h:257
UInt64 CrossID
Identifier for a cross order.
Definition Fields.h:327
UInt64 AllocReportID
Unique identifier for this allocation report message.
Definition Fields.h:237
UInt32 TradeIDOptional
Optional unique identification assigned to the trade entity once it is received or matched by the exc...
Definition Fields.h:345
IntegralConstant< Int64, -9223372036854775807LL-1 > NullInt64
Null value for an optional Int64 field.
Definition Fields.h:79
IntegralConstant< UInt64, 0ULL > NullPosReqIDOptional
Null value for an optional PosReqIDOptional field.
Definition Fields.h:2468
UInt64 BusinessRejectRefID
Value of business-level identification field on the message being referenced.
Definition Fields.h:275
UInt64 ClOrdIDOptional
Optional unique identifier of the order as assigned by the market participant.
Definition Fields.h:97
Timestamp localMktDateToTimestamp(LocalMktDate days) noexcept
Converts days since epoch to Timestamp value.
Definition Fields.h:2554
UInt64 CrossIDOptional
Identifier for a cross order.
Definition Fields.h:333
UInt16 DaysToSettlementOptional
Optional deadline for completing the forward deal.
Definition Fields.h:195
IntegralConstant< Int32, 0 > NullStrategyIDOptional
Null value for an optional StrategyIDOptional field.
Definition Fields.h:2534
UInt64 QuoteIDOptional
Optional unique identifier for quote.
Definition Fields.h:357
IntegralConstant< UInt32, 0 > NullRejReasonOptional
Null value for an optional RejReasonOptional field.
Definition Fields.h:2456
IntegralConstant< UInt32, 0 > NullAccountOptional
Null value for an optional AccountOptional field.
Definition Fields.h:2426
IntegralConstant< UInt32, 4294967295 > NullUInt32
Null value for an optional UInt32 field.
Definition Fields.h:50
IntegralConstant< UInt64, 0ULL > NullPosMaintRptIDOptional
Null value for an optional PosMaintRptIDOptional field.
Definition Fields.h:2462
IntegralConstant< UInt64, 0ULL > NullExecIDOptional
Null value for an optional ExecIDOptional field.
Definition Fields.h:2444
UInt32 FirmOptional
Optional identification of the broker firm.
Definition Fields.h:181
UInt32 AccountOptional
Optional account mnemonic.
Definition Fields.h:169
UInt32 Firm
Identification of the broker firm.
Definition Fields.h:175
UInt64 AllocID
Unique identifier for this allocation instruction message.
Definition Fields.h:85
UInt8 TotNoRelatedSym
Number of leg fill notice messages sent with spread summary.
Definition Fields.h:375
UInt64 PosMaintRptIDOptional
Optional unique identifier for this position maintenance report message.
Definition Fields.h:251
UInt64 QuoteReqIDOptional
Optional unique identifier for quote request.
Definition Fields.h:369
IntegralConstant< UInt64, 0ULL > NullQuoteReqIDOptional
Null value for an optional QuoteReqIDOptional field.
Definition Fields.h:2522
UInt8 Uint8EnumEncoding
Type used to encode enum with zero nullValue.
Definition Fields.h:393
IntegralConstant< UInt32, 0 > NullSessionIDOptional
Null value for an optional SessionIDOptional field.
Definition Fields.h:2396
IntegralConstant< UInt16, 65535 > NullDaysToSettlementOptional
Null value for an optional DaysToSettlementOptional field.
Definition Fields.h:2438
UInt32 SeqNumOptional
Optional sequence number of a given SessionID/SessionVerID.
Definition Fields.h:133
UInt8 OrdTagID
Identifies the order tag identification.
Definition Fields.h:295
UInt64 MassActionReportIDOptional
Optional unique ID of Order Mass Action Report as assigned by the matching engine.
Definition Fields.h:289
UInt32 SessionIDOptional
Optional client connection identification on the gateway assigned by B3.
Definition Fields.h:109
IntegralConstant< UInt64, 0ULL > NullBusinessRejectRefID
Null value for an optional BusinessRejectRefID field.
Definition Fields.h:2474
IntegralConstant< UInt64, 0ULL > NullCrossIDOptional
Null value for an optional CrossIDOptional field.
Definition Fields.h:2504
IntegralConstant< UInt16, 65535 > NullUInt16
Null value for an optional UInt16 field.
Definition Fields.h:44
Type of Account associated with an order.
Definition Fields.h:1906
Enum
Type of Account associated with an order.
Definition Fields.h:1911
@ RemoveAccountInformation
RemoveAccountInformation.
Definition Fields.h:1913
Indicates how the orders being booked and allocated by an Allocation Instruction.
Definition Fields.h:500
Enum
Indicates how the orders being booked and allocated by an Allocation Instruction.
Definition Fields.h:505
Describes the specific type or purpose of an Allocation Report message.
Definition Fields.h:456
Enum
Describes the specific type or purpose of an Allocation Report message.
Definition Fields.h:461
@ RequestToIntermediary
RequestToIntermediary.
Definition Fields.h:463
Identifies status of allocation.
Definition Fields.h:522
Enum
Identifies status of allocation.
Definition Fields.h:527
@ RejectedByIntermediary
RejectedByIntermediary.
Definition Fields.h:532
Identifies allocation transaction type.
Definition Fields.h:431
Enum
Identifies allocation transaction type.
Definition Fields.h:436
Describes the specific type or purpose of an Allocation message.
Definition Fields.h:478
Enum
Describes the specific type or purpose of an Allocation message.
Definition Fields.h:483
@ RequestToIntermediary
RequestToIntermediary.
Definition Fields.h:485
Criteria used to initiate cancel on disconnect mechanism by the gateway.
Definition Fields.h:1418
Enum
Criteria used to initiate cancel on disconnect mechanism by the gateway.
Definition Fields.h:1423
@ CancelOnDisconnectOrTerminate
CancelOnDisconnectOrTerminate.
Definition Fields.h:1434
@ CancelOnDisconnectOnly
CancelOnDisconnectOnly.
Definition Fields.h:1428
@ DoNotCancelOnDisconnectOrTerminate
DoNotCancelOnDisconnectOrTerminate.
Definition Fields.h:1425
Indicates if one side or the other of a cross order should be prioritized.
Definition Fields.h:2165
Enum
Indicates if one side or the other of a cross order should be prioritized.
Definition Fields.h:2170
@ BuySideIsPrioritized
BuySideIsPrioritized.
Definition Fields.h:2175
@ SellSideIsPrioritized
SellSideIsPrioritized.
Definition Fields.h:2178
Type of cross being submitted to a market.
Definition Fields.h:2142
Enum
Type of cross being submitted to a market.
Definition Fields.h:2147
@ CrossExecutedAgainstBookFromClient
CrossExecutedAgainstBookFromClient.
Definition Fields.h:2152
Indicates cross order purpose.
Definition Fields.h:2009
Enum
Indicates cross order purpose.
Definition Fields.h:2014
@ StructuredTransaction
StructuredTransaction.
Definition Fields.h:2016
Identifies the type of request that this cancel reject is in response to.
Definition Fields.h:1931
Enum
Identifies the type of request that this cancel reject is in response to.
Definition Fields.h:1936
Identifies the code of reject establishment.
Definition Fields.h:1232
Enum
Identifies the code of reject establishment.
Definition Fields.h:1237
@ DuplicateSessionConnection
DuplicateSessionConnection.
Definition Fields.h:1275
@ InvalidKeepaliveInterval
InvalidKeepaliveInterval.
Definition Fields.h:1263
@ ProtocolVersionNotSupported
ProtocolVersionNotSupported.
Definition Fields.h:1281
@ EstablishAttemptsExceeded
EstablishAttemptsExceeded.
Definition Fields.h:1269
@ AuthenticationInProgress
AuthenticationInProgress.
Definition Fields.h:1278
ThisType & setLowPriority(bool value) noexcept
Modifies LowPriority bit.
Definition Fields.h:2239
bool operator!=(const EventIndicator &other) const noexcept
Compares encoded data.
Definition Fields.h:2365
ThisType & setReserved4(bool value) noexcept
Modifies Reserved4 bit.
Definition Fields.h:2287
bool reserved4() const noexcept
Indicates whether Reserved4 bit is set.
Definition Fields.h:2280
ThisType & setReserved2(bool value) noexcept
Modifies Reserved2 bit.
Definition Fields.h:2255
EventIndicator ThisType
This type alias.
Definition Fields.h:2203
ThisType & setReserved5(bool value) noexcept
Modifies Reserved5 bit.
Definition Fields.h:2303
bool reserved5() const noexcept
Indicates whether Reserved5 bit is set.
Definition Fields.h:2296
bool lowPriority() const noexcept
Indicates whether LowPriority bit is set.
Definition Fields.h:2232
bool reserved3() const noexcept
Indicates whether Reserved3 bit is set.
Definition Fields.h:2264
ThisType & setReserved7(bool value) noexcept
Modifies Reserved7 bit.
Definition Fields.h:2335
bool reserved6() const noexcept
Indicates whether Reserved6 bit is set.
Definition Fields.h:2312
ThisType & setReserved3(bool value) noexcept
Modifies Reserved3 bit.
Definition Fields.h:2271
bool reserved7() const noexcept
Indicates whether Reserved7 bit is set.
Definition Fields.h:2328
bool possResend() const noexcept
Indicates whether PossResend bit is set.
Definition Fields.h:2216
bool reserved2() const noexcept
Indicates whether Reserved2 bit is set.
Definition Fields.h:2248
ThisType & setPossResend(bool value) noexcept
Modifies PossResend bit.
Definition Fields.h:2223
ThisType & setReserved6(bool value) noexcept
Modifies Reserved6 bit.
Definition Fields.h:2319
UInt8 Bits
Aliases integral type whose bits are used to indicate flag presence.
Definition Fields.h:2195
bool operator==(const EventIndicator &other) const noexcept
Compares encoded data.
Definition Fields.h:2375
EventIndicator(Bits bits=0) noexcept
Constructs from a value.
Definition Fields.h:2351
Used to communicate event type which triggers mass cancelation.
Definition Fields.h:1731
Enum
Used to communicate event type which triggers mass cancelation.
Definition Fields.h:1736
@ MassCancelOrderDueToOperationalErrorRequest
MassCancelOrderDueToOperationalErrorRequest.
Definition Fields.h:1741
@ OrderMassActionFromClientRequest
OrderMassActionFromClientRequest.
Definition Fields.h:1738
Used to communicate a reason for a solicited cancel.
Definition Fields.h:1709
Enum
Used to communicate a reason for a solicited cancel.
Definition Fields.h:1714
@ CancelOrderDueToOperationalError
CancelOrderDueToOperationalError.
Definition Fields.h:1716
Indicates reason of cancelation, if available.
Definition Fields.h:1756
Enum
Indicates reason of cancelation, if available.
Definition Fields.h:1761
@ CancelOnMidpointBrokerOnlyRemoval
CancelOnMidpointBrokerOnlyRemoval.
Definition Fields.h:1811
@ CancelOrderFirmsoftDueToOperationalError
CancelOrderFirmsoftDueToOperationalError.
Definition Fields.h:1799
@ CancelRemainingFromSweepCross
CancelRemainingFromSweepCross.
Definition Fields.h:1814
@ MassCancelOrderDueToOperationalErrorEffective
MassCancelOrderDueToOperationalErrorEffective.
Definition Fields.h:1808
@ MarketMakerProtection
MarketMakerProtection.
Definition Fields.h:1784
@ RiskManagementCancellation
RiskManagementCancellation.
Definition Fields.h:1787
@ CancelOnDisconnectAndTerminate
CancelOnDisconnectAndTerminate.
Definition Fields.h:1772
@ OrderCancelledFirmsoftDueToOperationalError
OrderCancelledFirmsoftDueToOperationalError.
Definition Fields.h:1802
@ MassCancelOrderDueToOperationalErrorRequest
MassCancelOrderDueToOperationalErrorRequest.
Definition Fields.h:1805
@ OrderMassActionFromClientRequest
OrderMassActionFromClientRequest.
Definition Fields.h:1790
@ CancelOrderDueToOperationalError
CancelOrderDueToOperationalError.
Definition Fields.h:1793
@ CancelRestingOrderOnSelfTrade
CancelRestingOrderOnSelfTrade.
Definition Fields.h:1781
@ OrderCancelledDueToOperationalError
OrderCancelledDueToOperationalError.
Definition Fields.h:1796
@ MassCancelOnBehalfDueToOperationalErrorEffective
MassCancelOnBehalfDueToOperationalErrorEffective.
Definition Fields.h:1820
@ SelfTradingPrevention
SelfTradingPrevention.
Definition Fields.h:1775
@ CancelOnHardDisconnection
CancelOnHardDisconnection.
Definition Fields.h:1766
Describes the action that triggered this specific Execution Report - see the OrdStatus (39) tag for t...
Definition Fields.h:1638
Enum
Describes the action that triggered this specific Execution Report - see the OrdStatus (39) tag for t...
Definition Fields.h:1643
Specifies if a simultaneous trade of the underlying is to be performed.
Definition Fields.h:839
Enum
Specifies if a simultaneous trade of the underlying is to be performed.
Definition Fields.h:844
@ UnderlyingOpposingTrade
UnderlyingOpposingTrade.
Definition Fields.h:849
Type of message flow from client to server or from server to client.
Definition Fields.h:1143
Enum
Type of message flow from client to server or from server to client.
Definition Fields.h:1148
Reason Order Mass Action Request was rejected.
Definition Fields.h:752
Enum
Reason Order Mass Action Request was rejected.
Definition Fields.h:757
@ MassActionNotSupported
MassActionNotSupported.
Definition Fields.h:759
@ InvalidOrUnknownMarketSegment
InvalidOrUnknownMarketSegment.
Definition Fields.h:762
Specifies the action taken by matching engine when it receives the Order Mass Action Request.
Definition Fields.h:727
Enum
Specifies the action taken by matching engine when it receives the Order Mass Action Request.
Definition Fields.h:732
Specifies the scope of the action.
Definition Fields.h:677
Enum
Specifies the scope of the action. All Day and MOC orders will be cancelled. GTC, GTD and MOA orders ...
Definition Fields.h:682
@ AllOrdersForATradingSession
AllOrdersForATradingSession.
Definition Fields.h:684
Specifies the type of action requested.
Definition Fields.h:699
Enum
Specifies the type of action requested.
Definition Fields.h:704
@ CancelAndSuspendOrders
CancelAndSuspendOrders.
Definition Fields.h:712
@ ReleaseOrdersFromSuspension
ReleaseOrdersFromSuspension.
Definition Fields.h:706
@ ExecutionReportForward
ExecutionReportForward.
Definition Fields.h:1086
@ RetransmitReject
RetransmitReject.
Definition Fields.h:1044
@ AllocationInstruction
AllocationInstruction.
Definition Fields.h:1125
@ OrderCancelReplaceRequest
OrderCancelReplaceRequest.
Definition Fields.h:1062
@ PositionMaintenanceReport
PositionMaintenanceReport.
Definition Fields.h:1122
@ NegotiateResponse
NegotiateResponse.
Definition Fields.h:1017
@ ExecutionReportReject
ExecutionReportReject.
Definition Fields.h:1083
@ ExecutionReportNew
ExecutionReportNew.
Definition Fields.h:1071
@ PositionMaintenanceCancelRequest
PositionMaintenanceCancelRequest.
Definition Fields.h:1116
@ BusinessMessageReject
BusinessMessageReject.
Definition Fields.h:1050
@ ExecutionReportTrade
ExecutionReportTrade.
Definition Fields.h:1080
@ OrderMassActionRequest
OrderMassActionRequest.
Definition Fields.h:1095
@ SecurityDefinitionRequest
SecurityDefinitionRequest.
Definition Fields.h:1089
@ OrderMassActionReport
OrderMassActionReport.
Definition Fields.h:1098
@ AllocationReport
AllocationReport.
Definition Fields.h:1128
@ QuoteStatusReport
QuoteStatusReport.
Definition Fields.h:1104
@ ExecutionReportModify
ExecutionReportModify.
Definition Fields.h:1074
@ RetransmitRequest
RetransmitRequest.
Definition Fields.h:1038
@ OrderCancelRequest
OrderCancelRequest.
Definition Fields.h:1065
@ SimpleModifyOrder
SimpleModifyOrder.
Definition Fields.h:1056
@ PositionMaintenanceRequest
PositionMaintenanceRequest.
Definition Fields.h:1119
@ QuoteRequestReject
QuoteRequestReject.
Definition Fields.h:1113
@ SecurityDefinitionResponse
SecurityDefinitionResponse.
Definition Fields.h:1092
@ ExecutionReportCancel
ExecutionReportCancel.
Definition Fields.h:1077
Used to indicate what an Execution Report represents.
Definition Fields.h:1835
Enum
Used to indicate what an Execution Report represents.
Definition Fields.h:1840
@ IndividuallegOfMultilegSecurity
IndividuallegOfMultilegSecurity.
Definition Fields.h:1845
Identifies the code of reject negotiation.
Definition Fields.h:1174
Enum
Identifies the code of reject negotiation.
Definition Fields.h:1179
@ DuplicateSessionConnection
DuplicateSessionConnection.
Definition Fields.h:1211
@ ProtocolVersionNotSupported
ProtocolVersionNotSupported.
Definition Fields.h:1217
@ AuthenticationInProgress
AuthenticationInProgress.
Definition Fields.h:1214
Identifies current status of order.
Definition Fields.h:1663
Enum
Identifies current status of order.
Definition Fields.h:1668
@ PartiallyFilled
PartiallyFilled.
Definition Fields.h:1673
@ PreviousFinalState
PreviousFinalState.
Definition Fields.h:1694
@ MarketWithLeftoverAsLimit
MarketWithLeftoverAsLimit.
Definition Fields.h:1561
@ PeggedMidpoint
PeggedMidpoint.
Definition Fields.h:1567
Defines the type of interest behind a trade i.e.
Definition Fields.h:1863
Enum
Defines the type of interest behind a trade i.e. why a trade occurred.
Definition Fields.h:1868
@ ResultOfTradeAtAverage
ResultOfTradeAtAverage.
Definition Fields.h:1888
@ ResultOfAssignmentFromAnOptionsExercise
ResultOfAssignmentFromAnOptionsExercise.
Definition Fields.h:1873
@ ResultOfOptionsExercise
ResultOfOptionsExercise.
Definition Fields.h:1870
@ ResultOfMidpointOrder
ResultOfMidpointOrder.
Definition Fields.h:1879
@ ResultOfBlockBookTrade
ResultOfBlockBookTrade.
Definition Fields.h:1882
@ ResultOfTradeAtClose
ResultOfTradeAtClose.
Definition Fields.h:1885
@ ResultOfAutomaticOptionsExercise
ResultOfAutomaticOptionsExercise.
Definition Fields.h:1876
Maintenance Action to be performed.
Definition Fields.h:892
Enum
Maintenance Action to be performed.
Definition Fields.h:897
Status of Position Maintenance Request.
Definition Fields.h:808
Enum
Status of Position Maintenance Request.
Definition Fields.h:813
Identifies the type of position transaction.
Definition Fields.h:864
Enum
Identifies the type of position transaction.
Definition Fields.h:869
@ ExerciseNotAutomatic
ExerciseNotAutomatic.
Definition Fields.h:877
@ AutomaticExercise
AutomaticExercise.
Definition Fields.h:874
Used to identify the type of quantity.
Definition Fields.h:640
Enum
Used to identify the type of quantity.
Definition Fields.h:645
@ TransactionQuantity
TransactionQuantity.
Definition Fields.h:647
@ OptionExerciseQty
OptionExerciseQty.
Definition Fields.h:653
Indicates that message may contain information that has been sent under another sequence number.
Definition Fields.h:1959
Enum
Indicates that message may contain information that has been sent under another sequence number.
Definition Fields.h:1964
Identifies the type of quote cancel.
Definition Fields.h:618
Enum
Identifies the type of quote cancel.
Definition Fields.h:623
Identifies the type of request that a Quote Status Report is in response to.
Definition Fields.h:587
Enum
Identifies the type of request that a Quote Status Report is in response to.
Definition Fields.h:592
Identifies the status of the quote acknowledgement.
Definition Fields.h:547
Enum
Identifies the status of the quote acknowledgement.
Definition Fields.h:552
Identifies the code of reject retransmission.
Definition Fields.h:1372
Enum
Identifies the code of reject retransmission.
Definition Fields.h:1377
Indicates additional order instruction.
Definition Fields.h:1607
Enum
Indicates additional order instruction.
Definition Fields.h:1612
@ RetailLiquidityTaker
RetailLiquidityTaker.
Definition Fields.h:1614
Identifies the class of the SecurityID.
Definition Fields.h:1984
Enum
Identifies the class of the SecurityID.
Definition Fields.h:1989
Type of Security Definition message response.
Definition Fields.h:780
Enum
Type of Security Definition message response.
Definition Fields.h:785
@ AcceptSecurityProposalAsIs
AcceptSecurityProposalAsIs.
Definition Fields.h:787
@ AcceptSecurityAsProposalWithRevisions
AcceptSecurityAsProposalWithRevisions.
Definition Fields.h:793
@ RejectSecurityProposal
RejectSecurityProposal.
Definition Fields.h:790
Identifier for the instrument status.
Definition Fields.h:2099
Enum
Identifier for the instrument status.
Definition Fields.h:2104
Indicates which order should be cancelled due to self-trade prevention.
Definition Fields.h:945
Enum
Indicates which order should be cancelled due to self-trade prevention.
Definition Fields.h:950
Indicates who in the contract has control over evoking settlement.
Definition Fields.h:917
Enum
Indicates who in the contract has control over evoking settlement.
Definition Fields.h:922
@ BuyersDiscretion
BuyersDiscretion.
Definition Fields.h:924
@ SellersDiscretion
SellersDiscretion.
Definition Fields.h:927
Specifies how long the order remains in effect.
Definition Fields.h:1514
Enum
Specifies how long the order remains in effect.
Definition Fields.h:1519
Identifies the code of termination.
Definition Fields.h:1296
Enum
Identifies the code of termination.
Definition Fields.h:1301
@ TerminateInProgress
TerminateInProgress.
Definition Fields.h:1351
@ BackupTakeoverInProgress
BackupTakeoverInProgress.
Definition Fields.h:1357
@ NegotiationInProgress
NegotiationInProgress.
Definition Fields.h:1318
@ UnrecognizedMessage
UnrecognizedMessage.
Definition Fields.h:1339
@ KeepaliveIntervalLapsed
KeepaliveIntervalLapsed.
Definition Fields.h:1324
@ EstablishInProgress
EstablishInProgress.
Definition Fields.h:1321
@ TerminateNotAllowed
TerminateNotAllowed.
Definition Fields.h:1348
@ ProtocolVersionNotSupported
ProtocolVersionNotSupported.
Definition Fields.h:1354
@ InvalidSessionverid
InvalidSessionverid.
Definition Fields.h:1330
Specifies how long the order remains in effect.
Definition Fields.h:1474
Enum
Specifies how long the order remains in effect.
Definition Fields.h:1479
@ ImmediateOrCancel
ImmediateOrCancel.
Definition Fields.h:1487
Unit of time used for measurement.
Definition Fields.h:976
Enum
Unit of time used for measurement.
Definition Fields.h:981
Identifier for Trading Session.
Definition Fields.h:2037
Enum
Identifier for Trading Session.
Definition Fields.h:2042
Identifier for the instrument group phase.
Definition Fields.h:2062
Enum
Identifier for the instrument group phase.
Definition Fields.h:2067