1#![cfg_attr(rustfmt, rustfmt::skip)]
3#![allow(clippy::module_inception)]
4
5use refix_message::{Date, Decimal, Dialect, GroupTable, Instances, InvalidValue, KnownTags, MonthYear, MultipleValues, RawMessage, Tag, Time, UtcTimestamp};
6
7pub const DIALECT: Dialect<'static> = Dialect::new().with_extra_length_tags(&[
9 Tag(90), Tag(93), Tag(95), Tag(212), Tag(348), Tag(350), Tag(352), Tag(354), Tag(356), Tag(358),
10 Tag(360), Tag(362), Tag(364), Tag(445),
11]);
12
13#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
15pub enum AdvSide<'a> {
16 Buy,
18 Sell,
20 Trade,
22 Cross,
24 Unrecognized(&'a str),
26}
27
28impl<'a> AdvSide<'a> {
29 pub fn from_value(value: &'a str) -> Self {
30 match value {
31 "B" => Self::Buy,
32 "S" => Self::Sell,
33 "T" => Self::Trade,
34 "X" => Self::Cross,
35 unrecognized => Self::Unrecognized(unrecognized),
36 }
37 }
38
39 pub fn value(self) -> &'a str {
40 match self {
41 Self::Buy => "B",
42 Self::Sell => "S",
43 Self::Trade => "T",
44 Self::Cross => "X",
45 Self::Unrecognized(value) => value,
46 }
47 }
48}
49
50impl<'a> From<&'a str> for AdvSide<'a> {
51 fn from(value: &'a str) -> Self {
52 Self::from_value(value)
53 }
54}
55
56#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
58pub enum AdvTransType<'a> {
59 Cancel,
61 New,
63 Replace,
65 Unrecognized(&'a str),
67}
68
69impl<'a> AdvTransType<'a> {
70 pub fn from_value(value: &'a str) -> Self {
71 match value {
72 "C" => Self::Cancel,
73 "N" => Self::New,
74 "R" => Self::Replace,
75 unrecognized => Self::Unrecognized(unrecognized),
76 }
77 }
78
79 pub fn value(self) -> &'a str {
80 match self {
81 Self::Cancel => "C",
82 Self::New => "N",
83 Self::Replace => "R",
84 Self::Unrecognized(value) => value,
85 }
86 }
87}
88
89impl<'a> From<&'a str> for AdvTransType<'a> {
90 fn from(value: &'a str) -> Self {
91 Self::from_value(value)
92 }
93}
94
95#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
97pub enum CommType<'a> {
98 PerUnit,
100 Percent,
102 Absolute,
104 Unrecognized(&'a str),
106}
107
108impl<'a> CommType<'a> {
109 pub fn from_value(value: &'a str) -> Self {
110 match value {
111 "1" => Self::PerUnit,
112 "2" => Self::Percent,
113 "3" => Self::Absolute,
114 unrecognized => Self::Unrecognized(unrecognized),
115 }
116 }
117
118 pub fn value(self) -> &'a str {
119 match self {
120 Self::PerUnit => "1",
121 Self::Percent => "2",
122 Self::Absolute => "3",
123 Self::Unrecognized(value) => value,
124 }
125 }
126}
127
128impl<'a> From<&'a str> for CommType<'a> {
129 fn from(value: &'a str) -> Self {
130 Self::from_value(value)
131 }
132}
133
134#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
136pub enum ExecInst<'a> {
137 StayOnOfferSide,
139 NotHeld,
141 Work,
143 GoAlong,
145 OverTheDay,
147 Held,
149 ParticipateDoNotInitiate,
151 StrictScale,
153 TryToScale,
155 StayOnBidSide,
157 NoCross,
159 OkToCross,
161 CallFirst,
163 PercentOfVolume,
165 DoNotIncrease,
167 DoNotReduce,
169 AllOrNone,
171 InstitutionsOnly,
173 LastPeg,
175 MidPricePeg,
177 NonNegotiable,
179 OpeningPeg,
181 MarketPeg,
183 PrimaryPeg,
185 Suspend,
187 FixedPegToLocalBestBidOrOfferAtTimeOfOrder,
189 CustomerDisplayInstruction,
191 Netting,
193 PegToVwap,
195 Unrecognized(&'a str),
197}
198
199impl<'a> ExecInst<'a> {
200 pub fn from_value(value: &'a str) -> Self {
201 match value {
202 "0" => Self::StayOnOfferSide,
203 "1" => Self::NotHeld,
204 "2" => Self::Work,
205 "3" => Self::GoAlong,
206 "4" => Self::OverTheDay,
207 "5" => Self::Held,
208 "6" => Self::ParticipateDoNotInitiate,
209 "7" => Self::StrictScale,
210 "8" => Self::TryToScale,
211 "9" => Self::StayOnBidSide,
212 "A" => Self::NoCross,
213 "B" => Self::OkToCross,
214 "C" => Self::CallFirst,
215 "D" => Self::PercentOfVolume,
216 "E" => Self::DoNotIncrease,
217 "F" => Self::DoNotReduce,
218 "G" => Self::AllOrNone,
219 "I" => Self::InstitutionsOnly,
220 "L" => Self::LastPeg,
221 "M" => Self::MidPricePeg,
222 "N" => Self::NonNegotiable,
223 "O" => Self::OpeningPeg,
224 "P" => Self::MarketPeg,
225 "R" => Self::PrimaryPeg,
226 "S" => Self::Suspend,
227 "T" => Self::FixedPegToLocalBestBidOrOfferAtTimeOfOrder,
228 "U" => Self::CustomerDisplayInstruction,
229 "V" => Self::Netting,
230 "W" => Self::PegToVwap,
231 unrecognized => Self::Unrecognized(unrecognized),
232 }
233 }
234
235 pub fn value(self) -> &'a str {
236 match self {
237 Self::StayOnOfferSide => "0",
238 Self::NotHeld => "1",
239 Self::Work => "2",
240 Self::GoAlong => "3",
241 Self::OverTheDay => "4",
242 Self::Held => "5",
243 Self::ParticipateDoNotInitiate => "6",
244 Self::StrictScale => "7",
245 Self::TryToScale => "8",
246 Self::StayOnBidSide => "9",
247 Self::NoCross => "A",
248 Self::OkToCross => "B",
249 Self::CallFirst => "C",
250 Self::PercentOfVolume => "D",
251 Self::DoNotIncrease => "E",
252 Self::DoNotReduce => "F",
253 Self::AllOrNone => "G",
254 Self::InstitutionsOnly => "I",
255 Self::LastPeg => "L",
256 Self::MidPricePeg => "M",
257 Self::NonNegotiable => "N",
258 Self::OpeningPeg => "O",
259 Self::MarketPeg => "P",
260 Self::PrimaryPeg => "R",
261 Self::Suspend => "S",
262 Self::FixedPegToLocalBestBidOrOfferAtTimeOfOrder => "T",
263 Self::CustomerDisplayInstruction => "U",
264 Self::Netting => "V",
265 Self::PegToVwap => "W",
266 Self::Unrecognized(value) => value,
267 }
268 }
269}
270
271impl<'a> From<&'a str> for ExecInst<'a> {
272 fn from(value: &'a str) -> Self {
273 Self::from_value(value)
274 }
275}
276
277#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
279pub enum ExecTransType<'a> {
280 New,
282 Cancel,
284 Correct,
286 Status,
288 Unrecognized(&'a str),
290}
291
292impl<'a> ExecTransType<'a> {
293 pub fn from_value(value: &'a str) -> Self {
294 match value {
295 "0" => Self::New,
296 "1" => Self::Cancel,
297 "2" => Self::Correct,
298 "3" => Self::Status,
299 unrecognized => Self::Unrecognized(unrecognized),
300 }
301 }
302
303 pub fn value(self) -> &'a str {
304 match self {
305 Self::New => "0",
306 Self::Cancel => "1",
307 Self::Correct => "2",
308 Self::Status => "3",
309 Self::Unrecognized(value) => value,
310 }
311 }
312}
313
314impl<'a> From<&'a str> for ExecTransType<'a> {
315 fn from(value: &'a str) -> Self {
316 Self::from_value(value)
317 }
318}
319
320#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
322pub enum HandlInst<'a> {
323 AutomatedExecutionNoIntervention,
325 AutomatedExecutionInterventionOk,
327 ManualOrder,
329 Unrecognized(&'a str),
331}
332
333impl<'a> HandlInst<'a> {
334 pub fn from_value(value: &'a str) -> Self {
335 match value {
336 "1" => Self::AutomatedExecutionNoIntervention,
337 "2" => Self::AutomatedExecutionInterventionOk,
338 "3" => Self::ManualOrder,
339 unrecognized => Self::Unrecognized(unrecognized),
340 }
341 }
342
343 pub fn value(self) -> &'a str {
344 match self {
345 Self::AutomatedExecutionNoIntervention => "1",
346 Self::AutomatedExecutionInterventionOk => "2",
347 Self::ManualOrder => "3",
348 Self::Unrecognized(value) => value,
349 }
350 }
351}
352
353impl<'a> From<&'a str> for HandlInst<'a> {
354 fn from(value: &'a str) -> Self {
355 Self::from_value(value)
356 }
357}
358
359#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
361pub enum IDSource<'a> {
362 Cusip,
364 Sedol,
366 Quik,
368 IsinNumber,
370 RicCode,
372 IsoCurrencyCode,
374 IsoCountryCode,
376 ExchangeSymbol,
378 ConsolidatedTapeAssociation,
380 Unrecognized(&'a str),
382}
383
384impl<'a> IDSource<'a> {
385 pub fn from_value(value: &'a str) -> Self {
386 match value {
387 "1" => Self::Cusip,
388 "2" => Self::Sedol,
389 "3" => Self::Quik,
390 "4" => Self::IsinNumber,
391 "5" => Self::RicCode,
392 "6" => Self::IsoCurrencyCode,
393 "7" => Self::IsoCountryCode,
394 "8" => Self::ExchangeSymbol,
395 "9" => Self::ConsolidatedTapeAssociation,
396 unrecognized => Self::Unrecognized(unrecognized),
397 }
398 }
399
400 pub fn value(self) -> &'a str {
401 match self {
402 Self::Cusip => "1",
403 Self::Sedol => "2",
404 Self::Quik => "3",
405 Self::IsinNumber => "4",
406 Self::RicCode => "5",
407 Self::IsoCurrencyCode => "6",
408 Self::IsoCountryCode => "7",
409 Self::ExchangeSymbol => "8",
410 Self::ConsolidatedTapeAssociation => "9",
411 Self::Unrecognized(value) => value,
412 }
413 }
414}
415
416impl<'a> From<&'a str> for IDSource<'a> {
417 fn from(value: &'a str) -> Self {
418 Self::from_value(value)
419 }
420}
421
422#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
424pub enum IOIQltyInd<'a> {
425 High,
427 Low,
429 Medium,
431 Unrecognized(&'a str),
433}
434
435impl<'a> IOIQltyInd<'a> {
436 pub fn from_value(value: &'a str) -> Self {
437 match value {
438 "H" => Self::High,
439 "L" => Self::Low,
440 "M" => Self::Medium,
441 unrecognized => Self::Unrecognized(unrecognized),
442 }
443 }
444
445 pub fn value(self) -> &'a str {
446 match self {
447 Self::High => "H",
448 Self::Low => "L",
449 Self::Medium => "M",
450 Self::Unrecognized(value) => value,
451 }
452 }
453}
454
455impl<'a> From<&'a str> for IOIQltyInd<'a> {
456 fn from(value: &'a str) -> Self {
457 Self::from_value(value)
458 }
459}
460
461#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
463pub enum IOIShares<'a> {
464 Large,
466 Medium,
468 Small,
470 Unrecognized(&'a str),
472}
473
474impl<'a> IOIShares<'a> {
475 pub fn from_value(value: &'a str) -> Self {
476 match value {
477 "L" => Self::Large,
478 "M" => Self::Medium,
479 "S" => Self::Small,
480 unrecognized => Self::Unrecognized(unrecognized),
481 }
482 }
483
484 pub fn value(self) -> &'a str {
485 match self {
486 Self::Large => "L",
487 Self::Medium => "M",
488 Self::Small => "S",
489 Self::Unrecognized(value) => value,
490 }
491 }
492}
493
494impl<'a> From<&'a str> for IOIShares<'a> {
495 fn from(value: &'a str) -> Self {
496 Self::from_value(value)
497 }
498}
499
500#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
502pub enum IOITransType<'a> {
503 Cancel,
505 New,
507 Replace,
509 Unrecognized(&'a str),
511}
512
513impl<'a> IOITransType<'a> {
514 pub fn from_value(value: &'a str) -> Self {
515 match value {
516 "C" => Self::Cancel,
517 "N" => Self::New,
518 "R" => Self::Replace,
519 unrecognized => Self::Unrecognized(unrecognized),
520 }
521 }
522
523 pub fn value(self) -> &'a str {
524 match self {
525 Self::Cancel => "C",
526 Self::New => "N",
527 Self::Replace => "R",
528 Self::Unrecognized(value) => value,
529 }
530 }
531}
532
533impl<'a> From<&'a str> for IOITransType<'a> {
534 fn from(value: &'a str) -> Self {
535 Self::from_value(value)
536 }
537}
538
539#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
541pub enum LastCapacity<'a> {
542 Agent,
544 CrossAsAgent,
546 CrossAsPrincipal,
548 Principal,
550 Unrecognized(&'a str),
552}
553
554impl<'a> LastCapacity<'a> {
555 pub fn from_value(value: &'a str) -> Self {
556 match value {
557 "1" => Self::Agent,
558 "2" => Self::CrossAsAgent,
559 "3" => Self::CrossAsPrincipal,
560 "4" => Self::Principal,
561 unrecognized => Self::Unrecognized(unrecognized),
562 }
563 }
564
565 pub fn value(self) -> &'a str {
566 match self {
567 Self::Agent => "1",
568 Self::CrossAsAgent => "2",
569 Self::CrossAsPrincipal => "3",
570 Self::Principal => "4",
571 Self::Unrecognized(value) => value,
572 }
573 }
574}
575
576impl<'a> From<&'a str> for LastCapacity<'a> {
577 fn from(value: &'a str) -> Self {
578 Self::from_value(value)
579 }
580}
581
582#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
584pub enum MsgType<'a> {
585 Heartbeat,
587 TestRequest,
589 ResendRequest,
591 Reject,
593 SequenceReset,
595 Logout,
597 Ioi,
599 Advertisement,
601 ExecutionReport,
603 OrderCancelReject,
605 Logon,
607 News,
609 Email,
611 NewOrderSingle,
613 NewOrderList,
615 OrderCancelRequest,
617 OrderCancelReplaceRequest,
619 OrderStatusRequest,
621 AllocationInstruction,
623 ListCancelRequest,
625 ListExecute,
627 ListStatusRequest,
629 ListStatus,
631 AllocationInstructionAck,
633 DontKnowTrade,
635 QuoteRequest,
637 Quote,
639 SettlementInstructions,
641 MarketDataRequest,
643 MarketDataSnapshotFullRefresh,
645 MarketDataIncrementalRefresh,
647 MarketDataRequestReject,
649 QuoteCancel,
651 QuoteStatusRequest,
653 MassQuoteAcknowledgement,
655 SecurityDefinitionRequest,
657 SecurityDefinition,
659 SecurityStatusRequest,
661 SecurityStatus,
663 TradingSessionStatusRequest,
665 TradingSessionStatus,
667 MassQuote,
669 BusinessMessageReject,
671 BidRequest,
673 BidResponse,
675 ListStrikePrice,
677 Unrecognized(&'a str),
679}
680
681impl<'a> MsgType<'a> {
682 pub fn from_value(value: &'a str) -> Self {
683 match value {
684 "0" => Self::Heartbeat,
685 "1" => Self::TestRequest,
686 "2" => Self::ResendRequest,
687 "3" => Self::Reject,
688 "4" => Self::SequenceReset,
689 "5" => Self::Logout,
690 "6" => Self::Ioi,
691 "7" => Self::Advertisement,
692 "8" => Self::ExecutionReport,
693 "9" => Self::OrderCancelReject,
694 "A" => Self::Logon,
695 "B" => Self::News,
696 "C" => Self::Email,
697 "D" => Self::NewOrderSingle,
698 "E" => Self::NewOrderList,
699 "F" => Self::OrderCancelRequest,
700 "G" => Self::OrderCancelReplaceRequest,
701 "H" => Self::OrderStatusRequest,
702 "J" => Self::AllocationInstruction,
703 "K" => Self::ListCancelRequest,
704 "L" => Self::ListExecute,
705 "M" => Self::ListStatusRequest,
706 "N" => Self::ListStatus,
707 "P" => Self::AllocationInstructionAck,
708 "Q" => Self::DontKnowTrade,
709 "R" => Self::QuoteRequest,
710 "S" => Self::Quote,
711 "T" => Self::SettlementInstructions,
712 "V" => Self::MarketDataRequest,
713 "W" => Self::MarketDataSnapshotFullRefresh,
714 "X" => Self::MarketDataIncrementalRefresh,
715 "Y" => Self::MarketDataRequestReject,
716 "Z" => Self::QuoteCancel,
717 "a" => Self::QuoteStatusRequest,
718 "b" => Self::MassQuoteAcknowledgement,
719 "c" => Self::SecurityDefinitionRequest,
720 "d" => Self::SecurityDefinition,
721 "e" => Self::SecurityStatusRequest,
722 "f" => Self::SecurityStatus,
723 "g" => Self::TradingSessionStatusRequest,
724 "h" => Self::TradingSessionStatus,
725 "i" => Self::MassQuote,
726 "j" => Self::BusinessMessageReject,
727 "k" => Self::BidRequest,
728 "l" => Self::BidResponse,
729 "m" => Self::ListStrikePrice,
730 unrecognized => Self::Unrecognized(unrecognized),
731 }
732 }
733
734 pub fn value(self) -> &'a str {
735 match self {
736 Self::Heartbeat => "0",
737 Self::TestRequest => "1",
738 Self::ResendRequest => "2",
739 Self::Reject => "3",
740 Self::SequenceReset => "4",
741 Self::Logout => "5",
742 Self::Ioi => "6",
743 Self::Advertisement => "7",
744 Self::ExecutionReport => "8",
745 Self::OrderCancelReject => "9",
746 Self::Logon => "A",
747 Self::News => "B",
748 Self::Email => "C",
749 Self::NewOrderSingle => "D",
750 Self::NewOrderList => "E",
751 Self::OrderCancelRequest => "F",
752 Self::OrderCancelReplaceRequest => "G",
753 Self::OrderStatusRequest => "H",
754 Self::AllocationInstruction => "J",
755 Self::ListCancelRequest => "K",
756 Self::ListExecute => "L",
757 Self::ListStatusRequest => "M",
758 Self::ListStatus => "N",
759 Self::AllocationInstructionAck => "P",
760 Self::DontKnowTrade => "Q",
761 Self::QuoteRequest => "R",
762 Self::Quote => "S",
763 Self::SettlementInstructions => "T",
764 Self::MarketDataRequest => "V",
765 Self::MarketDataSnapshotFullRefresh => "W",
766 Self::MarketDataIncrementalRefresh => "X",
767 Self::MarketDataRequestReject => "Y",
768 Self::QuoteCancel => "Z",
769 Self::QuoteStatusRequest => "a",
770 Self::MassQuoteAcknowledgement => "b",
771 Self::SecurityDefinitionRequest => "c",
772 Self::SecurityDefinition => "d",
773 Self::SecurityStatusRequest => "e",
774 Self::SecurityStatus => "f",
775 Self::TradingSessionStatusRequest => "g",
776 Self::TradingSessionStatus => "h",
777 Self::MassQuote => "i",
778 Self::BusinessMessageReject => "j",
779 Self::BidRequest => "k",
780 Self::BidResponse => "l",
781 Self::ListStrikePrice => "m",
782 Self::Unrecognized(value) => value,
783 }
784 }
785}
786
787impl<'a> From<&'a str> for MsgType<'a> {
788 fn from(value: &'a str) -> Self {
789 Self::from_value(value)
790 }
791}
792
793#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
795pub enum OrdStatus<'a> {
796 New,
798 PartiallyFilled,
800 Filled,
802 DoneForDay,
804 Canceled,
806 Replaced,
808 PendingCancel,
810 Stopped,
812 Rejected,
814 Suspended,
816 PendingNew,
818 Calculated,
820 Expired,
822 AcceptedForBidding,
824 PendingReplace,
826 Unrecognized(&'a str),
828}
829
830impl<'a> OrdStatus<'a> {
831 pub fn from_value(value: &'a str) -> Self {
832 match value {
833 "0" => Self::New,
834 "1" => Self::PartiallyFilled,
835 "2" => Self::Filled,
836 "3" => Self::DoneForDay,
837 "4" => Self::Canceled,
838 "5" => Self::Replaced,
839 "6" => Self::PendingCancel,
840 "7" => Self::Stopped,
841 "8" => Self::Rejected,
842 "9" => Self::Suspended,
843 "A" => Self::PendingNew,
844 "B" => Self::Calculated,
845 "C" => Self::Expired,
846 "D" => Self::AcceptedForBidding,
847 "E" => Self::PendingReplace,
848 unrecognized => Self::Unrecognized(unrecognized),
849 }
850 }
851
852 pub fn value(self) -> &'a str {
853 match self {
854 Self::New => "0",
855 Self::PartiallyFilled => "1",
856 Self::Filled => "2",
857 Self::DoneForDay => "3",
858 Self::Canceled => "4",
859 Self::Replaced => "5",
860 Self::PendingCancel => "6",
861 Self::Stopped => "7",
862 Self::Rejected => "8",
863 Self::Suspended => "9",
864 Self::PendingNew => "A",
865 Self::Calculated => "B",
866 Self::Expired => "C",
867 Self::AcceptedForBidding => "D",
868 Self::PendingReplace => "E",
869 Self::Unrecognized(value) => value,
870 }
871 }
872}
873
874impl<'a> From<&'a str> for OrdStatus<'a> {
875 fn from(value: &'a str) -> Self {
876 Self::from_value(value)
877 }
878}
879
880#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
882pub enum OrdType<'a> {
883 Market,
885 Limit,
887 Stop,
889 StopLimit,
891 MarketOnClose,
893 WithOrWithout,
895 LimitOrBetter,
897 LimitWithOrWithout,
899 OnBasis,
901 OnClose,
903 LimitOnClose,
905 ForexMarket,
907 PreviouslyQuoted,
909 PreviouslyIndicated,
911 ForexLimit,
913 ForexSwap,
915 ForexPreviouslyQuoted,
917 Funari,
919 Pegged,
921 Unrecognized(&'a str),
923}
924
925impl<'a> OrdType<'a> {
926 pub fn from_value(value: &'a str) -> Self {
927 match value {
928 "1" => Self::Market,
929 "2" => Self::Limit,
930 "3" => Self::Stop,
931 "4" => Self::StopLimit,
932 "5" => Self::MarketOnClose,
933 "6" => Self::WithOrWithout,
934 "7" => Self::LimitOrBetter,
935 "8" => Self::LimitWithOrWithout,
936 "9" => Self::OnBasis,
937 "A" => Self::OnClose,
938 "B" => Self::LimitOnClose,
939 "C" => Self::ForexMarket,
940 "D" => Self::PreviouslyQuoted,
941 "E" => Self::PreviouslyIndicated,
942 "F" => Self::ForexLimit,
943 "G" => Self::ForexSwap,
944 "H" => Self::ForexPreviouslyQuoted,
945 "I" => Self::Funari,
946 "P" => Self::Pegged,
947 unrecognized => Self::Unrecognized(unrecognized),
948 }
949 }
950
951 pub fn value(self) -> &'a str {
952 match self {
953 Self::Market => "1",
954 Self::Limit => "2",
955 Self::Stop => "3",
956 Self::StopLimit => "4",
957 Self::MarketOnClose => "5",
958 Self::WithOrWithout => "6",
959 Self::LimitOrBetter => "7",
960 Self::LimitWithOrWithout => "8",
961 Self::OnBasis => "9",
962 Self::OnClose => "A",
963 Self::LimitOnClose => "B",
964 Self::ForexMarket => "C",
965 Self::PreviouslyQuoted => "D",
966 Self::PreviouslyIndicated => "E",
967 Self::ForexLimit => "F",
968 Self::ForexSwap => "G",
969 Self::ForexPreviouslyQuoted => "H",
970 Self::Funari => "I",
971 Self::Pegged => "P",
972 Self::Unrecognized(value) => value,
973 }
974 }
975}
976
977impl<'a> From<&'a str> for OrdType<'a> {
978 fn from(value: &'a str) -> Self {
979 Self::from_value(value)
980 }
981}
982
983#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
985pub enum Rule80A<'a> {
986 AgencySingleOrder,
988 ShortExemptTransactionAType,
990 ProprietaryNonAlgo,
992 ProgramOrderMember,
994 ShortExemptTransactionForPrincipal,
996 ShortExemptTransactionWType,
998 ShortExemptTransactionIType,
1000 IndividualInvestor,
1002 ProprietaryAlgo,
1004 AgencyAlgo,
1006 ShortExemptTransactionMemberAffliated,
1008 ProgramOrderOtherMember,
1010 AgentForOtherMember,
1012 ProprietaryTransactionAffiliated,
1014 Principal,
1016 TransactionNonMember,
1018 SpecialistTrades,
1020 TransactionUnaffiliatedMember,
1022 AgencyIndexArb,
1024 AllOtherOrdersAsAgentForOtherMember,
1026 ShortExemptTransactionMemberNotAffliated,
1028 AgencyNonAlgo,
1030 ShortExemptTransactionNonMember,
1032 Unrecognized(&'a str),
1034}
1035
1036impl<'a> Rule80A<'a> {
1037 pub fn from_value(value: &'a str) -> Self {
1038 match value {
1039 "A" => Self::AgencySingleOrder,
1040 "B" => Self::ShortExemptTransactionAType,
1041 "C" => Self::ProprietaryNonAlgo,
1042 "D" => Self::ProgramOrderMember,
1043 "E" => Self::ShortExemptTransactionForPrincipal,
1044 "F" => Self::ShortExemptTransactionWType,
1045 "H" => Self::ShortExemptTransactionIType,
1046 "I" => Self::IndividualInvestor,
1047 "J" => Self::ProprietaryAlgo,
1048 "K" => Self::AgencyAlgo,
1049 "L" => Self::ShortExemptTransactionMemberAffliated,
1050 "M" => Self::ProgramOrderOtherMember,
1051 "N" => Self::AgentForOtherMember,
1052 "O" => Self::ProprietaryTransactionAffiliated,
1053 "P" => Self::Principal,
1054 "R" => Self::TransactionNonMember,
1055 "S" => Self::SpecialistTrades,
1056 "T" => Self::TransactionUnaffiliatedMember,
1057 "U" => Self::AgencyIndexArb,
1058 "W" => Self::AllOtherOrdersAsAgentForOtherMember,
1059 "X" => Self::ShortExemptTransactionMemberNotAffliated,
1060 "Y" => Self::AgencyNonAlgo,
1061 "Z" => Self::ShortExemptTransactionNonMember,
1062 unrecognized => Self::Unrecognized(unrecognized),
1063 }
1064 }
1065
1066 pub fn value(self) -> &'a str {
1067 match self {
1068 Self::AgencySingleOrder => "A",
1069 Self::ShortExemptTransactionAType => "B",
1070 Self::ProprietaryNonAlgo => "C",
1071 Self::ProgramOrderMember => "D",
1072 Self::ShortExemptTransactionForPrincipal => "E",
1073 Self::ShortExemptTransactionWType => "F",
1074 Self::ShortExemptTransactionIType => "H",
1075 Self::IndividualInvestor => "I",
1076 Self::ProprietaryAlgo => "J",
1077 Self::AgencyAlgo => "K",
1078 Self::ShortExemptTransactionMemberAffliated => "L",
1079 Self::ProgramOrderOtherMember => "M",
1080 Self::AgentForOtherMember => "N",
1081 Self::ProprietaryTransactionAffiliated => "O",
1082 Self::Principal => "P",
1083 Self::TransactionNonMember => "R",
1084 Self::SpecialistTrades => "S",
1085 Self::TransactionUnaffiliatedMember => "T",
1086 Self::AgencyIndexArb => "U",
1087 Self::AllOtherOrdersAsAgentForOtherMember => "W",
1088 Self::ShortExemptTransactionMemberNotAffliated => "X",
1089 Self::AgencyNonAlgo => "Y",
1090 Self::ShortExemptTransactionNonMember => "Z",
1091 Self::Unrecognized(value) => value,
1092 }
1093 }
1094}
1095
1096impl<'a> From<&'a str> for Rule80A<'a> {
1097 fn from(value: &'a str) -> Self {
1098 Self::from_value(value)
1099 }
1100}
1101
1102#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
1104pub enum Side<'a> {
1105 Buy,
1107 Sell,
1109 BuyMinus,
1111 SellPlus,
1113 SellShort,
1115 SellShortExempt,
1117 Undisclosed,
1119 Cross,
1121 CrossShort,
1123 Unrecognized(&'a str),
1125}
1126
1127impl<'a> Side<'a> {
1128 pub fn from_value(value: &'a str) -> Self {
1129 match value {
1130 "1" => Self::Buy,
1131 "2" => Self::Sell,
1132 "3" => Self::BuyMinus,
1133 "4" => Self::SellPlus,
1134 "5" => Self::SellShort,
1135 "6" => Self::SellShortExempt,
1136 "7" => Self::Undisclosed,
1137 "8" => Self::Cross,
1138 "9" => Self::CrossShort,
1139 unrecognized => Self::Unrecognized(unrecognized),
1140 }
1141 }
1142
1143 pub fn value(self) -> &'a str {
1144 match self {
1145 Self::Buy => "1",
1146 Self::Sell => "2",
1147 Self::BuyMinus => "3",
1148 Self::SellPlus => "4",
1149 Self::SellShort => "5",
1150 Self::SellShortExempt => "6",
1151 Self::Undisclosed => "7",
1152 Self::Cross => "8",
1153 Self::CrossShort => "9",
1154 Self::Unrecognized(value) => value,
1155 }
1156 }
1157}
1158
1159impl<'a> From<&'a str> for Side<'a> {
1160 fn from(value: &'a str) -> Self {
1161 Self::from_value(value)
1162 }
1163}
1164
1165#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
1167pub enum TimeInForce<'a> {
1168 Day,
1170 GoodTillCancel,
1172 AtTheOpening,
1174 ImmediateOrCancel,
1176 FillOrKill,
1178 GoodTillCrossing,
1180 GoodTillDate,
1182 Unrecognized(&'a str),
1184}
1185
1186impl<'a> TimeInForce<'a> {
1187 pub fn from_value(value: &'a str) -> Self {
1188 match value {
1189 "0" => Self::Day,
1190 "1" => Self::GoodTillCancel,
1191 "2" => Self::AtTheOpening,
1192 "3" => Self::ImmediateOrCancel,
1193 "4" => Self::FillOrKill,
1194 "5" => Self::GoodTillCrossing,
1195 "6" => Self::GoodTillDate,
1196 unrecognized => Self::Unrecognized(unrecognized),
1197 }
1198 }
1199
1200 pub fn value(self) -> &'a str {
1201 match self {
1202 Self::Day => "0",
1203 Self::GoodTillCancel => "1",
1204 Self::AtTheOpening => "2",
1205 Self::ImmediateOrCancel => "3",
1206 Self::FillOrKill => "4",
1207 Self::GoodTillCrossing => "5",
1208 Self::GoodTillDate => "6",
1209 Self::Unrecognized(value) => value,
1210 }
1211 }
1212}
1213
1214impl<'a> From<&'a str> for TimeInForce<'a> {
1215 fn from(value: &'a str) -> Self {
1216 Self::from_value(value)
1217 }
1218}
1219
1220#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
1222pub enum Urgency<'a> {
1223 Normal,
1225 Flash,
1227 Background,
1229 Unrecognized(&'a str),
1231}
1232
1233impl<'a> Urgency<'a> {
1234 pub fn from_value(value: &'a str) -> Self {
1235 match value {
1236 "0" => Self::Normal,
1237 "1" => Self::Flash,
1238 "2" => Self::Background,
1239 unrecognized => Self::Unrecognized(unrecognized),
1240 }
1241 }
1242
1243 pub fn value(self) -> &'a str {
1244 match self {
1245 Self::Normal => "0",
1246 Self::Flash => "1",
1247 Self::Background => "2",
1248 Self::Unrecognized(value) => value,
1249 }
1250 }
1251}
1252
1253impl<'a> From<&'a str> for Urgency<'a> {
1254 fn from(value: &'a str) -> Self {
1255 Self::from_value(value)
1256 }
1257}
1258
1259#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
1261pub enum SettlmntTyp<'a> {
1262 Regular,
1264 Cash,
1266 NextDay,
1268 TPlus2,
1270 TPlus3,
1272 TPlus4,
1274 Future,
1276 WhenAndIfIssued,
1278 SellersOption,
1280 TPlus5,
1282 Unrecognized(&'a str),
1284}
1285
1286impl<'a> SettlmntTyp<'a> {
1287 pub fn from_value(value: &'a str) -> Self {
1288 match value {
1289 "0" => Self::Regular,
1290 "1" => Self::Cash,
1291 "2" => Self::NextDay,
1292 "3" => Self::TPlus2,
1293 "4" => Self::TPlus3,
1294 "5" => Self::TPlus4,
1295 "6" => Self::Future,
1296 "7" => Self::WhenAndIfIssued,
1297 "8" => Self::SellersOption,
1298 "9" => Self::TPlus5,
1299 unrecognized => Self::Unrecognized(unrecognized),
1300 }
1301 }
1302
1303 pub fn value(self) -> &'a str {
1304 match self {
1305 Self::Regular => "0",
1306 Self::Cash => "1",
1307 Self::NextDay => "2",
1308 Self::TPlus2 => "3",
1309 Self::TPlus3 => "4",
1310 Self::TPlus4 => "5",
1311 Self::Future => "6",
1312 Self::WhenAndIfIssued => "7",
1313 Self::SellersOption => "8",
1314 Self::TPlus5 => "9",
1315 Self::Unrecognized(value) => value,
1316 }
1317 }
1318}
1319
1320impl<'a> From<&'a str> for SettlmntTyp<'a> {
1321 fn from(value: &'a str) -> Self {
1322 Self::from_value(value)
1323 }
1324}
1325
1326#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
1328pub enum AllocTransType<'a> {
1329 New,
1331 Replace,
1333 Cancel,
1335 Preliminary,
1337 Calculated,
1339 CalculatedWithoutPreliminary,
1341 Unrecognized(&'a str),
1343}
1344
1345impl<'a> AllocTransType<'a> {
1346 pub fn from_value(value: &'a str) -> Self {
1347 match value {
1348 "0" => Self::New,
1349 "1" => Self::Replace,
1350 "2" => Self::Cancel,
1351 "3" => Self::Preliminary,
1352 "4" => Self::Calculated,
1353 "5" => Self::CalculatedWithoutPreliminary,
1354 unrecognized => Self::Unrecognized(unrecognized),
1355 }
1356 }
1357
1358 pub fn value(self) -> &'a str {
1359 match self {
1360 Self::New => "0",
1361 Self::Replace => "1",
1362 Self::Cancel => "2",
1363 Self::Preliminary => "3",
1364 Self::Calculated => "4",
1365 Self::CalculatedWithoutPreliminary => "5",
1366 Self::Unrecognized(value) => value,
1367 }
1368 }
1369}
1370
1371impl<'a> From<&'a str> for AllocTransType<'a> {
1372 fn from(value: &'a str) -> Self {
1373 Self::from_value(value)
1374 }
1375}
1376
1377#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
1379pub enum OpenClose<'a> {
1380 Close,
1382 Open,
1384 Unrecognized(&'a str),
1386}
1387
1388impl<'a> OpenClose<'a> {
1389 pub fn from_value(value: &'a str) -> Self {
1390 match value {
1391 "C" => Self::Close,
1392 "O" => Self::Open,
1393 unrecognized => Self::Unrecognized(unrecognized),
1394 }
1395 }
1396
1397 pub fn value(self) -> &'a str {
1398 match self {
1399 Self::Close => "C",
1400 Self::Open => "O",
1401 Self::Unrecognized(value) => value,
1402 }
1403 }
1404}
1405
1406impl<'a> From<&'a str> for OpenClose<'a> {
1407 fn from(value: &'a str) -> Self {
1408 Self::from_value(value)
1409 }
1410}
1411
1412#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
1414pub enum ProcessCode<'a> {
1415 Regular,
1417 SoftDollar,
1419 StepIn,
1421 StepOut,
1423 SoftDollarStepIn,
1425 SoftDollarStepOut,
1427 PlanSponsor,
1429 Unrecognized(&'a str),
1431}
1432
1433impl<'a> ProcessCode<'a> {
1434 pub fn from_value(value: &'a str) -> Self {
1435 match value {
1436 "0" => Self::Regular,
1437 "1" => Self::SoftDollar,
1438 "2" => Self::StepIn,
1439 "3" => Self::StepOut,
1440 "4" => Self::SoftDollarStepIn,
1441 "5" => Self::SoftDollarStepOut,
1442 "6" => Self::PlanSponsor,
1443 unrecognized => Self::Unrecognized(unrecognized),
1444 }
1445 }
1446
1447 pub fn value(self) -> &'a str {
1448 match self {
1449 Self::Regular => "0",
1450 Self::SoftDollar => "1",
1451 Self::StepIn => "2",
1452 Self::StepOut => "3",
1453 Self::SoftDollarStepIn => "4",
1454 Self::SoftDollarStepOut => "5",
1455 Self::PlanSponsor => "6",
1456 Self::Unrecognized(value) => value,
1457 }
1458 }
1459}
1460
1461impl<'a> From<&'a str> for ProcessCode<'a> {
1462 fn from(value: &'a str) -> Self {
1463 Self::from_value(value)
1464 }
1465}
1466
1467#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
1469pub enum AllocStatus {
1470 Accepted,
1472 BlockLevelReject,
1474 AccountLevelReject,
1476 Received,
1478 Unrecognized(i64),
1480}
1481
1482impl AllocStatus {
1483 pub fn from_value(value: i64) -> Self {
1484 match value {
1485 0 => Self::Accepted,
1486 1 => Self::BlockLevelReject,
1487 2 => Self::AccountLevelReject,
1488 3 => Self::Received,
1489 unrecognized => Self::Unrecognized(unrecognized),
1490 }
1491 }
1492
1493 pub fn value(self) -> i64 {
1494 match self {
1495 Self::Accepted => 0,
1496 Self::BlockLevelReject => 1,
1497 Self::AccountLevelReject => 2,
1498 Self::Received => 3,
1499 Self::Unrecognized(value) => value,
1500 }
1501 }
1502}
1503
1504#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
1506pub enum AllocRejCode {
1507 UnknownAccount,
1509 IncorrectQuantity,
1511 IncorrectAveragegPrice,
1513 UnknownExecutingBrokerMnemonic,
1515 CommissionDifference,
1517 UnknownOrderId,
1519 UnknownListId,
1521 OtherSeeText,
1523 Unrecognized(i64),
1525}
1526
1527impl AllocRejCode {
1528 pub fn from_value(value: i64) -> Self {
1529 match value {
1530 0 => Self::UnknownAccount,
1531 1 => Self::IncorrectQuantity,
1532 2 => Self::IncorrectAveragegPrice,
1533 3 => Self::UnknownExecutingBrokerMnemonic,
1534 4 => Self::CommissionDifference,
1535 5 => Self::UnknownOrderId,
1536 6 => Self::UnknownListId,
1537 7 => Self::OtherSeeText,
1538 unrecognized => Self::Unrecognized(unrecognized),
1539 }
1540 }
1541
1542 pub fn value(self) -> i64 {
1543 match self {
1544 Self::UnknownAccount => 0,
1545 Self::IncorrectQuantity => 1,
1546 Self::IncorrectAveragegPrice => 2,
1547 Self::UnknownExecutingBrokerMnemonic => 3,
1548 Self::CommissionDifference => 4,
1549 Self::UnknownOrderId => 5,
1550 Self::UnknownListId => 6,
1551 Self::OtherSeeText => 7,
1552 Self::Unrecognized(value) => value,
1553 }
1554 }
1555}
1556
1557#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
1559pub enum EmailType<'a> {
1560 New,
1562 Reply,
1564 AdminReply,
1566 Unrecognized(&'a str),
1568}
1569
1570impl<'a> EmailType<'a> {
1571 pub fn from_value(value: &'a str) -> Self {
1572 match value {
1573 "0" => Self::New,
1574 "1" => Self::Reply,
1575 "2" => Self::AdminReply,
1576 unrecognized => Self::Unrecognized(unrecognized),
1577 }
1578 }
1579
1580 pub fn value(self) -> &'a str {
1581 match self {
1582 Self::New => "0",
1583 Self::Reply => "1",
1584 Self::AdminReply => "2",
1585 Self::Unrecognized(value) => value,
1586 }
1587 }
1588}
1589
1590impl<'a> From<&'a str> for EmailType<'a> {
1591 fn from(value: &'a str) -> Self {
1592 Self::from_value(value)
1593 }
1594}
1595
1596#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
1598pub enum EncryptMethod {
1599 None,
1601 Pkcs,
1603 Des,
1605 Pkcsdes,
1607 Pgpdes,
1609 Pgpdesmd5,
1611 Pem,
1613 Unrecognized(i64),
1615}
1616
1617impl EncryptMethod {
1618 pub fn from_value(value: i64) -> Self {
1619 match value {
1620 0 => Self::None,
1621 1 => Self::Pkcs,
1622 2 => Self::Des,
1623 3 => Self::Pkcsdes,
1624 4 => Self::Pgpdes,
1625 5 => Self::Pgpdesmd5,
1626 6 => Self::Pem,
1627 unrecognized => Self::Unrecognized(unrecognized),
1628 }
1629 }
1630
1631 pub fn value(self) -> i64 {
1632 match self {
1633 Self::None => 0,
1634 Self::Pkcs => 1,
1635 Self::Des => 2,
1636 Self::Pkcsdes => 3,
1637 Self::Pgpdes => 4,
1638 Self::Pgpdesmd5 => 5,
1639 Self::Pem => 6,
1640 Self::Unrecognized(value) => value,
1641 }
1642 }
1643}
1644
1645#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
1647pub enum CxlRejReason {
1648 TooLateToCancel,
1650 UnknownOrder,
1652 BrokerCredit,
1654 OrderAlreadyInPendingStatus,
1656 Unrecognized(i64),
1658}
1659
1660impl CxlRejReason {
1661 pub fn from_value(value: i64) -> Self {
1662 match value {
1663 0 => Self::TooLateToCancel,
1664 1 => Self::UnknownOrder,
1665 2 => Self::BrokerCredit,
1666 3 => Self::OrderAlreadyInPendingStatus,
1667 unrecognized => Self::Unrecognized(unrecognized),
1668 }
1669 }
1670
1671 pub fn value(self) -> i64 {
1672 match self {
1673 Self::TooLateToCancel => 0,
1674 Self::UnknownOrder => 1,
1675 Self::BrokerCredit => 2,
1676 Self::OrderAlreadyInPendingStatus => 3,
1677 Self::Unrecognized(value) => value,
1678 }
1679 }
1680}
1681
1682#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
1684pub enum OrdRejReason {
1685 BrokerCredit,
1687 UnknownSymbol,
1689 ExchangeClosed,
1691 OrderExceedsLimit,
1693 TooLateToEnter,
1695 UnknownOrder,
1697 DuplicateOrder,
1699 DuplicateOfAVerballyCommunicatedOrder,
1701 StaleOrder,
1703 Unrecognized(i64),
1705}
1706
1707impl OrdRejReason {
1708 pub fn from_value(value: i64) -> Self {
1709 match value {
1710 0 => Self::BrokerCredit,
1711 1 => Self::UnknownSymbol,
1712 2 => Self::ExchangeClosed,
1713 3 => Self::OrderExceedsLimit,
1714 4 => Self::TooLateToEnter,
1715 5 => Self::UnknownOrder,
1716 6 => Self::DuplicateOrder,
1717 7 => Self::DuplicateOfAVerballyCommunicatedOrder,
1718 8 => Self::StaleOrder,
1719 unrecognized => Self::Unrecognized(unrecognized),
1720 }
1721 }
1722
1723 pub fn value(self) -> i64 {
1724 match self {
1725 Self::BrokerCredit => 0,
1726 Self::UnknownSymbol => 1,
1727 Self::ExchangeClosed => 2,
1728 Self::OrderExceedsLimit => 3,
1729 Self::TooLateToEnter => 4,
1730 Self::UnknownOrder => 5,
1731 Self::DuplicateOrder => 6,
1732 Self::DuplicateOfAVerballyCommunicatedOrder => 7,
1733 Self::StaleOrder => 8,
1734 Self::Unrecognized(value) => value,
1735 }
1736 }
1737}
1738
1739#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
1741pub enum IOIQualifier<'a> {
1742 AllOrNone,
1744 AtTheClose,
1746 InTouchWith,
1748 Limit,
1750 MoreBehind,
1752 AtTheOpen,
1754 TakingAPosition,
1756 AtTheMarket,
1758 ReadyToTrade,
1760 PortfolioShown,
1762 ThroughTheDay,
1764 Versus,
1766 Indication,
1768 CrossingOpportunity,
1770 AtTheMidpoint,
1772 PreOpen,
1774 Unrecognized(&'a str),
1776}
1777
1778impl<'a> IOIQualifier<'a> {
1779 pub fn from_value(value: &'a str) -> Self {
1780 match value {
1781 "A" => Self::AllOrNone,
1782 "C" => Self::AtTheClose,
1783 "I" => Self::InTouchWith,
1784 "L" => Self::Limit,
1785 "M" => Self::MoreBehind,
1786 "O" => Self::AtTheOpen,
1787 "P" => Self::TakingAPosition,
1788 "Q" => Self::AtTheMarket,
1789 "R" => Self::ReadyToTrade,
1790 "S" => Self::PortfolioShown,
1791 "T" => Self::ThroughTheDay,
1792 "V" => Self::Versus,
1793 "W" => Self::Indication,
1794 "X" => Self::CrossingOpportunity,
1795 "Y" => Self::AtTheMidpoint,
1796 "Z" => Self::PreOpen,
1797 unrecognized => Self::Unrecognized(unrecognized),
1798 }
1799 }
1800
1801 pub fn value(self) -> &'a str {
1802 match self {
1803 Self::AllOrNone => "A",
1804 Self::AtTheClose => "C",
1805 Self::InTouchWith => "I",
1806 Self::Limit => "L",
1807 Self::MoreBehind => "M",
1808 Self::AtTheOpen => "O",
1809 Self::TakingAPosition => "P",
1810 Self::AtTheMarket => "Q",
1811 Self::ReadyToTrade => "R",
1812 Self::PortfolioShown => "S",
1813 Self::ThroughTheDay => "T",
1814 Self::Versus => "V",
1815 Self::Indication => "W",
1816 Self::CrossingOpportunity => "X",
1817 Self::AtTheMidpoint => "Y",
1818 Self::PreOpen => "Z",
1819 Self::Unrecognized(value) => value,
1820 }
1821 }
1822}
1823
1824impl<'a> From<&'a str> for IOIQualifier<'a> {
1825 fn from(value: &'a str) -> Self {
1826 Self::from_value(value)
1827 }
1828}
1829
1830#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
1832pub enum DKReason<'a> {
1833 UnknownSymbol,
1835 WrongSide,
1837 QuantityExceedsOrder,
1839 NoMatchingOrder,
1841 PriceExceedsLimit,
1843 Other,
1845 Unrecognized(&'a str),
1847}
1848
1849impl<'a> DKReason<'a> {
1850 pub fn from_value(value: &'a str) -> Self {
1851 match value {
1852 "A" => Self::UnknownSymbol,
1853 "B" => Self::WrongSide,
1854 "C" => Self::QuantityExceedsOrder,
1855 "D" => Self::NoMatchingOrder,
1856 "E" => Self::PriceExceedsLimit,
1857 "Z" => Self::Other,
1858 unrecognized => Self::Unrecognized(unrecognized),
1859 }
1860 }
1861
1862 pub fn value(self) -> &'a str {
1863 match self {
1864 Self::UnknownSymbol => "A",
1865 Self::WrongSide => "B",
1866 Self::QuantityExceedsOrder => "C",
1867 Self::NoMatchingOrder => "D",
1868 Self::PriceExceedsLimit => "E",
1869 Self::Other => "Z",
1870 Self::Unrecognized(value) => value,
1871 }
1872 }
1873}
1874
1875impl<'a> From<&'a str> for DKReason<'a> {
1876 fn from(value: &'a str) -> Self {
1877 Self::from_value(value)
1878 }
1879}
1880
1881#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
1883pub enum MiscFeeType<'a> {
1884 Regulatory,
1886 Tax,
1888 LocalCommission,
1890 ExchangeFees,
1892 Stamp,
1894 Levy,
1896 Other,
1898 Markup,
1900 ConsumptionTax,
1902 Unrecognized(&'a str),
1904}
1905
1906impl<'a> MiscFeeType<'a> {
1907 pub fn from_value(value: &'a str) -> Self {
1908 match value {
1909 "1" => Self::Regulatory,
1910 "2" => Self::Tax,
1911 "3" => Self::LocalCommission,
1912 "4" => Self::ExchangeFees,
1913 "5" => Self::Stamp,
1914 "6" => Self::Levy,
1915 "7" => Self::Other,
1916 "8" => Self::Markup,
1917 "9" => Self::ConsumptionTax,
1918 unrecognized => Self::Unrecognized(unrecognized),
1919 }
1920 }
1921
1922 pub fn value(self) -> &'a str {
1923 match self {
1924 Self::Regulatory => "1",
1925 Self::Tax => "2",
1926 Self::LocalCommission => "3",
1927 Self::ExchangeFees => "4",
1928 Self::Stamp => "5",
1929 Self::Levy => "6",
1930 Self::Other => "7",
1931 Self::Markup => "8",
1932 Self::ConsumptionTax => "9",
1933 Self::Unrecognized(value) => value,
1934 }
1935 }
1936}
1937
1938impl<'a> From<&'a str> for MiscFeeType<'a> {
1939 fn from(value: &'a str) -> Self {
1940 Self::from_value(value)
1941 }
1942}
1943
1944#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
1946pub enum ExecType<'a> {
1947 New,
1949 PartialFill,
1951 Fill,
1953 DoneForDay,
1955 Canceled,
1957 Replaced,
1959 PendingCancel,
1961 Stopped,
1963 Rejected,
1965 Suspended,
1967 PendingNew,
1969 Calculated,
1971 Expired,
1973 Restated,
1975 PendingReplace,
1977 Unrecognized(&'a str),
1979}
1980
1981impl<'a> ExecType<'a> {
1982 pub fn from_value(value: &'a str) -> Self {
1983 match value {
1984 "0" => Self::New,
1985 "1" => Self::PartialFill,
1986 "2" => Self::Fill,
1987 "3" => Self::DoneForDay,
1988 "4" => Self::Canceled,
1989 "5" => Self::Replaced,
1990 "6" => Self::PendingCancel,
1991 "7" => Self::Stopped,
1992 "8" => Self::Rejected,
1993 "9" => Self::Suspended,
1994 "A" => Self::PendingNew,
1995 "B" => Self::Calculated,
1996 "C" => Self::Expired,
1997 "D" => Self::Restated,
1998 "E" => Self::PendingReplace,
1999 unrecognized => Self::Unrecognized(unrecognized),
2000 }
2001 }
2002
2003 pub fn value(self) -> &'a str {
2004 match self {
2005 Self::New => "0",
2006 Self::PartialFill => "1",
2007 Self::Fill => "2",
2008 Self::DoneForDay => "3",
2009 Self::Canceled => "4",
2010 Self::Replaced => "5",
2011 Self::PendingCancel => "6",
2012 Self::Stopped => "7",
2013 Self::Rejected => "8",
2014 Self::Suspended => "9",
2015 Self::PendingNew => "A",
2016 Self::Calculated => "B",
2017 Self::Expired => "C",
2018 Self::Restated => "D",
2019 Self::PendingReplace => "E",
2020 Self::Unrecognized(value) => value,
2021 }
2022 }
2023}
2024
2025impl<'a> From<&'a str> for ExecType<'a> {
2026 fn from(value: &'a str) -> Self {
2027 Self::from_value(value)
2028 }
2029}
2030
2031#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
2033pub enum SettlInstMode<'a> {
2034 Default,
2036 StandingInstructionsProvided,
2038 SpecificAllocationAccountOverriding,
2040 SpecificAllocationAccountStanding,
2042 Unrecognized(&'a str),
2044}
2045
2046impl<'a> SettlInstMode<'a> {
2047 pub fn from_value(value: &'a str) -> Self {
2048 match value {
2049 "0" => Self::Default,
2050 "1" => Self::StandingInstructionsProvided,
2051 "2" => Self::SpecificAllocationAccountOverriding,
2052 "3" => Self::SpecificAllocationAccountStanding,
2053 unrecognized => Self::Unrecognized(unrecognized),
2054 }
2055 }
2056
2057 pub fn value(self) -> &'a str {
2058 match self {
2059 Self::Default => "0",
2060 Self::StandingInstructionsProvided => "1",
2061 Self::SpecificAllocationAccountOverriding => "2",
2062 Self::SpecificAllocationAccountStanding => "3",
2063 Self::Unrecognized(value) => value,
2064 }
2065 }
2066}
2067
2068impl<'a> From<&'a str> for SettlInstMode<'a> {
2069 fn from(value: &'a str) -> Self {
2070 Self::from_value(value)
2071 }
2072}
2073
2074#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
2076pub enum SettlInstTransType<'a> {
2077 Cancel,
2079 New,
2081 Replace,
2083 Unrecognized(&'a str),
2085}
2086
2087impl<'a> SettlInstTransType<'a> {
2088 pub fn from_value(value: &'a str) -> Self {
2089 match value {
2090 "C" => Self::Cancel,
2091 "N" => Self::New,
2092 "R" => Self::Replace,
2093 unrecognized => Self::Unrecognized(unrecognized),
2094 }
2095 }
2096
2097 pub fn value(self) -> &'a str {
2098 match self {
2099 Self::Cancel => "C",
2100 Self::New => "N",
2101 Self::Replace => "R",
2102 Self::Unrecognized(value) => value,
2103 }
2104 }
2105}
2106
2107impl<'a> From<&'a str> for SettlInstTransType<'a> {
2108 fn from(value: &'a str) -> Self {
2109 Self::from_value(value)
2110 }
2111}
2112
2113#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
2115pub enum SettlInstSource<'a> {
2116 BrokerCredit,
2118 Institution,
2120 Unrecognized(&'a str),
2122}
2123
2124impl<'a> SettlInstSource<'a> {
2125 pub fn from_value(value: &'a str) -> Self {
2126 match value {
2127 "1" => Self::BrokerCredit,
2128 "2" => Self::Institution,
2129 unrecognized => Self::Unrecognized(unrecognized),
2130 }
2131 }
2132
2133 pub fn value(self) -> &'a str {
2134 match self {
2135 Self::BrokerCredit => "1",
2136 Self::Institution => "2",
2137 Self::Unrecognized(value) => value,
2138 }
2139 }
2140}
2141
2142impl<'a> From<&'a str> for SettlInstSource<'a> {
2143 fn from(value: &'a str) -> Self {
2144 Self::from_value(value)
2145 }
2146}
2147
2148#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
2150pub enum SettlLocation<'a> {
2151 Cedel,
2153 DepositoryTrustCompany,
2155 EuroClear,
2157 FederalBookEntry,
2159 LocalMarketSettleLocation,
2161 Physical,
2163 ParticipantTrustCompany,
2165 Unrecognized(&'a str),
2167}
2168
2169impl<'a> SettlLocation<'a> {
2170 pub fn from_value(value: &'a str) -> Self {
2171 match value {
2172 "CED" => Self::Cedel,
2173 "DTC" => Self::DepositoryTrustCompany,
2174 "EUR" => Self::EuroClear,
2175 "FED" => Self::FederalBookEntry,
2176 "ISO Country Code" => Self::LocalMarketSettleLocation,
2177 "PNY" => Self::Physical,
2178 "PTC" => Self::ParticipantTrustCompany,
2179 unrecognized => Self::Unrecognized(unrecognized),
2180 }
2181 }
2182
2183 pub fn value(self) -> &'a str {
2184 match self {
2185 Self::Cedel => "CED",
2186 Self::DepositoryTrustCompany => "DTC",
2187 Self::EuroClear => "EUR",
2188 Self::FederalBookEntry => "FED",
2189 Self::LocalMarketSettleLocation => "ISO Country Code",
2190 Self::Physical => "PNY",
2191 Self::ParticipantTrustCompany => "PTC",
2192 Self::Unrecognized(value) => value,
2193 }
2194 }
2195}
2196
2197impl<'a> From<&'a str> for SettlLocation<'a> {
2198 fn from(value: &'a str) -> Self {
2199 Self::from_value(value)
2200 }
2201}
2202
2203#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
2205pub enum SecurityType<'a> {
2206 Wildcard,
2208 BankersAcceptance,
2210 ConvertibleBond,
2212 CertificateOfDeposit,
2214 CollateralizedMortgageObligation,
2216 CorporateBond,
2218 CommercialPaper,
2220 CorporatePrivatePlacement,
2222 CommonStock,
2224 FederalHousingAuthority,
2226 FederalHomeLoan,
2228 FederalNationalMortgageAssociation,
2230 ForeignExchangeContract,
2232 Future,
2234 GovernmentNationalMortgageAssociation,
2236 TreasuriesAgencyDebenture,
2238 IoetteMortgage,
2240 MutualFund,
2242 MortgageInterestOnly,
2244 MortgagePrincipalOnly,
2246 MortgagePrivatePlacement,
2248 MiscellaneousPassThrough,
2250 MunicipalBond,
2252 NoSecurityType,
2254 Option,
2256 PreferredStock,
2258 RepurchaseAgreement,
2260 ReverseRepurchaseAgreement,
2262 StudentLoanMarketingAssociation,
2264 TimeDeposit,
2266 UsTreasuryBillOld,
2268 Warrant,
2270 CatsTigersAndLions,
2272 Unrecognized(&'a str),
2274}
2275
2276impl<'a> SecurityType<'a> {
2277 pub fn from_value(value: &'a str) -> Self {
2278 match value {
2279 "?" => Self::Wildcard,
2280 "BA" => Self::BankersAcceptance,
2281 "CB" => Self::ConvertibleBond,
2282 "CD" => Self::CertificateOfDeposit,
2283 "CMO" => Self::CollateralizedMortgageObligation,
2284 "CORP" => Self::CorporateBond,
2285 "CP" => Self::CommercialPaper,
2286 "CPP" => Self::CorporatePrivatePlacement,
2287 "CS" => Self::CommonStock,
2288 "FHA" => Self::FederalHousingAuthority,
2289 "FHL" => Self::FederalHomeLoan,
2290 "FN" => Self::FederalNationalMortgageAssociation,
2291 "FOR" => Self::ForeignExchangeContract,
2292 "FUT" => Self::Future,
2293 "GN" => Self::GovernmentNationalMortgageAssociation,
2294 "GOVT" => Self::TreasuriesAgencyDebenture,
2295 "IET" => Self::IoetteMortgage,
2296 "MF" => Self::MutualFund,
2297 "MIO" => Self::MortgageInterestOnly,
2298 "MPO" => Self::MortgagePrincipalOnly,
2299 "MPP" => Self::MortgagePrivatePlacement,
2300 "MPT" => Self::MiscellaneousPassThrough,
2301 "MUNI" => Self::MunicipalBond,
2302 "NONE" => Self::NoSecurityType,
2303 "OPT" => Self::Option,
2304 "PS" => Self::PreferredStock,
2305 "RP" => Self::RepurchaseAgreement,
2306 "RVRP" => Self::ReverseRepurchaseAgreement,
2307 "SL" => Self::StudentLoanMarketingAssociation,
2308 "TD" => Self::TimeDeposit,
2309 "USTB" => Self::UsTreasuryBillOld,
2310 "WAR" => Self::Warrant,
2311 "ZOO" => Self::CatsTigersAndLions,
2312 unrecognized => Self::Unrecognized(unrecognized),
2313 }
2314 }
2315
2316 pub fn value(self) -> &'a str {
2317 match self {
2318 Self::Wildcard => "?",
2319 Self::BankersAcceptance => "BA",
2320 Self::ConvertibleBond => "CB",
2321 Self::CertificateOfDeposit => "CD",
2322 Self::CollateralizedMortgageObligation => "CMO",
2323 Self::CorporateBond => "CORP",
2324 Self::CommercialPaper => "CP",
2325 Self::CorporatePrivatePlacement => "CPP",
2326 Self::CommonStock => "CS",
2327 Self::FederalHousingAuthority => "FHA",
2328 Self::FederalHomeLoan => "FHL",
2329 Self::FederalNationalMortgageAssociation => "FN",
2330 Self::ForeignExchangeContract => "FOR",
2331 Self::Future => "FUT",
2332 Self::GovernmentNationalMortgageAssociation => "GN",
2333 Self::TreasuriesAgencyDebenture => "GOVT",
2334 Self::IoetteMortgage => "IET",
2335 Self::MutualFund => "MF",
2336 Self::MortgageInterestOnly => "MIO",
2337 Self::MortgagePrincipalOnly => "MPO",
2338 Self::MortgagePrivatePlacement => "MPP",
2339 Self::MiscellaneousPassThrough => "MPT",
2340 Self::MunicipalBond => "MUNI",
2341 Self::NoSecurityType => "NONE",
2342 Self::Option => "OPT",
2343 Self::PreferredStock => "PS",
2344 Self::RepurchaseAgreement => "RP",
2345 Self::ReverseRepurchaseAgreement => "RVRP",
2346 Self::StudentLoanMarketingAssociation => "SL",
2347 Self::TimeDeposit => "TD",
2348 Self::UsTreasuryBillOld => "USTB",
2349 Self::Warrant => "WAR",
2350 Self::CatsTigersAndLions => "ZOO",
2351 Self::Unrecognized(value) => value,
2352 }
2353 }
2354}
2355
2356impl<'a> From<&'a str> for SecurityType<'a> {
2357 fn from(value: &'a str) -> Self {
2358 Self::from_value(value)
2359 }
2360}
2361
2362#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
2364pub enum StandInstDbType {
2365 Other,
2367 Dtcsid,
2369 ThomsonAlert,
2371 AGlobalCustodian,
2373 Unrecognized(i64),
2375}
2376
2377impl StandInstDbType {
2378 pub fn from_value(value: i64) -> Self {
2379 match value {
2380 0 => Self::Other,
2381 1 => Self::Dtcsid,
2382 2 => Self::ThomsonAlert,
2383 3 => Self::AGlobalCustodian,
2384 unrecognized => Self::Unrecognized(unrecognized),
2385 }
2386 }
2387
2388 pub fn value(self) -> i64 {
2389 match self {
2390 Self::Other => 0,
2391 Self::Dtcsid => 1,
2392 Self::ThomsonAlert => 2,
2393 Self::AGlobalCustodian => 3,
2394 Self::Unrecognized(value) => value,
2395 }
2396 }
2397}
2398
2399#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
2401pub enum AllocLinkType {
2402 FxNetting,
2404 FxSwap,
2406 Unrecognized(i64),
2408}
2409
2410impl AllocLinkType {
2411 pub fn from_value(value: i64) -> Self {
2412 match value {
2413 0 => Self::FxNetting,
2414 1 => Self::FxSwap,
2415 unrecognized => Self::Unrecognized(unrecognized),
2416 }
2417 }
2418
2419 pub fn value(self) -> i64 {
2420 match self {
2421 Self::FxNetting => 0,
2422 Self::FxSwap => 1,
2423 Self::Unrecognized(value) => value,
2424 }
2425 }
2426}
2427
2428#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
2430pub enum PutOrCall {
2431 Put,
2433 Call,
2435 Unrecognized(i64),
2437}
2438
2439impl PutOrCall {
2440 pub fn from_value(value: i64) -> Self {
2441 match value {
2442 0 => Self::Put,
2443 1 => Self::Call,
2444 unrecognized => Self::Unrecognized(unrecognized),
2445 }
2446 }
2447
2448 pub fn value(self) -> i64 {
2449 match self {
2450 Self::Put => 0,
2451 Self::Call => 1,
2452 Self::Unrecognized(value) => value,
2453 }
2454 }
2455}
2456
2457#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
2459pub enum CoveredOrUncovered {
2460 Covered,
2462 Uncovered,
2464 Unrecognized(i64),
2466}
2467
2468impl CoveredOrUncovered {
2469 pub fn from_value(value: i64) -> Self {
2470 match value {
2471 0 => Self::Covered,
2472 1 => Self::Uncovered,
2473 unrecognized => Self::Unrecognized(unrecognized),
2474 }
2475 }
2476
2477 pub fn value(self) -> i64 {
2478 match self {
2479 Self::Covered => 0,
2480 Self::Uncovered => 1,
2481 Self::Unrecognized(value) => value,
2482 }
2483 }
2484}
2485
2486#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
2488pub enum CustomerOrFirm {
2489 Customer,
2491 Firm,
2493 Unrecognized(i64),
2495}
2496
2497impl CustomerOrFirm {
2498 pub fn from_value(value: i64) -> Self {
2499 match value {
2500 0 => Self::Customer,
2501 1 => Self::Firm,
2502 unrecognized => Self::Unrecognized(unrecognized),
2503 }
2504 }
2505
2506 pub fn value(self) -> i64 {
2507 match self {
2508 Self::Customer => 0,
2509 Self::Firm => 1,
2510 Self::Unrecognized(value) => value,
2511 }
2512 }
2513}
2514
2515#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
2517pub enum AllocHandlInst {
2518 Match,
2520 Forward,
2522 ForwardAndMatch,
2524 Unrecognized(i64),
2526}
2527
2528impl AllocHandlInst {
2529 pub fn from_value(value: i64) -> Self {
2530 match value {
2531 1 => Self::Match,
2532 2 => Self::Forward,
2533 3 => Self::ForwardAndMatch,
2534 unrecognized => Self::Unrecognized(unrecognized),
2535 }
2536 }
2537
2538 pub fn value(self) -> i64 {
2539 match self {
2540 Self::Match => 1,
2541 Self::Forward => 2,
2542 Self::ForwardAndMatch => 3,
2543 Self::Unrecognized(value) => value,
2544 }
2545 }
2546}
2547
2548#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
2550pub enum RoutingType {
2551 TargetFirm,
2553 TargetList,
2555 BlockFirm,
2557 BlockList,
2559 Unrecognized(i64),
2561}
2562
2563impl RoutingType {
2564 pub fn from_value(value: i64) -> Self {
2565 match value {
2566 1 => Self::TargetFirm,
2567 2 => Self::TargetList,
2568 3 => Self::BlockFirm,
2569 4 => Self::BlockList,
2570 unrecognized => Self::Unrecognized(unrecognized),
2571 }
2572 }
2573
2574 pub fn value(self) -> i64 {
2575 match self {
2576 Self::TargetFirm => 1,
2577 Self::TargetList => 2,
2578 Self::BlockFirm => 3,
2579 Self::BlockList => 4,
2580 Self::Unrecognized(value) => value,
2581 }
2582 }
2583}
2584
2585#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
2587pub enum Benchmark<'a> {
2588 Curve,
2590 FiveYr,
2592 Old5,
2594 TenYr,
2596 Old10,
2598 ThirtyYr,
2600 Old30,
2602 ThreeMolibor,
2604 SixMolibor,
2606 Unrecognized(&'a str),
2608}
2609
2610impl<'a> Benchmark<'a> {
2611 pub fn from_value(value: &'a str) -> Self {
2612 match value {
2613 "1" => Self::Curve,
2614 "2" => Self::FiveYr,
2615 "3" => Self::Old5,
2616 "4" => Self::TenYr,
2617 "5" => Self::Old10,
2618 "6" => Self::ThirtyYr,
2619 "7" => Self::Old30,
2620 "8" => Self::ThreeMolibor,
2621 "9" => Self::SixMolibor,
2622 unrecognized => Self::Unrecognized(unrecognized),
2623 }
2624 }
2625
2626 pub fn value(self) -> &'a str {
2627 match self {
2628 Self::Curve => "1",
2629 Self::FiveYr => "2",
2630 Self::Old5 => "3",
2631 Self::TenYr => "4",
2632 Self::Old10 => "5",
2633 Self::ThirtyYr => "6",
2634 Self::Old30 => "7",
2635 Self::ThreeMolibor => "8",
2636 Self::SixMolibor => "9",
2637 Self::Unrecognized(value) => value,
2638 }
2639 }
2640}
2641
2642impl<'a> From<&'a str> for Benchmark<'a> {
2643 fn from(value: &'a str) -> Self {
2644 Self::from_value(value)
2645 }
2646}
2647
2648#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
2650pub enum SubscriptionRequestType<'a> {
2651 Snapshot,
2653 SnapshotAndUpdates,
2655 DisablePreviousSnapshot,
2657 Unrecognized(&'a str),
2659}
2660
2661impl<'a> SubscriptionRequestType<'a> {
2662 pub fn from_value(value: &'a str) -> Self {
2663 match value {
2664 "0" => Self::Snapshot,
2665 "1" => Self::SnapshotAndUpdates,
2666 "2" => Self::DisablePreviousSnapshot,
2667 unrecognized => Self::Unrecognized(unrecognized),
2668 }
2669 }
2670
2671 pub fn value(self) -> &'a str {
2672 match self {
2673 Self::Snapshot => "0",
2674 Self::SnapshotAndUpdates => "1",
2675 Self::DisablePreviousSnapshot => "2",
2676 Self::Unrecognized(value) => value,
2677 }
2678 }
2679}
2680
2681impl<'a> From<&'a str> for SubscriptionRequestType<'a> {
2682 fn from(value: &'a str) -> Self {
2683 Self::from_value(value)
2684 }
2685}
2686
2687#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
2689pub enum MDUpdateType {
2690 FullRefresh,
2692 IncrementalRefresh,
2694 Unrecognized(i64),
2696}
2697
2698impl MDUpdateType {
2699 pub fn from_value(value: i64) -> Self {
2700 match value {
2701 0 => Self::FullRefresh,
2702 1 => Self::IncrementalRefresh,
2703 unrecognized => Self::Unrecognized(unrecognized),
2704 }
2705 }
2706
2707 pub fn value(self) -> i64 {
2708 match self {
2709 Self::FullRefresh => 0,
2710 Self::IncrementalRefresh => 1,
2711 Self::Unrecognized(value) => value,
2712 }
2713 }
2714}
2715
2716#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
2718pub enum MDEntryType<'a> {
2719 Bid,
2721 Offer,
2723 Trade,
2725 IndexValue,
2727 OpeningPrice,
2729 ClosingPrice,
2731 SettlementPrice,
2733 TradingSessionHighPrice,
2735 TradingSessionLowPrice,
2737 TradingSessionVwapPrice,
2739 Unrecognized(&'a str),
2741}
2742
2743impl<'a> MDEntryType<'a> {
2744 pub fn from_value(value: &'a str) -> Self {
2745 match value {
2746 "0" => Self::Bid,
2747 "1" => Self::Offer,
2748 "2" => Self::Trade,
2749 "3" => Self::IndexValue,
2750 "4" => Self::OpeningPrice,
2751 "5" => Self::ClosingPrice,
2752 "6" => Self::SettlementPrice,
2753 "7" => Self::TradingSessionHighPrice,
2754 "8" => Self::TradingSessionLowPrice,
2755 "9" => Self::TradingSessionVwapPrice,
2756 unrecognized => Self::Unrecognized(unrecognized),
2757 }
2758 }
2759
2760 pub fn value(self) -> &'a str {
2761 match self {
2762 Self::Bid => "0",
2763 Self::Offer => "1",
2764 Self::Trade => "2",
2765 Self::IndexValue => "3",
2766 Self::OpeningPrice => "4",
2767 Self::ClosingPrice => "5",
2768 Self::SettlementPrice => "6",
2769 Self::TradingSessionHighPrice => "7",
2770 Self::TradingSessionLowPrice => "8",
2771 Self::TradingSessionVwapPrice => "9",
2772 Self::Unrecognized(value) => value,
2773 }
2774 }
2775}
2776
2777impl<'a> From<&'a str> for MDEntryType<'a> {
2778 fn from(value: &'a str) -> Self {
2779 Self::from_value(value)
2780 }
2781}
2782
2783#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
2785pub enum TickDirection<'a> {
2786 PlusTick,
2788 ZeroPlusTick,
2790 MinusTick,
2792 ZeroMinusTick,
2794 Unrecognized(&'a str),
2796}
2797
2798impl<'a> TickDirection<'a> {
2799 pub fn from_value(value: &'a str) -> Self {
2800 match value {
2801 "0" => Self::PlusTick,
2802 "1" => Self::ZeroPlusTick,
2803 "2" => Self::MinusTick,
2804 "3" => Self::ZeroMinusTick,
2805 unrecognized => Self::Unrecognized(unrecognized),
2806 }
2807 }
2808
2809 pub fn value(self) -> &'a str {
2810 match self {
2811 Self::PlusTick => "0",
2812 Self::ZeroPlusTick => "1",
2813 Self::MinusTick => "2",
2814 Self::ZeroMinusTick => "3",
2815 Self::Unrecognized(value) => value,
2816 }
2817 }
2818}
2819
2820impl<'a> From<&'a str> for TickDirection<'a> {
2821 fn from(value: &'a str) -> Self {
2822 Self::from_value(value)
2823 }
2824}
2825
2826#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
2828pub enum QuoteCondition<'a> {
2829 Open,
2831 Closed,
2833 ExchangeBest,
2835 ConsolidatedBest,
2837 Locked,
2839 Crossed,
2841 Depth,
2843 FastTrading,
2845 NonFirm,
2847 Unrecognized(&'a str),
2849}
2850
2851impl<'a> QuoteCondition<'a> {
2852 pub fn from_value(value: &'a str) -> Self {
2853 match value {
2854 "A" => Self::Open,
2855 "B" => Self::Closed,
2856 "C" => Self::ExchangeBest,
2857 "D" => Self::ConsolidatedBest,
2858 "E" => Self::Locked,
2859 "F" => Self::Crossed,
2860 "G" => Self::Depth,
2861 "H" => Self::FastTrading,
2862 "I" => Self::NonFirm,
2863 unrecognized => Self::Unrecognized(unrecognized),
2864 }
2865 }
2866
2867 pub fn value(self) -> &'a str {
2868 match self {
2869 Self::Open => "A",
2870 Self::Closed => "B",
2871 Self::ExchangeBest => "C",
2872 Self::ConsolidatedBest => "D",
2873 Self::Locked => "E",
2874 Self::Crossed => "F",
2875 Self::Depth => "G",
2876 Self::FastTrading => "H",
2877 Self::NonFirm => "I",
2878 Self::Unrecognized(value) => value,
2879 }
2880 }
2881}
2882
2883impl<'a> From<&'a str> for QuoteCondition<'a> {
2884 fn from(value: &'a str) -> Self {
2885 Self::from_value(value)
2886 }
2887}
2888
2889#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
2891pub enum TradeCondition<'a> {
2892 Cash,
2894 AveragePriceTrade,
2896 CashTrade,
2898 NextDay,
2900 Opening,
2902 IntradayTradeDetail,
2904 Rule127Trade,
2906 Rule155Trade,
2908 SoldLast,
2910 NextDayTrade,
2912 Opened,
2914 Seller,
2916 Sold,
2918 StoppedStock,
2920 Unrecognized(&'a str),
2922}
2923
2924impl<'a> TradeCondition<'a> {
2925 pub fn from_value(value: &'a str) -> Self {
2926 match value {
2927 "A" => Self::Cash,
2928 "B" => Self::AveragePriceTrade,
2929 "C" => Self::CashTrade,
2930 "D" => Self::NextDay,
2931 "E" => Self::Opening,
2932 "F" => Self::IntradayTradeDetail,
2933 "G" => Self::Rule127Trade,
2934 "H" => Self::Rule155Trade,
2935 "I" => Self::SoldLast,
2936 "J" => Self::NextDayTrade,
2937 "K" => Self::Opened,
2938 "L" => Self::Seller,
2939 "M" => Self::Sold,
2940 "N" => Self::StoppedStock,
2941 unrecognized => Self::Unrecognized(unrecognized),
2942 }
2943 }
2944
2945 pub fn value(self) -> &'a str {
2946 match self {
2947 Self::Cash => "A",
2948 Self::AveragePriceTrade => "B",
2949 Self::CashTrade => "C",
2950 Self::NextDay => "D",
2951 Self::Opening => "E",
2952 Self::IntradayTradeDetail => "F",
2953 Self::Rule127Trade => "G",
2954 Self::Rule155Trade => "H",
2955 Self::SoldLast => "I",
2956 Self::NextDayTrade => "J",
2957 Self::Opened => "K",
2958 Self::Seller => "L",
2959 Self::Sold => "M",
2960 Self::StoppedStock => "N",
2961 Self::Unrecognized(value) => value,
2962 }
2963 }
2964}
2965
2966impl<'a> From<&'a str> for TradeCondition<'a> {
2967 fn from(value: &'a str) -> Self {
2968 Self::from_value(value)
2969 }
2970}
2971
2972#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
2974pub enum MDUpdateAction<'a> {
2975 New,
2977 Change,
2979 Delete,
2981 Unrecognized(&'a str),
2983}
2984
2985impl<'a> MDUpdateAction<'a> {
2986 pub fn from_value(value: &'a str) -> Self {
2987 match value {
2988 "0" => Self::New,
2989 "1" => Self::Change,
2990 "2" => Self::Delete,
2991 unrecognized => Self::Unrecognized(unrecognized),
2992 }
2993 }
2994
2995 pub fn value(self) -> &'a str {
2996 match self {
2997 Self::New => "0",
2998 Self::Change => "1",
2999 Self::Delete => "2",
3000 Self::Unrecognized(value) => value,
3001 }
3002 }
3003}
3004
3005impl<'a> From<&'a str> for MDUpdateAction<'a> {
3006 fn from(value: &'a str) -> Self {
3007 Self::from_value(value)
3008 }
3009}
3010
3011#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
3013pub enum MDReqRejReason<'a> {
3014 UnknownSymbol,
3016 DuplicateMdReqId,
3018 InsufficientBandwidth,
3020 InsufficientPermissions,
3022 UnsupportedSubscriptionRequestType,
3024 UnsupportedMarketDepth,
3026 UnsupportedMdUpdateType,
3028 UnsupportedAggregatedBook,
3030 UnsupportedMdEntryType,
3032 Unrecognized(&'a str),
3034}
3035
3036impl<'a> MDReqRejReason<'a> {
3037 pub fn from_value(value: &'a str) -> Self {
3038 match value {
3039 "0" => Self::UnknownSymbol,
3040 "1" => Self::DuplicateMdReqId,
3041 "2" => Self::InsufficientBandwidth,
3042 "3" => Self::InsufficientPermissions,
3043 "4" => Self::UnsupportedSubscriptionRequestType,
3044 "5" => Self::UnsupportedMarketDepth,
3045 "6" => Self::UnsupportedMdUpdateType,
3046 "7" => Self::UnsupportedAggregatedBook,
3047 "8" => Self::UnsupportedMdEntryType,
3048 unrecognized => Self::Unrecognized(unrecognized),
3049 }
3050 }
3051
3052 pub fn value(self) -> &'a str {
3053 match self {
3054 Self::UnknownSymbol => "0",
3055 Self::DuplicateMdReqId => "1",
3056 Self::InsufficientBandwidth => "2",
3057 Self::InsufficientPermissions => "3",
3058 Self::UnsupportedSubscriptionRequestType => "4",
3059 Self::UnsupportedMarketDepth => "5",
3060 Self::UnsupportedMdUpdateType => "6",
3061 Self::UnsupportedAggregatedBook => "7",
3062 Self::UnsupportedMdEntryType => "8",
3063 Self::Unrecognized(value) => value,
3064 }
3065 }
3066}
3067
3068impl<'a> From<&'a str> for MDReqRejReason<'a> {
3069 fn from(value: &'a str) -> Self {
3070 Self::from_value(value)
3071 }
3072}
3073
3074#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
3076pub enum DeleteReason<'a> {
3077 Cancellation,
3079 Error,
3081 Unrecognized(&'a str),
3083}
3084
3085impl<'a> DeleteReason<'a> {
3086 pub fn from_value(value: &'a str) -> Self {
3087 match value {
3088 "0" => Self::Cancellation,
3089 "1" => Self::Error,
3090 unrecognized => Self::Unrecognized(unrecognized),
3091 }
3092 }
3093
3094 pub fn value(self) -> &'a str {
3095 match self {
3096 Self::Cancellation => "0",
3097 Self::Error => "1",
3098 Self::Unrecognized(value) => value,
3099 }
3100 }
3101}
3102
3103impl<'a> From<&'a str> for DeleteReason<'a> {
3104 fn from(value: &'a str) -> Self {
3105 Self::from_value(value)
3106 }
3107}
3108
3109#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
3111pub enum OpenCloseSettleFlag<'a> {
3112 DailyOpen,
3114 SessionOpen,
3116 DeliverySettlementEntry,
3118 Unrecognized(&'a str),
3120}
3121
3122impl<'a> OpenCloseSettleFlag<'a> {
3123 pub fn from_value(value: &'a str) -> Self {
3124 match value {
3125 "0" => Self::DailyOpen,
3126 "1" => Self::SessionOpen,
3127 "2" => Self::DeliverySettlementEntry,
3128 unrecognized => Self::Unrecognized(unrecognized),
3129 }
3130 }
3131
3132 pub fn value(self) -> &'a str {
3133 match self {
3134 Self::DailyOpen => "0",
3135 Self::SessionOpen => "1",
3136 Self::DeliverySettlementEntry => "2",
3137 Self::Unrecognized(value) => value,
3138 }
3139 }
3140}
3141
3142impl<'a> From<&'a str> for OpenCloseSettleFlag<'a> {
3143 fn from(value: &'a str) -> Self {
3144 Self::from_value(value)
3145 }
3146}
3147
3148#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
3150pub enum FinancialStatus<'a> {
3151 Bankrupt,
3153 Unrecognized(&'a str),
3155}
3156
3157impl<'a> FinancialStatus<'a> {
3158 pub fn from_value(value: &'a str) -> Self {
3159 match value {
3160 "1" => Self::Bankrupt,
3161 unrecognized => Self::Unrecognized(unrecognized),
3162 }
3163 }
3164
3165 pub fn value(self) -> &'a str {
3166 match self {
3167 Self::Bankrupt => "1",
3168 Self::Unrecognized(value) => value,
3169 }
3170 }
3171}
3172
3173impl<'a> From<&'a str> for FinancialStatus<'a> {
3174 fn from(value: &'a str) -> Self {
3175 Self::from_value(value)
3176 }
3177}
3178
3179#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
3181pub enum CorporateAction<'a> {
3182 ExDividend,
3184 ExDistribution,
3186 ExRights,
3188 New,
3190 ExInterest,
3192 Unrecognized(&'a str),
3194}
3195
3196impl<'a> CorporateAction<'a> {
3197 pub fn from_value(value: &'a str) -> Self {
3198 match value {
3199 "A" => Self::ExDividend,
3200 "B" => Self::ExDistribution,
3201 "C" => Self::ExRights,
3202 "D" => Self::New,
3203 "E" => Self::ExInterest,
3204 unrecognized => Self::Unrecognized(unrecognized),
3205 }
3206 }
3207
3208 pub fn value(self) -> &'a str {
3209 match self {
3210 Self::ExDividend => "A",
3211 Self::ExDistribution => "B",
3212 Self::ExRights => "C",
3213 Self::New => "D",
3214 Self::ExInterest => "E",
3215 Self::Unrecognized(value) => value,
3216 }
3217 }
3218}
3219
3220impl<'a> From<&'a str> for CorporateAction<'a> {
3221 fn from(value: &'a str) -> Self {
3222 Self::from_value(value)
3223 }
3224}
3225
3226#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
3228pub enum QuoteStatus {
3229 Accepted,
3231 CancelForSymbol,
3233 CanceledForSecurityType,
3235 CanceledForUnderlying,
3237 CanceledAll,
3239 Rejected,
3241 Unrecognized(i64),
3243}
3244
3245impl QuoteStatus {
3246 pub fn from_value(value: i64) -> Self {
3247 match value {
3248 0 => Self::Accepted,
3249 1 => Self::CancelForSymbol,
3250 2 => Self::CanceledForSecurityType,
3251 3 => Self::CanceledForUnderlying,
3252 4 => Self::CanceledAll,
3253 5 => Self::Rejected,
3254 unrecognized => Self::Unrecognized(unrecognized),
3255 }
3256 }
3257
3258 pub fn value(self) -> i64 {
3259 match self {
3260 Self::Accepted => 0,
3261 Self::CancelForSymbol => 1,
3262 Self::CanceledForSecurityType => 2,
3263 Self::CanceledForUnderlying => 3,
3264 Self::CanceledAll => 4,
3265 Self::Rejected => 5,
3266 Self::Unrecognized(value) => value,
3267 }
3268 }
3269}
3270
3271#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
3273pub enum QuoteCancelType {
3274 CancelForOneOrMoreSecurities,
3276 CancelForSecurityType,
3278 CancelForUnderlyingSecurity,
3280 CancelAllQuotes,
3282 Unrecognized(i64),
3284}
3285
3286impl QuoteCancelType {
3287 pub fn from_value(value: i64) -> Self {
3288 match value {
3289 1 => Self::CancelForOneOrMoreSecurities,
3290 2 => Self::CancelForSecurityType,
3291 3 => Self::CancelForUnderlyingSecurity,
3292 4 => Self::CancelAllQuotes,
3293 unrecognized => Self::Unrecognized(unrecognized),
3294 }
3295 }
3296
3297 pub fn value(self) -> i64 {
3298 match self {
3299 Self::CancelForOneOrMoreSecurities => 1,
3300 Self::CancelForSecurityType => 2,
3301 Self::CancelForUnderlyingSecurity => 3,
3302 Self::CancelAllQuotes => 4,
3303 Self::Unrecognized(value) => value,
3304 }
3305 }
3306}
3307
3308#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
3310pub enum QuoteRejectReason {
3311 UnknownSymbol,
3313 Exchange,
3315 QuoteRequestExceedsLimit,
3317 TooLateToEnter,
3319 UnknownQuote,
3321 DuplicateQuote,
3323 InvalidBid,
3325 InvalidPrice,
3327 NotAuthorizedToQuoteSecurity,
3329 Unrecognized(i64),
3331}
3332
3333impl QuoteRejectReason {
3334 pub fn from_value(value: i64) -> Self {
3335 match value {
3336 1 => Self::UnknownSymbol,
3337 2 => Self::Exchange,
3338 3 => Self::QuoteRequestExceedsLimit,
3339 4 => Self::TooLateToEnter,
3340 5 => Self::UnknownQuote,
3341 6 => Self::DuplicateQuote,
3342 7 => Self::InvalidBid,
3343 8 => Self::InvalidPrice,
3344 9 => Self::NotAuthorizedToQuoteSecurity,
3345 unrecognized => Self::Unrecognized(unrecognized),
3346 }
3347 }
3348
3349 pub fn value(self) -> i64 {
3350 match self {
3351 Self::UnknownSymbol => 1,
3352 Self::Exchange => 2,
3353 Self::QuoteRequestExceedsLimit => 3,
3354 Self::TooLateToEnter => 4,
3355 Self::UnknownQuote => 5,
3356 Self::DuplicateQuote => 6,
3357 Self::InvalidBid => 7,
3358 Self::InvalidPrice => 8,
3359 Self::NotAuthorizedToQuoteSecurity => 9,
3360 Self::Unrecognized(value) => value,
3361 }
3362 }
3363}
3364
3365#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
3367pub enum QuoteResponseLevel {
3368 NoAcknowledgement,
3370 AcknowledgeOnlyNegativeOrErroneousQuotes,
3372 AcknowledgeEachQuoteMessage,
3374 Unrecognized(i64),
3376}
3377
3378impl QuoteResponseLevel {
3379 pub fn from_value(value: i64) -> Self {
3380 match value {
3381 0 => Self::NoAcknowledgement,
3382 1 => Self::AcknowledgeOnlyNegativeOrErroneousQuotes,
3383 2 => Self::AcknowledgeEachQuoteMessage,
3384 unrecognized => Self::Unrecognized(unrecognized),
3385 }
3386 }
3387
3388 pub fn value(self) -> i64 {
3389 match self {
3390 Self::NoAcknowledgement => 0,
3391 Self::AcknowledgeOnlyNegativeOrErroneousQuotes => 1,
3392 Self::AcknowledgeEachQuoteMessage => 2,
3393 Self::Unrecognized(value) => value,
3394 }
3395 }
3396}
3397
3398#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
3400pub enum QuoteRequestType {
3401 Manual,
3403 Automatic,
3405 Unrecognized(i64),
3407}
3408
3409impl QuoteRequestType {
3410 pub fn from_value(value: i64) -> Self {
3411 match value {
3412 1 => Self::Manual,
3413 2 => Self::Automatic,
3414 unrecognized => Self::Unrecognized(unrecognized),
3415 }
3416 }
3417
3418 pub fn value(self) -> i64 {
3419 match self {
3420 Self::Manual => 1,
3421 Self::Automatic => 2,
3422 Self::Unrecognized(value) => value,
3423 }
3424 }
3425}
3426
3427#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
3429pub enum SecurityRequestType {
3430 RequestSecurityIdentityAndSpecifications,
3432 RequestSecurityIdentityForSpecifications,
3434 RequestListSecurityTypes,
3436 RequestListSecurities,
3438 Unrecognized(i64),
3440}
3441
3442impl SecurityRequestType {
3443 pub fn from_value(value: i64) -> Self {
3444 match value {
3445 0 => Self::RequestSecurityIdentityAndSpecifications,
3446 1 => Self::RequestSecurityIdentityForSpecifications,
3447 2 => Self::RequestListSecurityTypes,
3448 3 => Self::RequestListSecurities,
3449 unrecognized => Self::Unrecognized(unrecognized),
3450 }
3451 }
3452
3453 pub fn value(self) -> i64 {
3454 match self {
3455 Self::RequestSecurityIdentityAndSpecifications => 0,
3456 Self::RequestSecurityIdentityForSpecifications => 1,
3457 Self::RequestListSecurityTypes => 2,
3458 Self::RequestListSecurities => 3,
3459 Self::Unrecognized(value) => value,
3460 }
3461 }
3462}
3463
3464#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
3466pub enum SecurityResponseType {
3467 AcceptAsIs,
3469 AcceptWithRevisions,
3471 ListOfSecurityTypesReturnedPerRequest,
3473 ListOfSecuritiesReturnedPerRequest,
3475 RejectSecurityProposal,
3477 CannotMatchSelectionCriteria,
3479 Unrecognized(i64),
3481}
3482
3483impl SecurityResponseType {
3484 pub fn from_value(value: i64) -> Self {
3485 match value {
3486 1 => Self::AcceptAsIs,
3487 2 => Self::AcceptWithRevisions,
3488 3 => Self::ListOfSecurityTypesReturnedPerRequest,
3489 4 => Self::ListOfSecuritiesReturnedPerRequest,
3490 5 => Self::RejectSecurityProposal,
3491 6 => Self::CannotMatchSelectionCriteria,
3492 unrecognized => Self::Unrecognized(unrecognized),
3493 }
3494 }
3495
3496 pub fn value(self) -> i64 {
3497 match self {
3498 Self::AcceptAsIs => 1,
3499 Self::AcceptWithRevisions => 2,
3500 Self::ListOfSecurityTypesReturnedPerRequest => 3,
3501 Self::ListOfSecuritiesReturnedPerRequest => 4,
3502 Self::RejectSecurityProposal => 5,
3503 Self::CannotMatchSelectionCriteria => 6,
3504 Self::Unrecognized(value) => value,
3505 }
3506 }
3507}
3508
3509#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
3511pub enum SecurityTradingStatus {
3512 OpeningDelay,
3514 MarketOnCloseImbalanceSell,
3516 NoMarketImbalance,
3518 NoMarketOnCloseImbalance,
3520 ItsPreOpening,
3522 NewPriceIndication,
3524 TradeDisseminationTime,
3526 ReadyToTrade,
3528 NotAvailableForTrading,
3530 NotTradedOnThisMarket,
3532 TradingHalt,
3534 UnknownOrInvalid,
3536 Resume,
3538 NoOpen,
3540 PriceIndication,
3542 TradingRangeIndication,
3544 MarketImbalanceBuy,
3546 MarketImbalanceSell,
3548 MarketOnCloseImbalanceBuy,
3550 Unrecognized(i64),
3552}
3553
3554impl SecurityTradingStatus {
3555 pub fn from_value(value: i64) -> Self {
3556 match value {
3557 1 => Self::OpeningDelay,
3558 10 => Self::MarketOnCloseImbalanceSell,
3559 12 => Self::NoMarketImbalance,
3560 13 => Self::NoMarketOnCloseImbalance,
3561 14 => Self::ItsPreOpening,
3562 15 => Self::NewPriceIndication,
3563 16 => Self::TradeDisseminationTime,
3564 17 => Self::ReadyToTrade,
3565 18 => Self::NotAvailableForTrading,
3566 19 => Self::NotTradedOnThisMarket,
3567 2 => Self::TradingHalt,
3568 20 => Self::UnknownOrInvalid,
3569 3 => Self::Resume,
3570 4 => Self::NoOpen,
3571 5 => Self::PriceIndication,
3572 6 => Self::TradingRangeIndication,
3573 7 => Self::MarketImbalanceBuy,
3574 8 => Self::MarketImbalanceSell,
3575 9 => Self::MarketOnCloseImbalanceBuy,
3576 unrecognized => Self::Unrecognized(unrecognized),
3577 }
3578 }
3579
3580 pub fn value(self) -> i64 {
3581 match self {
3582 Self::OpeningDelay => 1,
3583 Self::MarketOnCloseImbalanceSell => 10,
3584 Self::NoMarketImbalance => 12,
3585 Self::NoMarketOnCloseImbalance => 13,
3586 Self::ItsPreOpening => 14,
3587 Self::NewPriceIndication => 15,
3588 Self::TradeDisseminationTime => 16,
3589 Self::ReadyToTrade => 17,
3590 Self::NotAvailableForTrading => 18,
3591 Self::NotTradedOnThisMarket => 19,
3592 Self::TradingHalt => 2,
3593 Self::UnknownOrInvalid => 20,
3594 Self::Resume => 3,
3595 Self::NoOpen => 4,
3596 Self::PriceIndication => 5,
3597 Self::TradingRangeIndication => 6,
3598 Self::MarketImbalanceBuy => 7,
3599 Self::MarketImbalanceSell => 8,
3600 Self::MarketOnCloseImbalanceBuy => 9,
3601 Self::Unrecognized(value) => value,
3602 }
3603 }
3604}
3605
3606#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
3608pub enum HaltReasonChar<'a> {
3609 NewsDissemination,
3611 OrderInflux,
3613 OrderImbalance,
3615 AdditionalInformation,
3617 NewsPending,
3619 EquipmentChangeover,
3621 Unrecognized(&'a str),
3623}
3624
3625impl<'a> HaltReasonChar<'a> {
3626 pub fn from_value(value: &'a str) -> Self {
3627 match value {
3628 "D" => Self::NewsDissemination,
3629 "E" => Self::OrderInflux,
3630 "I" => Self::OrderImbalance,
3631 "M" => Self::AdditionalInformation,
3632 "P" => Self::NewsPending,
3633 "X" => Self::EquipmentChangeover,
3634 unrecognized => Self::Unrecognized(unrecognized),
3635 }
3636 }
3637
3638 pub fn value(self) -> &'a str {
3639 match self {
3640 Self::NewsDissemination => "D",
3641 Self::OrderInflux => "E",
3642 Self::OrderImbalance => "I",
3643 Self::AdditionalInformation => "M",
3644 Self::NewsPending => "P",
3645 Self::EquipmentChangeover => "X",
3646 Self::Unrecognized(value) => value,
3647 }
3648 }
3649}
3650
3651impl<'a> From<&'a str> for HaltReasonChar<'a> {
3652 fn from(value: &'a str) -> Self {
3653 Self::from_value(value)
3654 }
3655}
3656
3657#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
3659pub enum Adjustment {
3660 Cancel,
3662 Error,
3664 Correction,
3666 Unrecognized(i64),
3668}
3669
3670impl Adjustment {
3671 pub fn from_value(value: i64) -> Self {
3672 match value {
3673 1 => Self::Cancel,
3674 2 => Self::Error,
3675 3 => Self::Correction,
3676 unrecognized => Self::Unrecognized(unrecognized),
3677 }
3678 }
3679
3680 pub fn value(self) -> i64 {
3681 match self {
3682 Self::Cancel => 1,
3683 Self::Error => 2,
3684 Self::Correction => 3,
3685 Self::Unrecognized(value) => value,
3686 }
3687 }
3688}
3689
3690#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
3692pub enum TradSesMethod {
3693 Electronic,
3695 OpenOutcry,
3697 TwoParty,
3699 Unrecognized(i64),
3701}
3702
3703impl TradSesMethod {
3704 pub fn from_value(value: i64) -> Self {
3705 match value {
3706 1 => Self::Electronic,
3707 2 => Self::OpenOutcry,
3708 3 => Self::TwoParty,
3709 unrecognized => Self::Unrecognized(unrecognized),
3710 }
3711 }
3712
3713 pub fn value(self) -> i64 {
3714 match self {
3715 Self::Electronic => 1,
3716 Self::OpenOutcry => 2,
3717 Self::TwoParty => 3,
3718 Self::Unrecognized(value) => value,
3719 }
3720 }
3721}
3722
3723#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
3725pub enum TradSesMode {
3726 Testing,
3728 Simulated,
3730 Production,
3732 Unrecognized(i64),
3734}
3735
3736impl TradSesMode {
3737 pub fn from_value(value: i64) -> Self {
3738 match value {
3739 1 => Self::Testing,
3740 2 => Self::Simulated,
3741 3 => Self::Production,
3742 unrecognized => Self::Unrecognized(unrecognized),
3743 }
3744 }
3745
3746 pub fn value(self) -> i64 {
3747 match self {
3748 Self::Testing => 1,
3749 Self::Simulated => 2,
3750 Self::Production => 3,
3751 Self::Unrecognized(value) => value,
3752 }
3753 }
3754}
3755
3756#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
3758pub enum TradSesStatus {
3759 Halted,
3761 Open,
3763 Closed,
3765 PreOpen,
3767 PreClose,
3769 Unrecognized(i64),
3771}
3772
3773impl TradSesStatus {
3774 pub fn from_value(value: i64) -> Self {
3775 match value {
3776 1 => Self::Halted,
3777 2 => Self::Open,
3778 3 => Self::Closed,
3779 4 => Self::PreOpen,
3780 5 => Self::PreClose,
3781 unrecognized => Self::Unrecognized(unrecognized),
3782 }
3783 }
3784
3785 pub fn value(self) -> i64 {
3786 match self {
3787 Self::Halted => 1,
3788 Self::Open => 2,
3789 Self::Closed => 3,
3790 Self::PreOpen => 4,
3791 Self::PreClose => 5,
3792 Self::Unrecognized(value) => value,
3793 }
3794 }
3795}
3796
3797#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
3799pub enum MessageEncoding<'a> {
3800 Eucjp,
3802 Iso2022Jp,
3804 ShiftJis,
3806 Utf8,
3808 Unrecognized(&'a str),
3810}
3811
3812impl<'a> MessageEncoding<'a> {
3813 pub fn from_value(value: &'a str) -> Self {
3814 match value {
3815 "EUC-JP" => Self::Eucjp,
3816 "ISO-2022-JP" => Self::Iso2022Jp,
3817 "Shift_JIS" => Self::ShiftJis,
3818 "UTF-8" => Self::Utf8,
3819 unrecognized => Self::Unrecognized(unrecognized),
3820 }
3821 }
3822
3823 pub fn value(self) -> &'a str {
3824 match self {
3825 Self::Eucjp => "EUC-JP",
3826 Self::Iso2022Jp => "ISO-2022-JP",
3827 Self::ShiftJis => "Shift_JIS",
3828 Self::Utf8 => "UTF-8",
3829 Self::Unrecognized(value) => value,
3830 }
3831 }
3832}
3833
3834impl<'a> From<&'a str> for MessageEncoding<'a> {
3835 fn from(value: &'a str) -> Self {
3836 Self::from_value(value)
3837 }
3838}
3839
3840#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
3842pub enum QuoteEntryRejectReason {
3843 UnknownSymbol,
3845 Exchange,
3847 QuoteExceedsLimit,
3849 TooLateToEnter,
3851 UnknownQuote,
3853 DuplicateQuote,
3855 InvalidBidAskSpread,
3857 InvalidPrice,
3859 NotAuthorizedToQuoteSecurity,
3861 Unrecognized(i64),
3863}
3864
3865impl QuoteEntryRejectReason {
3866 pub fn from_value(value: i64) -> Self {
3867 match value {
3868 1 => Self::UnknownSymbol,
3869 2 => Self::Exchange,
3870 3 => Self::QuoteExceedsLimit,
3871 4 => Self::TooLateToEnter,
3872 5 => Self::UnknownQuote,
3873 6 => Self::DuplicateQuote,
3874 7 => Self::InvalidBidAskSpread,
3875 8 => Self::InvalidPrice,
3876 9 => Self::NotAuthorizedToQuoteSecurity,
3877 unrecognized => Self::Unrecognized(unrecognized),
3878 }
3879 }
3880
3881 pub fn value(self) -> i64 {
3882 match self {
3883 Self::UnknownSymbol => 1,
3884 Self::Exchange => 2,
3885 Self::QuoteExceedsLimit => 3,
3886 Self::TooLateToEnter => 4,
3887 Self::UnknownQuote => 5,
3888 Self::DuplicateQuote => 6,
3889 Self::InvalidBidAskSpread => 7,
3890 Self::InvalidPrice => 8,
3891 Self::NotAuthorizedToQuoteSecurity => 9,
3892 Self::Unrecognized(value) => value,
3893 }
3894 }
3895}
3896
3897#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
3899pub enum SessionRejectReason {
3900 InvalidTagNumber,
3902 RequiredTagMissing,
3904 SendingTimeAccuracyProblem,
3906 InvalidMsgType,
3908 TagNotDefinedForThisMessageType,
3910 UndefinedTag,
3912 TagSpecifiedWithoutAValue,
3914 ValueIsIncorrect,
3916 IncorrectDataFormatForValue,
3918 DecryptionProblem,
3920 SignatureProblem,
3922 CompIdProblem,
3924 Unrecognized(i64),
3926}
3927
3928impl SessionRejectReason {
3929 pub fn from_value(value: i64) -> Self {
3930 match value {
3931 0 => Self::InvalidTagNumber,
3932 1 => Self::RequiredTagMissing,
3933 10 => Self::SendingTimeAccuracyProblem,
3934 11 => Self::InvalidMsgType,
3935 2 => Self::TagNotDefinedForThisMessageType,
3936 3 => Self::UndefinedTag,
3937 4 => Self::TagSpecifiedWithoutAValue,
3938 5 => Self::ValueIsIncorrect,
3939 6 => Self::IncorrectDataFormatForValue,
3940 7 => Self::DecryptionProblem,
3941 8 => Self::SignatureProblem,
3942 9 => Self::CompIdProblem,
3943 unrecognized => Self::Unrecognized(unrecognized),
3944 }
3945 }
3946
3947 pub fn value(self) -> i64 {
3948 match self {
3949 Self::InvalidTagNumber => 0,
3950 Self::RequiredTagMissing => 1,
3951 Self::SendingTimeAccuracyProblem => 10,
3952 Self::InvalidMsgType => 11,
3953 Self::TagNotDefinedForThisMessageType => 2,
3954 Self::UndefinedTag => 3,
3955 Self::TagSpecifiedWithoutAValue => 4,
3956 Self::ValueIsIncorrect => 5,
3957 Self::IncorrectDataFormatForValue => 6,
3958 Self::DecryptionProblem => 7,
3959 Self::SignatureProblem => 8,
3960 Self::CompIdProblem => 9,
3961 Self::Unrecognized(value) => value,
3962 }
3963 }
3964}
3965
3966#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
3968pub enum BidRequestTransType<'a> {
3969 Cancel,
3971 New,
3973 Unrecognized(&'a str),
3975}
3976
3977impl<'a> BidRequestTransType<'a> {
3978 pub fn from_value(value: &'a str) -> Self {
3979 match value {
3980 "C" => Self::Cancel,
3981 "N" => Self::New,
3982 unrecognized => Self::Unrecognized(unrecognized),
3983 }
3984 }
3985
3986 pub fn value(self) -> &'a str {
3987 match self {
3988 Self::Cancel => "C",
3989 Self::New => "N",
3990 Self::Unrecognized(value) => value,
3991 }
3992 }
3993}
3994
3995impl<'a> From<&'a str> for BidRequestTransType<'a> {
3996 fn from(value: &'a str) -> Self {
3997 Self::from_value(value)
3998 }
3999}
4000
4001#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
4003pub enum ExecRestatementReason {
4004 GtCorporateAction,
4006 GtRenewal,
4008 VerbalChange,
4010 RepricingOfOrder,
4012 BrokerOption,
4014 PartialDeclineOfOrderQty,
4016 Unrecognized(i64),
4018}
4019
4020impl ExecRestatementReason {
4021 pub fn from_value(value: i64) -> Self {
4022 match value {
4023 0 => Self::GtCorporateAction,
4024 1 => Self::GtRenewal,
4025 2 => Self::VerbalChange,
4026 3 => Self::RepricingOfOrder,
4027 4 => Self::BrokerOption,
4028 5 => Self::PartialDeclineOfOrderQty,
4029 unrecognized => Self::Unrecognized(unrecognized),
4030 }
4031 }
4032
4033 pub fn value(self) -> i64 {
4034 match self {
4035 Self::GtCorporateAction => 0,
4036 Self::GtRenewal => 1,
4037 Self::VerbalChange => 2,
4038 Self::RepricingOfOrder => 3,
4039 Self::BrokerOption => 4,
4040 Self::PartialDeclineOfOrderQty => 5,
4041 Self::Unrecognized(value) => value,
4042 }
4043 }
4044}
4045
4046#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
4048pub enum BusinessRejectReason {
4049 Other,
4051 UnknownId,
4053 UnknownSecurity,
4055 UnsupportedMessageType,
4057 ApplicationNotAvailable,
4059 ConditionallyRequiredFieldMissing,
4061 Unrecognized(i64),
4063}
4064
4065impl BusinessRejectReason {
4066 pub fn from_value(value: i64) -> Self {
4067 match value {
4068 0 => Self::Other,
4069 1 => Self::UnknownId,
4070 2 => Self::UnknownSecurity,
4071 3 => Self::UnsupportedMessageType,
4072 4 => Self::ApplicationNotAvailable,
4073 5 => Self::ConditionallyRequiredFieldMissing,
4074 unrecognized => Self::Unrecognized(unrecognized),
4075 }
4076 }
4077
4078 pub fn value(self) -> i64 {
4079 match self {
4080 Self::Other => 0,
4081 Self::UnknownId => 1,
4082 Self::UnknownSecurity => 2,
4083 Self::UnsupportedMessageType => 3,
4084 Self::ApplicationNotAvailable => 4,
4085 Self::ConditionallyRequiredFieldMissing => 5,
4086 Self::Unrecognized(value) => value,
4087 }
4088 }
4089}
4090
4091#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
4093pub enum MsgDirection<'a> {
4094 Receive,
4096 Send,
4098 Unrecognized(&'a str),
4100}
4101
4102impl<'a> MsgDirection<'a> {
4103 pub fn from_value(value: &'a str) -> Self {
4104 match value {
4105 "R" => Self::Receive,
4106 "S" => Self::Send,
4107 unrecognized => Self::Unrecognized(unrecognized),
4108 }
4109 }
4110
4111 pub fn value(self) -> &'a str {
4112 match self {
4113 Self::Receive => "R",
4114 Self::Send => "S",
4115 Self::Unrecognized(value) => value,
4116 }
4117 }
4118}
4119
4120impl<'a> From<&'a str> for MsgDirection<'a> {
4121 fn from(value: &'a str) -> Self {
4122 Self::from_value(value)
4123 }
4124}
4125
4126#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
4128pub enum DiscretionInst<'a> {
4129 RelatedToDisplayedPrice,
4131 RelatedToMarketPrice,
4133 RelatedToPrimaryPrice,
4135 RelatedToLocalPrimaryPrice,
4137 RelatedToMidpointPrice,
4139 RelatedToLastTradePrice,
4141 Unrecognized(&'a str),
4143}
4144
4145impl<'a> DiscretionInst<'a> {
4146 pub fn from_value(value: &'a str) -> Self {
4147 match value {
4148 "0" => Self::RelatedToDisplayedPrice,
4149 "1" => Self::RelatedToMarketPrice,
4150 "2" => Self::RelatedToPrimaryPrice,
4151 "3" => Self::RelatedToLocalPrimaryPrice,
4152 "4" => Self::RelatedToMidpointPrice,
4153 "5" => Self::RelatedToLastTradePrice,
4154 unrecognized => Self::Unrecognized(unrecognized),
4155 }
4156 }
4157
4158 pub fn value(self) -> &'a str {
4159 match self {
4160 Self::RelatedToDisplayedPrice => "0",
4161 Self::RelatedToMarketPrice => "1",
4162 Self::RelatedToPrimaryPrice => "2",
4163 Self::RelatedToLocalPrimaryPrice => "3",
4164 Self::RelatedToMidpointPrice => "4",
4165 Self::RelatedToLastTradePrice => "5",
4166 Self::Unrecognized(value) => value,
4167 }
4168 }
4169}
4170
4171impl<'a> From<&'a str> for DiscretionInst<'a> {
4172 fn from(value: &'a str) -> Self {
4173 Self::from_value(value)
4174 }
4175}
4176
4177#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
4179pub enum LiquidityIndType {
4180 FiveDayMovingAverage,
4182 TwentyDayMovingAverage,
4184 NormalMarketSize,
4186 Other,
4188 Unrecognized(i64),
4190}
4191
4192impl LiquidityIndType {
4193 pub fn from_value(value: i64) -> Self {
4194 match value {
4195 1 => Self::FiveDayMovingAverage,
4196 2 => Self::TwentyDayMovingAverage,
4197 3 => Self::NormalMarketSize,
4198 4 => Self::Other,
4199 unrecognized => Self::Unrecognized(unrecognized),
4200 }
4201 }
4202
4203 pub fn value(self) -> i64 {
4204 match self {
4205 Self::FiveDayMovingAverage => 1,
4206 Self::TwentyDayMovingAverage => 2,
4207 Self::NormalMarketSize => 3,
4208 Self::Other => 4,
4209 Self::Unrecognized(value) => value,
4210 }
4211 }
4212}
4213
4214#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
4216pub enum ProgRptReqs {
4217 BuySideRequests,
4219 SellSideSends,
4221 RealTimeExecutionReports,
4223 Unrecognized(i64),
4225}
4226
4227impl ProgRptReqs {
4228 pub fn from_value(value: i64) -> Self {
4229 match value {
4230 1 => Self::BuySideRequests,
4231 2 => Self::SellSideSends,
4232 3 => Self::RealTimeExecutionReports,
4233 unrecognized => Self::Unrecognized(unrecognized),
4234 }
4235 }
4236
4237 pub fn value(self) -> i64 {
4238 match self {
4239 Self::BuySideRequests => 1,
4240 Self::SellSideSends => 2,
4241 Self::RealTimeExecutionReports => 3,
4242 Self::Unrecognized(value) => value,
4243 }
4244 }
4245}
4246
4247#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
4249pub enum IncTaxInd {
4250 Net,
4252 Gross,
4254 Unrecognized(i64),
4256}
4257
4258impl IncTaxInd {
4259 pub fn from_value(value: i64) -> Self {
4260 match value {
4261 1 => Self::Net,
4262 2 => Self::Gross,
4263 unrecognized => Self::Unrecognized(unrecognized),
4264 }
4265 }
4266
4267 pub fn value(self) -> i64 {
4268 match self {
4269 Self::Net => 1,
4270 Self::Gross => 2,
4271 Self::Unrecognized(value) => value,
4272 }
4273 }
4274}
4275
4276#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
4278pub enum TradeType<'a> {
4279 Agency,
4281 VwapGuarantee,
4283 GuaranteedClose,
4285 RiskTrade,
4287 Unrecognized(&'a str),
4289}
4290
4291impl<'a> TradeType<'a> {
4292 pub fn from_value(value: &'a str) -> Self {
4293 match value {
4294 "A" => Self::Agency,
4295 "G" => Self::VwapGuarantee,
4296 "J" => Self::GuaranteedClose,
4297 "R" => Self::RiskTrade,
4298 unrecognized => Self::Unrecognized(unrecognized),
4299 }
4300 }
4301
4302 pub fn value(self) -> &'a str {
4303 match self {
4304 Self::Agency => "A",
4305 Self::VwapGuarantee => "G",
4306 Self::GuaranteedClose => "J",
4307 Self::RiskTrade => "R",
4308 Self::Unrecognized(value) => value,
4309 }
4310 }
4311}
4312
4313impl<'a> From<&'a str> for TradeType<'a> {
4314 fn from(value: &'a str) -> Self {
4315 Self::from_value(value)
4316 }
4317}
4318
4319#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
4321pub enum BasisPxType<'a> {
4322 ClosingPriceAtMorningSession,
4324 ClosingPrice,
4326 CurrentPrice,
4328 Sq,
4330 VwapThroughADay,
4332 VwapThroughAMorningSession,
4334 VwapThroughAnAfternoonSession,
4336 VwapThroughADayExcept,
4338 VwapThroughAMorningSessionExcept,
4340 VwapThroughAnAfternoonSessionExcept,
4342 Strike,
4344 Open,
4346 Others,
4348 Unrecognized(&'a str),
4350}
4351
4352impl<'a> BasisPxType<'a> {
4353 pub fn from_value(value: &'a str) -> Self {
4354 match value {
4355 "2" => Self::ClosingPriceAtMorningSession,
4356 "3" => Self::ClosingPrice,
4357 "4" => Self::CurrentPrice,
4358 "5" => Self::Sq,
4359 "6" => Self::VwapThroughADay,
4360 "7" => Self::VwapThroughAMorningSession,
4361 "8" => Self::VwapThroughAnAfternoonSession,
4362 "9" => Self::VwapThroughADayExcept,
4363 "A" => Self::VwapThroughAMorningSessionExcept,
4364 "B" => Self::VwapThroughAnAfternoonSessionExcept,
4365 "C" => Self::Strike,
4366 "D" => Self::Open,
4367 "Z" => Self::Others,
4368 unrecognized => Self::Unrecognized(unrecognized),
4369 }
4370 }
4371
4372 pub fn value(self) -> &'a str {
4373 match self {
4374 Self::ClosingPriceAtMorningSession => "2",
4375 Self::ClosingPrice => "3",
4376 Self::CurrentPrice => "4",
4377 Self::Sq => "5",
4378 Self::VwapThroughADay => "6",
4379 Self::VwapThroughAMorningSession => "7",
4380 Self::VwapThroughAnAfternoonSession => "8",
4381 Self::VwapThroughADayExcept => "9",
4382 Self::VwapThroughAMorningSessionExcept => "A",
4383 Self::VwapThroughAnAfternoonSessionExcept => "B",
4384 Self::Strike => "C",
4385 Self::Open => "D",
4386 Self::Others => "Z",
4387 Self::Unrecognized(value) => value,
4388 }
4389 }
4390}
4391
4392impl<'a> From<&'a str> for BasisPxType<'a> {
4393 fn from(value: &'a str) -> Self {
4394 Self::from_value(value)
4395 }
4396}
4397
4398#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
4400pub enum PriceType {
4401 Percentage,
4403 PerUnit,
4405 FixedAmount,
4407 Unrecognized(i64),
4409}
4410
4411impl PriceType {
4412 pub fn from_value(value: i64) -> Self {
4413 match value {
4414 1 => Self::Percentage,
4415 2 => Self::PerUnit,
4416 3 => Self::FixedAmount,
4417 unrecognized => Self::Unrecognized(unrecognized),
4418 }
4419 }
4420
4421 pub fn value(self) -> i64 {
4422 match self {
4423 Self::Percentage => 1,
4424 Self::PerUnit => 2,
4425 Self::FixedAmount => 3,
4426 Self::Unrecognized(value) => value,
4427 }
4428 }
4429}
4430
4431#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
4433pub enum GTBookingInst {
4434 BookOutAllTradesOnDayOfExecution,
4436 AccumulateUntilFilledOrExpired,
4438 AccumulateUntilVerballlyNotifiedOtherwise,
4440 Unrecognized(i64),
4442}
4443
4444impl GTBookingInst {
4445 pub fn from_value(value: i64) -> Self {
4446 match value {
4447 0 => Self::BookOutAllTradesOnDayOfExecution,
4448 1 => Self::AccumulateUntilFilledOrExpired,
4449 2 => Self::AccumulateUntilVerballlyNotifiedOtherwise,
4450 unrecognized => Self::Unrecognized(unrecognized),
4451 }
4452 }
4453
4454 pub fn value(self) -> i64 {
4455 match self {
4456 Self::BookOutAllTradesOnDayOfExecution => 0,
4457 Self::AccumulateUntilFilledOrExpired => 1,
4458 Self::AccumulateUntilVerballlyNotifiedOtherwise => 2,
4459 Self::Unrecognized(value) => value,
4460 }
4461 }
4462}
4463
4464#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
4466pub enum NetGrossInd {
4467 Net,
4469 Gross,
4471 Unrecognized(i64),
4473}
4474
4475impl NetGrossInd {
4476 pub fn from_value(value: i64) -> Self {
4477 match value {
4478 1 => Self::Net,
4479 2 => Self::Gross,
4480 unrecognized => Self::Unrecognized(unrecognized),
4481 }
4482 }
4483
4484 pub fn value(self) -> i64 {
4485 match self {
4486 Self::Net => 1,
4487 Self::Gross => 2,
4488 Self::Unrecognized(value) => value,
4489 }
4490 }
4491}
4492
4493#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
4495pub enum ListExecInstType<'a> {
4496 Immediate,
4498 WaitForInstruction,
4500 Unrecognized(&'a str),
4502}
4503
4504impl<'a> ListExecInstType<'a> {
4505 pub fn from_value(value: &'a str) -> Self {
4506 match value {
4507 "1" => Self::Immediate,
4508 "2" => Self::WaitForInstruction,
4509 unrecognized => Self::Unrecognized(unrecognized),
4510 }
4511 }
4512
4513 pub fn value(self) -> &'a str {
4514 match self {
4515 Self::Immediate => "1",
4516 Self::WaitForInstruction => "2",
4517 Self::Unrecognized(value) => value,
4518 }
4519 }
4520}
4521
4522impl<'a> From<&'a str> for ListExecInstType<'a> {
4523 fn from(value: &'a str) -> Self {
4524 Self::from_value(value)
4525 }
4526}
4527
4528#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
4530pub enum CxlRejResponseTo<'a> {
4531 OrderCancelRequest,
4533 OrderCancel,
4535 Unrecognized(&'a str),
4537}
4538
4539impl<'a> CxlRejResponseTo<'a> {
4540 pub fn from_value(value: &'a str) -> Self {
4541 match value {
4542 "1" => Self::OrderCancelRequest,
4543 "2" => Self::OrderCancel,
4544 unrecognized => Self::Unrecognized(unrecognized),
4545 }
4546 }
4547
4548 pub fn value(self) -> &'a str {
4549 match self {
4550 Self::OrderCancelRequest => "1",
4551 Self::OrderCancel => "2",
4552 Self::Unrecognized(value) => value,
4553 }
4554 }
4555}
4556
4557impl<'a> From<&'a str> for CxlRejResponseTo<'a> {
4558 fn from(value: &'a str) -> Self {
4559 Self::from_value(value)
4560 }
4561}
4562
4563#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
4565pub enum MultiLegReportingType<'a> {
4566 SingleSecurity,
4568 IndividualLegOfAMultiLegSecurity,
4570 MultiLegSecurity,
4572 Unrecognized(&'a str),
4574}
4575
4576impl<'a> MultiLegReportingType<'a> {
4577 pub fn from_value(value: &'a str) -> Self {
4578 match value {
4579 "1" => Self::SingleSecurity,
4580 "2" => Self::IndividualLegOfAMultiLegSecurity,
4581 "3" => Self::MultiLegSecurity,
4582 unrecognized => Self::Unrecognized(unrecognized),
4583 }
4584 }
4585
4586 pub fn value(self) -> &'a str {
4587 match self {
4588 Self::SingleSecurity => "1",
4589 Self::IndividualLegOfAMultiLegSecurity => "2",
4590 Self::MultiLegSecurity => "3",
4591 Self::Unrecognized(value) => value,
4592 }
4593 }
4594}
4595
4596impl<'a> From<&'a str> for MultiLegReportingType<'a> {
4597 fn from(value: &'a str) -> Self {
4598 Self::from_value(value)
4599 }
4600}
4601
4602#[derive(Clone, Copy, Debug)]
4604pub struct Header<'a>(refix_message::Scope<'a>);
4605
4606impl<'a> From<refix_message::Scope<'a>> for Header<'a> {
4607 fn from(scope: refix_message::Scope<'a>) -> Self {
4608 Self(scope)
4609 }
4610}
4611
4612impl<'a> Header<'a> {
4613 pub fn raw(&self) -> refix_message::Scope<'a> {
4614 self.0
4615 }
4616
4617 #[doc(alias = "BeginString")]
4619 pub fn begin_string(&self) -> Result<Option<&'a str>, InvalidValue> {
4620 self.0.get_str(Tag(8))
4621 }
4622
4623 #[doc(alias = "BodyLength")]
4625 pub fn body_length(&self) -> Result<Option<i64>, InvalidValue> {
4626 self.0.get_int(Tag(9))
4627 }
4628
4629 #[doc(alias = "MsgType")]
4631 pub fn msg_type(&self) -> Result<Option<MsgType<'a>>, InvalidValue> {
4632 Ok(self.0.get_str(Tag(35))?.map(MsgType::from_value))
4633 }
4634
4635 #[doc(alias = "SenderCompID")]
4637 pub fn sender_comp_id(&self) -> Result<Option<&'a str>, InvalidValue> {
4638 self.0.get_str(Tag(49))
4639 }
4640
4641 #[doc(alias = "TargetCompID")]
4643 pub fn target_comp_id(&self) -> Result<Option<&'a str>, InvalidValue> {
4644 self.0.get_str(Tag(56))
4645 }
4646
4647 #[doc(alias = "OnBehalfOfCompID")]
4649 pub fn on_behalf_of_comp_id(&self) -> Result<Option<&'a str>, InvalidValue> {
4650 self.0.get_str(Tag(115))
4651 }
4652
4653 #[doc(alias = "DeliverToCompID")]
4655 pub fn deliver_to_comp_id(&self) -> Result<Option<&'a str>, InvalidValue> {
4656 self.0.get_str(Tag(128))
4657 }
4658
4659 #[doc(alias = "SecureDataLen")]
4661 pub fn secure_data_len(&self) -> Result<Option<i64>, InvalidValue> {
4662 self.0.get_int(Tag(90))
4663 }
4664
4665 #[doc(alias = "SecureData")]
4667 pub fn secure_data(&self) -> Option<&'a [u8]> {
4668 self.0.get(Tag(91))
4669 }
4670
4671 #[doc(alias = "MsgSeqNum")]
4673 pub fn msg_seq_num(&self) -> Result<Option<i64>, InvalidValue> {
4674 self.0.get_int(Tag(34))
4675 }
4676
4677 #[doc(alias = "SenderSubID")]
4679 pub fn sender_sub_id(&self) -> Result<Option<&'a str>, InvalidValue> {
4680 self.0.get_str(Tag(50))
4681 }
4682
4683 #[doc(alias = "SenderLocationID")]
4685 pub fn sender_location_id(&self) -> Result<Option<&'a str>, InvalidValue> {
4686 self.0.get_str(Tag(142))
4687 }
4688
4689 #[doc(alias = "TargetSubID")]
4691 pub fn target_sub_id(&self) -> Result<Option<&'a str>, InvalidValue> {
4692 self.0.get_str(Tag(57))
4693 }
4694
4695 #[doc(alias = "TargetLocationID")]
4697 pub fn target_location_id(&self) -> Result<Option<&'a str>, InvalidValue> {
4698 self.0.get_str(Tag(143))
4699 }
4700
4701 #[doc(alias = "OnBehalfOfSubID")]
4703 pub fn on_behalf_of_sub_id(&self) -> Result<Option<&'a str>, InvalidValue> {
4704 self.0.get_str(Tag(116))
4705 }
4706
4707 #[doc(alias = "OnBehalfOfLocationID")]
4709 pub fn on_behalf_of_location_id(&self) -> Result<Option<&'a str>, InvalidValue> {
4710 self.0.get_str(Tag(144))
4711 }
4712
4713 #[doc(alias = "DeliverToSubID")]
4715 pub fn deliver_to_sub_id(&self) -> Result<Option<&'a str>, InvalidValue> {
4716 self.0.get_str(Tag(129))
4717 }
4718
4719 #[doc(alias = "DeliverToLocationID")]
4721 pub fn deliver_to_location_id(&self) -> Result<Option<&'a str>, InvalidValue> {
4722 self.0.get_str(Tag(145))
4723 }
4724
4725 #[doc(alias = "PossDupFlag")]
4727 pub fn poss_dup_flag(&self) -> Result<Option<bool>, InvalidValue> {
4728 self.0.get_bool(Tag(43))
4729 }
4730
4731 #[doc(alias = "PossResend")]
4733 pub fn poss_resend(&self) -> Result<Option<bool>, InvalidValue> {
4734 self.0.get_bool(Tag(97))
4735 }
4736
4737 #[doc(alias = "SendingTime")]
4739 pub fn sending_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
4740 self.0.get_utc_timestamp(Tag(52))
4741 }
4742
4743 #[doc(alias = "OrigSendingTime")]
4745 pub fn orig_sending_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
4746 self.0.get_utc_timestamp(Tag(122))
4747 }
4748
4749 #[doc(alias = "XmlDataLen")]
4751 pub fn xml_data_len(&self) -> Result<Option<i64>, InvalidValue> {
4752 self.0.get_int(Tag(212))
4753 }
4754
4755 #[doc(alias = "XmlData")]
4757 pub fn xml_data(&self) -> Option<&'a [u8]> {
4758 self.0.get(Tag(213))
4759 }
4760
4761 #[doc(alias = "MessageEncoding")]
4763 pub fn message_encoding(&self) -> Result<Option<MessageEncoding<'a>>, InvalidValue> {
4764 Ok(self.0.get_str(Tag(347))?.map(MessageEncoding::from_value))
4765 }
4766
4767 #[doc(alias = "LastMsgSeqNumProcessed")]
4769 pub fn last_msg_seq_num_processed(&self) -> Result<Option<i64>, InvalidValue> {
4770 self.0.get_int(Tag(369))
4771 }
4772
4773 #[doc(alias = "OnBehalfOfSendingTime")]
4775 pub fn on_behalf_of_sending_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
4776 self.0.get_utc_timestamp(Tag(370))
4777 }
4778}
4779
4780#[derive(Clone, Copy, Debug)]
4782pub struct Trailer<'a>(refix_message::Scope<'a>);
4783
4784impl<'a> From<refix_message::Scope<'a>> for Trailer<'a> {
4785 fn from(scope: refix_message::Scope<'a>) -> Self {
4786 Self(scope)
4787 }
4788}
4789
4790impl<'a> Trailer<'a> {
4791 pub fn raw(&self) -> refix_message::Scope<'a> {
4792 self.0
4793 }
4794
4795 #[doc(alias = "SignatureLength")]
4797 pub fn signature_length(&self) -> Result<Option<i64>, InvalidValue> {
4798 self.0.get_int(Tag(93))
4799 }
4800
4801 #[doc(alias = "Signature")]
4803 pub fn signature(&self) -> Option<&'a [u8]> {
4804 self.0.get(Tag(89))
4805 }
4806
4807 #[doc(alias = "CheckSum")]
4809 pub fn check_sum(&self) -> Result<Option<&'a str>, InvalidValue> {
4810 self.0.get_str(Tag(10))
4811 }
4812}
4813
4814pub struct Heartbeat(RawMessage);
4816
4817impl Heartbeat {
4818 pub const MSG_TYPE: &[u8] = b"0";
4819
4820 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
4821 Tag(8), Tag(9), Tag(10), Tag(34), Tag(35), Tag(43), Tag(49), Tag(50), Tag(52), Tag(56),
4822 Tag(57), Tag(89), Tag(90), Tag(91), Tag(93), Tag(97), Tag(112), Tag(115), Tag(116),
4823 Tag(122), Tag(128), Tag(129), Tag(142), Tag(143), Tag(144), Tag(145), Tag(212), Tag(213),
4824 Tag(347), Tag(369), Tag(370),
4825 ]);
4826
4827 pub fn from_raw(raw: RawMessage) -> Self {
4828 Self(raw)
4829 }
4830
4831 pub fn raw(&self) -> &RawMessage {
4832 &self.0
4833 }
4834
4835 pub fn header(&self) -> Header<'_> {
4836 Header(self.0.scope())
4837 }
4838
4839 pub fn trailer(&self) -> Trailer<'_> {
4840 Trailer(self.0.scope())
4841 }
4842
4843 #[doc(alias = "TestReqID")]
4845 pub fn test_req_id(&self) -> Result<Option<&str>, InvalidValue> {
4846 self.0.get_str(Tag(112))
4847 }
4848}
4849
4850impl std::fmt::Debug for Heartbeat {
4851 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
4852 write!(f, "Heartbeat({})", self.0)
4853 }
4854}
4855
4856impl std::fmt::Display for Heartbeat {
4857 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
4858 std::fmt::Display::fmt(&self.0, f)
4859 }
4860}
4861
4862pub struct TestRequest(RawMessage);
4864
4865impl TestRequest {
4866 pub const MSG_TYPE: &[u8] = b"1";
4867
4868 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
4869 Tag(8), Tag(9), Tag(10), Tag(34), Tag(35), Tag(43), Tag(49), Tag(50), Tag(52), Tag(56),
4870 Tag(57), Tag(89), Tag(90), Tag(91), Tag(93), Tag(97), Tag(112), Tag(115), Tag(116),
4871 Tag(122), Tag(128), Tag(129), Tag(142), Tag(143), Tag(144), Tag(145), Tag(212), Tag(213),
4872 Tag(347), Tag(369), Tag(370),
4873 ]);
4874
4875 pub fn from_raw(raw: RawMessage) -> Self {
4876 Self(raw)
4877 }
4878
4879 pub fn raw(&self) -> &RawMessage {
4880 &self.0
4881 }
4882
4883 pub fn header(&self) -> Header<'_> {
4884 Header(self.0.scope())
4885 }
4886
4887 pub fn trailer(&self) -> Trailer<'_> {
4888 Trailer(self.0.scope())
4889 }
4890
4891 #[doc(alias = "TestReqID")]
4893 pub fn test_req_id(&self) -> Result<Option<&str>, InvalidValue> {
4894 self.0.get_str(Tag(112))
4895 }
4896}
4897
4898impl std::fmt::Debug for TestRequest {
4899 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
4900 write!(f, "TestRequest({})", self.0)
4901 }
4902}
4903
4904impl std::fmt::Display for TestRequest {
4905 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
4906 std::fmt::Display::fmt(&self.0, f)
4907 }
4908}
4909
4910pub struct ResendRequest(RawMessage);
4912
4913impl ResendRequest {
4914 pub const MSG_TYPE: &[u8] = b"2";
4915
4916 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
4917 Tag(7), Tag(8), Tag(9), Tag(10), Tag(16), Tag(34), Tag(35), Tag(43), Tag(49), Tag(50),
4918 Tag(52), Tag(56), Tag(57), Tag(89), Tag(90), Tag(91), Tag(93), Tag(97), Tag(115), Tag(116),
4919 Tag(122), Tag(128), Tag(129), Tag(142), Tag(143), Tag(144), Tag(145), Tag(212), Tag(213),
4920 Tag(347), Tag(369), Tag(370),
4921 ]);
4922
4923 pub fn from_raw(raw: RawMessage) -> Self {
4924 Self(raw)
4925 }
4926
4927 pub fn raw(&self) -> &RawMessage {
4928 &self.0
4929 }
4930
4931 pub fn header(&self) -> Header<'_> {
4932 Header(self.0.scope())
4933 }
4934
4935 pub fn trailer(&self) -> Trailer<'_> {
4936 Trailer(self.0.scope())
4937 }
4938
4939 #[doc(alias = "BeginSeqNo")]
4941 pub fn begin_seq_no(&self) -> Result<Option<i64>, InvalidValue> {
4942 self.0.get_int(Tag(7))
4943 }
4944
4945 #[doc(alias = "EndSeqNo")]
4947 pub fn end_seq_no(&self) -> Result<Option<i64>, InvalidValue> {
4948 self.0.get_int(Tag(16))
4949 }
4950}
4951
4952impl std::fmt::Debug for ResendRequest {
4953 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
4954 write!(f, "ResendRequest({})", self.0)
4955 }
4956}
4957
4958impl std::fmt::Display for ResendRequest {
4959 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
4960 std::fmt::Display::fmt(&self.0, f)
4961 }
4962}
4963
4964pub struct Reject(RawMessage);
4966
4967impl Reject {
4968 pub const MSG_TYPE: &[u8] = b"3";
4969
4970 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
4971 Tag(8), Tag(9), Tag(10), Tag(34), Tag(35), Tag(43), Tag(45), Tag(49), Tag(50), Tag(52),
4972 Tag(56), Tag(57), Tag(58), Tag(89), Tag(90), Tag(91), Tag(93), Tag(97), Tag(115), Tag(116),
4973 Tag(122), Tag(128), Tag(129), Tag(142), Tag(143), Tag(144), Tag(145), Tag(212), Tag(213),
4974 Tag(347), Tag(354), Tag(355), Tag(369), Tag(370), Tag(371), Tag(372), Tag(373),
4975 ]);
4976
4977 pub fn from_raw(raw: RawMessage) -> Self {
4978 Self(raw)
4979 }
4980
4981 pub fn raw(&self) -> &RawMessage {
4982 &self.0
4983 }
4984
4985 pub fn header(&self) -> Header<'_> {
4986 Header(self.0.scope())
4987 }
4988
4989 pub fn trailer(&self) -> Trailer<'_> {
4990 Trailer(self.0.scope())
4991 }
4992
4993 #[doc(alias = "RefSeqNum")]
4995 pub fn ref_seq_num(&self) -> Result<Option<i64>, InvalidValue> {
4996 self.0.get_int(Tag(45))
4997 }
4998
4999 #[doc(alias = "RefTagID")]
5001 pub fn ref_tag_id(&self) -> Result<Option<i64>, InvalidValue> {
5002 self.0.get_int(Tag(371))
5003 }
5004
5005 #[doc(alias = "RefMsgType")]
5007 pub fn ref_msg_type(&self) -> Result<Option<&str>, InvalidValue> {
5008 self.0.get_str(Tag(372))
5009 }
5010
5011 #[doc(alias = "SessionRejectReason")]
5013 pub fn session_reject_reason(&self) -> Result<Option<SessionRejectReason>, InvalidValue> {
5014 Ok(self.0.get_int(Tag(373))?.map(SessionRejectReason::from_value))
5015 }
5016
5017 #[doc(alias = "Text")]
5019 pub fn text(&self) -> Result<Option<&str>, InvalidValue> {
5020 self.0.get_str(Tag(58))
5021 }
5022
5023 #[doc(alias = "EncodedTextLen")]
5025 pub fn encoded_text_len(&self) -> Result<Option<i64>, InvalidValue> {
5026 self.0.get_int(Tag(354))
5027 }
5028
5029 #[doc(alias = "EncodedText")]
5031 pub fn encoded_text(&self) -> Option<&[u8]> {
5032 self.0.get(Tag(355))
5033 }
5034}
5035
5036impl std::fmt::Debug for Reject {
5037 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
5038 write!(f, "Reject({})", self.0)
5039 }
5040}
5041
5042impl std::fmt::Display for Reject {
5043 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
5044 std::fmt::Display::fmt(&self.0, f)
5045 }
5046}
5047
5048pub struct SequenceReset(RawMessage);
5050
5051impl SequenceReset {
5052 pub const MSG_TYPE: &[u8] = b"4";
5053
5054 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
5055 Tag(8), Tag(9), Tag(10), Tag(34), Tag(35), Tag(36), Tag(43), Tag(49), Tag(50), Tag(52),
5056 Tag(56), Tag(57), Tag(89), Tag(90), Tag(91), Tag(93), Tag(97), Tag(115), Tag(116), Tag(122),
5057 Tag(123), Tag(128), Tag(129), Tag(142), Tag(143), Tag(144), Tag(145), Tag(212), Tag(213),
5058 Tag(347), Tag(369), Tag(370),
5059 ]);
5060
5061 pub fn from_raw(raw: RawMessage) -> Self {
5062 Self(raw)
5063 }
5064
5065 pub fn raw(&self) -> &RawMessage {
5066 &self.0
5067 }
5068
5069 pub fn header(&self) -> Header<'_> {
5070 Header(self.0.scope())
5071 }
5072
5073 pub fn trailer(&self) -> Trailer<'_> {
5074 Trailer(self.0.scope())
5075 }
5076
5077 #[doc(alias = "GapFillFlag")]
5079 pub fn gap_fill_flag(&self) -> Result<Option<bool>, InvalidValue> {
5080 self.0.get_bool(Tag(123))
5081 }
5082
5083 #[doc(alias = "NewSeqNo")]
5085 pub fn new_seq_no(&self) -> Result<Option<i64>, InvalidValue> {
5086 self.0.get_int(Tag(36))
5087 }
5088}
5089
5090impl std::fmt::Debug for SequenceReset {
5091 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
5092 write!(f, "SequenceReset({})", self.0)
5093 }
5094}
5095
5096impl std::fmt::Display for SequenceReset {
5097 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
5098 std::fmt::Display::fmt(&self.0, f)
5099 }
5100}
5101
5102pub struct Logout(RawMessage);
5104
5105impl Logout {
5106 pub const MSG_TYPE: &[u8] = b"5";
5107
5108 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
5109 Tag(8), Tag(9), Tag(10), Tag(34), Tag(35), Tag(43), Tag(49), Tag(50), Tag(52), Tag(56),
5110 Tag(57), Tag(58), Tag(89), Tag(90), Tag(91), Tag(93), Tag(97), Tag(115), Tag(116), Tag(122),
5111 Tag(128), Tag(129), Tag(142), Tag(143), Tag(144), Tag(145), Tag(212), Tag(213), Tag(347),
5112 Tag(354), Tag(355), Tag(369), Tag(370),
5113 ]);
5114
5115 pub fn from_raw(raw: RawMessage) -> Self {
5116 Self(raw)
5117 }
5118
5119 pub fn raw(&self) -> &RawMessage {
5120 &self.0
5121 }
5122
5123 pub fn header(&self) -> Header<'_> {
5124 Header(self.0.scope())
5125 }
5126
5127 pub fn trailer(&self) -> Trailer<'_> {
5128 Trailer(self.0.scope())
5129 }
5130
5131 #[doc(alias = "Text")]
5133 pub fn text(&self) -> Result<Option<&str>, InvalidValue> {
5134 self.0.get_str(Tag(58))
5135 }
5136
5137 #[doc(alias = "EncodedTextLen")]
5139 pub fn encoded_text_len(&self) -> Result<Option<i64>, InvalidValue> {
5140 self.0.get_int(Tag(354))
5141 }
5142
5143 #[doc(alias = "EncodedText")]
5145 pub fn encoded_text(&self) -> Option<&[u8]> {
5146 self.0.get(Tag(355))
5147 }
5148}
5149
5150impl std::fmt::Debug for Logout {
5151 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
5152 write!(f, "Logout({})", self.0)
5153 }
5154}
5155
5156impl std::fmt::Display for Logout {
5157 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
5158 std::fmt::Display::fmt(&self.0, f)
5159 }
5160}
5161
5162pub struct IOI(RawMessage);
5164
5165impl IOI {
5166 pub const MSG_TYPE: &[u8] = b"6";
5167
5168 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
5169 Tag(8), Tag(9), Tag(10), Tag(15), Tag(22), Tag(23), Tag(25), Tag(26), Tag(27), Tag(28),
5170 Tag(34), Tag(35), Tag(43), Tag(44), Tag(48), Tag(49), Tag(50), Tag(52), Tag(54), Tag(55),
5171 Tag(56), Tag(57), Tag(58), Tag(60), Tag(62), Tag(65), Tag(89), Tag(90), Tag(91), Tag(93),
5172 Tag(97), Tag(104), Tag(106), Tag(107), Tag(115), Tag(116), Tag(122), Tag(128), Tag(129),
5173 Tag(130), Tag(142), Tag(143), Tag(144), Tag(145), Tag(149), Tag(167), Tag(199), Tag(200),
5174 Tag(201), Tag(202), Tag(205), Tag(206), Tag(207), Tag(212), Tag(213), Tag(215), Tag(216),
5175 Tag(217), Tag(218), Tag(219), Tag(223), Tag(231), Tag(347), Tag(348), Tag(349), Tag(350),
5176 Tag(351), Tag(354), Tag(355), Tag(369), Tag(370),
5177 ]);
5178
5179 pub fn from_raw(raw: RawMessage) -> Self {
5180 Self(raw)
5181 }
5182
5183 pub fn raw(&self) -> &RawMessage {
5184 &self.0
5185 }
5186
5187 pub fn header(&self) -> Header<'_> {
5188 Header(self.0.scope())
5189 }
5190
5191 pub fn trailer(&self) -> Trailer<'_> {
5192 Trailer(self.0.scope())
5193 }
5194
5195 #[doc(alias = "IOIid")]
5197 pub fn io_iid(&self) -> Result<Option<&str>, InvalidValue> {
5198 self.0.get_str(Tag(23))
5199 }
5200
5201 #[doc(alias = "IOITransType")]
5203 pub fn ioi_trans_type(&self) -> Result<Option<IOITransType<'_>>, InvalidValue> {
5204 Ok(self.0.get_str(Tag(28))?.map(IOITransType::from_value))
5205 }
5206
5207 #[doc(alias = "IOIRefID")]
5209 pub fn ioi_ref_id(&self) -> Result<Option<&str>, InvalidValue> {
5210 self.0.get_str(Tag(26))
5211 }
5212
5213 #[doc(alias = "Symbol")]
5215 pub fn symbol(&self) -> Result<Option<&str>, InvalidValue> {
5216 self.0.get_str(Tag(55))
5217 }
5218
5219 #[doc(alias = "SymbolSfx")]
5221 pub fn symbol_sfx(&self) -> Result<Option<&str>, InvalidValue> {
5222 self.0.get_str(Tag(65))
5223 }
5224
5225 #[doc(alias = "SecurityID")]
5227 pub fn security_id(&self) -> Result<Option<&str>, InvalidValue> {
5228 self.0.get_str(Tag(48))
5229 }
5230
5231 #[doc(alias = "IDSource")]
5233 pub fn id_source(&self) -> Result<Option<IDSource<'_>>, InvalidValue> {
5234 Ok(self.0.get_str(Tag(22))?.map(IDSource::from_value))
5235 }
5236
5237 #[doc(alias = "SecurityType")]
5239 pub fn security_type(&self) -> Result<Option<SecurityType<'_>>, InvalidValue> {
5240 Ok(self.0.get_str(Tag(167))?.map(SecurityType::from_value))
5241 }
5242
5243 #[doc(alias = "MaturityMonthYear")]
5245 pub fn maturity_month_year(&self) -> Result<Option<MonthYear>, InvalidValue> {
5246 self.0.get_month_year(Tag(200))
5247 }
5248
5249 #[doc(alias = "MaturityDay")]
5251 pub fn maturity_day(&self) -> Result<Option<i64>, InvalidValue> {
5252 self.0.get_int(Tag(205))
5253 }
5254
5255 #[doc(alias = "PutOrCall")]
5257 pub fn put_or_call(&self) -> Result<Option<PutOrCall>, InvalidValue> {
5258 Ok(self.0.get_int(Tag(201))?.map(PutOrCall::from_value))
5259 }
5260
5261 #[doc(alias = "StrikePrice")]
5263 pub fn strike_price(&self) -> Result<Option<Decimal>, InvalidValue> {
5264 self.0.get_decimal(Tag(202))
5265 }
5266
5267 #[doc(alias = "OptAttribute")]
5269 pub fn opt_attribute(&self) -> Result<Option<&str>, InvalidValue> {
5270 self.0.get_str(Tag(206))
5271 }
5272
5273 #[doc(alias = "ContractMultiplier")]
5275 pub fn contract_multiplier(&self) -> Result<Option<Decimal>, InvalidValue> {
5276 self.0.get_decimal(Tag(231))
5277 }
5278
5279 #[doc(alias = "CouponRate")]
5281 pub fn coupon_rate(&self) -> Result<Option<Decimal>, InvalidValue> {
5282 self.0.get_decimal(Tag(223))
5283 }
5284
5285 #[doc(alias = "SecurityExchange")]
5287 pub fn security_exchange(&self) -> Result<Option<&str>, InvalidValue> {
5288 self.0.get_str(Tag(207))
5289 }
5290
5291 #[doc(alias = "Issuer")]
5293 pub fn issuer(&self) -> Result<Option<&str>, InvalidValue> {
5294 self.0.get_str(Tag(106))
5295 }
5296
5297 #[doc(alias = "EncodedIssuerLen")]
5299 pub fn encoded_issuer_len(&self) -> Result<Option<i64>, InvalidValue> {
5300 self.0.get_int(Tag(348))
5301 }
5302
5303 #[doc(alias = "EncodedIssuer")]
5305 pub fn encoded_issuer(&self) -> Option<&[u8]> {
5306 self.0.get(Tag(349))
5307 }
5308
5309 #[doc(alias = "SecurityDesc")]
5311 pub fn security_desc(&self) -> Result<Option<&str>, InvalidValue> {
5312 self.0.get_str(Tag(107))
5313 }
5314
5315 #[doc(alias = "EncodedSecurityDescLen")]
5317 pub fn encoded_security_desc_len(&self) -> Result<Option<i64>, InvalidValue> {
5318 self.0.get_int(Tag(350))
5319 }
5320
5321 #[doc(alias = "EncodedSecurityDesc")]
5323 pub fn encoded_security_desc(&self) -> Option<&[u8]> {
5324 self.0.get(Tag(351))
5325 }
5326
5327 #[doc(alias = "Side")]
5329 pub fn side(&self) -> Result<Option<Side<'_>>, InvalidValue> {
5330 Ok(self.0.get_str(Tag(54))?.map(Side::from_value))
5331 }
5332
5333 #[doc(alias = "IOIShares")]
5335 pub fn ioi_shares(&self) -> Result<Option<IOIShares<'_>>, InvalidValue> {
5336 Ok(self.0.get_str(Tag(27))?.map(IOIShares::from_value))
5337 }
5338
5339 #[doc(alias = "Price")]
5341 pub fn price(&self) -> Result<Option<Decimal>, InvalidValue> {
5342 self.0.get_decimal(Tag(44))
5343 }
5344
5345 #[doc(alias = "Currency")]
5347 pub fn currency(&self) -> Result<Option<&str>, InvalidValue> {
5348 self.0.get_str(Tag(15))
5349 }
5350
5351 #[doc(alias = "ValidUntilTime")]
5353 pub fn valid_until_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
5354 self.0.get_utc_timestamp(Tag(62))
5355 }
5356
5357 #[doc(alias = "IOIQltyInd")]
5359 pub fn ioi_qlty_ind(&self) -> Result<Option<IOIQltyInd<'_>>, InvalidValue> {
5360 Ok(self.0.get_str(Tag(25))?.map(IOIQltyInd::from_value))
5361 }
5362
5363 #[doc(alias = "IOINaturalFlag")]
5365 pub fn ioi_natural_flag(&self) -> Result<Option<bool>, InvalidValue> {
5366 self.0.get_bool(Tag(130))
5367 }
5368
5369 #[doc(alias = "NoIOIQualifiers")]
5371 pub fn ioi_qualifiers(&self) -> Result<Instances<'_, ioi::ioi_qualifiers::Instance<'_>>, InvalidValue> {
5372 self.0.get_group(&ioi::ioi_qualifiers::TABLE, &Self::KNOWN_TAGS).map(Instances::from)
5373 }
5374
5375 #[doc(alias = "Text")]
5377 pub fn text(&self) -> Result<Option<&str>, InvalidValue> {
5378 self.0.get_str(Tag(58))
5379 }
5380
5381 #[doc(alias = "EncodedTextLen")]
5383 pub fn encoded_text_len(&self) -> Result<Option<i64>, InvalidValue> {
5384 self.0.get_int(Tag(354))
5385 }
5386
5387 #[doc(alias = "EncodedText")]
5389 pub fn encoded_text(&self) -> Option<&[u8]> {
5390 self.0.get(Tag(355))
5391 }
5392
5393 #[doc(alias = "TransactTime")]
5395 pub fn transact_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
5396 self.0.get_utc_timestamp(Tag(60))
5397 }
5398
5399 #[doc(alias = "URLLink")]
5401 pub fn url_link(&self) -> Result<Option<&str>, InvalidValue> {
5402 self.0.get_str(Tag(149))
5403 }
5404
5405 #[doc(alias = "NoRoutingIDs")]
5407 pub fn routing_ids(&self) -> Result<Instances<'_, ioi::routing_ids::Instance<'_>>, InvalidValue> {
5408 self.0.get_group(&ioi::routing_ids::TABLE, &Self::KNOWN_TAGS).map(Instances::from)
5409 }
5410
5411 #[doc(alias = "SpreadToBenchmark")]
5413 pub fn spread_to_benchmark(&self) -> Result<Option<Decimal>, InvalidValue> {
5414 self.0.get_decimal(Tag(218))
5415 }
5416
5417 #[doc(alias = "Benchmark")]
5419 pub fn benchmark(&self) -> Result<Option<Benchmark<'_>>, InvalidValue> {
5420 Ok(self.0.get_str(Tag(219))?.map(Benchmark::from_value))
5421 }
5422}
5423
5424impl std::fmt::Debug for IOI {
5425 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
5426 write!(f, "IOI({})", self.0)
5427 }
5428}
5429
5430impl std::fmt::Display for IOI {
5431 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
5432 std::fmt::Display::fmt(&self.0, f)
5433 }
5434}
5435
5436pub mod ioi {
5437 pub mod ioi_qualifiers {
5438 use super::super::*;
5439
5440 pub const TABLE: GroupTable<'static> = GroupTable::new(
5441 Tag(199),
5442 Tag(104),
5443 &[Tag(104)],
5444 &[],
5445 );
5446
5447 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[Tag(104)]);
5448
5449 #[derive(Clone, Copy, Debug)]
5450 pub struct Instance<'a>(refix_message::Scope<'a>);
5451
5452 impl<'a> From<refix_message::Scope<'a>> for Instance<'a> {
5453 fn from(scope: refix_message::Scope<'a>) -> Self {
5454 Self(scope)
5455 }
5456 }
5457
5458 impl<'a> Instance<'a> {
5459 pub fn raw(&self) -> refix_message::Scope<'a> {
5460 self.0
5461 }
5462
5463 #[doc(alias = "IOIQualifier")]
5465 pub fn ioi_qualifier(&self) -> Result<Option<IOIQualifier<'a>>, InvalidValue> {
5466 Ok(self.0.get_str(Tag(104))?.map(IOIQualifier::from_value))
5467 }
5468 }
5469 }
5470
5471 pub mod routing_ids {
5472 use super::super::*;
5473
5474 pub const TABLE: GroupTable<'static> = GroupTable::new(
5475 Tag(215),
5476 Tag(216),
5477 &[Tag(216), Tag(217)],
5478 &[],
5479 );
5480
5481 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[Tag(216), Tag(217)]);
5482
5483 #[derive(Clone, Copy, Debug)]
5484 pub struct Instance<'a>(refix_message::Scope<'a>);
5485
5486 impl<'a> From<refix_message::Scope<'a>> for Instance<'a> {
5487 fn from(scope: refix_message::Scope<'a>) -> Self {
5488 Self(scope)
5489 }
5490 }
5491
5492 impl<'a> Instance<'a> {
5493 pub fn raw(&self) -> refix_message::Scope<'a> {
5494 self.0
5495 }
5496
5497 #[doc(alias = "RoutingType")]
5499 pub fn routing_type(&self) -> Result<Option<RoutingType>, InvalidValue> {
5500 Ok(self.0.get_int(Tag(216))?.map(RoutingType::from_value))
5501 }
5502
5503 #[doc(alias = "RoutingID")]
5505 pub fn routing_id(&self) -> Result<Option<&'a str>, InvalidValue> {
5506 self.0.get_str(Tag(217))
5507 }
5508 }
5509 }
5510}
5511
5512pub struct Advertisement(RawMessage);
5514
5515impl Advertisement {
5516 pub const MSG_TYPE: &[u8] = b"7";
5517
5518 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
5519 Tag(2), Tag(3), Tag(4), Tag(5), Tag(8), Tag(9), Tag(10), Tag(15), Tag(22), Tag(30), Tag(34),
5520 Tag(35), Tag(43), Tag(44), Tag(48), Tag(49), Tag(50), Tag(52), Tag(53), Tag(55), Tag(56),
5521 Tag(57), Tag(58), Tag(60), Tag(65), Tag(75), Tag(89), Tag(90), Tag(91), Tag(93), Tag(97),
5522 Tag(106), Tag(107), Tag(115), Tag(116), Tag(122), Tag(128), Tag(129), Tag(142), Tag(143),
5523 Tag(144), Tag(145), Tag(149), Tag(167), Tag(200), Tag(201), Tag(202), Tag(205), Tag(206),
5524 Tag(207), Tag(212), Tag(213), Tag(223), Tag(231), Tag(336), Tag(347), Tag(348), Tag(349),
5525 Tag(350), Tag(351), Tag(354), Tag(355), Tag(369), Tag(370),
5526 ]);
5527
5528 pub fn from_raw(raw: RawMessage) -> Self {
5529 Self(raw)
5530 }
5531
5532 pub fn raw(&self) -> &RawMessage {
5533 &self.0
5534 }
5535
5536 pub fn header(&self) -> Header<'_> {
5537 Header(self.0.scope())
5538 }
5539
5540 pub fn trailer(&self) -> Trailer<'_> {
5541 Trailer(self.0.scope())
5542 }
5543
5544 #[doc(alias = "AdvId")]
5546 pub fn adv_id(&self) -> Result<Option<&str>, InvalidValue> {
5547 self.0.get_str(Tag(2))
5548 }
5549
5550 #[doc(alias = "AdvTransType")]
5552 pub fn adv_trans_type(&self) -> Result<Option<AdvTransType<'_>>, InvalidValue> {
5553 Ok(self.0.get_str(Tag(5))?.map(AdvTransType::from_value))
5554 }
5555
5556 #[doc(alias = "AdvRefID")]
5558 pub fn adv_ref_id(&self) -> Result<Option<&str>, InvalidValue> {
5559 self.0.get_str(Tag(3))
5560 }
5561
5562 #[doc(alias = "Symbol")]
5564 pub fn symbol(&self) -> Result<Option<&str>, InvalidValue> {
5565 self.0.get_str(Tag(55))
5566 }
5567
5568 #[doc(alias = "SymbolSfx")]
5570 pub fn symbol_sfx(&self) -> Result<Option<&str>, InvalidValue> {
5571 self.0.get_str(Tag(65))
5572 }
5573
5574 #[doc(alias = "SecurityID")]
5576 pub fn security_id(&self) -> Result<Option<&str>, InvalidValue> {
5577 self.0.get_str(Tag(48))
5578 }
5579
5580 #[doc(alias = "IDSource")]
5582 pub fn id_source(&self) -> Result<Option<IDSource<'_>>, InvalidValue> {
5583 Ok(self.0.get_str(Tag(22))?.map(IDSource::from_value))
5584 }
5585
5586 #[doc(alias = "SecurityType")]
5588 pub fn security_type(&self) -> Result<Option<SecurityType<'_>>, InvalidValue> {
5589 Ok(self.0.get_str(Tag(167))?.map(SecurityType::from_value))
5590 }
5591
5592 #[doc(alias = "MaturityMonthYear")]
5594 pub fn maturity_month_year(&self) -> Result<Option<MonthYear>, InvalidValue> {
5595 self.0.get_month_year(Tag(200))
5596 }
5597
5598 #[doc(alias = "MaturityDay")]
5600 pub fn maturity_day(&self) -> Result<Option<i64>, InvalidValue> {
5601 self.0.get_int(Tag(205))
5602 }
5603
5604 #[doc(alias = "PutOrCall")]
5606 pub fn put_or_call(&self) -> Result<Option<PutOrCall>, InvalidValue> {
5607 Ok(self.0.get_int(Tag(201))?.map(PutOrCall::from_value))
5608 }
5609
5610 #[doc(alias = "StrikePrice")]
5612 pub fn strike_price(&self) -> Result<Option<Decimal>, InvalidValue> {
5613 self.0.get_decimal(Tag(202))
5614 }
5615
5616 #[doc(alias = "OptAttribute")]
5618 pub fn opt_attribute(&self) -> Result<Option<&str>, InvalidValue> {
5619 self.0.get_str(Tag(206))
5620 }
5621
5622 #[doc(alias = "ContractMultiplier")]
5624 pub fn contract_multiplier(&self) -> Result<Option<Decimal>, InvalidValue> {
5625 self.0.get_decimal(Tag(231))
5626 }
5627
5628 #[doc(alias = "CouponRate")]
5630 pub fn coupon_rate(&self) -> Result<Option<Decimal>, InvalidValue> {
5631 self.0.get_decimal(Tag(223))
5632 }
5633
5634 #[doc(alias = "SecurityExchange")]
5636 pub fn security_exchange(&self) -> Result<Option<&str>, InvalidValue> {
5637 self.0.get_str(Tag(207))
5638 }
5639
5640 #[doc(alias = "Issuer")]
5642 pub fn issuer(&self) -> Result<Option<&str>, InvalidValue> {
5643 self.0.get_str(Tag(106))
5644 }
5645
5646 #[doc(alias = "EncodedIssuerLen")]
5648 pub fn encoded_issuer_len(&self) -> Result<Option<i64>, InvalidValue> {
5649 self.0.get_int(Tag(348))
5650 }
5651
5652 #[doc(alias = "EncodedIssuer")]
5654 pub fn encoded_issuer(&self) -> Option<&[u8]> {
5655 self.0.get(Tag(349))
5656 }
5657
5658 #[doc(alias = "SecurityDesc")]
5660 pub fn security_desc(&self) -> Result<Option<&str>, InvalidValue> {
5661 self.0.get_str(Tag(107))
5662 }
5663
5664 #[doc(alias = "EncodedSecurityDescLen")]
5666 pub fn encoded_security_desc_len(&self) -> Result<Option<i64>, InvalidValue> {
5667 self.0.get_int(Tag(350))
5668 }
5669
5670 #[doc(alias = "EncodedSecurityDesc")]
5672 pub fn encoded_security_desc(&self) -> Option<&[u8]> {
5673 self.0.get(Tag(351))
5674 }
5675
5676 #[doc(alias = "AdvSide")]
5678 pub fn adv_side(&self) -> Result<Option<AdvSide<'_>>, InvalidValue> {
5679 Ok(self.0.get_str(Tag(4))?.map(AdvSide::from_value))
5680 }
5681
5682 #[doc(alias = "Shares")]
5684 pub fn shares(&self) -> Result<Option<Decimal>, InvalidValue> {
5685 self.0.get_decimal(Tag(53))
5686 }
5687
5688 #[doc(alias = "Price")]
5690 pub fn price(&self) -> Result<Option<Decimal>, InvalidValue> {
5691 self.0.get_decimal(Tag(44))
5692 }
5693
5694 #[doc(alias = "Currency")]
5696 pub fn currency(&self) -> Result<Option<&str>, InvalidValue> {
5697 self.0.get_str(Tag(15))
5698 }
5699
5700 #[doc(alias = "TradeDate")]
5702 pub fn trade_date(&self) -> Result<Option<Date>, InvalidValue> {
5703 self.0.get_date(Tag(75))
5704 }
5705
5706 #[doc(alias = "TransactTime")]
5708 pub fn transact_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
5709 self.0.get_utc_timestamp(Tag(60))
5710 }
5711
5712 #[doc(alias = "Text")]
5714 pub fn text(&self) -> Result<Option<&str>, InvalidValue> {
5715 self.0.get_str(Tag(58))
5716 }
5717
5718 #[doc(alias = "EncodedTextLen")]
5720 pub fn encoded_text_len(&self) -> Result<Option<i64>, InvalidValue> {
5721 self.0.get_int(Tag(354))
5722 }
5723
5724 #[doc(alias = "EncodedText")]
5726 pub fn encoded_text(&self) -> Option<&[u8]> {
5727 self.0.get(Tag(355))
5728 }
5729
5730 #[doc(alias = "URLLink")]
5732 pub fn url_link(&self) -> Result<Option<&str>, InvalidValue> {
5733 self.0.get_str(Tag(149))
5734 }
5735
5736 #[doc(alias = "LastMkt")]
5738 pub fn last_mkt(&self) -> Result<Option<&str>, InvalidValue> {
5739 self.0.get_str(Tag(30))
5740 }
5741
5742 #[doc(alias = "TradingSessionID")]
5744 pub fn trading_session_id(&self) -> Result<Option<&str>, InvalidValue> {
5745 self.0.get_str(Tag(336))
5746 }
5747}
5748
5749impl std::fmt::Debug for Advertisement {
5750 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
5751 write!(f, "Advertisement({})", self.0)
5752 }
5753}
5754
5755impl std::fmt::Display for Advertisement {
5756 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
5757 std::fmt::Display::fmt(&self.0, f)
5758 }
5759}
5760
5761pub struct ExecutionReport(RawMessage);
5763
5764impl ExecutionReport {
5765 pub const MSG_TYPE: &[u8] = b"8";
5766
5767 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
5768 Tag(1), Tag(6), Tag(8), Tag(9), Tag(10), Tag(11), Tag(12), Tag(13), Tag(14), Tag(15),
5769 Tag(17), Tag(18), Tag(19), Tag(20), Tag(21), Tag(22), Tag(29), Tag(30), Tag(31), Tag(32),
5770 Tag(34), Tag(35), Tag(37), Tag(38), Tag(39), Tag(40), Tag(41), Tag(43), Tag(44), Tag(47),
5771 Tag(48), Tag(49), Tag(50), Tag(52), Tag(54), Tag(55), Tag(56), Tag(57), Tag(58), Tag(59),
5772 Tag(60), Tag(63), Tag(64), Tag(65), Tag(66), Tag(75), Tag(76), Tag(77), Tag(89), Tag(90),
5773 Tag(91), Tag(93), Tag(97), Tag(99), Tag(103), Tag(106), Tag(107), Tag(109), Tag(110),
5774 Tag(111), Tag(113), Tag(115), Tag(116), Tag(119), Tag(120), Tag(122), Tag(126), Tag(128),
5775 Tag(129), Tag(142), Tag(143), Tag(144), Tag(145), Tag(150), Tag(151), Tag(152), Tag(155),
5776 Tag(156), Tag(167), Tag(168), Tag(192), Tag(193), Tag(194), Tag(195), Tag(198), Tag(200),
5777 Tag(201), Tag(202), Tag(205), Tag(206), Tag(207), Tag(210), Tag(211), Tag(212), Tag(213),
5778 Tag(223), Tag(231), Tag(336), Tag(337), Tag(347), Tag(348), Tag(349), Tag(350), Tag(351),
5779 Tag(354), Tag(355), Tag(369), Tag(370), Tag(375), Tag(376), Tag(377), Tag(378), Tag(381),
5780 Tag(382), Tag(388), Tag(389), Tag(424), Tag(425), Tag(426), Tag(427), Tag(432), Tag(437),
5781 Tag(438), Tag(439), Tag(440), Tag(442),
5782 ]);
5783
5784 pub fn from_raw(raw: RawMessage) -> Self {
5785 Self(raw)
5786 }
5787
5788 pub fn raw(&self) -> &RawMessage {
5789 &self.0
5790 }
5791
5792 pub fn header(&self) -> Header<'_> {
5793 Header(self.0.scope())
5794 }
5795
5796 pub fn trailer(&self) -> Trailer<'_> {
5797 Trailer(self.0.scope())
5798 }
5799
5800 #[doc(alias = "OrderID")]
5802 pub fn order_id(&self) -> Result<Option<&str>, InvalidValue> {
5803 self.0.get_str(Tag(37))
5804 }
5805
5806 #[doc(alias = "SecondaryOrderID")]
5808 pub fn secondary_order_id(&self) -> Result<Option<&str>, InvalidValue> {
5809 self.0.get_str(Tag(198))
5810 }
5811
5812 #[doc(alias = "ClOrdID")]
5814 pub fn cl_ord_id(&self) -> Result<Option<&str>, InvalidValue> {
5815 self.0.get_str(Tag(11))
5816 }
5817
5818 #[doc(alias = "OrigClOrdID")]
5820 pub fn orig_cl_ord_id(&self) -> Result<Option<&str>, InvalidValue> {
5821 self.0.get_str(Tag(41))
5822 }
5823
5824 #[doc(alias = "ClientID")]
5826 pub fn client_id(&self) -> Result<Option<&str>, InvalidValue> {
5827 self.0.get_str(Tag(109))
5828 }
5829
5830 #[doc(alias = "ExecBroker")]
5832 pub fn exec_broker(&self) -> Result<Option<&str>, InvalidValue> {
5833 self.0.get_str(Tag(76))
5834 }
5835
5836 #[doc(alias = "NoContraBrokers")]
5838 pub fn contra_brokers(&self) -> Result<Instances<'_, execution_report::contra_brokers::Instance<'_>>, InvalidValue> {
5839 self.0.get_group(&execution_report::contra_brokers::TABLE, &Self::KNOWN_TAGS).map(Instances::from)
5840 }
5841
5842 #[doc(alias = "ListID")]
5844 pub fn list_id(&self) -> Result<Option<&str>, InvalidValue> {
5845 self.0.get_str(Tag(66))
5846 }
5847
5848 #[doc(alias = "ExecID")]
5850 pub fn exec_id(&self) -> Result<Option<&str>, InvalidValue> {
5851 self.0.get_str(Tag(17))
5852 }
5853
5854 #[doc(alias = "ExecTransType")]
5856 pub fn exec_trans_type(&self) -> Result<Option<ExecTransType<'_>>, InvalidValue> {
5857 Ok(self.0.get_str(Tag(20))?.map(ExecTransType::from_value))
5858 }
5859
5860 #[doc(alias = "ExecRefID")]
5862 pub fn exec_ref_id(&self) -> Result<Option<&str>, InvalidValue> {
5863 self.0.get_str(Tag(19))
5864 }
5865
5866 #[doc(alias = "ExecType")]
5868 pub fn exec_type(&self) -> Result<Option<ExecType<'_>>, InvalidValue> {
5869 Ok(self.0.get_str(Tag(150))?.map(ExecType::from_value))
5870 }
5871
5872 #[doc(alias = "OrdStatus")]
5874 pub fn ord_status(&self) -> Result<Option<OrdStatus<'_>>, InvalidValue> {
5875 Ok(self.0.get_str(Tag(39))?.map(OrdStatus::from_value))
5876 }
5877
5878 #[doc(alias = "OrdRejReason")]
5880 pub fn ord_rej_reason(&self) -> Result<Option<OrdRejReason>, InvalidValue> {
5881 Ok(self.0.get_int(Tag(103))?.map(OrdRejReason::from_value))
5882 }
5883
5884 #[doc(alias = "ExecRestatementReason")]
5886 pub fn exec_restatement_reason(&self) -> Result<Option<ExecRestatementReason>, InvalidValue> {
5887 Ok(self.0.get_int(Tag(378))?.map(ExecRestatementReason::from_value))
5888 }
5889
5890 #[doc(alias = "Account")]
5892 pub fn account(&self) -> Result<Option<&str>, InvalidValue> {
5893 self.0.get_str(Tag(1))
5894 }
5895
5896 #[doc(alias = "SettlmntTyp")]
5898 pub fn settlmnt_typ(&self) -> Result<Option<SettlmntTyp<'_>>, InvalidValue> {
5899 Ok(self.0.get_str(Tag(63))?.map(SettlmntTyp::from_value))
5900 }
5901
5902 #[doc(alias = "FutSettDate")]
5904 pub fn fut_sett_date(&self) -> Result<Option<Date>, InvalidValue> {
5905 self.0.get_date(Tag(64))
5906 }
5907
5908 #[doc(alias = "Symbol")]
5910 pub fn symbol(&self) -> Result<Option<&str>, InvalidValue> {
5911 self.0.get_str(Tag(55))
5912 }
5913
5914 #[doc(alias = "SymbolSfx")]
5916 pub fn symbol_sfx(&self) -> Result<Option<&str>, InvalidValue> {
5917 self.0.get_str(Tag(65))
5918 }
5919
5920 #[doc(alias = "SecurityID")]
5922 pub fn security_id(&self) -> Result<Option<&str>, InvalidValue> {
5923 self.0.get_str(Tag(48))
5924 }
5925
5926 #[doc(alias = "IDSource")]
5928 pub fn id_source(&self) -> Result<Option<IDSource<'_>>, InvalidValue> {
5929 Ok(self.0.get_str(Tag(22))?.map(IDSource::from_value))
5930 }
5931
5932 #[doc(alias = "SecurityType")]
5934 pub fn security_type(&self) -> Result<Option<SecurityType<'_>>, InvalidValue> {
5935 Ok(self.0.get_str(Tag(167))?.map(SecurityType::from_value))
5936 }
5937
5938 #[doc(alias = "MaturityMonthYear")]
5940 pub fn maturity_month_year(&self) -> Result<Option<MonthYear>, InvalidValue> {
5941 self.0.get_month_year(Tag(200))
5942 }
5943
5944 #[doc(alias = "MaturityDay")]
5946 pub fn maturity_day(&self) -> Result<Option<i64>, InvalidValue> {
5947 self.0.get_int(Tag(205))
5948 }
5949
5950 #[doc(alias = "PutOrCall")]
5952 pub fn put_or_call(&self) -> Result<Option<PutOrCall>, InvalidValue> {
5953 Ok(self.0.get_int(Tag(201))?.map(PutOrCall::from_value))
5954 }
5955
5956 #[doc(alias = "StrikePrice")]
5958 pub fn strike_price(&self) -> Result<Option<Decimal>, InvalidValue> {
5959 self.0.get_decimal(Tag(202))
5960 }
5961
5962 #[doc(alias = "OptAttribute")]
5964 pub fn opt_attribute(&self) -> Result<Option<&str>, InvalidValue> {
5965 self.0.get_str(Tag(206))
5966 }
5967
5968 #[doc(alias = "ContractMultiplier")]
5970 pub fn contract_multiplier(&self) -> Result<Option<Decimal>, InvalidValue> {
5971 self.0.get_decimal(Tag(231))
5972 }
5973
5974 #[doc(alias = "CouponRate")]
5976 pub fn coupon_rate(&self) -> Result<Option<Decimal>, InvalidValue> {
5977 self.0.get_decimal(Tag(223))
5978 }
5979
5980 #[doc(alias = "SecurityExchange")]
5982 pub fn security_exchange(&self) -> Result<Option<&str>, InvalidValue> {
5983 self.0.get_str(Tag(207))
5984 }
5985
5986 #[doc(alias = "Issuer")]
5988 pub fn issuer(&self) -> Result<Option<&str>, InvalidValue> {
5989 self.0.get_str(Tag(106))
5990 }
5991
5992 #[doc(alias = "EncodedIssuerLen")]
5994 pub fn encoded_issuer_len(&self) -> Result<Option<i64>, InvalidValue> {
5995 self.0.get_int(Tag(348))
5996 }
5997
5998 #[doc(alias = "EncodedIssuer")]
6000 pub fn encoded_issuer(&self) -> Option<&[u8]> {
6001 self.0.get(Tag(349))
6002 }
6003
6004 #[doc(alias = "SecurityDesc")]
6006 pub fn security_desc(&self) -> Result<Option<&str>, InvalidValue> {
6007 self.0.get_str(Tag(107))
6008 }
6009
6010 #[doc(alias = "EncodedSecurityDescLen")]
6012 pub fn encoded_security_desc_len(&self) -> Result<Option<i64>, InvalidValue> {
6013 self.0.get_int(Tag(350))
6014 }
6015
6016 #[doc(alias = "EncodedSecurityDesc")]
6018 pub fn encoded_security_desc(&self) -> Option<&[u8]> {
6019 self.0.get(Tag(351))
6020 }
6021
6022 #[doc(alias = "Side")]
6024 pub fn side(&self) -> Result<Option<Side<'_>>, InvalidValue> {
6025 Ok(self.0.get_str(Tag(54))?.map(Side::from_value))
6026 }
6027
6028 #[doc(alias = "OrderQty")]
6030 pub fn order_qty(&self) -> Result<Option<Decimal>, InvalidValue> {
6031 self.0.get_decimal(Tag(38))
6032 }
6033
6034 #[doc(alias = "CashOrderQty")]
6036 pub fn cash_order_qty(&self) -> Result<Option<Decimal>, InvalidValue> {
6037 self.0.get_decimal(Tag(152))
6038 }
6039
6040 #[doc(alias = "OrdType")]
6042 pub fn ord_type(&self) -> Result<Option<OrdType<'_>>, InvalidValue> {
6043 Ok(self.0.get_str(Tag(40))?.map(OrdType::from_value))
6044 }
6045
6046 #[doc(alias = "Price")]
6048 pub fn price(&self) -> Result<Option<Decimal>, InvalidValue> {
6049 self.0.get_decimal(Tag(44))
6050 }
6051
6052 #[doc(alias = "StopPx")]
6054 pub fn stop_px(&self) -> Result<Option<Decimal>, InvalidValue> {
6055 self.0.get_decimal(Tag(99))
6056 }
6057
6058 #[doc(alias = "PegDifference")]
6060 pub fn peg_difference(&self) -> Result<Option<Decimal>, InvalidValue> {
6061 self.0.get_decimal(Tag(211))
6062 }
6063
6064 #[doc(alias = "DiscretionInst")]
6066 pub fn discretion_inst(&self) -> Result<Option<DiscretionInst<'_>>, InvalidValue> {
6067 Ok(self.0.get_str(Tag(388))?.map(DiscretionInst::from_value))
6068 }
6069
6070 #[doc(alias = "DiscretionOffset")]
6072 pub fn discretion_offset(&self) -> Result<Option<Decimal>, InvalidValue> {
6073 self.0.get_decimal(Tag(389))
6074 }
6075
6076 #[doc(alias = "Currency")]
6078 pub fn currency(&self) -> Result<Option<&str>, InvalidValue> {
6079 self.0.get_str(Tag(15))
6080 }
6081
6082 #[doc(alias = "ComplianceID")]
6084 pub fn compliance_id(&self) -> Result<Option<&str>, InvalidValue> {
6085 self.0.get_str(Tag(376))
6086 }
6087
6088 #[doc(alias = "SolicitedFlag")]
6090 pub fn solicited_flag(&self) -> Result<Option<bool>, InvalidValue> {
6091 self.0.get_bool(Tag(377))
6092 }
6093
6094 #[doc(alias = "TimeInForce")]
6096 pub fn time_in_force(&self) -> Result<Option<TimeInForce<'_>>, InvalidValue> {
6097 Ok(self.0.get_str(Tag(59))?.map(TimeInForce::from_value))
6098 }
6099
6100 #[doc(alias = "EffectiveTime")]
6102 pub fn effective_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
6103 self.0.get_utc_timestamp(Tag(168))
6104 }
6105
6106 #[doc(alias = "ExpireDate")]
6108 pub fn expire_date(&self) -> Result<Option<Date>, InvalidValue> {
6109 self.0.get_date(Tag(432))
6110 }
6111
6112 #[doc(alias = "ExpireTime")]
6114 pub fn expire_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
6115 self.0.get_utc_timestamp(Tag(126))
6116 }
6117
6118 #[doc(alias = "ExecInst")]
6120 pub fn exec_inst(&self) -> Result<Option<MultipleValues<'_, ExecInst<'_>>>, InvalidValue> {
6121 self.0.get_multiple_values(Tag(18))
6122 }
6123
6124 #[doc(alias = "Rule80A")]
6126 pub fn rule80_a(&self) -> Result<Option<Rule80A<'_>>, InvalidValue> {
6127 Ok(self.0.get_str(Tag(47))?.map(Rule80A::from_value))
6128 }
6129
6130 #[doc(alias = "LastShares")]
6132 pub fn last_shares(&self) -> Result<Option<Decimal>, InvalidValue> {
6133 self.0.get_decimal(Tag(32))
6134 }
6135
6136 #[doc(alias = "LastPx")]
6138 pub fn last_px(&self) -> Result<Option<Decimal>, InvalidValue> {
6139 self.0.get_decimal(Tag(31))
6140 }
6141
6142 #[doc(alias = "LastSpotRate")]
6144 pub fn last_spot_rate(&self) -> Result<Option<Decimal>, InvalidValue> {
6145 self.0.get_decimal(Tag(194))
6146 }
6147
6148 #[doc(alias = "LastForwardPoints")]
6150 pub fn last_forward_points(&self) -> Result<Option<Decimal>, InvalidValue> {
6151 self.0.get_decimal(Tag(195))
6152 }
6153
6154 #[doc(alias = "LastMkt")]
6156 pub fn last_mkt(&self) -> Result<Option<&str>, InvalidValue> {
6157 self.0.get_str(Tag(30))
6158 }
6159
6160 #[doc(alias = "TradingSessionID")]
6162 pub fn trading_session_id(&self) -> Result<Option<&str>, InvalidValue> {
6163 self.0.get_str(Tag(336))
6164 }
6165
6166 #[doc(alias = "LastCapacity")]
6168 pub fn last_capacity(&self) -> Result<Option<LastCapacity<'_>>, InvalidValue> {
6169 Ok(self.0.get_str(Tag(29))?.map(LastCapacity::from_value))
6170 }
6171
6172 #[doc(alias = "LeavesQty")]
6174 pub fn leaves_qty(&self) -> Result<Option<Decimal>, InvalidValue> {
6175 self.0.get_decimal(Tag(151))
6176 }
6177
6178 #[doc(alias = "CumQty")]
6180 pub fn cum_qty(&self) -> Result<Option<Decimal>, InvalidValue> {
6181 self.0.get_decimal(Tag(14))
6182 }
6183
6184 #[doc(alias = "AvgPx")]
6186 pub fn avg_px(&self) -> Result<Option<Decimal>, InvalidValue> {
6187 self.0.get_decimal(Tag(6))
6188 }
6189
6190 #[doc(alias = "DayOrderQty")]
6192 pub fn day_order_qty(&self) -> Result<Option<Decimal>, InvalidValue> {
6193 self.0.get_decimal(Tag(424))
6194 }
6195
6196 #[doc(alias = "DayCumQty")]
6198 pub fn day_cum_qty(&self) -> Result<Option<Decimal>, InvalidValue> {
6199 self.0.get_decimal(Tag(425))
6200 }
6201
6202 #[doc(alias = "DayAvgPx")]
6204 pub fn day_avg_px(&self) -> Result<Option<Decimal>, InvalidValue> {
6205 self.0.get_decimal(Tag(426))
6206 }
6207
6208 #[doc(alias = "GTBookingInst")]
6210 pub fn gt_booking_inst(&self) -> Result<Option<GTBookingInst>, InvalidValue> {
6211 Ok(self.0.get_int(Tag(427))?.map(GTBookingInst::from_value))
6212 }
6213
6214 #[doc(alias = "TradeDate")]
6216 pub fn trade_date(&self) -> Result<Option<Date>, InvalidValue> {
6217 self.0.get_date(Tag(75))
6218 }
6219
6220 #[doc(alias = "TransactTime")]
6222 pub fn transact_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
6223 self.0.get_utc_timestamp(Tag(60))
6224 }
6225
6226 #[doc(alias = "ReportToExch")]
6228 pub fn report_to_exch(&self) -> Result<Option<bool>, InvalidValue> {
6229 self.0.get_bool(Tag(113))
6230 }
6231
6232 #[doc(alias = "Commission")]
6234 pub fn commission(&self) -> Result<Option<Decimal>, InvalidValue> {
6235 self.0.get_decimal(Tag(12))
6236 }
6237
6238 #[doc(alias = "CommType")]
6240 pub fn comm_type(&self) -> Result<Option<CommType<'_>>, InvalidValue> {
6241 Ok(self.0.get_str(Tag(13))?.map(CommType::from_value))
6242 }
6243
6244 #[doc(alias = "GrossTradeAmt")]
6246 pub fn gross_trade_amt(&self) -> Result<Option<Decimal>, InvalidValue> {
6247 self.0.get_decimal(Tag(381))
6248 }
6249
6250 #[doc(alias = "SettlCurrAmt")]
6252 pub fn settl_curr_amt(&self) -> Result<Option<Decimal>, InvalidValue> {
6253 self.0.get_decimal(Tag(119))
6254 }
6255
6256 #[doc(alias = "SettlCurrency")]
6258 pub fn settl_currency(&self) -> Result<Option<&str>, InvalidValue> {
6259 self.0.get_str(Tag(120))
6260 }
6261
6262 #[doc(alias = "SettlCurrFxRate")]
6264 pub fn settl_curr_fx_rate(&self) -> Result<Option<Decimal>, InvalidValue> {
6265 self.0.get_decimal(Tag(155))
6266 }
6267
6268 #[doc(alias = "SettlCurrFxRateCalc")]
6270 pub fn settl_curr_fx_rate_calc(&self) -> Result<Option<&str>, InvalidValue> {
6271 self.0.get_str(Tag(156))
6272 }
6273
6274 #[doc(alias = "HandlInst")]
6276 pub fn handl_inst(&self) -> Result<Option<HandlInst<'_>>, InvalidValue> {
6277 Ok(self.0.get_str(Tag(21))?.map(HandlInst::from_value))
6278 }
6279
6280 #[doc(alias = "MinQty")]
6282 pub fn min_qty(&self) -> Result<Option<Decimal>, InvalidValue> {
6283 self.0.get_decimal(Tag(110))
6284 }
6285
6286 #[doc(alias = "MaxFloor")]
6288 pub fn max_floor(&self) -> Result<Option<Decimal>, InvalidValue> {
6289 self.0.get_decimal(Tag(111))
6290 }
6291
6292 #[doc(alias = "OpenClose")]
6294 pub fn open_close(&self) -> Result<Option<OpenClose<'_>>, InvalidValue> {
6295 Ok(self.0.get_str(Tag(77))?.map(OpenClose::from_value))
6296 }
6297
6298 #[doc(alias = "MaxShow")]
6300 pub fn max_show(&self) -> Result<Option<Decimal>, InvalidValue> {
6301 self.0.get_decimal(Tag(210))
6302 }
6303
6304 #[doc(alias = "Text")]
6306 pub fn text(&self) -> Result<Option<&str>, InvalidValue> {
6307 self.0.get_str(Tag(58))
6308 }
6309
6310 #[doc(alias = "EncodedTextLen")]
6312 pub fn encoded_text_len(&self) -> Result<Option<i64>, InvalidValue> {
6313 self.0.get_int(Tag(354))
6314 }
6315
6316 #[doc(alias = "EncodedText")]
6318 pub fn encoded_text(&self) -> Option<&[u8]> {
6319 self.0.get(Tag(355))
6320 }
6321
6322 #[doc(alias = "FutSettDate2")]
6324 pub fn fut_sett_date2(&self) -> Result<Option<Date>, InvalidValue> {
6325 self.0.get_date(Tag(193))
6326 }
6327
6328 #[doc(alias = "OrderQty2")]
6330 pub fn order_qty2(&self) -> Result<Option<Decimal>, InvalidValue> {
6331 self.0.get_decimal(Tag(192))
6332 }
6333
6334 #[doc(alias = "ClearingFirm")]
6336 pub fn clearing_firm(&self) -> Result<Option<&str>, InvalidValue> {
6337 self.0.get_str(Tag(439))
6338 }
6339
6340 #[doc(alias = "ClearingAccount")]
6342 pub fn clearing_account(&self) -> Result<Option<&str>, InvalidValue> {
6343 self.0.get_str(Tag(440))
6344 }
6345
6346 #[doc(alias = "MultiLegReportingType")]
6348 pub fn multi_leg_reporting_type(&self) -> Result<Option<MultiLegReportingType<'_>>, InvalidValue> {
6349 Ok(self.0.get_str(Tag(442))?.map(MultiLegReportingType::from_value))
6350 }
6351}
6352
6353impl std::fmt::Debug for ExecutionReport {
6354 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
6355 write!(f, "ExecutionReport({})", self.0)
6356 }
6357}
6358
6359impl std::fmt::Display for ExecutionReport {
6360 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
6361 std::fmt::Display::fmt(&self.0, f)
6362 }
6363}
6364
6365pub mod execution_report {
6366 pub mod contra_brokers {
6367 use super::super::*;
6368
6369 pub const TABLE: GroupTable<'static> = GroupTable::new(
6370 Tag(382),
6371 Tag(375),
6372 &[Tag(337), Tag(375), Tag(437), Tag(438)],
6373 &[],
6374 );
6375
6376 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
6377 Tag(337), Tag(375), Tag(437), Tag(438),
6378 ]);
6379
6380 #[derive(Clone, Copy, Debug)]
6381 pub struct Instance<'a>(refix_message::Scope<'a>);
6382
6383 impl<'a> From<refix_message::Scope<'a>> for Instance<'a> {
6384 fn from(scope: refix_message::Scope<'a>) -> Self {
6385 Self(scope)
6386 }
6387 }
6388
6389 impl<'a> Instance<'a> {
6390 pub fn raw(&self) -> refix_message::Scope<'a> {
6391 self.0
6392 }
6393
6394 #[doc(alias = "ContraBroker")]
6396 pub fn contra_broker(&self) -> Result<Option<&'a str>, InvalidValue> {
6397 self.0.get_str(Tag(375))
6398 }
6399
6400 #[doc(alias = "ContraTrader")]
6402 pub fn contra_trader(&self) -> Result<Option<&'a str>, InvalidValue> {
6403 self.0.get_str(Tag(337))
6404 }
6405
6406 #[doc(alias = "ContraTradeQty")]
6408 pub fn contra_trade_qty(&self) -> Result<Option<Decimal>, InvalidValue> {
6409 self.0.get_decimal(Tag(437))
6410 }
6411
6412 #[doc(alias = "ContraTradeTime")]
6414 pub fn contra_trade_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
6415 self.0.get_utc_timestamp(Tag(438))
6416 }
6417 }
6418 }
6419}
6420
6421pub struct OrderCancelReject(RawMessage);
6423
6424impl OrderCancelReject {
6425 pub const MSG_TYPE: &[u8] = b"9";
6426
6427 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
6428 Tag(1), Tag(8), Tag(9), Tag(10), Tag(11), Tag(34), Tag(35), Tag(37), Tag(39), Tag(41),
6429 Tag(43), Tag(49), Tag(50), Tag(52), Tag(56), Tag(57), Tag(58), Tag(60), Tag(66), Tag(76),
6430 Tag(89), Tag(90), Tag(91), Tag(93), Tag(97), Tag(102), Tag(109), Tag(115), Tag(116),
6431 Tag(122), Tag(128), Tag(129), Tag(142), Tag(143), Tag(144), Tag(145), Tag(198), Tag(212),
6432 Tag(213), Tag(347), Tag(354), Tag(355), Tag(369), Tag(370), Tag(434),
6433 ]);
6434
6435 pub fn from_raw(raw: RawMessage) -> Self {
6436 Self(raw)
6437 }
6438
6439 pub fn raw(&self) -> &RawMessage {
6440 &self.0
6441 }
6442
6443 pub fn header(&self) -> Header<'_> {
6444 Header(self.0.scope())
6445 }
6446
6447 pub fn trailer(&self) -> Trailer<'_> {
6448 Trailer(self.0.scope())
6449 }
6450
6451 #[doc(alias = "OrderID")]
6453 pub fn order_id(&self) -> Result<Option<&str>, InvalidValue> {
6454 self.0.get_str(Tag(37))
6455 }
6456
6457 #[doc(alias = "SecondaryOrderID")]
6459 pub fn secondary_order_id(&self) -> Result<Option<&str>, InvalidValue> {
6460 self.0.get_str(Tag(198))
6461 }
6462
6463 #[doc(alias = "ClOrdID")]
6465 pub fn cl_ord_id(&self) -> Result<Option<&str>, InvalidValue> {
6466 self.0.get_str(Tag(11))
6467 }
6468
6469 #[doc(alias = "OrigClOrdID")]
6471 pub fn orig_cl_ord_id(&self) -> Result<Option<&str>, InvalidValue> {
6472 self.0.get_str(Tag(41))
6473 }
6474
6475 #[doc(alias = "OrdStatus")]
6477 pub fn ord_status(&self) -> Result<Option<OrdStatus<'_>>, InvalidValue> {
6478 Ok(self.0.get_str(Tag(39))?.map(OrdStatus::from_value))
6479 }
6480
6481 #[doc(alias = "ClientID")]
6483 pub fn client_id(&self) -> Result<Option<&str>, InvalidValue> {
6484 self.0.get_str(Tag(109))
6485 }
6486
6487 #[doc(alias = "ExecBroker")]
6489 pub fn exec_broker(&self) -> Result<Option<&str>, InvalidValue> {
6490 self.0.get_str(Tag(76))
6491 }
6492
6493 #[doc(alias = "ListID")]
6495 pub fn list_id(&self) -> Result<Option<&str>, InvalidValue> {
6496 self.0.get_str(Tag(66))
6497 }
6498
6499 #[doc(alias = "Account")]
6501 pub fn account(&self) -> Result<Option<&str>, InvalidValue> {
6502 self.0.get_str(Tag(1))
6503 }
6504
6505 #[doc(alias = "TransactTime")]
6507 pub fn transact_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
6508 self.0.get_utc_timestamp(Tag(60))
6509 }
6510
6511 #[doc(alias = "CxlRejResponseTo")]
6513 pub fn cxl_rej_response_to(&self) -> Result<Option<CxlRejResponseTo<'_>>, InvalidValue> {
6514 Ok(self.0.get_str(Tag(434))?.map(CxlRejResponseTo::from_value))
6515 }
6516
6517 #[doc(alias = "CxlRejReason")]
6519 pub fn cxl_rej_reason(&self) -> Result<Option<CxlRejReason>, InvalidValue> {
6520 Ok(self.0.get_int(Tag(102))?.map(CxlRejReason::from_value))
6521 }
6522
6523 #[doc(alias = "Text")]
6525 pub fn text(&self) -> Result<Option<&str>, InvalidValue> {
6526 self.0.get_str(Tag(58))
6527 }
6528
6529 #[doc(alias = "EncodedTextLen")]
6531 pub fn encoded_text_len(&self) -> Result<Option<i64>, InvalidValue> {
6532 self.0.get_int(Tag(354))
6533 }
6534
6535 #[doc(alias = "EncodedText")]
6537 pub fn encoded_text(&self) -> Option<&[u8]> {
6538 self.0.get(Tag(355))
6539 }
6540}
6541
6542impl std::fmt::Debug for OrderCancelReject {
6543 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
6544 write!(f, "OrderCancelReject({})", self.0)
6545 }
6546}
6547
6548impl std::fmt::Display for OrderCancelReject {
6549 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
6550 std::fmt::Display::fmt(&self.0, f)
6551 }
6552}
6553
6554pub struct Logon(RawMessage);
6556
6557impl Logon {
6558 pub const MSG_TYPE: &[u8] = b"A";
6559
6560 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
6561 Tag(8), Tag(9), Tag(10), Tag(34), Tag(35), Tag(43), Tag(49), Tag(50), Tag(52), Tag(56),
6562 Tag(57), Tag(89), Tag(90), Tag(91), Tag(93), Tag(95), Tag(96), Tag(97), Tag(98), Tag(108),
6563 Tag(115), Tag(116), Tag(122), Tag(128), Tag(129), Tag(141), Tag(142), Tag(143), Tag(144),
6564 Tag(145), Tag(212), Tag(213), Tag(347), Tag(369), Tag(370), Tag(372), Tag(383), Tag(384),
6565 Tag(385),
6566 ]);
6567
6568 pub fn from_raw(raw: RawMessage) -> Self {
6569 Self(raw)
6570 }
6571
6572 pub fn raw(&self) -> &RawMessage {
6573 &self.0
6574 }
6575
6576 pub fn header(&self) -> Header<'_> {
6577 Header(self.0.scope())
6578 }
6579
6580 pub fn trailer(&self) -> Trailer<'_> {
6581 Trailer(self.0.scope())
6582 }
6583
6584 #[doc(alias = "EncryptMethod")]
6586 pub fn encrypt_method(&self) -> Result<Option<EncryptMethod>, InvalidValue> {
6587 Ok(self.0.get_int(Tag(98))?.map(EncryptMethod::from_value))
6588 }
6589
6590 #[doc(alias = "HeartBtInt")]
6592 pub fn heart_bt_int(&self) -> Result<Option<i64>, InvalidValue> {
6593 self.0.get_int(Tag(108))
6594 }
6595
6596 #[doc(alias = "RawDataLength")]
6598 pub fn raw_data_length(&self) -> Result<Option<i64>, InvalidValue> {
6599 self.0.get_int(Tag(95))
6600 }
6601
6602 #[doc(alias = "RawData")]
6604 pub fn raw_data(&self) -> Option<&[u8]> {
6605 self.0.get(Tag(96))
6606 }
6607
6608 #[doc(alias = "ResetSeqNumFlag")]
6610 pub fn reset_seq_num_flag(&self) -> Result<Option<bool>, InvalidValue> {
6611 self.0.get_bool(Tag(141))
6612 }
6613
6614 #[doc(alias = "MaxMessageSize")]
6616 pub fn max_message_size(&self) -> Result<Option<i64>, InvalidValue> {
6617 self.0.get_int(Tag(383))
6618 }
6619
6620 #[doc(alias = "NoMsgTypes")]
6622 pub fn msg_types(&self) -> Result<Instances<'_, logon::msg_types::Instance<'_>>, InvalidValue> {
6623 self.0.get_group(&logon::msg_types::TABLE, &Self::KNOWN_TAGS).map(Instances::from)
6624 }
6625}
6626
6627impl std::fmt::Debug for Logon {
6628 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
6629 write!(f, "Logon({})", self.0)
6630 }
6631}
6632
6633impl std::fmt::Display for Logon {
6634 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
6635 std::fmt::Display::fmt(&self.0, f)
6636 }
6637}
6638
6639pub mod logon {
6640 pub mod msg_types {
6641 use super::super::*;
6642
6643 pub const TABLE: GroupTable<'static> = GroupTable::new(
6644 Tag(384),
6645 Tag(372),
6646 &[Tag(372), Tag(385)],
6647 &[],
6648 );
6649
6650 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[Tag(372), Tag(385)]);
6651
6652 #[derive(Clone, Copy, Debug)]
6653 pub struct Instance<'a>(refix_message::Scope<'a>);
6654
6655 impl<'a> From<refix_message::Scope<'a>> for Instance<'a> {
6656 fn from(scope: refix_message::Scope<'a>) -> Self {
6657 Self(scope)
6658 }
6659 }
6660
6661 impl<'a> Instance<'a> {
6662 pub fn raw(&self) -> refix_message::Scope<'a> {
6663 self.0
6664 }
6665
6666 #[doc(alias = "RefMsgType")]
6668 pub fn ref_msg_type(&self) -> Result<Option<&'a str>, InvalidValue> {
6669 self.0.get_str(Tag(372))
6670 }
6671
6672 #[doc(alias = "MsgDirection")]
6674 pub fn msg_direction(&self) -> Result<Option<MsgDirection<'a>>, InvalidValue> {
6675 Ok(self.0.get_str(Tag(385))?.map(MsgDirection::from_value))
6676 }
6677 }
6678 }
6679}
6680
6681pub struct News(RawMessage);
6683
6684impl News {
6685 pub const MSG_TYPE: &[u8] = b"B";
6686
6687 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
6688 Tag(8), Tag(9), Tag(10), Tag(22), Tag(33), Tag(34), Tag(35), Tag(42), Tag(43), Tag(46),
6689 Tag(48), Tag(49), Tag(50), Tag(52), Tag(56), Tag(57), Tag(58), Tag(61), Tag(65), Tag(89),
6690 Tag(90), Tag(91), Tag(93), Tag(95), Tag(96), Tag(97), Tag(106), Tag(107), Tag(115),
6691 Tag(116), Tag(122), Tag(128), Tag(129), Tag(142), Tag(143), Tag(144), Tag(145), Tag(146),
6692 Tag(148), Tag(149), Tag(167), Tag(200), Tag(201), Tag(202), Tag(205), Tag(206), Tag(207),
6693 Tag(212), Tag(213), Tag(215), Tag(216), Tag(217), Tag(223), Tag(231), Tag(347), Tag(348),
6694 Tag(349), Tag(350), Tag(351), Tag(354), Tag(355), Tag(358), Tag(359), Tag(369), Tag(370),
6695 ]);
6696
6697 pub fn from_raw(raw: RawMessage) -> Self {
6698 Self(raw)
6699 }
6700
6701 pub fn raw(&self) -> &RawMessage {
6702 &self.0
6703 }
6704
6705 pub fn header(&self) -> Header<'_> {
6706 Header(self.0.scope())
6707 }
6708
6709 pub fn trailer(&self) -> Trailer<'_> {
6710 Trailer(self.0.scope())
6711 }
6712
6713 #[doc(alias = "OrigTime")]
6715 pub fn orig_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
6716 self.0.get_utc_timestamp(Tag(42))
6717 }
6718
6719 #[doc(alias = "Urgency")]
6721 pub fn urgency(&self) -> Result<Option<Urgency<'_>>, InvalidValue> {
6722 Ok(self.0.get_str(Tag(61))?.map(Urgency::from_value))
6723 }
6724
6725 #[doc(alias = "Headline")]
6727 pub fn headline(&self) -> Result<Option<&str>, InvalidValue> {
6728 self.0.get_str(Tag(148))
6729 }
6730
6731 #[doc(alias = "EncodedHeadlineLen")]
6733 pub fn encoded_headline_len(&self) -> Result<Option<i64>, InvalidValue> {
6734 self.0.get_int(Tag(358))
6735 }
6736
6737 #[doc(alias = "EncodedHeadline")]
6739 pub fn encoded_headline(&self) -> Option<&[u8]> {
6740 self.0.get(Tag(359))
6741 }
6742
6743 #[doc(alias = "NoRoutingIDs")]
6745 pub fn routing_ids(&self) -> Result<Instances<'_, news::routing_ids::Instance<'_>>, InvalidValue> {
6746 self.0.get_group(&news::routing_ids::TABLE, &Self::KNOWN_TAGS).map(Instances::from)
6747 }
6748
6749 #[doc(alias = "NoRelatedSym")]
6751 pub fn related_sym(&self) -> Result<Instances<'_, news::related_sym::Instance<'_>>, InvalidValue> {
6752 self.0.get_group(&news::related_sym::TABLE, &Self::KNOWN_TAGS).map(Instances::from)
6753 }
6754
6755 #[doc(alias = "LinesOfText")]
6757 pub fn lines_of_text(&self) -> Result<Instances<'_, news::lines_of_text::Instance<'_>>, InvalidValue> {
6758 self.0.get_group(&news::lines_of_text::TABLE, &Self::KNOWN_TAGS).map(Instances::from)
6759 }
6760
6761 #[doc(alias = "URLLink")]
6763 pub fn url_link(&self) -> Result<Option<&str>, InvalidValue> {
6764 self.0.get_str(Tag(149))
6765 }
6766
6767 #[doc(alias = "RawDataLength")]
6769 pub fn raw_data_length(&self) -> Result<Option<i64>, InvalidValue> {
6770 self.0.get_int(Tag(95))
6771 }
6772
6773 #[doc(alias = "RawData")]
6775 pub fn raw_data(&self) -> Option<&[u8]> {
6776 self.0.get(Tag(96))
6777 }
6778}
6779
6780impl std::fmt::Debug for News {
6781 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
6782 write!(f, "News({})", self.0)
6783 }
6784}
6785
6786impl std::fmt::Display for News {
6787 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
6788 std::fmt::Display::fmt(&self.0, f)
6789 }
6790}
6791
6792pub mod news {
6793 pub mod routing_ids {
6794 use super::super::*;
6795
6796 pub const TABLE: GroupTable<'static> = GroupTable::new(
6797 Tag(215),
6798 Tag(216),
6799 &[Tag(216), Tag(217)],
6800 &[],
6801 );
6802
6803 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[Tag(216), Tag(217)]);
6804
6805 #[derive(Clone, Copy, Debug)]
6806 pub struct Instance<'a>(refix_message::Scope<'a>);
6807
6808 impl<'a> From<refix_message::Scope<'a>> for Instance<'a> {
6809 fn from(scope: refix_message::Scope<'a>) -> Self {
6810 Self(scope)
6811 }
6812 }
6813
6814 impl<'a> Instance<'a> {
6815 pub fn raw(&self) -> refix_message::Scope<'a> {
6816 self.0
6817 }
6818
6819 #[doc(alias = "RoutingType")]
6821 pub fn routing_type(&self) -> Result<Option<RoutingType>, InvalidValue> {
6822 Ok(self.0.get_int(Tag(216))?.map(RoutingType::from_value))
6823 }
6824
6825 #[doc(alias = "RoutingID")]
6827 pub fn routing_id(&self) -> Result<Option<&'a str>, InvalidValue> {
6828 self.0.get_str(Tag(217))
6829 }
6830 }
6831 }
6832
6833 pub mod related_sym {
6834 use super::super::*;
6835
6836 pub const TABLE: GroupTable<'static> = GroupTable::new(
6837 Tag(146),
6838 Tag(46),
6839 &[
6840 Tag(22), Tag(46), Tag(48), Tag(65), Tag(106), Tag(107), Tag(167), Tag(200),
6841 Tag(201), Tag(202), Tag(205), Tag(206), Tag(207), Tag(223), Tag(231), Tag(348),
6842 Tag(349), Tag(350), Tag(351),
6843 ],
6844 &[],
6845 );
6846
6847 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
6848 Tag(22), Tag(46), Tag(48), Tag(65), Tag(106), Tag(107), Tag(167), Tag(200), Tag(201),
6849 Tag(202), Tag(205), Tag(206), Tag(207), Tag(223), Tag(231), Tag(348), Tag(349),
6850 Tag(350), Tag(351),
6851 ]);
6852
6853 #[derive(Clone, Copy, Debug)]
6854 pub struct Instance<'a>(refix_message::Scope<'a>);
6855
6856 impl<'a> From<refix_message::Scope<'a>> for Instance<'a> {
6857 fn from(scope: refix_message::Scope<'a>) -> Self {
6858 Self(scope)
6859 }
6860 }
6861
6862 impl<'a> Instance<'a> {
6863 pub fn raw(&self) -> refix_message::Scope<'a> {
6864 self.0
6865 }
6866
6867 #[doc(alias = "RelatdSym")]
6869 pub fn relatd_sym(&self) -> Result<Option<&'a str>, InvalidValue> {
6870 self.0.get_str(Tag(46))
6871 }
6872
6873 #[doc(alias = "SymbolSfx")]
6875 pub fn symbol_sfx(&self) -> Result<Option<&'a str>, InvalidValue> {
6876 self.0.get_str(Tag(65))
6877 }
6878
6879 #[doc(alias = "SecurityID")]
6881 pub fn security_id(&self) -> Result<Option<&'a str>, InvalidValue> {
6882 self.0.get_str(Tag(48))
6883 }
6884
6885 #[doc(alias = "IDSource")]
6887 pub fn id_source(&self) -> Result<Option<IDSource<'a>>, InvalidValue> {
6888 Ok(self.0.get_str(Tag(22))?.map(IDSource::from_value))
6889 }
6890
6891 #[doc(alias = "SecurityType")]
6893 pub fn security_type(&self) -> Result<Option<SecurityType<'a>>, InvalidValue> {
6894 Ok(self.0.get_str(Tag(167))?.map(SecurityType::from_value))
6895 }
6896
6897 #[doc(alias = "MaturityMonthYear")]
6899 pub fn maturity_month_year(&self) -> Result<Option<MonthYear>, InvalidValue> {
6900 self.0.get_month_year(Tag(200))
6901 }
6902
6903 #[doc(alias = "MaturityDay")]
6905 pub fn maturity_day(&self) -> Result<Option<i64>, InvalidValue> {
6906 self.0.get_int(Tag(205))
6907 }
6908
6909 #[doc(alias = "PutOrCall")]
6911 pub fn put_or_call(&self) -> Result<Option<PutOrCall>, InvalidValue> {
6912 Ok(self.0.get_int(Tag(201))?.map(PutOrCall::from_value))
6913 }
6914
6915 #[doc(alias = "StrikePrice")]
6917 pub fn strike_price(&self) -> Result<Option<Decimal>, InvalidValue> {
6918 self.0.get_decimal(Tag(202))
6919 }
6920
6921 #[doc(alias = "OptAttribute")]
6923 pub fn opt_attribute(&self) -> Result<Option<&'a str>, InvalidValue> {
6924 self.0.get_str(Tag(206))
6925 }
6926
6927 #[doc(alias = "ContractMultiplier")]
6929 pub fn contract_multiplier(&self) -> Result<Option<Decimal>, InvalidValue> {
6930 self.0.get_decimal(Tag(231))
6931 }
6932
6933 #[doc(alias = "CouponRate")]
6935 pub fn coupon_rate(&self) -> Result<Option<Decimal>, InvalidValue> {
6936 self.0.get_decimal(Tag(223))
6937 }
6938
6939 #[doc(alias = "SecurityExchange")]
6941 pub fn security_exchange(&self) -> Result<Option<&'a str>, InvalidValue> {
6942 self.0.get_str(Tag(207))
6943 }
6944
6945 #[doc(alias = "Issuer")]
6947 pub fn issuer(&self) -> Result<Option<&'a str>, InvalidValue> {
6948 self.0.get_str(Tag(106))
6949 }
6950
6951 #[doc(alias = "EncodedIssuerLen")]
6953 pub fn encoded_issuer_len(&self) -> Result<Option<i64>, InvalidValue> {
6954 self.0.get_int(Tag(348))
6955 }
6956
6957 #[doc(alias = "EncodedIssuer")]
6959 pub fn encoded_issuer(&self) -> Option<&'a [u8]> {
6960 self.0.get(Tag(349))
6961 }
6962
6963 #[doc(alias = "SecurityDesc")]
6965 pub fn security_desc(&self) -> Result<Option<&'a str>, InvalidValue> {
6966 self.0.get_str(Tag(107))
6967 }
6968
6969 #[doc(alias = "EncodedSecurityDescLen")]
6971 pub fn encoded_security_desc_len(&self) -> Result<Option<i64>, InvalidValue> {
6972 self.0.get_int(Tag(350))
6973 }
6974
6975 #[doc(alias = "EncodedSecurityDesc")]
6977 pub fn encoded_security_desc(&self) -> Option<&'a [u8]> {
6978 self.0.get(Tag(351))
6979 }
6980 }
6981 }
6982
6983 pub mod lines_of_text {
6984 use super::super::*;
6985
6986 pub const TABLE: GroupTable<'static> = GroupTable::new(
6987 Tag(33),
6988 Tag(58),
6989 &[Tag(58), Tag(354), Tag(355)],
6990 &[],
6991 );
6992
6993 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[Tag(58), Tag(354), Tag(355)]);
6994
6995 #[derive(Clone, Copy, Debug)]
6996 pub struct Instance<'a>(refix_message::Scope<'a>);
6997
6998 impl<'a> From<refix_message::Scope<'a>> for Instance<'a> {
6999 fn from(scope: refix_message::Scope<'a>) -> Self {
7000 Self(scope)
7001 }
7002 }
7003
7004 impl<'a> Instance<'a> {
7005 pub fn raw(&self) -> refix_message::Scope<'a> {
7006 self.0
7007 }
7008
7009 #[doc(alias = "Text")]
7011 pub fn text(&self) -> Result<Option<&'a str>, InvalidValue> {
7012 self.0.get_str(Tag(58))
7013 }
7014
7015 #[doc(alias = "EncodedTextLen")]
7017 pub fn encoded_text_len(&self) -> Result<Option<i64>, InvalidValue> {
7018 self.0.get_int(Tag(354))
7019 }
7020
7021 #[doc(alias = "EncodedText")]
7023 pub fn encoded_text(&self) -> Option<&'a [u8]> {
7024 self.0.get(Tag(355))
7025 }
7026 }
7027 }
7028}
7029
7030pub struct Email(RawMessage);
7032
7033impl Email {
7034 pub const MSG_TYPE: &[u8] = b"C";
7035
7036 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
7037 Tag(8), Tag(9), Tag(10), Tag(11), Tag(22), Tag(33), Tag(34), Tag(35), Tag(37), Tag(42),
7038 Tag(43), Tag(46), Tag(48), Tag(49), Tag(50), Tag(52), Tag(56), Tag(57), Tag(58), Tag(65),
7039 Tag(89), Tag(90), Tag(91), Tag(93), Tag(94), Tag(95), Tag(96), Tag(97), Tag(106), Tag(107),
7040 Tag(115), Tag(116), Tag(122), Tag(128), Tag(129), Tag(142), Tag(143), Tag(144), Tag(145),
7041 Tag(146), Tag(147), Tag(164), Tag(167), Tag(200), Tag(201), Tag(202), Tag(205), Tag(206),
7042 Tag(207), Tag(212), Tag(213), Tag(215), Tag(216), Tag(217), Tag(223), Tag(231), Tag(347),
7043 Tag(348), Tag(349), Tag(350), Tag(351), Tag(354), Tag(355), Tag(356), Tag(357), Tag(369),
7044 Tag(370),
7045 ]);
7046
7047 pub fn from_raw(raw: RawMessage) -> Self {
7048 Self(raw)
7049 }
7050
7051 pub fn raw(&self) -> &RawMessage {
7052 &self.0
7053 }
7054
7055 pub fn header(&self) -> Header<'_> {
7056 Header(self.0.scope())
7057 }
7058
7059 pub fn trailer(&self) -> Trailer<'_> {
7060 Trailer(self.0.scope())
7061 }
7062
7063 #[doc(alias = "EmailThreadID")]
7065 pub fn email_thread_id(&self) -> Result<Option<&str>, InvalidValue> {
7066 self.0.get_str(Tag(164))
7067 }
7068
7069 #[doc(alias = "EmailType")]
7071 pub fn email_type(&self) -> Result<Option<EmailType<'_>>, InvalidValue> {
7072 Ok(self.0.get_str(Tag(94))?.map(EmailType::from_value))
7073 }
7074
7075 #[doc(alias = "OrigTime")]
7077 pub fn orig_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
7078 self.0.get_utc_timestamp(Tag(42))
7079 }
7080
7081 #[doc(alias = "Subject")]
7083 pub fn subject(&self) -> Result<Option<&str>, InvalidValue> {
7084 self.0.get_str(Tag(147))
7085 }
7086
7087 #[doc(alias = "EncodedSubjectLen")]
7089 pub fn encoded_subject_len(&self) -> Result<Option<i64>, InvalidValue> {
7090 self.0.get_int(Tag(356))
7091 }
7092
7093 #[doc(alias = "EncodedSubject")]
7095 pub fn encoded_subject(&self) -> Option<&[u8]> {
7096 self.0.get(Tag(357))
7097 }
7098
7099 #[doc(alias = "NoRoutingIDs")]
7101 pub fn routing_ids(&self) -> Result<Instances<'_, email::routing_ids::Instance<'_>>, InvalidValue> {
7102 self.0.get_group(&email::routing_ids::TABLE, &Self::KNOWN_TAGS).map(Instances::from)
7103 }
7104
7105 #[doc(alias = "NoRelatedSym")]
7107 pub fn related_sym(&self) -> Result<Instances<'_, email::related_sym::Instance<'_>>, InvalidValue> {
7108 self.0.get_group(&email::related_sym::TABLE, &Self::KNOWN_TAGS).map(Instances::from)
7109 }
7110
7111 #[doc(alias = "OrderID")]
7113 pub fn order_id(&self) -> Result<Option<&str>, InvalidValue> {
7114 self.0.get_str(Tag(37))
7115 }
7116
7117 #[doc(alias = "ClOrdID")]
7119 pub fn cl_ord_id(&self) -> Result<Option<&str>, InvalidValue> {
7120 self.0.get_str(Tag(11))
7121 }
7122
7123 #[doc(alias = "LinesOfText")]
7125 pub fn lines_of_text(&self) -> Result<Instances<'_, email::lines_of_text::Instance<'_>>, InvalidValue> {
7126 self.0.get_group(&email::lines_of_text::TABLE, &Self::KNOWN_TAGS).map(Instances::from)
7127 }
7128
7129 #[doc(alias = "RawDataLength")]
7131 pub fn raw_data_length(&self) -> Result<Option<i64>, InvalidValue> {
7132 self.0.get_int(Tag(95))
7133 }
7134
7135 #[doc(alias = "RawData")]
7137 pub fn raw_data(&self) -> Option<&[u8]> {
7138 self.0.get(Tag(96))
7139 }
7140}
7141
7142impl std::fmt::Debug for Email {
7143 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
7144 write!(f, "Email({})", self.0)
7145 }
7146}
7147
7148impl std::fmt::Display for Email {
7149 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
7150 std::fmt::Display::fmt(&self.0, f)
7151 }
7152}
7153
7154pub mod email {
7155 pub mod routing_ids {
7156 use super::super::*;
7157
7158 pub const TABLE: GroupTable<'static> = GroupTable::new(
7159 Tag(215),
7160 Tag(216),
7161 &[Tag(216), Tag(217)],
7162 &[],
7163 );
7164
7165 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[Tag(216), Tag(217)]);
7166
7167 #[derive(Clone, Copy, Debug)]
7168 pub struct Instance<'a>(refix_message::Scope<'a>);
7169
7170 impl<'a> From<refix_message::Scope<'a>> for Instance<'a> {
7171 fn from(scope: refix_message::Scope<'a>) -> Self {
7172 Self(scope)
7173 }
7174 }
7175
7176 impl<'a> Instance<'a> {
7177 pub fn raw(&self) -> refix_message::Scope<'a> {
7178 self.0
7179 }
7180
7181 #[doc(alias = "RoutingType")]
7183 pub fn routing_type(&self) -> Result<Option<RoutingType>, InvalidValue> {
7184 Ok(self.0.get_int(Tag(216))?.map(RoutingType::from_value))
7185 }
7186
7187 #[doc(alias = "RoutingID")]
7189 pub fn routing_id(&self) -> Result<Option<&'a str>, InvalidValue> {
7190 self.0.get_str(Tag(217))
7191 }
7192 }
7193 }
7194
7195 pub mod related_sym {
7196 use super::super::*;
7197
7198 pub const TABLE: GroupTable<'static> = GroupTable::new(
7199 Tag(146),
7200 Tag(46),
7201 &[
7202 Tag(22), Tag(46), Tag(48), Tag(65), Tag(106), Tag(107), Tag(167), Tag(200),
7203 Tag(201), Tag(202), Tag(205), Tag(206), Tag(207), Tag(223), Tag(231), Tag(348),
7204 Tag(349), Tag(350), Tag(351),
7205 ],
7206 &[],
7207 );
7208
7209 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
7210 Tag(22), Tag(46), Tag(48), Tag(65), Tag(106), Tag(107), Tag(167), Tag(200), Tag(201),
7211 Tag(202), Tag(205), Tag(206), Tag(207), Tag(223), Tag(231), Tag(348), Tag(349),
7212 Tag(350), Tag(351),
7213 ]);
7214
7215 #[derive(Clone, Copy, Debug)]
7216 pub struct Instance<'a>(refix_message::Scope<'a>);
7217
7218 impl<'a> From<refix_message::Scope<'a>> for Instance<'a> {
7219 fn from(scope: refix_message::Scope<'a>) -> Self {
7220 Self(scope)
7221 }
7222 }
7223
7224 impl<'a> Instance<'a> {
7225 pub fn raw(&self) -> refix_message::Scope<'a> {
7226 self.0
7227 }
7228
7229 #[doc(alias = "RelatdSym")]
7231 pub fn relatd_sym(&self) -> Result<Option<&'a str>, InvalidValue> {
7232 self.0.get_str(Tag(46))
7233 }
7234
7235 #[doc(alias = "SymbolSfx")]
7237 pub fn symbol_sfx(&self) -> Result<Option<&'a str>, InvalidValue> {
7238 self.0.get_str(Tag(65))
7239 }
7240
7241 #[doc(alias = "SecurityID")]
7243 pub fn security_id(&self) -> Result<Option<&'a str>, InvalidValue> {
7244 self.0.get_str(Tag(48))
7245 }
7246
7247 #[doc(alias = "IDSource")]
7249 pub fn id_source(&self) -> Result<Option<IDSource<'a>>, InvalidValue> {
7250 Ok(self.0.get_str(Tag(22))?.map(IDSource::from_value))
7251 }
7252
7253 #[doc(alias = "SecurityType")]
7255 pub fn security_type(&self) -> Result<Option<SecurityType<'a>>, InvalidValue> {
7256 Ok(self.0.get_str(Tag(167))?.map(SecurityType::from_value))
7257 }
7258
7259 #[doc(alias = "MaturityMonthYear")]
7261 pub fn maturity_month_year(&self) -> Result<Option<MonthYear>, InvalidValue> {
7262 self.0.get_month_year(Tag(200))
7263 }
7264
7265 #[doc(alias = "MaturityDay")]
7267 pub fn maturity_day(&self) -> Result<Option<i64>, InvalidValue> {
7268 self.0.get_int(Tag(205))
7269 }
7270
7271 #[doc(alias = "PutOrCall")]
7273 pub fn put_or_call(&self) -> Result<Option<PutOrCall>, InvalidValue> {
7274 Ok(self.0.get_int(Tag(201))?.map(PutOrCall::from_value))
7275 }
7276
7277 #[doc(alias = "StrikePrice")]
7279 pub fn strike_price(&self) -> Result<Option<Decimal>, InvalidValue> {
7280 self.0.get_decimal(Tag(202))
7281 }
7282
7283 #[doc(alias = "OptAttribute")]
7285 pub fn opt_attribute(&self) -> Result<Option<&'a str>, InvalidValue> {
7286 self.0.get_str(Tag(206))
7287 }
7288
7289 #[doc(alias = "ContractMultiplier")]
7291 pub fn contract_multiplier(&self) -> Result<Option<Decimal>, InvalidValue> {
7292 self.0.get_decimal(Tag(231))
7293 }
7294
7295 #[doc(alias = "CouponRate")]
7297 pub fn coupon_rate(&self) -> Result<Option<Decimal>, InvalidValue> {
7298 self.0.get_decimal(Tag(223))
7299 }
7300
7301 #[doc(alias = "SecurityExchange")]
7303 pub fn security_exchange(&self) -> Result<Option<&'a str>, InvalidValue> {
7304 self.0.get_str(Tag(207))
7305 }
7306
7307 #[doc(alias = "Issuer")]
7309 pub fn issuer(&self) -> Result<Option<&'a str>, InvalidValue> {
7310 self.0.get_str(Tag(106))
7311 }
7312
7313 #[doc(alias = "EncodedIssuerLen")]
7315 pub fn encoded_issuer_len(&self) -> Result<Option<i64>, InvalidValue> {
7316 self.0.get_int(Tag(348))
7317 }
7318
7319 #[doc(alias = "EncodedIssuer")]
7321 pub fn encoded_issuer(&self) -> Option<&'a [u8]> {
7322 self.0.get(Tag(349))
7323 }
7324
7325 #[doc(alias = "SecurityDesc")]
7327 pub fn security_desc(&self) -> Result<Option<&'a str>, InvalidValue> {
7328 self.0.get_str(Tag(107))
7329 }
7330
7331 #[doc(alias = "EncodedSecurityDescLen")]
7333 pub fn encoded_security_desc_len(&self) -> Result<Option<i64>, InvalidValue> {
7334 self.0.get_int(Tag(350))
7335 }
7336
7337 #[doc(alias = "EncodedSecurityDesc")]
7339 pub fn encoded_security_desc(&self) -> Option<&'a [u8]> {
7340 self.0.get(Tag(351))
7341 }
7342 }
7343 }
7344
7345 pub mod lines_of_text {
7346 use super::super::*;
7347
7348 pub const TABLE: GroupTable<'static> = GroupTable::new(
7349 Tag(33),
7350 Tag(58),
7351 &[Tag(58), Tag(354), Tag(355)],
7352 &[],
7353 );
7354
7355 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[Tag(58), Tag(354), Tag(355)]);
7356
7357 #[derive(Clone, Copy, Debug)]
7358 pub struct Instance<'a>(refix_message::Scope<'a>);
7359
7360 impl<'a> From<refix_message::Scope<'a>> for Instance<'a> {
7361 fn from(scope: refix_message::Scope<'a>) -> Self {
7362 Self(scope)
7363 }
7364 }
7365
7366 impl<'a> Instance<'a> {
7367 pub fn raw(&self) -> refix_message::Scope<'a> {
7368 self.0
7369 }
7370
7371 #[doc(alias = "Text")]
7373 pub fn text(&self) -> Result<Option<&'a str>, InvalidValue> {
7374 self.0.get_str(Tag(58))
7375 }
7376
7377 #[doc(alias = "EncodedTextLen")]
7379 pub fn encoded_text_len(&self) -> Result<Option<i64>, InvalidValue> {
7380 self.0.get_int(Tag(354))
7381 }
7382
7383 #[doc(alias = "EncodedText")]
7385 pub fn encoded_text(&self) -> Option<&'a [u8]> {
7386 self.0.get(Tag(355))
7387 }
7388 }
7389 }
7390}
7391
7392pub struct NewOrderSingle(RawMessage);
7394
7395impl NewOrderSingle {
7396 pub const MSG_TYPE: &[u8] = b"D";
7397
7398 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
7399 Tag(1), Tag(8), Tag(9), Tag(10), Tag(11), Tag(12), Tag(13), Tag(15), Tag(18), Tag(21),
7400 Tag(22), Tag(23), Tag(34), Tag(35), Tag(38), Tag(40), Tag(43), Tag(44), Tag(47), Tag(48),
7401 Tag(49), Tag(50), Tag(52), Tag(54), Tag(55), Tag(56), Tag(57), Tag(58), Tag(59), Tag(60),
7402 Tag(63), Tag(64), Tag(65), Tag(76), Tag(77), Tag(78), Tag(79), Tag(80), Tag(81), Tag(89),
7403 Tag(90), Tag(91), Tag(93), Tag(97), Tag(99), Tag(100), Tag(106), Tag(107), Tag(109),
7404 Tag(110), Tag(111), Tag(114), Tag(115), Tag(116), Tag(117), Tag(120), Tag(121), Tag(122),
7405 Tag(126), Tag(128), Tag(129), Tag(140), Tag(142), Tag(143), Tag(144), Tag(145), Tag(152),
7406 Tag(167), Tag(168), Tag(192), Tag(193), Tag(200), Tag(201), Tag(202), Tag(203), Tag(204),
7407 Tag(205), Tag(206), Tag(207), Tag(210), Tag(211), Tag(212), Tag(213), Tag(223), Tag(231),
7408 Tag(336), Tag(347), Tag(348), Tag(349), Tag(350), Tag(351), Tag(354), Tag(355), Tag(369),
7409 Tag(370), Tag(376), Tag(377), Tag(386), Tag(388), Tag(389), Tag(427), Tag(432), Tag(439),
7410 Tag(440),
7411 ]);
7412
7413 pub fn from_raw(raw: RawMessage) -> Self {
7414 Self(raw)
7415 }
7416
7417 pub fn raw(&self) -> &RawMessage {
7418 &self.0
7419 }
7420
7421 pub fn header(&self) -> Header<'_> {
7422 Header(self.0.scope())
7423 }
7424
7425 pub fn trailer(&self) -> Trailer<'_> {
7426 Trailer(self.0.scope())
7427 }
7428
7429 #[doc(alias = "ClOrdID")]
7431 pub fn cl_ord_id(&self) -> Result<Option<&str>, InvalidValue> {
7432 self.0.get_str(Tag(11))
7433 }
7434
7435 #[doc(alias = "ClientID")]
7437 pub fn client_id(&self) -> Result<Option<&str>, InvalidValue> {
7438 self.0.get_str(Tag(109))
7439 }
7440
7441 #[doc(alias = "ExecBroker")]
7443 pub fn exec_broker(&self) -> Result<Option<&str>, InvalidValue> {
7444 self.0.get_str(Tag(76))
7445 }
7446
7447 #[doc(alias = "Account")]
7449 pub fn account(&self) -> Result<Option<&str>, InvalidValue> {
7450 self.0.get_str(Tag(1))
7451 }
7452
7453 #[doc(alias = "NoAllocs")]
7455 pub fn allocs(&self) -> Result<Instances<'_, new_order_single::allocs::Instance<'_>>, InvalidValue> {
7456 self.0.get_group(&new_order_single::allocs::TABLE, &Self::KNOWN_TAGS).map(Instances::from)
7457 }
7458
7459 #[doc(alias = "SettlmntTyp")]
7461 pub fn settlmnt_typ(&self) -> Result<Option<SettlmntTyp<'_>>, InvalidValue> {
7462 Ok(self.0.get_str(Tag(63))?.map(SettlmntTyp::from_value))
7463 }
7464
7465 #[doc(alias = "FutSettDate")]
7467 pub fn fut_sett_date(&self) -> Result<Option<Date>, InvalidValue> {
7468 self.0.get_date(Tag(64))
7469 }
7470
7471 #[doc(alias = "HandlInst")]
7473 pub fn handl_inst(&self) -> Result<Option<HandlInst<'_>>, InvalidValue> {
7474 Ok(self.0.get_str(Tag(21))?.map(HandlInst::from_value))
7475 }
7476
7477 #[doc(alias = "ExecInst")]
7479 pub fn exec_inst(&self) -> Result<Option<MultipleValues<'_, ExecInst<'_>>>, InvalidValue> {
7480 self.0.get_multiple_values(Tag(18))
7481 }
7482
7483 #[doc(alias = "MinQty")]
7485 pub fn min_qty(&self) -> Result<Option<Decimal>, InvalidValue> {
7486 self.0.get_decimal(Tag(110))
7487 }
7488
7489 #[doc(alias = "MaxFloor")]
7491 pub fn max_floor(&self) -> Result<Option<Decimal>, InvalidValue> {
7492 self.0.get_decimal(Tag(111))
7493 }
7494
7495 #[doc(alias = "ExDestination")]
7497 pub fn ex_destination(&self) -> Result<Option<&str>, InvalidValue> {
7498 self.0.get_str(Tag(100))
7499 }
7500
7501 #[doc(alias = "NoTradingSessions")]
7503 pub fn trading_sessions(&self) -> Result<Instances<'_, new_order_single::trading_sessions::Instance<'_>>, InvalidValue> {
7504 self.0.get_group(&new_order_single::trading_sessions::TABLE, &Self::KNOWN_TAGS).map(Instances::from)
7505 }
7506
7507 #[doc(alias = "ProcessCode")]
7509 pub fn process_code(&self) -> Result<Option<ProcessCode<'_>>, InvalidValue> {
7510 Ok(self.0.get_str(Tag(81))?.map(ProcessCode::from_value))
7511 }
7512
7513 #[doc(alias = "Symbol")]
7515 pub fn symbol(&self) -> Result<Option<&str>, InvalidValue> {
7516 self.0.get_str(Tag(55))
7517 }
7518
7519 #[doc(alias = "SymbolSfx")]
7521 pub fn symbol_sfx(&self) -> Result<Option<&str>, InvalidValue> {
7522 self.0.get_str(Tag(65))
7523 }
7524
7525 #[doc(alias = "SecurityID")]
7527 pub fn security_id(&self) -> Result<Option<&str>, InvalidValue> {
7528 self.0.get_str(Tag(48))
7529 }
7530
7531 #[doc(alias = "IDSource")]
7533 pub fn id_source(&self) -> Result<Option<IDSource<'_>>, InvalidValue> {
7534 Ok(self.0.get_str(Tag(22))?.map(IDSource::from_value))
7535 }
7536
7537 #[doc(alias = "SecurityType")]
7539 pub fn security_type(&self) -> Result<Option<SecurityType<'_>>, InvalidValue> {
7540 Ok(self.0.get_str(Tag(167))?.map(SecurityType::from_value))
7541 }
7542
7543 #[doc(alias = "MaturityMonthYear")]
7545 pub fn maturity_month_year(&self) -> Result<Option<MonthYear>, InvalidValue> {
7546 self.0.get_month_year(Tag(200))
7547 }
7548
7549 #[doc(alias = "MaturityDay")]
7551 pub fn maturity_day(&self) -> Result<Option<i64>, InvalidValue> {
7552 self.0.get_int(Tag(205))
7553 }
7554
7555 #[doc(alias = "PutOrCall")]
7557 pub fn put_or_call(&self) -> Result<Option<PutOrCall>, InvalidValue> {
7558 Ok(self.0.get_int(Tag(201))?.map(PutOrCall::from_value))
7559 }
7560
7561 #[doc(alias = "StrikePrice")]
7563 pub fn strike_price(&self) -> Result<Option<Decimal>, InvalidValue> {
7564 self.0.get_decimal(Tag(202))
7565 }
7566
7567 #[doc(alias = "OptAttribute")]
7569 pub fn opt_attribute(&self) -> Result<Option<&str>, InvalidValue> {
7570 self.0.get_str(Tag(206))
7571 }
7572
7573 #[doc(alias = "ContractMultiplier")]
7575 pub fn contract_multiplier(&self) -> Result<Option<Decimal>, InvalidValue> {
7576 self.0.get_decimal(Tag(231))
7577 }
7578
7579 #[doc(alias = "CouponRate")]
7581 pub fn coupon_rate(&self) -> Result<Option<Decimal>, InvalidValue> {
7582 self.0.get_decimal(Tag(223))
7583 }
7584
7585 #[doc(alias = "SecurityExchange")]
7587 pub fn security_exchange(&self) -> Result<Option<&str>, InvalidValue> {
7588 self.0.get_str(Tag(207))
7589 }
7590
7591 #[doc(alias = "Issuer")]
7593 pub fn issuer(&self) -> Result<Option<&str>, InvalidValue> {
7594 self.0.get_str(Tag(106))
7595 }
7596
7597 #[doc(alias = "EncodedIssuerLen")]
7599 pub fn encoded_issuer_len(&self) -> Result<Option<i64>, InvalidValue> {
7600 self.0.get_int(Tag(348))
7601 }
7602
7603 #[doc(alias = "EncodedIssuer")]
7605 pub fn encoded_issuer(&self) -> Option<&[u8]> {
7606 self.0.get(Tag(349))
7607 }
7608
7609 #[doc(alias = "SecurityDesc")]
7611 pub fn security_desc(&self) -> Result<Option<&str>, InvalidValue> {
7612 self.0.get_str(Tag(107))
7613 }
7614
7615 #[doc(alias = "EncodedSecurityDescLen")]
7617 pub fn encoded_security_desc_len(&self) -> Result<Option<i64>, InvalidValue> {
7618 self.0.get_int(Tag(350))
7619 }
7620
7621 #[doc(alias = "EncodedSecurityDesc")]
7623 pub fn encoded_security_desc(&self) -> Option<&[u8]> {
7624 self.0.get(Tag(351))
7625 }
7626
7627 #[doc(alias = "PrevClosePx")]
7629 pub fn prev_close_px(&self) -> Result<Option<Decimal>, InvalidValue> {
7630 self.0.get_decimal(Tag(140))
7631 }
7632
7633 #[doc(alias = "Side")]
7635 pub fn side(&self) -> Result<Option<Side<'_>>, InvalidValue> {
7636 Ok(self.0.get_str(Tag(54))?.map(Side::from_value))
7637 }
7638
7639 #[doc(alias = "LocateReqd")]
7641 pub fn locate_reqd(&self) -> Result<Option<bool>, InvalidValue> {
7642 self.0.get_bool(Tag(114))
7643 }
7644
7645 #[doc(alias = "TransactTime")]
7647 pub fn transact_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
7648 self.0.get_utc_timestamp(Tag(60))
7649 }
7650
7651 #[doc(alias = "OrderQty")]
7653 pub fn order_qty(&self) -> Result<Option<Decimal>, InvalidValue> {
7654 self.0.get_decimal(Tag(38))
7655 }
7656
7657 #[doc(alias = "CashOrderQty")]
7659 pub fn cash_order_qty(&self) -> Result<Option<Decimal>, InvalidValue> {
7660 self.0.get_decimal(Tag(152))
7661 }
7662
7663 #[doc(alias = "OrdType")]
7665 pub fn ord_type(&self) -> Result<Option<OrdType<'_>>, InvalidValue> {
7666 Ok(self.0.get_str(Tag(40))?.map(OrdType::from_value))
7667 }
7668
7669 #[doc(alias = "Price")]
7671 pub fn price(&self) -> Result<Option<Decimal>, InvalidValue> {
7672 self.0.get_decimal(Tag(44))
7673 }
7674
7675 #[doc(alias = "StopPx")]
7677 pub fn stop_px(&self) -> Result<Option<Decimal>, InvalidValue> {
7678 self.0.get_decimal(Tag(99))
7679 }
7680
7681 #[doc(alias = "Currency")]
7683 pub fn currency(&self) -> Result<Option<&str>, InvalidValue> {
7684 self.0.get_str(Tag(15))
7685 }
7686
7687 #[doc(alias = "ComplianceID")]
7689 pub fn compliance_id(&self) -> Result<Option<&str>, InvalidValue> {
7690 self.0.get_str(Tag(376))
7691 }
7692
7693 #[doc(alias = "SolicitedFlag")]
7695 pub fn solicited_flag(&self) -> Result<Option<bool>, InvalidValue> {
7696 self.0.get_bool(Tag(377))
7697 }
7698
7699 #[doc(alias = "IOIid")]
7701 pub fn io_iid(&self) -> Result<Option<&str>, InvalidValue> {
7702 self.0.get_str(Tag(23))
7703 }
7704
7705 #[doc(alias = "QuoteID")]
7707 pub fn quote_id(&self) -> Result<Option<&str>, InvalidValue> {
7708 self.0.get_str(Tag(117))
7709 }
7710
7711 #[doc(alias = "TimeInForce")]
7713 pub fn time_in_force(&self) -> Result<Option<TimeInForce<'_>>, InvalidValue> {
7714 Ok(self.0.get_str(Tag(59))?.map(TimeInForce::from_value))
7715 }
7716
7717 #[doc(alias = "EffectiveTime")]
7719 pub fn effective_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
7720 self.0.get_utc_timestamp(Tag(168))
7721 }
7722
7723 #[doc(alias = "ExpireDate")]
7725 pub fn expire_date(&self) -> Result<Option<Date>, InvalidValue> {
7726 self.0.get_date(Tag(432))
7727 }
7728
7729 #[doc(alias = "ExpireTime")]
7731 pub fn expire_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
7732 self.0.get_utc_timestamp(Tag(126))
7733 }
7734
7735 #[doc(alias = "GTBookingInst")]
7737 pub fn gt_booking_inst(&self) -> Result<Option<GTBookingInst>, InvalidValue> {
7738 Ok(self.0.get_int(Tag(427))?.map(GTBookingInst::from_value))
7739 }
7740
7741 #[doc(alias = "Commission")]
7743 pub fn commission(&self) -> Result<Option<Decimal>, InvalidValue> {
7744 self.0.get_decimal(Tag(12))
7745 }
7746
7747 #[doc(alias = "CommType")]
7749 pub fn comm_type(&self) -> Result<Option<CommType<'_>>, InvalidValue> {
7750 Ok(self.0.get_str(Tag(13))?.map(CommType::from_value))
7751 }
7752
7753 #[doc(alias = "Rule80A")]
7755 pub fn rule80_a(&self) -> Result<Option<Rule80A<'_>>, InvalidValue> {
7756 Ok(self.0.get_str(Tag(47))?.map(Rule80A::from_value))
7757 }
7758
7759 #[doc(alias = "ForexReq")]
7761 pub fn forex_req(&self) -> Result<Option<bool>, InvalidValue> {
7762 self.0.get_bool(Tag(121))
7763 }
7764
7765 #[doc(alias = "SettlCurrency")]
7767 pub fn settl_currency(&self) -> Result<Option<&str>, InvalidValue> {
7768 self.0.get_str(Tag(120))
7769 }
7770
7771 #[doc(alias = "Text")]
7773 pub fn text(&self) -> Result<Option<&str>, InvalidValue> {
7774 self.0.get_str(Tag(58))
7775 }
7776
7777 #[doc(alias = "EncodedTextLen")]
7779 pub fn encoded_text_len(&self) -> Result<Option<i64>, InvalidValue> {
7780 self.0.get_int(Tag(354))
7781 }
7782
7783 #[doc(alias = "EncodedText")]
7785 pub fn encoded_text(&self) -> Option<&[u8]> {
7786 self.0.get(Tag(355))
7787 }
7788
7789 #[doc(alias = "FutSettDate2")]
7791 pub fn fut_sett_date2(&self) -> Result<Option<Date>, InvalidValue> {
7792 self.0.get_date(Tag(193))
7793 }
7794
7795 #[doc(alias = "OrderQty2")]
7797 pub fn order_qty2(&self) -> Result<Option<Decimal>, InvalidValue> {
7798 self.0.get_decimal(Tag(192))
7799 }
7800
7801 #[doc(alias = "OpenClose")]
7803 pub fn open_close(&self) -> Result<Option<OpenClose<'_>>, InvalidValue> {
7804 Ok(self.0.get_str(Tag(77))?.map(OpenClose::from_value))
7805 }
7806
7807 #[doc(alias = "CoveredOrUncovered")]
7809 pub fn covered_or_uncovered(&self) -> Result<Option<CoveredOrUncovered>, InvalidValue> {
7810 Ok(self.0.get_int(Tag(203))?.map(CoveredOrUncovered::from_value))
7811 }
7812
7813 #[doc(alias = "CustomerOrFirm")]
7815 pub fn customer_or_firm(&self) -> Result<Option<CustomerOrFirm>, InvalidValue> {
7816 Ok(self.0.get_int(Tag(204))?.map(CustomerOrFirm::from_value))
7817 }
7818
7819 #[doc(alias = "MaxShow")]
7821 pub fn max_show(&self) -> Result<Option<Decimal>, InvalidValue> {
7822 self.0.get_decimal(Tag(210))
7823 }
7824
7825 #[doc(alias = "PegDifference")]
7827 pub fn peg_difference(&self) -> Result<Option<Decimal>, InvalidValue> {
7828 self.0.get_decimal(Tag(211))
7829 }
7830
7831 #[doc(alias = "DiscretionInst")]
7833 pub fn discretion_inst(&self) -> Result<Option<DiscretionInst<'_>>, InvalidValue> {
7834 Ok(self.0.get_str(Tag(388))?.map(DiscretionInst::from_value))
7835 }
7836
7837 #[doc(alias = "DiscretionOffset")]
7839 pub fn discretion_offset(&self) -> Result<Option<Decimal>, InvalidValue> {
7840 self.0.get_decimal(Tag(389))
7841 }
7842
7843 #[doc(alias = "ClearingFirm")]
7845 pub fn clearing_firm(&self) -> Result<Option<&str>, InvalidValue> {
7846 self.0.get_str(Tag(439))
7847 }
7848
7849 #[doc(alias = "ClearingAccount")]
7851 pub fn clearing_account(&self) -> Result<Option<&str>, InvalidValue> {
7852 self.0.get_str(Tag(440))
7853 }
7854}
7855
7856impl std::fmt::Debug for NewOrderSingle {
7857 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
7858 write!(f, "NewOrderSingle({})", self.0)
7859 }
7860}
7861
7862impl std::fmt::Display for NewOrderSingle {
7863 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
7864 std::fmt::Display::fmt(&self.0, f)
7865 }
7866}
7867
7868pub mod new_order_single {
7869 pub mod allocs {
7870 use super::super::*;
7871
7872 pub const TABLE: GroupTable<'static> = GroupTable::new(
7873 Tag(78),
7874 Tag(79),
7875 &[Tag(79), Tag(80)],
7876 &[],
7877 );
7878
7879 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[Tag(79), Tag(80)]);
7880
7881 #[derive(Clone, Copy, Debug)]
7882 pub struct Instance<'a>(refix_message::Scope<'a>);
7883
7884 impl<'a> From<refix_message::Scope<'a>> for Instance<'a> {
7885 fn from(scope: refix_message::Scope<'a>) -> Self {
7886 Self(scope)
7887 }
7888 }
7889
7890 impl<'a> Instance<'a> {
7891 pub fn raw(&self) -> refix_message::Scope<'a> {
7892 self.0
7893 }
7894
7895 #[doc(alias = "AllocAccount")]
7897 pub fn alloc_account(&self) -> Result<Option<&'a str>, InvalidValue> {
7898 self.0.get_str(Tag(79))
7899 }
7900
7901 #[doc(alias = "AllocShares")]
7903 pub fn alloc_shares(&self) -> Result<Option<Decimal>, InvalidValue> {
7904 self.0.get_decimal(Tag(80))
7905 }
7906 }
7907 }
7908
7909 pub mod trading_sessions {
7910 use super::super::*;
7911
7912 pub const TABLE: GroupTable<'static> = GroupTable::new(
7913 Tag(386),
7914 Tag(336),
7915 &[Tag(336)],
7916 &[],
7917 );
7918
7919 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[Tag(336)]);
7920
7921 #[derive(Clone, Copy, Debug)]
7922 pub struct Instance<'a>(refix_message::Scope<'a>);
7923
7924 impl<'a> From<refix_message::Scope<'a>> for Instance<'a> {
7925 fn from(scope: refix_message::Scope<'a>) -> Self {
7926 Self(scope)
7927 }
7928 }
7929
7930 impl<'a> Instance<'a> {
7931 pub fn raw(&self) -> refix_message::Scope<'a> {
7932 self.0
7933 }
7934
7935 #[doc(alias = "TradingSessionID")]
7937 pub fn trading_session_id(&self) -> Result<Option<&'a str>, InvalidValue> {
7938 self.0.get_str(Tag(336))
7939 }
7940 }
7941 }
7942}
7943
7944pub struct NewOrderList(RawMessage);
7946
7947impl NewOrderList {
7948 pub const MSG_TYPE: &[u8] = b"E";
7949
7950 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
7951 Tag(1), Tag(8), Tag(9), Tag(10), Tag(11), Tag(12), Tag(13), Tag(15), Tag(18), Tag(21),
7952 Tag(22), Tag(23), Tag(34), Tag(35), Tag(38), Tag(40), Tag(43), Tag(44), Tag(47), Tag(48),
7953 Tag(49), Tag(50), Tag(52), Tag(54), Tag(55), Tag(56), Tag(57), Tag(58), Tag(59), Tag(60),
7954 Tag(63), Tag(64), Tag(65), Tag(66), Tag(67), Tag(68), Tag(69), Tag(73), Tag(76), Tag(77),
7955 Tag(78), Tag(79), Tag(80), Tag(81), Tag(89), Tag(90), Tag(91), Tag(93), Tag(97), Tag(99),
7956 Tag(100), Tag(106), Tag(107), Tag(109), Tag(110), Tag(111), Tag(114), Tag(115), Tag(116),
7957 Tag(117), Tag(120), Tag(121), Tag(122), Tag(126), Tag(128), Tag(129), Tag(140), Tag(142),
7958 Tag(143), Tag(144), Tag(145), Tag(152), Tag(160), Tag(167), Tag(168), Tag(192), Tag(193),
7959 Tag(200), Tag(201), Tag(202), Tag(203), Tag(204), Tag(205), Tag(206), Tag(207), Tag(210),
7960 Tag(211), Tag(212), Tag(213), Tag(223), Tag(231), Tag(336), Tag(347), Tag(348), Tag(349),
7961 Tag(350), Tag(351), Tag(352), Tag(353), Tag(354), Tag(355), Tag(369), Tag(370), Tag(376),
7962 Tag(377), Tag(386), Tag(388), Tag(389), Tag(390), Tag(391), Tag(394), Tag(401), Tag(414),
7963 Tag(415), Tag(427), Tag(432), Tag(433), Tag(439), Tag(440),
7964 ]);
7965
7966 pub fn from_raw(raw: RawMessage) -> Self {
7967 Self(raw)
7968 }
7969
7970 pub fn raw(&self) -> &RawMessage {
7971 &self.0
7972 }
7973
7974 pub fn header(&self) -> Header<'_> {
7975 Header(self.0.scope())
7976 }
7977
7978 pub fn trailer(&self) -> Trailer<'_> {
7979 Trailer(self.0.scope())
7980 }
7981
7982 #[doc(alias = "ListID")]
7984 pub fn list_id(&self) -> Result<Option<&str>, InvalidValue> {
7985 self.0.get_str(Tag(66))
7986 }
7987
7988 #[doc(alias = "BidID")]
7990 pub fn bid_id(&self) -> Result<Option<&str>, InvalidValue> {
7991 self.0.get_str(Tag(390))
7992 }
7993
7994 #[doc(alias = "ClientBidID")]
7996 pub fn client_bid_id(&self) -> Result<Option<&str>, InvalidValue> {
7997 self.0.get_str(Tag(391))
7998 }
7999
8000 #[doc(alias = "ProgRptReqs")]
8002 pub fn prog_rpt_reqs(&self) -> Result<Option<ProgRptReqs>, InvalidValue> {
8003 Ok(self.0.get_int(Tag(414))?.map(ProgRptReqs::from_value))
8004 }
8005
8006 #[doc(alias = "BidType")]
8008 pub fn bid_type(&self) -> Result<Option<i64>, InvalidValue> {
8009 self.0.get_int(Tag(394))
8010 }
8011
8012 #[doc(alias = "ProgPeriodInterval")]
8014 pub fn prog_period_interval(&self) -> Result<Option<i64>, InvalidValue> {
8015 self.0.get_int(Tag(415))
8016 }
8017
8018 #[doc(alias = "ListExecInstType")]
8020 pub fn list_exec_inst_type(&self) -> Result<Option<ListExecInstType<'_>>, InvalidValue> {
8021 Ok(self.0.get_str(Tag(433))?.map(ListExecInstType::from_value))
8022 }
8023
8024 #[doc(alias = "ListExecInst")]
8026 pub fn list_exec_inst(&self) -> Result<Option<&str>, InvalidValue> {
8027 self.0.get_str(Tag(69))
8028 }
8029
8030 #[doc(alias = "EncodedListExecInstLen")]
8032 pub fn encoded_list_exec_inst_len(&self) -> Result<Option<i64>, InvalidValue> {
8033 self.0.get_int(Tag(352))
8034 }
8035
8036 #[doc(alias = "EncodedListExecInst")]
8038 pub fn encoded_list_exec_inst(&self) -> Option<&[u8]> {
8039 self.0.get(Tag(353))
8040 }
8041
8042 #[doc(alias = "TotNoOrders")]
8044 pub fn tot_no_orders(&self) -> Result<Option<i64>, InvalidValue> {
8045 self.0.get_int(Tag(68))
8046 }
8047
8048 #[doc(alias = "NoOrders")]
8050 pub fn orders(&self) -> Result<Instances<'_, new_order_list::orders::Instance<'_>>, InvalidValue> {
8051 self.0.get_group(&new_order_list::orders::TABLE, &Self::KNOWN_TAGS).map(Instances::from)
8052 }
8053}
8054
8055impl std::fmt::Debug for NewOrderList {
8056 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
8057 write!(f, "NewOrderList({})", self.0)
8058 }
8059}
8060
8061impl std::fmt::Display for NewOrderList {
8062 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
8063 std::fmt::Display::fmt(&self.0, f)
8064 }
8065}
8066
8067pub mod new_order_list {
8068 pub mod orders {
8069 use super::super::*;
8070
8071 pub const TABLE: GroupTable<'static> = GroupTable::new(
8072 Tag(73),
8073 Tag(11),
8074 &[
8075 Tag(1), Tag(11), Tag(12), Tag(13), Tag(15), Tag(18), Tag(21), Tag(22), Tag(23),
8076 Tag(38), Tag(40), Tag(44), Tag(47), Tag(48), Tag(54), Tag(55), Tag(58), Tag(59),
8077 Tag(60), Tag(63), Tag(64), Tag(65), Tag(67), Tag(76), Tag(77), Tag(78), Tag(81),
8078 Tag(99), Tag(100), Tag(106), Tag(107), Tag(109), Tag(110), Tag(111), Tag(114),
8079 Tag(117), Tag(120), Tag(121), Tag(126), Tag(140), Tag(152), Tag(160), Tag(167),
8080 Tag(168), Tag(192), Tag(193), Tag(200), Tag(201), Tag(202), Tag(203), Tag(204),
8081 Tag(205), Tag(206), Tag(207), Tag(210), Tag(211), Tag(223), Tag(231), Tag(348),
8082 Tag(349), Tag(350), Tag(351), Tag(354), Tag(355), Tag(376), Tag(377), Tag(386),
8083 Tag(388), Tag(389), Tag(401), Tag(427), Tag(432), Tag(439), Tag(440),
8084 ],
8085 &[
8086 new_order_list::orders::allocs::TABLE,
8087 new_order_list::orders::trading_sessions::TABLE,
8088 ],
8089 );
8090
8091 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
8092 Tag(1), Tag(11), Tag(12), Tag(13), Tag(15), Tag(18), Tag(21), Tag(22), Tag(23), Tag(38),
8093 Tag(40), Tag(44), Tag(47), Tag(48), Tag(54), Tag(55), Tag(58), Tag(59), Tag(60),
8094 Tag(63), Tag(64), Tag(65), Tag(67), Tag(76), Tag(77), Tag(78), Tag(79), Tag(80),
8095 Tag(81), Tag(99), Tag(100), Tag(106), Tag(107), Tag(109), Tag(110), Tag(111), Tag(114),
8096 Tag(117), Tag(120), Tag(121), Tag(126), Tag(140), Tag(152), Tag(160), Tag(167),
8097 Tag(168), Tag(192), Tag(193), Tag(200), Tag(201), Tag(202), Tag(203), Tag(204),
8098 Tag(205), Tag(206), Tag(207), Tag(210), Tag(211), Tag(223), Tag(231), Tag(336),
8099 Tag(348), Tag(349), Tag(350), Tag(351), Tag(354), Tag(355), Tag(376), Tag(377),
8100 Tag(386), Tag(388), Tag(389), Tag(401), Tag(427), Tag(432), Tag(439), Tag(440),
8101 ]);
8102
8103 #[derive(Clone, Copy, Debug)]
8104 pub struct Instance<'a>(refix_message::Scope<'a>);
8105
8106 impl<'a> From<refix_message::Scope<'a>> for Instance<'a> {
8107 fn from(scope: refix_message::Scope<'a>) -> Self {
8108 Self(scope)
8109 }
8110 }
8111
8112 impl<'a> Instance<'a> {
8113 pub fn raw(&self) -> refix_message::Scope<'a> {
8114 self.0
8115 }
8116
8117 #[doc(alias = "ClOrdID")]
8119 pub fn cl_ord_id(&self) -> Result<Option<&'a str>, InvalidValue> {
8120 self.0.get_str(Tag(11))
8121 }
8122
8123 #[doc(alias = "ListSeqNo")]
8125 pub fn list_seq_no(&self) -> Result<Option<i64>, InvalidValue> {
8126 self.0.get_int(Tag(67))
8127 }
8128
8129 #[doc(alias = "SettlInstMode")]
8131 pub fn settl_inst_mode(&self) -> Result<Option<SettlInstMode<'a>>, InvalidValue> {
8132 Ok(self.0.get_str(Tag(160))?.map(SettlInstMode::from_value))
8133 }
8134
8135 #[doc(alias = "ClientID")]
8137 pub fn client_id(&self) -> Result<Option<&'a str>, InvalidValue> {
8138 self.0.get_str(Tag(109))
8139 }
8140
8141 #[doc(alias = "ExecBroker")]
8143 pub fn exec_broker(&self) -> Result<Option<&'a str>, InvalidValue> {
8144 self.0.get_str(Tag(76))
8145 }
8146
8147 #[doc(alias = "Account")]
8149 pub fn account(&self) -> Result<Option<&'a str>, InvalidValue> {
8150 self.0.get_str(Tag(1))
8151 }
8152
8153 #[doc(alias = "NoAllocs")]
8155 pub fn allocs(&self) -> Result<Instances<'a, new_order_list::orders::allocs::Instance<'a>>, InvalidValue> {
8156 self.0.get_group(&new_order_list::orders::allocs::TABLE, &KNOWN_TAGS).map(Instances::from)
8157 }
8158
8159 #[doc(alias = "SettlmntTyp")]
8161 pub fn settlmnt_typ(&self) -> Result<Option<SettlmntTyp<'a>>, InvalidValue> {
8162 Ok(self.0.get_str(Tag(63))?.map(SettlmntTyp::from_value))
8163 }
8164
8165 #[doc(alias = "FutSettDate")]
8167 pub fn fut_sett_date(&self) -> Result<Option<Date>, InvalidValue> {
8168 self.0.get_date(Tag(64))
8169 }
8170
8171 #[doc(alias = "HandlInst")]
8173 pub fn handl_inst(&self) -> Result<Option<HandlInst<'a>>, InvalidValue> {
8174 Ok(self.0.get_str(Tag(21))?.map(HandlInst::from_value))
8175 }
8176
8177 #[doc(alias = "ExecInst")]
8179 pub fn exec_inst(&self) -> Result<Option<MultipleValues<'a, ExecInst<'a>>>, InvalidValue> {
8180 self.0.get_multiple_values(Tag(18))
8181 }
8182
8183 #[doc(alias = "MinQty")]
8185 pub fn min_qty(&self) -> Result<Option<Decimal>, InvalidValue> {
8186 self.0.get_decimal(Tag(110))
8187 }
8188
8189 #[doc(alias = "MaxFloor")]
8191 pub fn max_floor(&self) -> Result<Option<Decimal>, InvalidValue> {
8192 self.0.get_decimal(Tag(111))
8193 }
8194
8195 #[doc(alias = "ExDestination")]
8197 pub fn ex_destination(&self) -> Result<Option<&'a str>, InvalidValue> {
8198 self.0.get_str(Tag(100))
8199 }
8200
8201 #[doc(alias = "NoTradingSessions")]
8203 pub fn trading_sessions(&self) -> Result<Instances<'a, new_order_list::orders::trading_sessions::Instance<'a>>, InvalidValue> {
8204 self.0.get_group(&new_order_list::orders::trading_sessions::TABLE, &KNOWN_TAGS).map(Instances::from)
8205 }
8206
8207 #[doc(alias = "ProcessCode")]
8209 pub fn process_code(&self) -> Result<Option<ProcessCode<'a>>, InvalidValue> {
8210 Ok(self.0.get_str(Tag(81))?.map(ProcessCode::from_value))
8211 }
8212
8213 #[doc(alias = "Symbol")]
8215 pub fn symbol(&self) -> Result<Option<&'a str>, InvalidValue> {
8216 self.0.get_str(Tag(55))
8217 }
8218
8219 #[doc(alias = "SymbolSfx")]
8221 pub fn symbol_sfx(&self) -> Result<Option<&'a str>, InvalidValue> {
8222 self.0.get_str(Tag(65))
8223 }
8224
8225 #[doc(alias = "SecurityID")]
8227 pub fn security_id(&self) -> Result<Option<&'a str>, InvalidValue> {
8228 self.0.get_str(Tag(48))
8229 }
8230
8231 #[doc(alias = "IDSource")]
8233 pub fn id_source(&self) -> Result<Option<IDSource<'a>>, InvalidValue> {
8234 Ok(self.0.get_str(Tag(22))?.map(IDSource::from_value))
8235 }
8236
8237 #[doc(alias = "SecurityType")]
8239 pub fn security_type(&self) -> Result<Option<SecurityType<'a>>, InvalidValue> {
8240 Ok(self.0.get_str(Tag(167))?.map(SecurityType::from_value))
8241 }
8242
8243 #[doc(alias = "MaturityMonthYear")]
8245 pub fn maturity_month_year(&self) -> Result<Option<MonthYear>, InvalidValue> {
8246 self.0.get_month_year(Tag(200))
8247 }
8248
8249 #[doc(alias = "MaturityDay")]
8251 pub fn maturity_day(&self) -> Result<Option<i64>, InvalidValue> {
8252 self.0.get_int(Tag(205))
8253 }
8254
8255 #[doc(alias = "PutOrCall")]
8257 pub fn put_or_call(&self) -> Result<Option<PutOrCall>, InvalidValue> {
8258 Ok(self.0.get_int(Tag(201))?.map(PutOrCall::from_value))
8259 }
8260
8261 #[doc(alias = "StrikePrice")]
8263 pub fn strike_price(&self) -> Result<Option<Decimal>, InvalidValue> {
8264 self.0.get_decimal(Tag(202))
8265 }
8266
8267 #[doc(alias = "OptAttribute")]
8269 pub fn opt_attribute(&self) -> Result<Option<&'a str>, InvalidValue> {
8270 self.0.get_str(Tag(206))
8271 }
8272
8273 #[doc(alias = "ContractMultiplier")]
8275 pub fn contract_multiplier(&self) -> Result<Option<Decimal>, InvalidValue> {
8276 self.0.get_decimal(Tag(231))
8277 }
8278
8279 #[doc(alias = "CouponRate")]
8281 pub fn coupon_rate(&self) -> Result<Option<Decimal>, InvalidValue> {
8282 self.0.get_decimal(Tag(223))
8283 }
8284
8285 #[doc(alias = "SecurityExchange")]
8287 pub fn security_exchange(&self) -> Result<Option<&'a str>, InvalidValue> {
8288 self.0.get_str(Tag(207))
8289 }
8290
8291 #[doc(alias = "Issuer")]
8293 pub fn issuer(&self) -> Result<Option<&'a str>, InvalidValue> {
8294 self.0.get_str(Tag(106))
8295 }
8296
8297 #[doc(alias = "EncodedIssuerLen")]
8299 pub fn encoded_issuer_len(&self) -> Result<Option<i64>, InvalidValue> {
8300 self.0.get_int(Tag(348))
8301 }
8302
8303 #[doc(alias = "EncodedIssuer")]
8305 pub fn encoded_issuer(&self) -> Option<&'a [u8]> {
8306 self.0.get(Tag(349))
8307 }
8308
8309 #[doc(alias = "SecurityDesc")]
8311 pub fn security_desc(&self) -> Result<Option<&'a str>, InvalidValue> {
8312 self.0.get_str(Tag(107))
8313 }
8314
8315 #[doc(alias = "EncodedSecurityDescLen")]
8317 pub fn encoded_security_desc_len(&self) -> Result<Option<i64>, InvalidValue> {
8318 self.0.get_int(Tag(350))
8319 }
8320
8321 #[doc(alias = "EncodedSecurityDesc")]
8323 pub fn encoded_security_desc(&self) -> Option<&'a [u8]> {
8324 self.0.get(Tag(351))
8325 }
8326
8327 #[doc(alias = "PrevClosePx")]
8329 pub fn prev_close_px(&self) -> Result<Option<Decimal>, InvalidValue> {
8330 self.0.get_decimal(Tag(140))
8331 }
8332
8333 #[doc(alias = "Side")]
8335 pub fn side(&self) -> Result<Option<Side<'a>>, InvalidValue> {
8336 Ok(self.0.get_str(Tag(54))?.map(Side::from_value))
8337 }
8338
8339 #[doc(alias = "SideValueInd")]
8341 pub fn side_value_ind(&self) -> Result<Option<i64>, InvalidValue> {
8342 self.0.get_int(Tag(401))
8343 }
8344
8345 #[doc(alias = "LocateReqd")]
8347 pub fn locate_reqd(&self) -> Result<Option<bool>, InvalidValue> {
8348 self.0.get_bool(Tag(114))
8349 }
8350
8351 #[doc(alias = "TransactTime")]
8353 pub fn transact_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
8354 self.0.get_utc_timestamp(Tag(60))
8355 }
8356
8357 #[doc(alias = "OrderQty")]
8359 pub fn order_qty(&self) -> Result<Option<Decimal>, InvalidValue> {
8360 self.0.get_decimal(Tag(38))
8361 }
8362
8363 #[doc(alias = "CashOrderQty")]
8365 pub fn cash_order_qty(&self) -> Result<Option<Decimal>, InvalidValue> {
8366 self.0.get_decimal(Tag(152))
8367 }
8368
8369 #[doc(alias = "OrdType")]
8371 pub fn ord_type(&self) -> Result<Option<OrdType<'a>>, InvalidValue> {
8372 Ok(self.0.get_str(Tag(40))?.map(OrdType::from_value))
8373 }
8374
8375 #[doc(alias = "Price")]
8377 pub fn price(&self) -> Result<Option<Decimal>, InvalidValue> {
8378 self.0.get_decimal(Tag(44))
8379 }
8380
8381 #[doc(alias = "StopPx")]
8383 pub fn stop_px(&self) -> Result<Option<Decimal>, InvalidValue> {
8384 self.0.get_decimal(Tag(99))
8385 }
8386
8387 #[doc(alias = "Currency")]
8389 pub fn currency(&self) -> Result<Option<&'a str>, InvalidValue> {
8390 self.0.get_str(Tag(15))
8391 }
8392
8393 #[doc(alias = "ComplianceID")]
8395 pub fn compliance_id(&self) -> Result<Option<&'a str>, InvalidValue> {
8396 self.0.get_str(Tag(376))
8397 }
8398
8399 #[doc(alias = "SolicitedFlag")]
8401 pub fn solicited_flag(&self) -> Result<Option<bool>, InvalidValue> {
8402 self.0.get_bool(Tag(377))
8403 }
8404
8405 #[doc(alias = "IOIid")]
8407 pub fn io_iid(&self) -> Result<Option<&'a str>, InvalidValue> {
8408 self.0.get_str(Tag(23))
8409 }
8410
8411 #[doc(alias = "QuoteID")]
8413 pub fn quote_id(&self) -> Result<Option<&'a str>, InvalidValue> {
8414 self.0.get_str(Tag(117))
8415 }
8416
8417 #[doc(alias = "TimeInForce")]
8419 pub fn time_in_force(&self) -> Result<Option<TimeInForce<'a>>, InvalidValue> {
8420 Ok(self.0.get_str(Tag(59))?.map(TimeInForce::from_value))
8421 }
8422
8423 #[doc(alias = "EffectiveTime")]
8425 pub fn effective_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
8426 self.0.get_utc_timestamp(Tag(168))
8427 }
8428
8429 #[doc(alias = "ExpireDate")]
8431 pub fn expire_date(&self) -> Result<Option<Date>, InvalidValue> {
8432 self.0.get_date(Tag(432))
8433 }
8434
8435 #[doc(alias = "ExpireTime")]
8437 pub fn expire_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
8438 self.0.get_utc_timestamp(Tag(126))
8439 }
8440
8441 #[doc(alias = "GTBookingInst")]
8443 pub fn gt_booking_inst(&self) -> Result<Option<GTBookingInst>, InvalidValue> {
8444 Ok(self.0.get_int(Tag(427))?.map(GTBookingInst::from_value))
8445 }
8446
8447 #[doc(alias = "Commission")]
8449 pub fn commission(&self) -> Result<Option<Decimal>, InvalidValue> {
8450 self.0.get_decimal(Tag(12))
8451 }
8452
8453 #[doc(alias = "CommType")]
8455 pub fn comm_type(&self) -> Result<Option<CommType<'a>>, InvalidValue> {
8456 Ok(self.0.get_str(Tag(13))?.map(CommType::from_value))
8457 }
8458
8459 #[doc(alias = "Rule80A")]
8461 pub fn rule80_a(&self) -> Result<Option<Rule80A<'a>>, InvalidValue> {
8462 Ok(self.0.get_str(Tag(47))?.map(Rule80A::from_value))
8463 }
8464
8465 #[doc(alias = "ForexReq")]
8467 pub fn forex_req(&self) -> Result<Option<bool>, InvalidValue> {
8468 self.0.get_bool(Tag(121))
8469 }
8470
8471 #[doc(alias = "SettlCurrency")]
8473 pub fn settl_currency(&self) -> Result<Option<&'a str>, InvalidValue> {
8474 self.0.get_str(Tag(120))
8475 }
8476
8477 #[doc(alias = "Text")]
8479 pub fn text(&self) -> Result<Option<&'a str>, InvalidValue> {
8480 self.0.get_str(Tag(58))
8481 }
8482
8483 #[doc(alias = "EncodedTextLen")]
8485 pub fn encoded_text_len(&self) -> Result<Option<i64>, InvalidValue> {
8486 self.0.get_int(Tag(354))
8487 }
8488
8489 #[doc(alias = "EncodedText")]
8491 pub fn encoded_text(&self) -> Option<&'a [u8]> {
8492 self.0.get(Tag(355))
8493 }
8494
8495 #[doc(alias = "FutSettDate2")]
8497 pub fn fut_sett_date2(&self) -> Result<Option<Date>, InvalidValue> {
8498 self.0.get_date(Tag(193))
8499 }
8500
8501 #[doc(alias = "OrderQty2")]
8503 pub fn order_qty2(&self) -> Result<Option<Decimal>, InvalidValue> {
8504 self.0.get_decimal(Tag(192))
8505 }
8506
8507 #[doc(alias = "OpenClose")]
8509 pub fn open_close(&self) -> Result<Option<OpenClose<'a>>, InvalidValue> {
8510 Ok(self.0.get_str(Tag(77))?.map(OpenClose::from_value))
8511 }
8512
8513 #[doc(alias = "CoveredOrUncovered")]
8515 pub fn covered_or_uncovered(&self) -> Result<Option<CoveredOrUncovered>, InvalidValue> {
8516 Ok(self.0.get_int(Tag(203))?.map(CoveredOrUncovered::from_value))
8517 }
8518
8519 #[doc(alias = "CustomerOrFirm")]
8521 pub fn customer_or_firm(&self) -> Result<Option<CustomerOrFirm>, InvalidValue> {
8522 Ok(self.0.get_int(Tag(204))?.map(CustomerOrFirm::from_value))
8523 }
8524
8525 #[doc(alias = "MaxShow")]
8527 pub fn max_show(&self) -> Result<Option<Decimal>, InvalidValue> {
8528 self.0.get_decimal(Tag(210))
8529 }
8530
8531 #[doc(alias = "PegDifference")]
8533 pub fn peg_difference(&self) -> Result<Option<Decimal>, InvalidValue> {
8534 self.0.get_decimal(Tag(211))
8535 }
8536
8537 #[doc(alias = "DiscretionInst")]
8539 pub fn discretion_inst(&self) -> Result<Option<DiscretionInst<'a>>, InvalidValue> {
8540 Ok(self.0.get_str(Tag(388))?.map(DiscretionInst::from_value))
8541 }
8542
8543 #[doc(alias = "DiscretionOffset")]
8545 pub fn discretion_offset(&self) -> Result<Option<Decimal>, InvalidValue> {
8546 self.0.get_decimal(Tag(389))
8547 }
8548
8549 #[doc(alias = "ClearingFirm")]
8551 pub fn clearing_firm(&self) -> Result<Option<&'a str>, InvalidValue> {
8552 self.0.get_str(Tag(439))
8553 }
8554
8555 #[doc(alias = "ClearingAccount")]
8557 pub fn clearing_account(&self) -> Result<Option<&'a str>, InvalidValue> {
8558 self.0.get_str(Tag(440))
8559 }
8560 }
8561
8562 pub mod allocs {
8563 use super::super::super::*;
8564
8565 pub const TABLE: GroupTable<'static> = GroupTable::new(
8566 Tag(78),
8567 Tag(79),
8568 &[Tag(79), Tag(80)],
8569 &[],
8570 );
8571
8572 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[Tag(79), Tag(80)]);
8573
8574 #[derive(Clone, Copy, Debug)]
8575 pub struct Instance<'a>(refix_message::Scope<'a>);
8576
8577 impl<'a> From<refix_message::Scope<'a>> for Instance<'a> {
8578 fn from(scope: refix_message::Scope<'a>) -> Self {
8579 Self(scope)
8580 }
8581 }
8582
8583 impl<'a> Instance<'a> {
8584 pub fn raw(&self) -> refix_message::Scope<'a> {
8585 self.0
8586 }
8587
8588 #[doc(alias = "AllocAccount")]
8590 pub fn alloc_account(&self) -> Result<Option<&'a str>, InvalidValue> {
8591 self.0.get_str(Tag(79))
8592 }
8593
8594 #[doc(alias = "AllocShares")]
8596 pub fn alloc_shares(&self) -> Result<Option<Decimal>, InvalidValue> {
8597 self.0.get_decimal(Tag(80))
8598 }
8599 }
8600 }
8601
8602 pub mod trading_sessions {
8603 use super::super::super::*;
8604
8605 pub const TABLE: GroupTable<'static> = GroupTable::new(
8606 Tag(386),
8607 Tag(336),
8608 &[Tag(336)],
8609 &[],
8610 );
8611
8612 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[Tag(336)]);
8613
8614 #[derive(Clone, Copy, Debug)]
8615 pub struct Instance<'a>(refix_message::Scope<'a>);
8616
8617 impl<'a> From<refix_message::Scope<'a>> for Instance<'a> {
8618 fn from(scope: refix_message::Scope<'a>) -> Self {
8619 Self(scope)
8620 }
8621 }
8622
8623 impl<'a> Instance<'a> {
8624 pub fn raw(&self) -> refix_message::Scope<'a> {
8625 self.0
8626 }
8627
8628 #[doc(alias = "TradingSessionID")]
8630 pub fn trading_session_id(&self) -> Result<Option<&'a str>, InvalidValue> {
8631 self.0.get_str(Tag(336))
8632 }
8633 }
8634 }
8635 }
8636}
8637
8638pub struct OrderCancelRequest(RawMessage);
8640
8641impl OrderCancelRequest {
8642 pub const MSG_TYPE: &[u8] = b"F";
8643
8644 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
8645 Tag(1), Tag(8), Tag(9), Tag(10), Tag(11), Tag(22), Tag(34), Tag(35), Tag(37), Tag(38),
8646 Tag(41), Tag(43), Tag(48), Tag(49), Tag(50), Tag(52), Tag(54), Tag(55), Tag(56), Tag(57),
8647 Tag(58), Tag(60), Tag(65), Tag(66), Tag(76), Tag(89), Tag(90), Tag(91), Tag(93), Tag(97),
8648 Tag(106), Tag(107), Tag(109), Tag(115), Tag(116), Tag(122), Tag(128), Tag(129), Tag(142),
8649 Tag(143), Tag(144), Tag(145), Tag(152), Tag(167), Tag(200), Tag(201), Tag(202), Tag(205),
8650 Tag(206), Tag(207), Tag(212), Tag(213), Tag(223), Tag(231), Tag(347), Tag(348), Tag(349),
8651 Tag(350), Tag(351), Tag(354), Tag(355), Tag(369), Tag(370), Tag(376), Tag(377),
8652 ]);
8653
8654 pub fn from_raw(raw: RawMessage) -> Self {
8655 Self(raw)
8656 }
8657
8658 pub fn raw(&self) -> &RawMessage {
8659 &self.0
8660 }
8661
8662 pub fn header(&self) -> Header<'_> {
8663 Header(self.0.scope())
8664 }
8665
8666 pub fn trailer(&self) -> Trailer<'_> {
8667 Trailer(self.0.scope())
8668 }
8669
8670 #[doc(alias = "OrigClOrdID")]
8672 pub fn orig_cl_ord_id(&self) -> Result<Option<&str>, InvalidValue> {
8673 self.0.get_str(Tag(41))
8674 }
8675
8676 #[doc(alias = "OrderID")]
8678 pub fn order_id(&self) -> Result<Option<&str>, InvalidValue> {
8679 self.0.get_str(Tag(37))
8680 }
8681
8682 #[doc(alias = "ClOrdID")]
8684 pub fn cl_ord_id(&self) -> Result<Option<&str>, InvalidValue> {
8685 self.0.get_str(Tag(11))
8686 }
8687
8688 #[doc(alias = "ListID")]
8690 pub fn list_id(&self) -> Result<Option<&str>, InvalidValue> {
8691 self.0.get_str(Tag(66))
8692 }
8693
8694 #[doc(alias = "Account")]
8696 pub fn account(&self) -> Result<Option<&str>, InvalidValue> {
8697 self.0.get_str(Tag(1))
8698 }
8699
8700 #[doc(alias = "ClientID")]
8702 pub fn client_id(&self) -> Result<Option<&str>, InvalidValue> {
8703 self.0.get_str(Tag(109))
8704 }
8705
8706 #[doc(alias = "ExecBroker")]
8708 pub fn exec_broker(&self) -> Result<Option<&str>, InvalidValue> {
8709 self.0.get_str(Tag(76))
8710 }
8711
8712 #[doc(alias = "Symbol")]
8714 pub fn symbol(&self) -> Result<Option<&str>, InvalidValue> {
8715 self.0.get_str(Tag(55))
8716 }
8717
8718 #[doc(alias = "SymbolSfx")]
8720 pub fn symbol_sfx(&self) -> Result<Option<&str>, InvalidValue> {
8721 self.0.get_str(Tag(65))
8722 }
8723
8724 #[doc(alias = "SecurityID")]
8726 pub fn security_id(&self) -> Result<Option<&str>, InvalidValue> {
8727 self.0.get_str(Tag(48))
8728 }
8729
8730 #[doc(alias = "IDSource")]
8732 pub fn id_source(&self) -> Result<Option<IDSource<'_>>, InvalidValue> {
8733 Ok(self.0.get_str(Tag(22))?.map(IDSource::from_value))
8734 }
8735
8736 #[doc(alias = "SecurityType")]
8738 pub fn security_type(&self) -> Result<Option<SecurityType<'_>>, InvalidValue> {
8739 Ok(self.0.get_str(Tag(167))?.map(SecurityType::from_value))
8740 }
8741
8742 #[doc(alias = "MaturityMonthYear")]
8744 pub fn maturity_month_year(&self) -> Result<Option<MonthYear>, InvalidValue> {
8745 self.0.get_month_year(Tag(200))
8746 }
8747
8748 #[doc(alias = "MaturityDay")]
8750 pub fn maturity_day(&self) -> Result<Option<i64>, InvalidValue> {
8751 self.0.get_int(Tag(205))
8752 }
8753
8754 #[doc(alias = "PutOrCall")]
8756 pub fn put_or_call(&self) -> Result<Option<PutOrCall>, InvalidValue> {
8757 Ok(self.0.get_int(Tag(201))?.map(PutOrCall::from_value))
8758 }
8759
8760 #[doc(alias = "StrikePrice")]
8762 pub fn strike_price(&self) -> Result<Option<Decimal>, InvalidValue> {
8763 self.0.get_decimal(Tag(202))
8764 }
8765
8766 #[doc(alias = "OptAttribute")]
8768 pub fn opt_attribute(&self) -> Result<Option<&str>, InvalidValue> {
8769 self.0.get_str(Tag(206))
8770 }
8771
8772 #[doc(alias = "ContractMultiplier")]
8774 pub fn contract_multiplier(&self) -> Result<Option<Decimal>, InvalidValue> {
8775 self.0.get_decimal(Tag(231))
8776 }
8777
8778 #[doc(alias = "CouponRate")]
8780 pub fn coupon_rate(&self) -> Result<Option<Decimal>, InvalidValue> {
8781 self.0.get_decimal(Tag(223))
8782 }
8783
8784 #[doc(alias = "SecurityExchange")]
8786 pub fn security_exchange(&self) -> Result<Option<&str>, InvalidValue> {
8787 self.0.get_str(Tag(207))
8788 }
8789
8790 #[doc(alias = "Issuer")]
8792 pub fn issuer(&self) -> Result<Option<&str>, InvalidValue> {
8793 self.0.get_str(Tag(106))
8794 }
8795
8796 #[doc(alias = "EncodedIssuerLen")]
8798 pub fn encoded_issuer_len(&self) -> Result<Option<i64>, InvalidValue> {
8799 self.0.get_int(Tag(348))
8800 }
8801
8802 #[doc(alias = "EncodedIssuer")]
8804 pub fn encoded_issuer(&self) -> Option<&[u8]> {
8805 self.0.get(Tag(349))
8806 }
8807
8808 #[doc(alias = "SecurityDesc")]
8810 pub fn security_desc(&self) -> Result<Option<&str>, InvalidValue> {
8811 self.0.get_str(Tag(107))
8812 }
8813
8814 #[doc(alias = "EncodedSecurityDescLen")]
8816 pub fn encoded_security_desc_len(&self) -> Result<Option<i64>, InvalidValue> {
8817 self.0.get_int(Tag(350))
8818 }
8819
8820 #[doc(alias = "EncodedSecurityDesc")]
8822 pub fn encoded_security_desc(&self) -> Option<&[u8]> {
8823 self.0.get(Tag(351))
8824 }
8825
8826 #[doc(alias = "Side")]
8828 pub fn side(&self) -> Result<Option<Side<'_>>, InvalidValue> {
8829 Ok(self.0.get_str(Tag(54))?.map(Side::from_value))
8830 }
8831
8832 #[doc(alias = "TransactTime")]
8834 pub fn transact_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
8835 self.0.get_utc_timestamp(Tag(60))
8836 }
8837
8838 #[doc(alias = "OrderQty")]
8840 pub fn order_qty(&self) -> Result<Option<Decimal>, InvalidValue> {
8841 self.0.get_decimal(Tag(38))
8842 }
8843
8844 #[doc(alias = "CashOrderQty")]
8846 pub fn cash_order_qty(&self) -> Result<Option<Decimal>, InvalidValue> {
8847 self.0.get_decimal(Tag(152))
8848 }
8849
8850 #[doc(alias = "ComplianceID")]
8852 pub fn compliance_id(&self) -> Result<Option<&str>, InvalidValue> {
8853 self.0.get_str(Tag(376))
8854 }
8855
8856 #[doc(alias = "SolicitedFlag")]
8858 pub fn solicited_flag(&self) -> Result<Option<bool>, InvalidValue> {
8859 self.0.get_bool(Tag(377))
8860 }
8861
8862 #[doc(alias = "Text")]
8864 pub fn text(&self) -> Result<Option<&str>, InvalidValue> {
8865 self.0.get_str(Tag(58))
8866 }
8867
8868 #[doc(alias = "EncodedTextLen")]
8870 pub fn encoded_text_len(&self) -> Result<Option<i64>, InvalidValue> {
8871 self.0.get_int(Tag(354))
8872 }
8873
8874 #[doc(alias = "EncodedText")]
8876 pub fn encoded_text(&self) -> Option<&[u8]> {
8877 self.0.get(Tag(355))
8878 }
8879}
8880
8881impl std::fmt::Debug for OrderCancelRequest {
8882 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
8883 write!(f, "OrderCancelRequest({})", self.0)
8884 }
8885}
8886
8887impl std::fmt::Display for OrderCancelRequest {
8888 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
8889 std::fmt::Display::fmt(&self.0, f)
8890 }
8891}
8892
8893pub struct OrderCancelReplaceRequest(RawMessage);
8895
8896impl OrderCancelReplaceRequest {
8897 pub const MSG_TYPE: &[u8] = b"G";
8898
8899 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
8900 Tag(1), Tag(8), Tag(9), Tag(10), Tag(11), Tag(12), Tag(13), Tag(15), Tag(18), Tag(21),
8901 Tag(22), Tag(34), Tag(35), Tag(37), Tag(38), Tag(40), Tag(41), Tag(43), Tag(44), Tag(47),
8902 Tag(48), Tag(49), Tag(50), Tag(52), Tag(54), Tag(55), Tag(56), Tag(57), Tag(58), Tag(59),
8903 Tag(60), Tag(63), Tag(64), Tag(65), Tag(66), Tag(76), Tag(77), Tag(78), Tag(79), Tag(80),
8904 Tag(89), Tag(90), Tag(91), Tag(93), Tag(97), Tag(99), Tag(100), Tag(106), Tag(107),
8905 Tag(109), Tag(110), Tag(111), Tag(114), Tag(115), Tag(116), Tag(120), Tag(121), Tag(122),
8906 Tag(126), Tag(128), Tag(129), Tag(142), Tag(143), Tag(144), Tag(145), Tag(152), Tag(167),
8907 Tag(168), Tag(192), Tag(193), Tag(200), Tag(201), Tag(202), Tag(203), Tag(204), Tag(205),
8908 Tag(206), Tag(207), Tag(210), Tag(211), Tag(212), Tag(213), Tag(223), Tag(231), Tag(336),
8909 Tag(347), Tag(348), Tag(349), Tag(350), Tag(351), Tag(354), Tag(355), Tag(369), Tag(370),
8910 Tag(376), Tag(377), Tag(386), Tag(388), Tag(389), Tag(427), Tag(432), Tag(439), Tag(440),
8911 ]);
8912
8913 pub fn from_raw(raw: RawMessage) -> Self {
8914 Self(raw)
8915 }
8916
8917 pub fn raw(&self) -> &RawMessage {
8918 &self.0
8919 }
8920
8921 pub fn header(&self) -> Header<'_> {
8922 Header(self.0.scope())
8923 }
8924
8925 pub fn trailer(&self) -> Trailer<'_> {
8926 Trailer(self.0.scope())
8927 }
8928
8929 #[doc(alias = "OrderID")]
8931 pub fn order_id(&self) -> Result<Option<&str>, InvalidValue> {
8932 self.0.get_str(Tag(37))
8933 }
8934
8935 #[doc(alias = "ClientID")]
8937 pub fn client_id(&self) -> Result<Option<&str>, InvalidValue> {
8938 self.0.get_str(Tag(109))
8939 }
8940
8941 #[doc(alias = "ExecBroker")]
8943 pub fn exec_broker(&self) -> Result<Option<&str>, InvalidValue> {
8944 self.0.get_str(Tag(76))
8945 }
8946
8947 #[doc(alias = "OrigClOrdID")]
8949 pub fn orig_cl_ord_id(&self) -> Result<Option<&str>, InvalidValue> {
8950 self.0.get_str(Tag(41))
8951 }
8952
8953 #[doc(alias = "ClOrdID")]
8955 pub fn cl_ord_id(&self) -> Result<Option<&str>, InvalidValue> {
8956 self.0.get_str(Tag(11))
8957 }
8958
8959 #[doc(alias = "ListID")]
8961 pub fn list_id(&self) -> Result<Option<&str>, InvalidValue> {
8962 self.0.get_str(Tag(66))
8963 }
8964
8965 #[doc(alias = "Account")]
8967 pub fn account(&self) -> Result<Option<&str>, InvalidValue> {
8968 self.0.get_str(Tag(1))
8969 }
8970
8971 #[doc(alias = "NoAllocs")]
8973 pub fn allocs(&self) -> Result<Instances<'_, order_cancel_replace_request::allocs::Instance<'_>>, InvalidValue> {
8974 self.0.get_group(&order_cancel_replace_request::allocs::TABLE, &Self::KNOWN_TAGS).map(Instances::from)
8975 }
8976
8977 #[doc(alias = "SettlmntTyp")]
8979 pub fn settlmnt_typ(&self) -> Result<Option<SettlmntTyp<'_>>, InvalidValue> {
8980 Ok(self.0.get_str(Tag(63))?.map(SettlmntTyp::from_value))
8981 }
8982
8983 #[doc(alias = "FutSettDate")]
8985 pub fn fut_sett_date(&self) -> Result<Option<Date>, InvalidValue> {
8986 self.0.get_date(Tag(64))
8987 }
8988
8989 #[doc(alias = "HandlInst")]
8991 pub fn handl_inst(&self) -> Result<Option<HandlInst<'_>>, InvalidValue> {
8992 Ok(self.0.get_str(Tag(21))?.map(HandlInst::from_value))
8993 }
8994
8995 #[doc(alias = "ExecInst")]
8997 pub fn exec_inst(&self) -> Result<Option<MultipleValues<'_, ExecInst<'_>>>, InvalidValue> {
8998 self.0.get_multiple_values(Tag(18))
8999 }
9000
9001 #[doc(alias = "MinQty")]
9003 pub fn min_qty(&self) -> Result<Option<Decimal>, InvalidValue> {
9004 self.0.get_decimal(Tag(110))
9005 }
9006
9007 #[doc(alias = "MaxFloor")]
9009 pub fn max_floor(&self) -> Result<Option<Decimal>, InvalidValue> {
9010 self.0.get_decimal(Tag(111))
9011 }
9012
9013 #[doc(alias = "ExDestination")]
9015 pub fn ex_destination(&self) -> Result<Option<&str>, InvalidValue> {
9016 self.0.get_str(Tag(100))
9017 }
9018
9019 #[doc(alias = "NoTradingSessions")]
9021 pub fn trading_sessions(&self) -> Result<Instances<'_, order_cancel_replace_request::trading_sessions::Instance<'_>>, InvalidValue> {
9022 self.0.get_group(&order_cancel_replace_request::trading_sessions::TABLE, &Self::KNOWN_TAGS).map(Instances::from)
9023 }
9024
9025 #[doc(alias = "Symbol")]
9027 pub fn symbol(&self) -> Result<Option<&str>, InvalidValue> {
9028 self.0.get_str(Tag(55))
9029 }
9030
9031 #[doc(alias = "SymbolSfx")]
9033 pub fn symbol_sfx(&self) -> Result<Option<&str>, InvalidValue> {
9034 self.0.get_str(Tag(65))
9035 }
9036
9037 #[doc(alias = "SecurityID")]
9039 pub fn security_id(&self) -> Result<Option<&str>, InvalidValue> {
9040 self.0.get_str(Tag(48))
9041 }
9042
9043 #[doc(alias = "IDSource")]
9045 pub fn id_source(&self) -> Result<Option<IDSource<'_>>, InvalidValue> {
9046 Ok(self.0.get_str(Tag(22))?.map(IDSource::from_value))
9047 }
9048
9049 #[doc(alias = "SecurityType")]
9051 pub fn security_type(&self) -> Result<Option<SecurityType<'_>>, InvalidValue> {
9052 Ok(self.0.get_str(Tag(167))?.map(SecurityType::from_value))
9053 }
9054
9055 #[doc(alias = "MaturityMonthYear")]
9057 pub fn maturity_month_year(&self) -> Result<Option<MonthYear>, InvalidValue> {
9058 self.0.get_month_year(Tag(200))
9059 }
9060
9061 #[doc(alias = "MaturityDay")]
9063 pub fn maturity_day(&self) -> Result<Option<i64>, InvalidValue> {
9064 self.0.get_int(Tag(205))
9065 }
9066
9067 #[doc(alias = "PutOrCall")]
9069 pub fn put_or_call(&self) -> Result<Option<PutOrCall>, InvalidValue> {
9070 Ok(self.0.get_int(Tag(201))?.map(PutOrCall::from_value))
9071 }
9072
9073 #[doc(alias = "StrikePrice")]
9075 pub fn strike_price(&self) -> Result<Option<Decimal>, InvalidValue> {
9076 self.0.get_decimal(Tag(202))
9077 }
9078
9079 #[doc(alias = "OptAttribute")]
9081 pub fn opt_attribute(&self) -> Result<Option<&str>, InvalidValue> {
9082 self.0.get_str(Tag(206))
9083 }
9084
9085 #[doc(alias = "ContractMultiplier")]
9087 pub fn contract_multiplier(&self) -> Result<Option<Decimal>, InvalidValue> {
9088 self.0.get_decimal(Tag(231))
9089 }
9090
9091 #[doc(alias = "CouponRate")]
9093 pub fn coupon_rate(&self) -> Result<Option<Decimal>, InvalidValue> {
9094 self.0.get_decimal(Tag(223))
9095 }
9096
9097 #[doc(alias = "SecurityExchange")]
9099 pub fn security_exchange(&self) -> Result<Option<&str>, InvalidValue> {
9100 self.0.get_str(Tag(207))
9101 }
9102
9103 #[doc(alias = "Issuer")]
9105 pub fn issuer(&self) -> Result<Option<&str>, InvalidValue> {
9106 self.0.get_str(Tag(106))
9107 }
9108
9109 #[doc(alias = "EncodedIssuerLen")]
9111 pub fn encoded_issuer_len(&self) -> Result<Option<i64>, InvalidValue> {
9112 self.0.get_int(Tag(348))
9113 }
9114
9115 #[doc(alias = "EncodedIssuer")]
9117 pub fn encoded_issuer(&self) -> Option<&[u8]> {
9118 self.0.get(Tag(349))
9119 }
9120
9121 #[doc(alias = "SecurityDesc")]
9123 pub fn security_desc(&self) -> Result<Option<&str>, InvalidValue> {
9124 self.0.get_str(Tag(107))
9125 }
9126
9127 #[doc(alias = "EncodedSecurityDescLen")]
9129 pub fn encoded_security_desc_len(&self) -> Result<Option<i64>, InvalidValue> {
9130 self.0.get_int(Tag(350))
9131 }
9132
9133 #[doc(alias = "EncodedSecurityDesc")]
9135 pub fn encoded_security_desc(&self) -> Option<&[u8]> {
9136 self.0.get(Tag(351))
9137 }
9138
9139 #[doc(alias = "Side")]
9141 pub fn side(&self) -> Result<Option<Side<'_>>, InvalidValue> {
9142 Ok(self.0.get_str(Tag(54))?.map(Side::from_value))
9143 }
9144
9145 #[doc(alias = "TransactTime")]
9147 pub fn transact_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
9148 self.0.get_utc_timestamp(Tag(60))
9149 }
9150
9151 #[doc(alias = "OrderQty")]
9153 pub fn order_qty(&self) -> Result<Option<Decimal>, InvalidValue> {
9154 self.0.get_decimal(Tag(38))
9155 }
9156
9157 #[doc(alias = "CashOrderQty")]
9159 pub fn cash_order_qty(&self) -> Result<Option<Decimal>, InvalidValue> {
9160 self.0.get_decimal(Tag(152))
9161 }
9162
9163 #[doc(alias = "OrdType")]
9165 pub fn ord_type(&self) -> Result<Option<OrdType<'_>>, InvalidValue> {
9166 Ok(self.0.get_str(Tag(40))?.map(OrdType::from_value))
9167 }
9168
9169 #[doc(alias = "Price")]
9171 pub fn price(&self) -> Result<Option<Decimal>, InvalidValue> {
9172 self.0.get_decimal(Tag(44))
9173 }
9174
9175 #[doc(alias = "StopPx")]
9177 pub fn stop_px(&self) -> Result<Option<Decimal>, InvalidValue> {
9178 self.0.get_decimal(Tag(99))
9179 }
9180
9181 #[doc(alias = "PegDifference")]
9183 pub fn peg_difference(&self) -> Result<Option<Decimal>, InvalidValue> {
9184 self.0.get_decimal(Tag(211))
9185 }
9186
9187 #[doc(alias = "DiscretionInst")]
9189 pub fn discretion_inst(&self) -> Result<Option<DiscretionInst<'_>>, InvalidValue> {
9190 Ok(self.0.get_str(Tag(388))?.map(DiscretionInst::from_value))
9191 }
9192
9193 #[doc(alias = "DiscretionOffset")]
9195 pub fn discretion_offset(&self) -> Result<Option<Decimal>, InvalidValue> {
9196 self.0.get_decimal(Tag(389))
9197 }
9198
9199 #[doc(alias = "ComplianceID")]
9201 pub fn compliance_id(&self) -> Result<Option<&str>, InvalidValue> {
9202 self.0.get_str(Tag(376))
9203 }
9204
9205 #[doc(alias = "SolicitedFlag")]
9207 pub fn solicited_flag(&self) -> Result<Option<bool>, InvalidValue> {
9208 self.0.get_bool(Tag(377))
9209 }
9210
9211 #[doc(alias = "Currency")]
9213 pub fn currency(&self) -> Result<Option<&str>, InvalidValue> {
9214 self.0.get_str(Tag(15))
9215 }
9216
9217 #[doc(alias = "TimeInForce")]
9219 pub fn time_in_force(&self) -> Result<Option<TimeInForce<'_>>, InvalidValue> {
9220 Ok(self.0.get_str(Tag(59))?.map(TimeInForce::from_value))
9221 }
9222
9223 #[doc(alias = "EffectiveTime")]
9225 pub fn effective_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
9226 self.0.get_utc_timestamp(Tag(168))
9227 }
9228
9229 #[doc(alias = "ExpireDate")]
9231 pub fn expire_date(&self) -> Result<Option<Date>, InvalidValue> {
9232 self.0.get_date(Tag(432))
9233 }
9234
9235 #[doc(alias = "ExpireTime")]
9237 pub fn expire_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
9238 self.0.get_utc_timestamp(Tag(126))
9239 }
9240
9241 #[doc(alias = "GTBookingInst")]
9243 pub fn gt_booking_inst(&self) -> Result<Option<GTBookingInst>, InvalidValue> {
9244 Ok(self.0.get_int(Tag(427))?.map(GTBookingInst::from_value))
9245 }
9246
9247 #[doc(alias = "Commission")]
9249 pub fn commission(&self) -> Result<Option<Decimal>, InvalidValue> {
9250 self.0.get_decimal(Tag(12))
9251 }
9252
9253 #[doc(alias = "CommType")]
9255 pub fn comm_type(&self) -> Result<Option<CommType<'_>>, InvalidValue> {
9256 Ok(self.0.get_str(Tag(13))?.map(CommType::from_value))
9257 }
9258
9259 #[doc(alias = "Rule80A")]
9261 pub fn rule80_a(&self) -> Result<Option<Rule80A<'_>>, InvalidValue> {
9262 Ok(self.0.get_str(Tag(47))?.map(Rule80A::from_value))
9263 }
9264
9265 #[doc(alias = "ForexReq")]
9267 pub fn forex_req(&self) -> Result<Option<bool>, InvalidValue> {
9268 self.0.get_bool(Tag(121))
9269 }
9270
9271 #[doc(alias = "SettlCurrency")]
9273 pub fn settl_currency(&self) -> Result<Option<&str>, InvalidValue> {
9274 self.0.get_str(Tag(120))
9275 }
9276
9277 #[doc(alias = "Text")]
9279 pub fn text(&self) -> Result<Option<&str>, InvalidValue> {
9280 self.0.get_str(Tag(58))
9281 }
9282
9283 #[doc(alias = "EncodedTextLen")]
9285 pub fn encoded_text_len(&self) -> Result<Option<i64>, InvalidValue> {
9286 self.0.get_int(Tag(354))
9287 }
9288
9289 #[doc(alias = "EncodedText")]
9291 pub fn encoded_text(&self) -> Option<&[u8]> {
9292 self.0.get(Tag(355))
9293 }
9294
9295 #[doc(alias = "FutSettDate2")]
9297 pub fn fut_sett_date2(&self) -> Result<Option<Date>, InvalidValue> {
9298 self.0.get_date(Tag(193))
9299 }
9300
9301 #[doc(alias = "OrderQty2")]
9303 pub fn order_qty2(&self) -> Result<Option<Decimal>, InvalidValue> {
9304 self.0.get_decimal(Tag(192))
9305 }
9306
9307 #[doc(alias = "OpenClose")]
9309 pub fn open_close(&self) -> Result<Option<OpenClose<'_>>, InvalidValue> {
9310 Ok(self.0.get_str(Tag(77))?.map(OpenClose::from_value))
9311 }
9312
9313 #[doc(alias = "CoveredOrUncovered")]
9315 pub fn covered_or_uncovered(&self) -> Result<Option<CoveredOrUncovered>, InvalidValue> {
9316 Ok(self.0.get_int(Tag(203))?.map(CoveredOrUncovered::from_value))
9317 }
9318
9319 #[doc(alias = "CustomerOrFirm")]
9321 pub fn customer_or_firm(&self) -> Result<Option<CustomerOrFirm>, InvalidValue> {
9322 Ok(self.0.get_int(Tag(204))?.map(CustomerOrFirm::from_value))
9323 }
9324
9325 #[doc(alias = "MaxShow")]
9327 pub fn max_show(&self) -> Result<Option<Decimal>, InvalidValue> {
9328 self.0.get_decimal(Tag(210))
9329 }
9330
9331 #[doc(alias = "LocateReqd")]
9333 pub fn locate_reqd(&self) -> Result<Option<bool>, InvalidValue> {
9334 self.0.get_bool(Tag(114))
9335 }
9336
9337 #[doc(alias = "ClearingFirm")]
9339 pub fn clearing_firm(&self) -> Result<Option<&str>, InvalidValue> {
9340 self.0.get_str(Tag(439))
9341 }
9342
9343 #[doc(alias = "ClearingAccount")]
9345 pub fn clearing_account(&self) -> Result<Option<&str>, InvalidValue> {
9346 self.0.get_str(Tag(440))
9347 }
9348}
9349
9350impl std::fmt::Debug for OrderCancelReplaceRequest {
9351 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
9352 write!(f, "OrderCancelReplaceRequest({})", self.0)
9353 }
9354}
9355
9356impl std::fmt::Display for OrderCancelReplaceRequest {
9357 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
9358 std::fmt::Display::fmt(&self.0, f)
9359 }
9360}
9361
9362pub mod order_cancel_replace_request {
9363 pub mod allocs {
9364 use super::super::*;
9365
9366 pub const TABLE: GroupTable<'static> = GroupTable::new(
9367 Tag(78),
9368 Tag(79),
9369 &[Tag(79), Tag(80)],
9370 &[],
9371 );
9372
9373 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[Tag(79), Tag(80)]);
9374
9375 #[derive(Clone, Copy, Debug)]
9376 pub struct Instance<'a>(refix_message::Scope<'a>);
9377
9378 impl<'a> From<refix_message::Scope<'a>> for Instance<'a> {
9379 fn from(scope: refix_message::Scope<'a>) -> Self {
9380 Self(scope)
9381 }
9382 }
9383
9384 impl<'a> Instance<'a> {
9385 pub fn raw(&self) -> refix_message::Scope<'a> {
9386 self.0
9387 }
9388
9389 #[doc(alias = "AllocAccount")]
9391 pub fn alloc_account(&self) -> Result<Option<&'a str>, InvalidValue> {
9392 self.0.get_str(Tag(79))
9393 }
9394
9395 #[doc(alias = "AllocShares")]
9397 pub fn alloc_shares(&self) -> Result<Option<Decimal>, InvalidValue> {
9398 self.0.get_decimal(Tag(80))
9399 }
9400 }
9401 }
9402
9403 pub mod trading_sessions {
9404 use super::super::*;
9405
9406 pub const TABLE: GroupTable<'static> = GroupTable::new(
9407 Tag(386),
9408 Tag(336),
9409 &[Tag(336)],
9410 &[],
9411 );
9412
9413 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[Tag(336)]);
9414
9415 #[derive(Clone, Copy, Debug)]
9416 pub struct Instance<'a>(refix_message::Scope<'a>);
9417
9418 impl<'a> From<refix_message::Scope<'a>> for Instance<'a> {
9419 fn from(scope: refix_message::Scope<'a>) -> Self {
9420 Self(scope)
9421 }
9422 }
9423
9424 impl<'a> Instance<'a> {
9425 pub fn raw(&self) -> refix_message::Scope<'a> {
9426 self.0
9427 }
9428
9429 #[doc(alias = "TradingSessionID")]
9431 pub fn trading_session_id(&self) -> Result<Option<&'a str>, InvalidValue> {
9432 self.0.get_str(Tag(336))
9433 }
9434 }
9435 }
9436}
9437
9438pub struct OrderStatusRequest(RawMessage);
9440
9441impl OrderStatusRequest {
9442 pub const MSG_TYPE: &[u8] = b"H";
9443
9444 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
9445 Tag(1), Tag(8), Tag(9), Tag(10), Tag(11), Tag(22), Tag(34), Tag(35), Tag(37), Tag(43),
9446 Tag(48), Tag(49), Tag(50), Tag(52), Tag(54), Tag(55), Tag(56), Tag(57), Tag(65), Tag(76),
9447 Tag(89), Tag(90), Tag(91), Tag(93), Tag(97), Tag(106), Tag(107), Tag(109), Tag(115),
9448 Tag(116), Tag(122), Tag(128), Tag(129), Tag(142), Tag(143), Tag(144), Tag(145), Tag(167),
9449 Tag(200), Tag(201), Tag(202), Tag(205), Tag(206), Tag(207), Tag(212), Tag(213), Tag(223),
9450 Tag(231), Tag(347), Tag(348), Tag(349), Tag(350), Tag(351), Tag(369), Tag(370),
9451 ]);
9452
9453 pub fn from_raw(raw: RawMessage) -> Self {
9454 Self(raw)
9455 }
9456
9457 pub fn raw(&self) -> &RawMessage {
9458 &self.0
9459 }
9460
9461 pub fn header(&self) -> Header<'_> {
9462 Header(self.0.scope())
9463 }
9464
9465 pub fn trailer(&self) -> Trailer<'_> {
9466 Trailer(self.0.scope())
9467 }
9468
9469 #[doc(alias = "OrderID")]
9471 pub fn order_id(&self) -> Result<Option<&str>, InvalidValue> {
9472 self.0.get_str(Tag(37))
9473 }
9474
9475 #[doc(alias = "ClOrdID")]
9477 pub fn cl_ord_id(&self) -> Result<Option<&str>, InvalidValue> {
9478 self.0.get_str(Tag(11))
9479 }
9480
9481 #[doc(alias = "ClientID")]
9483 pub fn client_id(&self) -> Result<Option<&str>, InvalidValue> {
9484 self.0.get_str(Tag(109))
9485 }
9486
9487 #[doc(alias = "Account")]
9489 pub fn account(&self) -> Result<Option<&str>, InvalidValue> {
9490 self.0.get_str(Tag(1))
9491 }
9492
9493 #[doc(alias = "ExecBroker")]
9495 pub fn exec_broker(&self) -> Result<Option<&str>, InvalidValue> {
9496 self.0.get_str(Tag(76))
9497 }
9498
9499 #[doc(alias = "Symbol")]
9501 pub fn symbol(&self) -> Result<Option<&str>, InvalidValue> {
9502 self.0.get_str(Tag(55))
9503 }
9504
9505 #[doc(alias = "SymbolSfx")]
9507 pub fn symbol_sfx(&self) -> Result<Option<&str>, InvalidValue> {
9508 self.0.get_str(Tag(65))
9509 }
9510
9511 #[doc(alias = "SecurityID")]
9513 pub fn security_id(&self) -> Result<Option<&str>, InvalidValue> {
9514 self.0.get_str(Tag(48))
9515 }
9516
9517 #[doc(alias = "IDSource")]
9519 pub fn id_source(&self) -> Result<Option<IDSource<'_>>, InvalidValue> {
9520 Ok(self.0.get_str(Tag(22))?.map(IDSource::from_value))
9521 }
9522
9523 #[doc(alias = "SecurityType")]
9525 pub fn security_type(&self) -> Result<Option<SecurityType<'_>>, InvalidValue> {
9526 Ok(self.0.get_str(Tag(167))?.map(SecurityType::from_value))
9527 }
9528
9529 #[doc(alias = "MaturityMonthYear")]
9531 pub fn maturity_month_year(&self) -> Result<Option<MonthYear>, InvalidValue> {
9532 self.0.get_month_year(Tag(200))
9533 }
9534
9535 #[doc(alias = "MaturityDay")]
9537 pub fn maturity_day(&self) -> Result<Option<i64>, InvalidValue> {
9538 self.0.get_int(Tag(205))
9539 }
9540
9541 #[doc(alias = "PutOrCall")]
9543 pub fn put_or_call(&self) -> Result<Option<PutOrCall>, InvalidValue> {
9544 Ok(self.0.get_int(Tag(201))?.map(PutOrCall::from_value))
9545 }
9546
9547 #[doc(alias = "StrikePrice")]
9549 pub fn strike_price(&self) -> Result<Option<Decimal>, InvalidValue> {
9550 self.0.get_decimal(Tag(202))
9551 }
9552
9553 #[doc(alias = "OptAttribute")]
9555 pub fn opt_attribute(&self) -> Result<Option<&str>, InvalidValue> {
9556 self.0.get_str(Tag(206))
9557 }
9558
9559 #[doc(alias = "ContractMultiplier")]
9561 pub fn contract_multiplier(&self) -> Result<Option<Decimal>, InvalidValue> {
9562 self.0.get_decimal(Tag(231))
9563 }
9564
9565 #[doc(alias = "CouponRate")]
9567 pub fn coupon_rate(&self) -> Result<Option<Decimal>, InvalidValue> {
9568 self.0.get_decimal(Tag(223))
9569 }
9570
9571 #[doc(alias = "SecurityExchange")]
9573 pub fn security_exchange(&self) -> Result<Option<&str>, InvalidValue> {
9574 self.0.get_str(Tag(207))
9575 }
9576
9577 #[doc(alias = "Issuer")]
9579 pub fn issuer(&self) -> Result<Option<&str>, InvalidValue> {
9580 self.0.get_str(Tag(106))
9581 }
9582
9583 #[doc(alias = "EncodedIssuerLen")]
9585 pub fn encoded_issuer_len(&self) -> Result<Option<i64>, InvalidValue> {
9586 self.0.get_int(Tag(348))
9587 }
9588
9589 #[doc(alias = "EncodedIssuer")]
9591 pub fn encoded_issuer(&self) -> Option<&[u8]> {
9592 self.0.get(Tag(349))
9593 }
9594
9595 #[doc(alias = "SecurityDesc")]
9597 pub fn security_desc(&self) -> Result<Option<&str>, InvalidValue> {
9598 self.0.get_str(Tag(107))
9599 }
9600
9601 #[doc(alias = "EncodedSecurityDescLen")]
9603 pub fn encoded_security_desc_len(&self) -> Result<Option<i64>, InvalidValue> {
9604 self.0.get_int(Tag(350))
9605 }
9606
9607 #[doc(alias = "EncodedSecurityDesc")]
9609 pub fn encoded_security_desc(&self) -> Option<&[u8]> {
9610 self.0.get(Tag(351))
9611 }
9612
9613 #[doc(alias = "Side")]
9615 pub fn side(&self) -> Result<Option<Side<'_>>, InvalidValue> {
9616 Ok(self.0.get_str(Tag(54))?.map(Side::from_value))
9617 }
9618}
9619
9620impl std::fmt::Debug for OrderStatusRequest {
9621 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
9622 write!(f, "OrderStatusRequest({})", self.0)
9623 }
9624}
9625
9626impl std::fmt::Display for OrderStatusRequest {
9627 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
9628 std::fmt::Display::fmt(&self.0, f)
9629 }
9630}
9631
9632pub struct Allocation(RawMessage);
9634
9635impl Allocation {
9636 pub const MSG_TYPE: &[u8] = b"J";
9637
9638 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
9639 Tag(6), Tag(8), Tag(9), Tag(10), Tag(11), Tag(12), Tag(13), Tag(15), Tag(17), Tag(22),
9640 Tag(29), Tag(30), Tag(31), Tag(32), Tag(34), Tag(35), Tag(37), Tag(43), Tag(48), Tag(49),
9641 Tag(50), Tag(52), Tag(53), Tag(54), Tag(55), Tag(56), Tag(57), Tag(58), Tag(60), Tag(63),
9642 Tag(64), Tag(65), Tag(66), Tag(70), Tag(71), Tag(72), Tag(73), Tag(74), Tag(75), Tag(76),
9643 Tag(77), Tag(78), Tag(79), Tag(80), Tag(81), Tag(89), Tag(90), Tag(91), Tag(92), Tag(93),
9644 Tag(97), Tag(105), Tag(106), Tag(107), Tag(109), Tag(115), Tag(116), Tag(118), Tag(119),
9645 Tag(120), Tag(122), Tag(124), Tag(128), Tag(129), Tag(136), Tag(137), Tag(138), Tag(139),
9646 Tag(142), Tag(143), Tag(144), Tag(145), Tag(153), Tag(154), Tag(155), Tag(156), Tag(157),
9647 Tag(158), Tag(159), Tag(160), Tag(161), Tag(167), Tag(196), Tag(197), Tag(198), Tag(200),
9648 Tag(201), Tag(202), Tag(205), Tag(206), Tag(207), Tag(208), Tag(209), Tag(212), Tag(213),
9649 Tag(223), Tag(231), Tag(336), Tag(347), Tag(348), Tag(349), Tag(350), Tag(351), Tag(354),
9650 Tag(355), Tag(360), Tag(361), Tag(366), Tag(369), Tag(370), Tag(381),
9651 ]);
9652
9653 pub fn from_raw(raw: RawMessage) -> Self {
9654 Self(raw)
9655 }
9656
9657 pub fn raw(&self) -> &RawMessage {
9658 &self.0
9659 }
9660
9661 pub fn header(&self) -> Header<'_> {
9662 Header(self.0.scope())
9663 }
9664
9665 pub fn trailer(&self) -> Trailer<'_> {
9666 Trailer(self.0.scope())
9667 }
9668
9669 #[doc(alias = "AllocID")]
9671 pub fn alloc_id(&self) -> Result<Option<&str>, InvalidValue> {
9672 self.0.get_str(Tag(70))
9673 }
9674
9675 #[doc(alias = "AllocTransType")]
9677 pub fn alloc_trans_type(&self) -> Result<Option<AllocTransType<'_>>, InvalidValue> {
9678 Ok(self.0.get_str(Tag(71))?.map(AllocTransType::from_value))
9679 }
9680
9681 #[doc(alias = "RefAllocID")]
9683 pub fn ref_alloc_id(&self) -> Result<Option<&str>, InvalidValue> {
9684 self.0.get_str(Tag(72))
9685 }
9686
9687 #[doc(alias = "AllocLinkID")]
9689 pub fn alloc_link_id(&self) -> Result<Option<&str>, InvalidValue> {
9690 self.0.get_str(Tag(196))
9691 }
9692
9693 #[doc(alias = "AllocLinkType")]
9695 pub fn alloc_link_type(&self) -> Result<Option<AllocLinkType>, InvalidValue> {
9696 Ok(self.0.get_int(Tag(197))?.map(AllocLinkType::from_value))
9697 }
9698
9699 #[doc(alias = "NoOrders")]
9701 pub fn orders(&self) -> Result<Instances<'_, allocation::orders::Instance<'_>>, InvalidValue> {
9702 self.0.get_group(&allocation::orders::TABLE, &Self::KNOWN_TAGS).map(Instances::from)
9703 }
9704
9705 #[doc(alias = "NoExecs")]
9707 pub fn execs(&self) -> Result<Instances<'_, allocation::execs::Instance<'_>>, InvalidValue> {
9708 self.0.get_group(&allocation::execs::TABLE, &Self::KNOWN_TAGS).map(Instances::from)
9709 }
9710
9711 #[doc(alias = "Side")]
9713 pub fn side(&self) -> Result<Option<Side<'_>>, InvalidValue> {
9714 Ok(self.0.get_str(Tag(54))?.map(Side::from_value))
9715 }
9716
9717 #[doc(alias = "Symbol")]
9719 pub fn symbol(&self) -> Result<Option<&str>, InvalidValue> {
9720 self.0.get_str(Tag(55))
9721 }
9722
9723 #[doc(alias = "SymbolSfx")]
9725 pub fn symbol_sfx(&self) -> Result<Option<&str>, InvalidValue> {
9726 self.0.get_str(Tag(65))
9727 }
9728
9729 #[doc(alias = "SecurityID")]
9731 pub fn security_id(&self) -> Result<Option<&str>, InvalidValue> {
9732 self.0.get_str(Tag(48))
9733 }
9734
9735 #[doc(alias = "IDSource")]
9737 pub fn id_source(&self) -> Result<Option<IDSource<'_>>, InvalidValue> {
9738 Ok(self.0.get_str(Tag(22))?.map(IDSource::from_value))
9739 }
9740
9741 #[doc(alias = "SecurityType")]
9743 pub fn security_type(&self) -> Result<Option<SecurityType<'_>>, InvalidValue> {
9744 Ok(self.0.get_str(Tag(167))?.map(SecurityType::from_value))
9745 }
9746
9747 #[doc(alias = "MaturityMonthYear")]
9749 pub fn maturity_month_year(&self) -> Result<Option<MonthYear>, InvalidValue> {
9750 self.0.get_month_year(Tag(200))
9751 }
9752
9753 #[doc(alias = "MaturityDay")]
9755 pub fn maturity_day(&self) -> Result<Option<i64>, InvalidValue> {
9756 self.0.get_int(Tag(205))
9757 }
9758
9759 #[doc(alias = "PutOrCall")]
9761 pub fn put_or_call(&self) -> Result<Option<PutOrCall>, InvalidValue> {
9762 Ok(self.0.get_int(Tag(201))?.map(PutOrCall::from_value))
9763 }
9764
9765 #[doc(alias = "StrikePrice")]
9767 pub fn strike_price(&self) -> Result<Option<Decimal>, InvalidValue> {
9768 self.0.get_decimal(Tag(202))
9769 }
9770
9771 #[doc(alias = "OptAttribute")]
9773 pub fn opt_attribute(&self) -> Result<Option<&str>, InvalidValue> {
9774 self.0.get_str(Tag(206))
9775 }
9776
9777 #[doc(alias = "ContractMultiplier")]
9779 pub fn contract_multiplier(&self) -> Result<Option<Decimal>, InvalidValue> {
9780 self.0.get_decimal(Tag(231))
9781 }
9782
9783 #[doc(alias = "CouponRate")]
9785 pub fn coupon_rate(&self) -> Result<Option<Decimal>, InvalidValue> {
9786 self.0.get_decimal(Tag(223))
9787 }
9788
9789 #[doc(alias = "SecurityExchange")]
9791 pub fn security_exchange(&self) -> Result<Option<&str>, InvalidValue> {
9792 self.0.get_str(Tag(207))
9793 }
9794
9795 #[doc(alias = "Issuer")]
9797 pub fn issuer(&self) -> Result<Option<&str>, InvalidValue> {
9798 self.0.get_str(Tag(106))
9799 }
9800
9801 #[doc(alias = "EncodedIssuerLen")]
9803 pub fn encoded_issuer_len(&self) -> Result<Option<i64>, InvalidValue> {
9804 self.0.get_int(Tag(348))
9805 }
9806
9807 #[doc(alias = "EncodedIssuer")]
9809 pub fn encoded_issuer(&self) -> Option<&[u8]> {
9810 self.0.get(Tag(349))
9811 }
9812
9813 #[doc(alias = "SecurityDesc")]
9815 pub fn security_desc(&self) -> Result<Option<&str>, InvalidValue> {
9816 self.0.get_str(Tag(107))
9817 }
9818
9819 #[doc(alias = "EncodedSecurityDescLen")]
9821 pub fn encoded_security_desc_len(&self) -> Result<Option<i64>, InvalidValue> {
9822 self.0.get_int(Tag(350))
9823 }
9824
9825 #[doc(alias = "EncodedSecurityDesc")]
9827 pub fn encoded_security_desc(&self) -> Option<&[u8]> {
9828 self.0.get(Tag(351))
9829 }
9830
9831 #[doc(alias = "Shares")]
9833 pub fn shares(&self) -> Result<Option<Decimal>, InvalidValue> {
9834 self.0.get_decimal(Tag(53))
9835 }
9836
9837 #[doc(alias = "LastMkt")]
9839 pub fn last_mkt(&self) -> Result<Option<&str>, InvalidValue> {
9840 self.0.get_str(Tag(30))
9841 }
9842
9843 #[doc(alias = "TradingSessionID")]
9845 pub fn trading_session_id(&self) -> Result<Option<&str>, InvalidValue> {
9846 self.0.get_str(Tag(336))
9847 }
9848
9849 #[doc(alias = "AvgPx")]
9851 pub fn avg_px(&self) -> Result<Option<Decimal>, InvalidValue> {
9852 self.0.get_decimal(Tag(6))
9853 }
9854
9855 #[doc(alias = "Currency")]
9857 pub fn currency(&self) -> Result<Option<&str>, InvalidValue> {
9858 self.0.get_str(Tag(15))
9859 }
9860
9861 #[doc(alias = "AvgPrxPrecision")]
9863 pub fn avg_prx_precision(&self) -> Result<Option<i64>, InvalidValue> {
9864 self.0.get_int(Tag(74))
9865 }
9866
9867 #[doc(alias = "TradeDate")]
9869 pub fn trade_date(&self) -> Result<Option<Date>, InvalidValue> {
9870 self.0.get_date(Tag(75))
9871 }
9872
9873 #[doc(alias = "TransactTime")]
9875 pub fn transact_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
9876 self.0.get_utc_timestamp(Tag(60))
9877 }
9878
9879 #[doc(alias = "SettlmntTyp")]
9881 pub fn settlmnt_typ(&self) -> Result<Option<SettlmntTyp<'_>>, InvalidValue> {
9882 Ok(self.0.get_str(Tag(63))?.map(SettlmntTyp::from_value))
9883 }
9884
9885 #[doc(alias = "FutSettDate")]
9887 pub fn fut_sett_date(&self) -> Result<Option<Date>, InvalidValue> {
9888 self.0.get_date(Tag(64))
9889 }
9890
9891 #[doc(alias = "GrossTradeAmt")]
9893 pub fn gross_trade_amt(&self) -> Result<Option<Decimal>, InvalidValue> {
9894 self.0.get_decimal(Tag(381))
9895 }
9896
9897 #[doc(alias = "NetMoney")]
9899 pub fn net_money(&self) -> Result<Option<Decimal>, InvalidValue> {
9900 self.0.get_decimal(Tag(118))
9901 }
9902
9903 #[doc(alias = "OpenClose")]
9905 pub fn open_close(&self) -> Result<Option<OpenClose<'_>>, InvalidValue> {
9906 Ok(self.0.get_str(Tag(77))?.map(OpenClose::from_value))
9907 }
9908
9909 #[doc(alias = "Text")]
9911 pub fn text(&self) -> Result<Option<&str>, InvalidValue> {
9912 self.0.get_str(Tag(58))
9913 }
9914
9915 #[doc(alias = "EncodedTextLen")]
9917 pub fn encoded_text_len(&self) -> Result<Option<i64>, InvalidValue> {
9918 self.0.get_int(Tag(354))
9919 }
9920
9921 #[doc(alias = "EncodedText")]
9923 pub fn encoded_text(&self) -> Option<&[u8]> {
9924 self.0.get(Tag(355))
9925 }
9926
9927 #[doc(alias = "NumDaysInterest")]
9929 pub fn num_days_interest(&self) -> Result<Option<i64>, InvalidValue> {
9930 self.0.get_int(Tag(157))
9931 }
9932
9933 #[doc(alias = "AccruedInterestRate")]
9935 pub fn accrued_interest_rate(&self) -> Result<Option<Decimal>, InvalidValue> {
9936 self.0.get_decimal(Tag(158))
9937 }
9938
9939 #[doc(alias = "NoAllocs")]
9941 pub fn allocs(&self) -> Result<Instances<'_, allocation::allocs::Instance<'_>>, InvalidValue> {
9942 self.0.get_group(&allocation::allocs::TABLE, &Self::KNOWN_TAGS).map(Instances::from)
9943 }
9944}
9945
9946impl std::fmt::Debug for Allocation {
9947 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
9948 write!(f, "Allocation({})", self.0)
9949 }
9950}
9951
9952impl std::fmt::Display for Allocation {
9953 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
9954 std::fmt::Display::fmt(&self.0, f)
9955 }
9956}
9957
9958pub mod allocation {
9959 pub mod orders {
9960 use super::super::*;
9961
9962 pub const TABLE: GroupTable<'static> = GroupTable::new(
9963 Tag(73),
9964 Tag(11),
9965 &[Tag(11), Tag(37), Tag(66), Tag(105), Tag(198)],
9966 &[],
9967 );
9968
9969 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
9970 Tag(11), Tag(37), Tag(66), Tag(105), Tag(198),
9971 ]);
9972
9973 #[derive(Clone, Copy, Debug)]
9974 pub struct Instance<'a>(refix_message::Scope<'a>);
9975
9976 impl<'a> From<refix_message::Scope<'a>> for Instance<'a> {
9977 fn from(scope: refix_message::Scope<'a>) -> Self {
9978 Self(scope)
9979 }
9980 }
9981
9982 impl<'a> Instance<'a> {
9983 pub fn raw(&self) -> refix_message::Scope<'a> {
9984 self.0
9985 }
9986
9987 #[doc(alias = "ClOrdID")]
9989 pub fn cl_ord_id(&self) -> Result<Option<&'a str>, InvalidValue> {
9990 self.0.get_str(Tag(11))
9991 }
9992
9993 #[doc(alias = "OrderID")]
9995 pub fn order_id(&self) -> Result<Option<&'a str>, InvalidValue> {
9996 self.0.get_str(Tag(37))
9997 }
9998
9999 #[doc(alias = "SecondaryOrderID")]
10001 pub fn secondary_order_id(&self) -> Result<Option<&'a str>, InvalidValue> {
10002 self.0.get_str(Tag(198))
10003 }
10004
10005 #[doc(alias = "ListID")]
10007 pub fn list_id(&self) -> Result<Option<&'a str>, InvalidValue> {
10008 self.0.get_str(Tag(66))
10009 }
10010
10011 #[doc(alias = "WaveNo")]
10013 pub fn wave_no(&self) -> Result<Option<&'a str>, InvalidValue> {
10014 self.0.get_str(Tag(105))
10015 }
10016 }
10017 }
10018
10019 pub mod execs {
10020 use super::super::*;
10021
10022 pub const TABLE: GroupTable<'static> = GroupTable::new(
10023 Tag(124),
10024 Tag(32),
10025 &[Tag(17), Tag(29), Tag(31), Tag(32)],
10026 &[],
10027 );
10028
10029 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
10030 Tag(17), Tag(29), Tag(31), Tag(32),
10031 ]);
10032
10033 #[derive(Clone, Copy, Debug)]
10034 pub struct Instance<'a>(refix_message::Scope<'a>);
10035
10036 impl<'a> From<refix_message::Scope<'a>> for Instance<'a> {
10037 fn from(scope: refix_message::Scope<'a>) -> Self {
10038 Self(scope)
10039 }
10040 }
10041
10042 impl<'a> Instance<'a> {
10043 pub fn raw(&self) -> refix_message::Scope<'a> {
10044 self.0
10045 }
10046
10047 #[doc(alias = "LastShares")]
10049 pub fn last_shares(&self) -> Result<Option<Decimal>, InvalidValue> {
10050 self.0.get_decimal(Tag(32))
10051 }
10052
10053 #[doc(alias = "ExecID")]
10055 pub fn exec_id(&self) -> Result<Option<&'a str>, InvalidValue> {
10056 self.0.get_str(Tag(17))
10057 }
10058
10059 #[doc(alias = "LastPx")]
10061 pub fn last_px(&self) -> Result<Option<Decimal>, InvalidValue> {
10062 self.0.get_decimal(Tag(31))
10063 }
10064
10065 #[doc(alias = "LastCapacity")]
10067 pub fn last_capacity(&self) -> Result<Option<LastCapacity<'a>>, InvalidValue> {
10068 Ok(self.0.get_str(Tag(29))?.map(LastCapacity::from_value))
10069 }
10070 }
10071 }
10072
10073 pub mod allocs {
10074 use super::super::*;
10075
10076 pub const TABLE: GroupTable<'static> = GroupTable::new(
10077 Tag(78),
10078 Tag(79),
10079 &[
10080 Tag(12), Tag(13), Tag(76), Tag(79), Tag(80), Tag(81), Tag(92), Tag(109), Tag(119),
10081 Tag(120), Tag(136), Tag(153), Tag(154), Tag(155), Tag(156), Tag(159), Tag(160),
10082 Tag(161), Tag(208), Tag(209), Tag(360), Tag(361), Tag(366),
10083 ],
10084 &[allocation::allocs::misc_fees::TABLE],
10085 );
10086
10087 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
10088 Tag(12), Tag(13), Tag(76), Tag(79), Tag(80), Tag(81), Tag(92), Tag(109), Tag(119),
10089 Tag(120), Tag(136), Tag(137), Tag(138), Tag(139), Tag(153), Tag(154), Tag(155),
10090 Tag(156), Tag(159), Tag(160), Tag(161), Tag(208), Tag(209), Tag(360), Tag(361),
10091 Tag(366),
10092 ]);
10093
10094 #[derive(Clone, Copy, Debug)]
10095 pub struct Instance<'a>(refix_message::Scope<'a>);
10096
10097 impl<'a> From<refix_message::Scope<'a>> for Instance<'a> {
10098 fn from(scope: refix_message::Scope<'a>) -> Self {
10099 Self(scope)
10100 }
10101 }
10102
10103 impl<'a> Instance<'a> {
10104 pub fn raw(&self) -> refix_message::Scope<'a> {
10105 self.0
10106 }
10107
10108 #[doc(alias = "AllocAccount")]
10110 pub fn alloc_account(&self) -> Result<Option<&'a str>, InvalidValue> {
10111 self.0.get_str(Tag(79))
10112 }
10113
10114 #[doc(alias = "AllocPrice")]
10116 pub fn alloc_price(&self) -> Result<Option<Decimal>, InvalidValue> {
10117 self.0.get_decimal(Tag(366))
10118 }
10119
10120 #[doc(alias = "AllocShares")]
10122 pub fn alloc_shares(&self) -> Result<Option<Decimal>, InvalidValue> {
10123 self.0.get_decimal(Tag(80))
10124 }
10125
10126 #[doc(alias = "ProcessCode")]
10128 pub fn process_code(&self) -> Result<Option<ProcessCode<'a>>, InvalidValue> {
10129 Ok(self.0.get_str(Tag(81))?.map(ProcessCode::from_value))
10130 }
10131
10132 #[doc(alias = "BrokerOfCredit")]
10134 pub fn broker_of_credit(&self) -> Result<Option<&'a str>, InvalidValue> {
10135 self.0.get_str(Tag(92))
10136 }
10137
10138 #[doc(alias = "NotifyBrokerOfCredit")]
10140 pub fn notify_broker_of_credit(&self) -> Result<Option<bool>, InvalidValue> {
10141 self.0.get_bool(Tag(208))
10142 }
10143
10144 #[doc(alias = "AllocHandlInst")]
10146 pub fn alloc_handl_inst(&self) -> Result<Option<AllocHandlInst>, InvalidValue> {
10147 Ok(self.0.get_int(Tag(209))?.map(AllocHandlInst::from_value))
10148 }
10149
10150 #[doc(alias = "AllocText")]
10152 pub fn alloc_text(&self) -> Result<Option<&'a str>, InvalidValue> {
10153 self.0.get_str(Tag(161))
10154 }
10155
10156 #[doc(alias = "EncodedAllocTextLen")]
10158 pub fn encoded_alloc_text_len(&self) -> Result<Option<i64>, InvalidValue> {
10159 self.0.get_int(Tag(360))
10160 }
10161
10162 #[doc(alias = "EncodedAllocText")]
10164 pub fn encoded_alloc_text(&self) -> Option<&'a [u8]> {
10165 self.0.get(Tag(361))
10166 }
10167
10168 #[doc(alias = "ExecBroker")]
10170 pub fn exec_broker(&self) -> Result<Option<&'a str>, InvalidValue> {
10171 self.0.get_str(Tag(76))
10172 }
10173
10174 #[doc(alias = "ClientID")]
10176 pub fn client_id(&self) -> Result<Option<&'a str>, InvalidValue> {
10177 self.0.get_str(Tag(109))
10178 }
10179
10180 #[doc(alias = "Commission")]
10182 pub fn commission(&self) -> Result<Option<Decimal>, InvalidValue> {
10183 self.0.get_decimal(Tag(12))
10184 }
10185
10186 #[doc(alias = "CommType")]
10188 pub fn comm_type(&self) -> Result<Option<CommType<'a>>, InvalidValue> {
10189 Ok(self.0.get_str(Tag(13))?.map(CommType::from_value))
10190 }
10191
10192 #[doc(alias = "AllocAvgPx")]
10194 pub fn alloc_avg_px(&self) -> Result<Option<Decimal>, InvalidValue> {
10195 self.0.get_decimal(Tag(153))
10196 }
10197
10198 #[doc(alias = "AllocNetMoney")]
10200 pub fn alloc_net_money(&self) -> Result<Option<Decimal>, InvalidValue> {
10201 self.0.get_decimal(Tag(154))
10202 }
10203
10204 #[doc(alias = "SettlCurrAmt")]
10206 pub fn settl_curr_amt(&self) -> Result<Option<Decimal>, InvalidValue> {
10207 self.0.get_decimal(Tag(119))
10208 }
10209
10210 #[doc(alias = "SettlCurrency")]
10212 pub fn settl_currency(&self) -> Result<Option<&'a str>, InvalidValue> {
10213 self.0.get_str(Tag(120))
10214 }
10215
10216 #[doc(alias = "SettlCurrFxRate")]
10218 pub fn settl_curr_fx_rate(&self) -> Result<Option<Decimal>, InvalidValue> {
10219 self.0.get_decimal(Tag(155))
10220 }
10221
10222 #[doc(alias = "SettlCurrFxRateCalc")]
10224 pub fn settl_curr_fx_rate_calc(&self) -> Result<Option<&'a str>, InvalidValue> {
10225 self.0.get_str(Tag(156))
10226 }
10227
10228 #[doc(alias = "AccruedInterestAmt")]
10230 pub fn accrued_interest_amt(&self) -> Result<Option<Decimal>, InvalidValue> {
10231 self.0.get_decimal(Tag(159))
10232 }
10233
10234 #[doc(alias = "SettlInstMode")]
10236 pub fn settl_inst_mode(&self) -> Result<Option<SettlInstMode<'a>>, InvalidValue> {
10237 Ok(self.0.get_str(Tag(160))?.map(SettlInstMode::from_value))
10238 }
10239
10240 #[doc(alias = "NoMiscFees")]
10242 pub fn misc_fees(&self) -> Result<Instances<'a, allocation::allocs::misc_fees::Instance<'a>>, InvalidValue> {
10243 self.0.get_group(&allocation::allocs::misc_fees::TABLE, &KNOWN_TAGS).map(Instances::from)
10244 }
10245 }
10246
10247 pub mod misc_fees {
10248 use super::super::super::*;
10249
10250 pub const TABLE: GroupTable<'static> = GroupTable::new(
10251 Tag(136),
10252 Tag(137),
10253 &[Tag(137), Tag(138), Tag(139)],
10254 &[],
10255 );
10256
10257 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
10258 Tag(137), Tag(138), Tag(139),
10259 ]);
10260
10261 #[derive(Clone, Copy, Debug)]
10262 pub struct Instance<'a>(refix_message::Scope<'a>);
10263
10264 impl<'a> From<refix_message::Scope<'a>> for Instance<'a> {
10265 fn from(scope: refix_message::Scope<'a>) -> Self {
10266 Self(scope)
10267 }
10268 }
10269
10270 impl<'a> Instance<'a> {
10271 pub fn raw(&self) -> refix_message::Scope<'a> {
10272 self.0
10273 }
10274
10275 #[doc(alias = "MiscFeeAmt")]
10277 pub fn misc_fee_amt(&self) -> Result<Option<Decimal>, InvalidValue> {
10278 self.0.get_decimal(Tag(137))
10279 }
10280
10281 #[doc(alias = "MiscFeeCurr")]
10283 pub fn misc_fee_curr(&self) -> Result<Option<&'a str>, InvalidValue> {
10284 self.0.get_str(Tag(138))
10285 }
10286
10287 #[doc(alias = "MiscFeeType")]
10289 pub fn misc_fee_type(&self) -> Result<Option<MiscFeeType<'a>>, InvalidValue> {
10290 Ok(self.0.get_str(Tag(139))?.map(MiscFeeType::from_value))
10291 }
10292 }
10293 }
10294 }
10295}
10296
10297pub struct ListCancelRequest(RawMessage);
10299
10300impl ListCancelRequest {
10301 pub const MSG_TYPE: &[u8] = b"K";
10302
10303 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
10304 Tag(8), Tag(9), Tag(10), Tag(34), Tag(35), Tag(43), Tag(49), Tag(50), Tag(52), Tag(56),
10305 Tag(57), Tag(58), Tag(60), Tag(66), Tag(89), Tag(90), Tag(91), Tag(93), Tag(97), Tag(115),
10306 Tag(116), Tag(122), Tag(128), Tag(129), Tag(142), Tag(143), Tag(144), Tag(145), Tag(212),
10307 Tag(213), Tag(347), Tag(354), Tag(355), Tag(369), Tag(370),
10308 ]);
10309
10310 pub fn from_raw(raw: RawMessage) -> Self {
10311 Self(raw)
10312 }
10313
10314 pub fn raw(&self) -> &RawMessage {
10315 &self.0
10316 }
10317
10318 pub fn header(&self) -> Header<'_> {
10319 Header(self.0.scope())
10320 }
10321
10322 pub fn trailer(&self) -> Trailer<'_> {
10323 Trailer(self.0.scope())
10324 }
10325
10326 #[doc(alias = "ListID")]
10328 pub fn list_id(&self) -> Result<Option<&str>, InvalidValue> {
10329 self.0.get_str(Tag(66))
10330 }
10331
10332 #[doc(alias = "TransactTime")]
10334 pub fn transact_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
10335 self.0.get_utc_timestamp(Tag(60))
10336 }
10337
10338 #[doc(alias = "Text")]
10340 pub fn text(&self) -> Result<Option<&str>, InvalidValue> {
10341 self.0.get_str(Tag(58))
10342 }
10343
10344 #[doc(alias = "EncodedTextLen")]
10346 pub fn encoded_text_len(&self) -> Result<Option<i64>, InvalidValue> {
10347 self.0.get_int(Tag(354))
10348 }
10349
10350 #[doc(alias = "EncodedText")]
10352 pub fn encoded_text(&self) -> Option<&[u8]> {
10353 self.0.get(Tag(355))
10354 }
10355}
10356
10357impl std::fmt::Debug for ListCancelRequest {
10358 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
10359 write!(f, "ListCancelRequest({})", self.0)
10360 }
10361}
10362
10363impl std::fmt::Display for ListCancelRequest {
10364 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
10365 std::fmt::Display::fmt(&self.0, f)
10366 }
10367}
10368
10369pub struct ListExecute(RawMessage);
10371
10372impl ListExecute {
10373 pub const MSG_TYPE: &[u8] = b"L";
10374
10375 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
10376 Tag(8), Tag(9), Tag(10), Tag(34), Tag(35), Tag(43), Tag(49), Tag(50), Tag(52), Tag(56),
10377 Tag(57), Tag(58), Tag(60), Tag(66), Tag(89), Tag(90), Tag(91), Tag(93), Tag(97), Tag(115),
10378 Tag(116), Tag(122), Tag(128), Tag(129), Tag(142), Tag(143), Tag(144), Tag(145), Tag(212),
10379 Tag(213), Tag(347), Tag(354), Tag(355), Tag(369), Tag(370), Tag(390), Tag(391),
10380 ]);
10381
10382 pub fn from_raw(raw: RawMessage) -> Self {
10383 Self(raw)
10384 }
10385
10386 pub fn raw(&self) -> &RawMessage {
10387 &self.0
10388 }
10389
10390 pub fn header(&self) -> Header<'_> {
10391 Header(self.0.scope())
10392 }
10393
10394 pub fn trailer(&self) -> Trailer<'_> {
10395 Trailer(self.0.scope())
10396 }
10397
10398 #[doc(alias = "ListID")]
10400 pub fn list_id(&self) -> Result<Option<&str>, InvalidValue> {
10401 self.0.get_str(Tag(66))
10402 }
10403
10404 #[doc(alias = "ClientBidID")]
10406 pub fn client_bid_id(&self) -> Result<Option<&str>, InvalidValue> {
10407 self.0.get_str(Tag(391))
10408 }
10409
10410 #[doc(alias = "BidID")]
10412 pub fn bid_id(&self) -> Result<Option<&str>, InvalidValue> {
10413 self.0.get_str(Tag(390))
10414 }
10415
10416 #[doc(alias = "TransactTime")]
10418 pub fn transact_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
10419 self.0.get_utc_timestamp(Tag(60))
10420 }
10421
10422 #[doc(alias = "Text")]
10424 pub fn text(&self) -> Result<Option<&str>, InvalidValue> {
10425 self.0.get_str(Tag(58))
10426 }
10427
10428 #[doc(alias = "EncodedTextLen")]
10430 pub fn encoded_text_len(&self) -> Result<Option<i64>, InvalidValue> {
10431 self.0.get_int(Tag(354))
10432 }
10433
10434 #[doc(alias = "EncodedText")]
10436 pub fn encoded_text(&self) -> Option<&[u8]> {
10437 self.0.get(Tag(355))
10438 }
10439}
10440
10441impl std::fmt::Debug for ListExecute {
10442 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
10443 write!(f, "ListExecute({})", self.0)
10444 }
10445}
10446
10447impl std::fmt::Display for ListExecute {
10448 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
10449 std::fmt::Display::fmt(&self.0, f)
10450 }
10451}
10452
10453pub struct ListStatusRequest(RawMessage);
10455
10456impl ListStatusRequest {
10457 pub const MSG_TYPE: &[u8] = b"M";
10458
10459 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
10460 Tag(8), Tag(9), Tag(10), Tag(34), Tag(35), Tag(43), Tag(49), Tag(50), Tag(52), Tag(56),
10461 Tag(57), Tag(58), Tag(66), Tag(89), Tag(90), Tag(91), Tag(93), Tag(97), Tag(115), Tag(116),
10462 Tag(122), Tag(128), Tag(129), Tag(142), Tag(143), Tag(144), Tag(145), Tag(212), Tag(213),
10463 Tag(347), Tag(354), Tag(355), Tag(369), Tag(370),
10464 ]);
10465
10466 pub fn from_raw(raw: RawMessage) -> Self {
10467 Self(raw)
10468 }
10469
10470 pub fn raw(&self) -> &RawMessage {
10471 &self.0
10472 }
10473
10474 pub fn header(&self) -> Header<'_> {
10475 Header(self.0.scope())
10476 }
10477
10478 pub fn trailer(&self) -> Trailer<'_> {
10479 Trailer(self.0.scope())
10480 }
10481
10482 #[doc(alias = "ListID")]
10484 pub fn list_id(&self) -> Result<Option<&str>, InvalidValue> {
10485 self.0.get_str(Tag(66))
10486 }
10487
10488 #[doc(alias = "Text")]
10490 pub fn text(&self) -> Result<Option<&str>, InvalidValue> {
10491 self.0.get_str(Tag(58))
10492 }
10493
10494 #[doc(alias = "EncodedTextLen")]
10496 pub fn encoded_text_len(&self) -> Result<Option<i64>, InvalidValue> {
10497 self.0.get_int(Tag(354))
10498 }
10499
10500 #[doc(alias = "EncodedText")]
10502 pub fn encoded_text(&self) -> Option<&[u8]> {
10503 self.0.get(Tag(355))
10504 }
10505}
10506
10507impl std::fmt::Debug for ListStatusRequest {
10508 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
10509 write!(f, "ListStatusRequest({})", self.0)
10510 }
10511}
10512
10513impl std::fmt::Display for ListStatusRequest {
10514 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
10515 std::fmt::Display::fmt(&self.0, f)
10516 }
10517}
10518
10519pub struct ListStatus(RawMessage);
10521
10522impl ListStatus {
10523 pub const MSG_TYPE: &[u8] = b"N";
10524
10525 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
10526 Tag(6), Tag(8), Tag(9), Tag(10), Tag(11), Tag(14), Tag(34), Tag(35), Tag(39), Tag(43),
10527 Tag(49), Tag(50), Tag(52), Tag(56), Tag(57), Tag(58), Tag(60), Tag(66), Tag(68), Tag(73),
10528 Tag(82), Tag(83), Tag(84), Tag(89), Tag(90), Tag(91), Tag(93), Tag(97), Tag(103), Tag(115),
10529 Tag(116), Tag(122), Tag(128), Tag(129), Tag(142), Tag(143), Tag(144), Tag(145), Tag(151),
10530 Tag(212), Tag(213), Tag(347), Tag(354), Tag(355), Tag(369), Tag(370), Tag(429), Tag(431),
10531 Tag(444), Tag(445), Tag(446),
10532 ]);
10533
10534 pub fn from_raw(raw: RawMessage) -> Self {
10535 Self(raw)
10536 }
10537
10538 pub fn raw(&self) -> &RawMessage {
10539 &self.0
10540 }
10541
10542 pub fn header(&self) -> Header<'_> {
10543 Header(self.0.scope())
10544 }
10545
10546 pub fn trailer(&self) -> Trailer<'_> {
10547 Trailer(self.0.scope())
10548 }
10549
10550 #[doc(alias = "ListID")]
10552 pub fn list_id(&self) -> Result<Option<&str>, InvalidValue> {
10553 self.0.get_str(Tag(66))
10554 }
10555
10556 #[doc(alias = "ListStatusType")]
10558 pub fn list_status_type(&self) -> Result<Option<i64>, InvalidValue> {
10559 self.0.get_int(Tag(429))
10560 }
10561
10562 #[doc(alias = "NoRpts")]
10564 pub fn no_rpts(&self) -> Result<Option<i64>, InvalidValue> {
10565 self.0.get_int(Tag(82))
10566 }
10567
10568 #[doc(alias = "ListOrderStatus")]
10570 pub fn list_order_status(&self) -> Result<Option<i64>, InvalidValue> {
10571 self.0.get_int(Tag(431))
10572 }
10573
10574 #[doc(alias = "RptSeq")]
10576 pub fn rpt_seq(&self) -> Result<Option<i64>, InvalidValue> {
10577 self.0.get_int(Tag(83))
10578 }
10579
10580 #[doc(alias = "ListStatusText")]
10582 pub fn list_status_text(&self) -> Result<Option<&str>, InvalidValue> {
10583 self.0.get_str(Tag(444))
10584 }
10585
10586 #[doc(alias = "EncodedListStatusTextLen")]
10588 pub fn encoded_list_status_text_len(&self) -> Result<Option<i64>, InvalidValue> {
10589 self.0.get_int(Tag(445))
10590 }
10591
10592 #[doc(alias = "EncodedListStatusText")]
10594 pub fn encoded_list_status_text(&self) -> Option<&[u8]> {
10595 self.0.get(Tag(446))
10596 }
10597
10598 #[doc(alias = "TransactTime")]
10600 pub fn transact_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
10601 self.0.get_utc_timestamp(Tag(60))
10602 }
10603
10604 #[doc(alias = "TotNoOrders")]
10606 pub fn tot_no_orders(&self) -> Result<Option<i64>, InvalidValue> {
10607 self.0.get_int(Tag(68))
10608 }
10609
10610 #[doc(alias = "NoOrders")]
10612 pub fn orders(&self) -> Result<Instances<'_, list_status::orders::Instance<'_>>, InvalidValue> {
10613 self.0.get_group(&list_status::orders::TABLE, &Self::KNOWN_TAGS).map(Instances::from)
10614 }
10615}
10616
10617impl std::fmt::Debug for ListStatus {
10618 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
10619 write!(f, "ListStatus({})", self.0)
10620 }
10621}
10622
10623impl std::fmt::Display for ListStatus {
10624 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
10625 std::fmt::Display::fmt(&self.0, f)
10626 }
10627}
10628
10629pub mod list_status {
10630 pub mod orders {
10631 use super::super::*;
10632
10633 pub const TABLE: GroupTable<'static> = GroupTable::new(
10634 Tag(73),
10635 Tag(11),
10636 &[
10637 Tag(6), Tag(11), Tag(14), Tag(39), Tag(58), Tag(84), Tag(103), Tag(151), Tag(354),
10638 Tag(355),
10639 ],
10640 &[],
10641 );
10642
10643 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
10644 Tag(6), Tag(11), Tag(14), Tag(39), Tag(58), Tag(84), Tag(103), Tag(151), Tag(354),
10645 Tag(355),
10646 ]);
10647
10648 #[derive(Clone, Copy, Debug)]
10649 pub struct Instance<'a>(refix_message::Scope<'a>);
10650
10651 impl<'a> From<refix_message::Scope<'a>> for Instance<'a> {
10652 fn from(scope: refix_message::Scope<'a>) -> Self {
10653 Self(scope)
10654 }
10655 }
10656
10657 impl<'a> Instance<'a> {
10658 pub fn raw(&self) -> refix_message::Scope<'a> {
10659 self.0
10660 }
10661
10662 #[doc(alias = "ClOrdID")]
10664 pub fn cl_ord_id(&self) -> Result<Option<&'a str>, InvalidValue> {
10665 self.0.get_str(Tag(11))
10666 }
10667
10668 #[doc(alias = "CumQty")]
10670 pub fn cum_qty(&self) -> Result<Option<Decimal>, InvalidValue> {
10671 self.0.get_decimal(Tag(14))
10672 }
10673
10674 #[doc(alias = "OrdStatus")]
10676 pub fn ord_status(&self) -> Result<Option<OrdStatus<'a>>, InvalidValue> {
10677 Ok(self.0.get_str(Tag(39))?.map(OrdStatus::from_value))
10678 }
10679
10680 #[doc(alias = "LeavesQty")]
10682 pub fn leaves_qty(&self) -> Result<Option<Decimal>, InvalidValue> {
10683 self.0.get_decimal(Tag(151))
10684 }
10685
10686 #[doc(alias = "CxlQty")]
10688 pub fn cxl_qty(&self) -> Result<Option<Decimal>, InvalidValue> {
10689 self.0.get_decimal(Tag(84))
10690 }
10691
10692 #[doc(alias = "AvgPx")]
10694 pub fn avg_px(&self) -> Result<Option<Decimal>, InvalidValue> {
10695 self.0.get_decimal(Tag(6))
10696 }
10697
10698 #[doc(alias = "OrdRejReason")]
10700 pub fn ord_rej_reason(&self) -> Result<Option<OrdRejReason>, InvalidValue> {
10701 Ok(self.0.get_int(Tag(103))?.map(OrdRejReason::from_value))
10702 }
10703
10704 #[doc(alias = "Text")]
10706 pub fn text(&self) -> Result<Option<&'a str>, InvalidValue> {
10707 self.0.get_str(Tag(58))
10708 }
10709
10710 #[doc(alias = "EncodedTextLen")]
10712 pub fn encoded_text_len(&self) -> Result<Option<i64>, InvalidValue> {
10713 self.0.get_int(Tag(354))
10714 }
10715
10716 #[doc(alias = "EncodedText")]
10718 pub fn encoded_text(&self) -> Option<&'a [u8]> {
10719 self.0.get(Tag(355))
10720 }
10721 }
10722 }
10723}
10724
10725pub struct AllocationInstructionAck(RawMessage);
10727
10728impl AllocationInstructionAck {
10729 pub const MSG_TYPE: &[u8] = b"P";
10730
10731 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
10732 Tag(8), Tag(9), Tag(10), Tag(34), Tag(35), Tag(43), Tag(49), Tag(50), Tag(52), Tag(56),
10733 Tag(57), Tag(58), Tag(60), Tag(70), Tag(75), Tag(76), Tag(87), Tag(88), Tag(89), Tag(90),
10734 Tag(91), Tag(93), Tag(97), Tag(109), Tag(115), Tag(116), Tag(122), Tag(128), Tag(129),
10735 Tag(142), Tag(143), Tag(144), Tag(145), Tag(212), Tag(213), Tag(347), Tag(354), Tag(355),
10736 Tag(369), Tag(370),
10737 ]);
10738
10739 pub fn from_raw(raw: RawMessage) -> Self {
10740 Self(raw)
10741 }
10742
10743 pub fn raw(&self) -> &RawMessage {
10744 &self.0
10745 }
10746
10747 pub fn header(&self) -> Header<'_> {
10748 Header(self.0.scope())
10749 }
10750
10751 pub fn trailer(&self) -> Trailer<'_> {
10752 Trailer(self.0.scope())
10753 }
10754
10755 #[doc(alias = "ClientID")]
10757 pub fn client_id(&self) -> Result<Option<&str>, InvalidValue> {
10758 self.0.get_str(Tag(109))
10759 }
10760
10761 #[doc(alias = "ExecBroker")]
10763 pub fn exec_broker(&self) -> Result<Option<&str>, InvalidValue> {
10764 self.0.get_str(Tag(76))
10765 }
10766
10767 #[doc(alias = "AllocID")]
10769 pub fn alloc_id(&self) -> Result<Option<&str>, InvalidValue> {
10770 self.0.get_str(Tag(70))
10771 }
10772
10773 #[doc(alias = "TradeDate")]
10775 pub fn trade_date(&self) -> Result<Option<Date>, InvalidValue> {
10776 self.0.get_date(Tag(75))
10777 }
10778
10779 #[doc(alias = "TransactTime")]
10781 pub fn transact_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
10782 self.0.get_utc_timestamp(Tag(60))
10783 }
10784
10785 #[doc(alias = "AllocStatus")]
10787 pub fn alloc_status(&self) -> Result<Option<AllocStatus>, InvalidValue> {
10788 Ok(self.0.get_int(Tag(87))?.map(AllocStatus::from_value))
10789 }
10790
10791 #[doc(alias = "AllocRejCode")]
10793 pub fn alloc_rej_code(&self) -> Result<Option<AllocRejCode>, InvalidValue> {
10794 Ok(self.0.get_int(Tag(88))?.map(AllocRejCode::from_value))
10795 }
10796
10797 #[doc(alias = "Text")]
10799 pub fn text(&self) -> Result<Option<&str>, InvalidValue> {
10800 self.0.get_str(Tag(58))
10801 }
10802
10803 #[doc(alias = "EncodedTextLen")]
10805 pub fn encoded_text_len(&self) -> Result<Option<i64>, InvalidValue> {
10806 self.0.get_int(Tag(354))
10807 }
10808
10809 #[doc(alias = "EncodedText")]
10811 pub fn encoded_text(&self) -> Option<&[u8]> {
10812 self.0.get(Tag(355))
10813 }
10814}
10815
10816impl std::fmt::Debug for AllocationInstructionAck {
10817 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
10818 write!(f, "AllocationInstructionAck({})", self.0)
10819 }
10820}
10821
10822impl std::fmt::Display for AllocationInstructionAck {
10823 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
10824 std::fmt::Display::fmt(&self.0, f)
10825 }
10826}
10827
10828pub struct DontKnowTrade(RawMessage);
10830
10831impl DontKnowTrade {
10832 pub const MSG_TYPE: &[u8] = b"Q";
10833
10834 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
10835 Tag(8), Tag(9), Tag(10), Tag(17), Tag(22), Tag(31), Tag(32), Tag(34), Tag(35), Tag(37),
10836 Tag(38), Tag(43), Tag(48), Tag(49), Tag(50), Tag(52), Tag(54), Tag(55), Tag(56), Tag(57),
10837 Tag(58), Tag(65), Tag(89), Tag(90), Tag(91), Tag(93), Tag(97), Tag(106), Tag(107), Tag(115),
10838 Tag(116), Tag(122), Tag(127), Tag(128), Tag(129), Tag(142), Tag(143), Tag(144), Tag(145),
10839 Tag(152), Tag(167), Tag(200), Tag(201), Tag(202), Tag(205), Tag(206), Tag(207), Tag(212),
10840 Tag(213), Tag(223), Tag(231), Tag(347), Tag(348), Tag(349), Tag(350), Tag(351), Tag(354),
10841 Tag(355), Tag(369), Tag(370),
10842 ]);
10843
10844 pub fn from_raw(raw: RawMessage) -> Self {
10845 Self(raw)
10846 }
10847
10848 pub fn raw(&self) -> &RawMessage {
10849 &self.0
10850 }
10851
10852 pub fn header(&self) -> Header<'_> {
10853 Header(self.0.scope())
10854 }
10855
10856 pub fn trailer(&self) -> Trailer<'_> {
10857 Trailer(self.0.scope())
10858 }
10859
10860 #[doc(alias = "OrderID")]
10862 pub fn order_id(&self) -> Result<Option<&str>, InvalidValue> {
10863 self.0.get_str(Tag(37))
10864 }
10865
10866 #[doc(alias = "ExecID")]
10868 pub fn exec_id(&self) -> Result<Option<&str>, InvalidValue> {
10869 self.0.get_str(Tag(17))
10870 }
10871
10872 #[doc(alias = "DKReason")]
10874 pub fn dk_reason(&self) -> Result<Option<DKReason<'_>>, InvalidValue> {
10875 Ok(self.0.get_str(Tag(127))?.map(DKReason::from_value))
10876 }
10877
10878 #[doc(alias = "Symbol")]
10880 pub fn symbol(&self) -> Result<Option<&str>, InvalidValue> {
10881 self.0.get_str(Tag(55))
10882 }
10883
10884 #[doc(alias = "SymbolSfx")]
10886 pub fn symbol_sfx(&self) -> Result<Option<&str>, InvalidValue> {
10887 self.0.get_str(Tag(65))
10888 }
10889
10890 #[doc(alias = "SecurityID")]
10892 pub fn security_id(&self) -> Result<Option<&str>, InvalidValue> {
10893 self.0.get_str(Tag(48))
10894 }
10895
10896 #[doc(alias = "IDSource")]
10898 pub fn id_source(&self) -> Result<Option<IDSource<'_>>, InvalidValue> {
10899 Ok(self.0.get_str(Tag(22))?.map(IDSource::from_value))
10900 }
10901
10902 #[doc(alias = "SecurityType")]
10904 pub fn security_type(&self) -> Result<Option<SecurityType<'_>>, InvalidValue> {
10905 Ok(self.0.get_str(Tag(167))?.map(SecurityType::from_value))
10906 }
10907
10908 #[doc(alias = "MaturityMonthYear")]
10910 pub fn maturity_month_year(&self) -> Result<Option<MonthYear>, InvalidValue> {
10911 self.0.get_month_year(Tag(200))
10912 }
10913
10914 #[doc(alias = "MaturityDay")]
10916 pub fn maturity_day(&self) -> Result<Option<i64>, InvalidValue> {
10917 self.0.get_int(Tag(205))
10918 }
10919
10920 #[doc(alias = "PutOrCall")]
10922 pub fn put_or_call(&self) -> Result<Option<PutOrCall>, InvalidValue> {
10923 Ok(self.0.get_int(Tag(201))?.map(PutOrCall::from_value))
10924 }
10925
10926 #[doc(alias = "StrikePrice")]
10928 pub fn strike_price(&self) -> Result<Option<Decimal>, InvalidValue> {
10929 self.0.get_decimal(Tag(202))
10930 }
10931
10932 #[doc(alias = "OptAttribute")]
10934 pub fn opt_attribute(&self) -> Result<Option<&str>, InvalidValue> {
10935 self.0.get_str(Tag(206))
10936 }
10937
10938 #[doc(alias = "ContractMultiplier")]
10940 pub fn contract_multiplier(&self) -> Result<Option<Decimal>, InvalidValue> {
10941 self.0.get_decimal(Tag(231))
10942 }
10943
10944 #[doc(alias = "CouponRate")]
10946 pub fn coupon_rate(&self) -> Result<Option<Decimal>, InvalidValue> {
10947 self.0.get_decimal(Tag(223))
10948 }
10949
10950 #[doc(alias = "SecurityExchange")]
10952 pub fn security_exchange(&self) -> Result<Option<&str>, InvalidValue> {
10953 self.0.get_str(Tag(207))
10954 }
10955
10956 #[doc(alias = "Issuer")]
10958 pub fn issuer(&self) -> Result<Option<&str>, InvalidValue> {
10959 self.0.get_str(Tag(106))
10960 }
10961
10962 #[doc(alias = "EncodedIssuerLen")]
10964 pub fn encoded_issuer_len(&self) -> Result<Option<i64>, InvalidValue> {
10965 self.0.get_int(Tag(348))
10966 }
10967
10968 #[doc(alias = "EncodedIssuer")]
10970 pub fn encoded_issuer(&self) -> Option<&[u8]> {
10971 self.0.get(Tag(349))
10972 }
10973
10974 #[doc(alias = "SecurityDesc")]
10976 pub fn security_desc(&self) -> Result<Option<&str>, InvalidValue> {
10977 self.0.get_str(Tag(107))
10978 }
10979
10980 #[doc(alias = "EncodedSecurityDescLen")]
10982 pub fn encoded_security_desc_len(&self) -> Result<Option<i64>, InvalidValue> {
10983 self.0.get_int(Tag(350))
10984 }
10985
10986 #[doc(alias = "EncodedSecurityDesc")]
10988 pub fn encoded_security_desc(&self) -> Option<&[u8]> {
10989 self.0.get(Tag(351))
10990 }
10991
10992 #[doc(alias = "Side")]
10994 pub fn side(&self) -> Result<Option<Side<'_>>, InvalidValue> {
10995 Ok(self.0.get_str(Tag(54))?.map(Side::from_value))
10996 }
10997
10998 #[doc(alias = "OrderQty")]
11000 pub fn order_qty(&self) -> Result<Option<Decimal>, InvalidValue> {
11001 self.0.get_decimal(Tag(38))
11002 }
11003
11004 #[doc(alias = "CashOrderQty")]
11006 pub fn cash_order_qty(&self) -> Result<Option<Decimal>, InvalidValue> {
11007 self.0.get_decimal(Tag(152))
11008 }
11009
11010 #[doc(alias = "LastShares")]
11012 pub fn last_shares(&self) -> Result<Option<Decimal>, InvalidValue> {
11013 self.0.get_decimal(Tag(32))
11014 }
11015
11016 #[doc(alias = "LastPx")]
11018 pub fn last_px(&self) -> Result<Option<Decimal>, InvalidValue> {
11019 self.0.get_decimal(Tag(31))
11020 }
11021
11022 #[doc(alias = "Text")]
11024 pub fn text(&self) -> Result<Option<&str>, InvalidValue> {
11025 self.0.get_str(Tag(58))
11026 }
11027
11028 #[doc(alias = "EncodedTextLen")]
11030 pub fn encoded_text_len(&self) -> Result<Option<i64>, InvalidValue> {
11031 self.0.get_int(Tag(354))
11032 }
11033
11034 #[doc(alias = "EncodedText")]
11036 pub fn encoded_text(&self) -> Option<&[u8]> {
11037 self.0.get(Tag(355))
11038 }
11039}
11040
11041impl std::fmt::Debug for DontKnowTrade {
11042 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
11043 write!(f, "DontKnowTrade({})", self.0)
11044 }
11045}
11046
11047impl std::fmt::Display for DontKnowTrade {
11048 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
11049 std::fmt::Display::fmt(&self.0, f)
11050 }
11051}
11052
11053pub struct QuoteRequest(RawMessage);
11055
11056impl QuoteRequest {
11057 pub const MSG_TYPE: &[u8] = b"R";
11058
11059 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
11060 Tag(8), Tag(9), Tag(10), Tag(15), Tag(22), Tag(34), Tag(35), Tag(38), Tag(40), Tag(43),
11061 Tag(48), Tag(49), Tag(50), Tag(52), Tag(54), Tag(55), Tag(56), Tag(57), Tag(60), Tag(64),
11062 Tag(65), Tag(89), Tag(90), Tag(91), Tag(93), Tag(97), Tag(106), Tag(107), Tag(115),
11063 Tag(116), Tag(122), Tag(126), Tag(128), Tag(129), Tag(131), Tag(140), Tag(142), Tag(143),
11064 Tag(144), Tag(145), Tag(146), Tag(167), Tag(192), Tag(193), Tag(200), Tag(201), Tag(202),
11065 Tag(205), Tag(206), Tag(207), Tag(212), Tag(213), Tag(223), Tag(231), Tag(303), Tag(336),
11066 Tag(347), Tag(348), Tag(349), Tag(350), Tag(351), Tag(369), Tag(370),
11067 ]);
11068
11069 pub fn from_raw(raw: RawMessage) -> Self {
11070 Self(raw)
11071 }
11072
11073 pub fn raw(&self) -> &RawMessage {
11074 &self.0
11075 }
11076
11077 pub fn header(&self) -> Header<'_> {
11078 Header(self.0.scope())
11079 }
11080
11081 pub fn trailer(&self) -> Trailer<'_> {
11082 Trailer(self.0.scope())
11083 }
11084
11085 #[doc(alias = "QuoteReqID")]
11087 pub fn quote_req_id(&self) -> Result<Option<&str>, InvalidValue> {
11088 self.0.get_str(Tag(131))
11089 }
11090
11091 #[doc(alias = "NoRelatedSym")]
11093 pub fn related_sym(&self) -> Result<Instances<'_, quote_request::related_sym::Instance<'_>>, InvalidValue> {
11094 self.0.get_group("e_request::related_sym::TABLE, &Self::KNOWN_TAGS).map(Instances::from)
11095 }
11096}
11097
11098impl std::fmt::Debug for QuoteRequest {
11099 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
11100 write!(f, "QuoteRequest({})", self.0)
11101 }
11102}
11103
11104impl std::fmt::Display for QuoteRequest {
11105 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
11106 std::fmt::Display::fmt(&self.0, f)
11107 }
11108}
11109
11110pub mod quote_request {
11111 pub mod related_sym {
11112 use super::super::*;
11113
11114 pub const TABLE: GroupTable<'static> = GroupTable::new(
11115 Tag(146),
11116 Tag(55),
11117 &[
11118 Tag(15), Tag(22), Tag(38), Tag(40), Tag(48), Tag(54), Tag(55), Tag(60), Tag(64),
11119 Tag(65), Tag(106), Tag(107), Tag(126), Tag(140), Tag(167), Tag(192), Tag(193),
11120 Tag(200), Tag(201), Tag(202), Tag(205), Tag(206), Tag(207), Tag(223), Tag(231),
11121 Tag(303), Tag(336), Tag(348), Tag(349), Tag(350), Tag(351),
11122 ],
11123 &[],
11124 );
11125
11126 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
11127 Tag(15), Tag(22), Tag(38), Tag(40), Tag(48), Tag(54), Tag(55), Tag(60), Tag(64),
11128 Tag(65), Tag(106), Tag(107), Tag(126), Tag(140), Tag(167), Tag(192), Tag(193), Tag(200),
11129 Tag(201), Tag(202), Tag(205), Tag(206), Tag(207), Tag(223), Tag(231), Tag(303),
11130 Tag(336), Tag(348), Tag(349), Tag(350), Tag(351),
11131 ]);
11132
11133 #[derive(Clone, Copy, Debug)]
11134 pub struct Instance<'a>(refix_message::Scope<'a>);
11135
11136 impl<'a> From<refix_message::Scope<'a>> for Instance<'a> {
11137 fn from(scope: refix_message::Scope<'a>) -> Self {
11138 Self(scope)
11139 }
11140 }
11141
11142 impl<'a> Instance<'a> {
11143 pub fn raw(&self) -> refix_message::Scope<'a> {
11144 self.0
11145 }
11146
11147 #[doc(alias = "Symbol")]
11149 pub fn symbol(&self) -> Result<Option<&'a str>, InvalidValue> {
11150 self.0.get_str(Tag(55))
11151 }
11152
11153 #[doc(alias = "SymbolSfx")]
11155 pub fn symbol_sfx(&self) -> Result<Option<&'a str>, InvalidValue> {
11156 self.0.get_str(Tag(65))
11157 }
11158
11159 #[doc(alias = "SecurityID")]
11161 pub fn security_id(&self) -> Result<Option<&'a str>, InvalidValue> {
11162 self.0.get_str(Tag(48))
11163 }
11164
11165 #[doc(alias = "IDSource")]
11167 pub fn id_source(&self) -> Result<Option<IDSource<'a>>, InvalidValue> {
11168 Ok(self.0.get_str(Tag(22))?.map(IDSource::from_value))
11169 }
11170
11171 #[doc(alias = "SecurityType")]
11173 pub fn security_type(&self) -> Result<Option<SecurityType<'a>>, InvalidValue> {
11174 Ok(self.0.get_str(Tag(167))?.map(SecurityType::from_value))
11175 }
11176
11177 #[doc(alias = "MaturityMonthYear")]
11179 pub fn maturity_month_year(&self) -> Result<Option<MonthYear>, InvalidValue> {
11180 self.0.get_month_year(Tag(200))
11181 }
11182
11183 #[doc(alias = "MaturityDay")]
11185 pub fn maturity_day(&self) -> Result<Option<i64>, InvalidValue> {
11186 self.0.get_int(Tag(205))
11187 }
11188
11189 #[doc(alias = "PutOrCall")]
11191 pub fn put_or_call(&self) -> Result<Option<PutOrCall>, InvalidValue> {
11192 Ok(self.0.get_int(Tag(201))?.map(PutOrCall::from_value))
11193 }
11194
11195 #[doc(alias = "StrikePrice")]
11197 pub fn strike_price(&self) -> Result<Option<Decimal>, InvalidValue> {
11198 self.0.get_decimal(Tag(202))
11199 }
11200
11201 #[doc(alias = "OptAttribute")]
11203 pub fn opt_attribute(&self) -> Result<Option<&'a str>, InvalidValue> {
11204 self.0.get_str(Tag(206))
11205 }
11206
11207 #[doc(alias = "ContractMultiplier")]
11209 pub fn contract_multiplier(&self) -> Result<Option<Decimal>, InvalidValue> {
11210 self.0.get_decimal(Tag(231))
11211 }
11212
11213 #[doc(alias = "CouponRate")]
11215 pub fn coupon_rate(&self) -> Result<Option<Decimal>, InvalidValue> {
11216 self.0.get_decimal(Tag(223))
11217 }
11218
11219 #[doc(alias = "SecurityExchange")]
11221 pub fn security_exchange(&self) -> Result<Option<&'a str>, InvalidValue> {
11222 self.0.get_str(Tag(207))
11223 }
11224
11225 #[doc(alias = "Issuer")]
11227 pub fn issuer(&self) -> Result<Option<&'a str>, InvalidValue> {
11228 self.0.get_str(Tag(106))
11229 }
11230
11231 #[doc(alias = "EncodedIssuerLen")]
11233 pub fn encoded_issuer_len(&self) -> Result<Option<i64>, InvalidValue> {
11234 self.0.get_int(Tag(348))
11235 }
11236
11237 #[doc(alias = "EncodedIssuer")]
11239 pub fn encoded_issuer(&self) -> Option<&'a [u8]> {
11240 self.0.get(Tag(349))
11241 }
11242
11243 #[doc(alias = "SecurityDesc")]
11245 pub fn security_desc(&self) -> Result<Option<&'a str>, InvalidValue> {
11246 self.0.get_str(Tag(107))
11247 }
11248
11249 #[doc(alias = "EncodedSecurityDescLen")]
11251 pub fn encoded_security_desc_len(&self) -> Result<Option<i64>, InvalidValue> {
11252 self.0.get_int(Tag(350))
11253 }
11254
11255 #[doc(alias = "EncodedSecurityDesc")]
11257 pub fn encoded_security_desc(&self) -> Option<&'a [u8]> {
11258 self.0.get(Tag(351))
11259 }
11260
11261 #[doc(alias = "PrevClosePx")]
11263 pub fn prev_close_px(&self) -> Result<Option<Decimal>, InvalidValue> {
11264 self.0.get_decimal(Tag(140))
11265 }
11266
11267 #[doc(alias = "QuoteRequestType")]
11269 pub fn quote_request_type(&self) -> Result<Option<QuoteRequestType>, InvalidValue> {
11270 Ok(self.0.get_int(Tag(303))?.map(QuoteRequestType::from_value))
11271 }
11272
11273 #[doc(alias = "TradingSessionID")]
11275 pub fn trading_session_id(&self) -> Result<Option<&'a str>, InvalidValue> {
11276 self.0.get_str(Tag(336))
11277 }
11278
11279 #[doc(alias = "Side")]
11281 pub fn side(&self) -> Result<Option<Side<'a>>, InvalidValue> {
11282 Ok(self.0.get_str(Tag(54))?.map(Side::from_value))
11283 }
11284
11285 #[doc(alias = "OrderQty")]
11287 pub fn order_qty(&self) -> Result<Option<Decimal>, InvalidValue> {
11288 self.0.get_decimal(Tag(38))
11289 }
11290
11291 #[doc(alias = "FutSettDate")]
11293 pub fn fut_sett_date(&self) -> Result<Option<Date>, InvalidValue> {
11294 self.0.get_date(Tag(64))
11295 }
11296
11297 #[doc(alias = "OrdType")]
11299 pub fn ord_type(&self) -> Result<Option<OrdType<'a>>, InvalidValue> {
11300 Ok(self.0.get_str(Tag(40))?.map(OrdType::from_value))
11301 }
11302
11303 #[doc(alias = "FutSettDate2")]
11305 pub fn fut_sett_date2(&self) -> Result<Option<Date>, InvalidValue> {
11306 self.0.get_date(Tag(193))
11307 }
11308
11309 #[doc(alias = "OrderQty2")]
11311 pub fn order_qty2(&self) -> Result<Option<Decimal>, InvalidValue> {
11312 self.0.get_decimal(Tag(192))
11313 }
11314
11315 #[doc(alias = "ExpireTime")]
11317 pub fn expire_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
11318 self.0.get_utc_timestamp(Tag(126))
11319 }
11320
11321 #[doc(alias = "TransactTime")]
11323 pub fn transact_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
11324 self.0.get_utc_timestamp(Tag(60))
11325 }
11326
11327 #[doc(alias = "Currency")]
11329 pub fn currency(&self) -> Result<Option<&'a str>, InvalidValue> {
11330 self.0.get_str(Tag(15))
11331 }
11332 }
11333 }
11334}
11335
11336pub struct Quote(RawMessage);
11338
11339impl Quote {
11340 pub const MSG_TYPE: &[u8] = b"S";
11341
11342 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
11343 Tag(8), Tag(9), Tag(10), Tag(15), Tag(22), Tag(34), Tag(35), Tag(40), Tag(43), Tag(48),
11344 Tag(49), Tag(50), Tag(52), Tag(55), Tag(56), Tag(57), Tag(60), Tag(62), Tag(64), Tag(65),
11345 Tag(89), Tag(90), Tag(91), Tag(93), Tag(97), Tag(106), Tag(107), Tag(115), Tag(116),
11346 Tag(117), Tag(122), Tag(128), Tag(129), Tag(131), Tag(132), Tag(133), Tag(134), Tag(135),
11347 Tag(142), Tag(143), Tag(144), Tag(145), Tag(167), Tag(188), Tag(189), Tag(190), Tag(191),
11348 Tag(192), Tag(193), Tag(200), Tag(201), Tag(202), Tag(205), Tag(206), Tag(207), Tag(212),
11349 Tag(213), Tag(223), Tag(231), Tag(301), Tag(336), Tag(347), Tag(348), Tag(349), Tag(350),
11350 Tag(351), Tag(369), Tag(370),
11351 ]);
11352
11353 pub fn from_raw(raw: RawMessage) -> Self {
11354 Self(raw)
11355 }
11356
11357 pub fn raw(&self) -> &RawMessage {
11358 &self.0
11359 }
11360
11361 pub fn header(&self) -> Header<'_> {
11362 Header(self.0.scope())
11363 }
11364
11365 pub fn trailer(&self) -> Trailer<'_> {
11366 Trailer(self.0.scope())
11367 }
11368
11369 #[doc(alias = "QuoteReqID")]
11371 pub fn quote_req_id(&self) -> Result<Option<&str>, InvalidValue> {
11372 self.0.get_str(Tag(131))
11373 }
11374
11375 #[doc(alias = "QuoteID")]
11377 pub fn quote_id(&self) -> Result<Option<&str>, InvalidValue> {
11378 self.0.get_str(Tag(117))
11379 }
11380
11381 #[doc(alias = "QuoteResponseLevel")]
11383 pub fn quote_response_level(&self) -> Result<Option<QuoteResponseLevel>, InvalidValue> {
11384 Ok(self.0.get_int(Tag(301))?.map(QuoteResponseLevel::from_value))
11385 }
11386
11387 #[doc(alias = "TradingSessionID")]
11389 pub fn trading_session_id(&self) -> Result<Option<&str>, InvalidValue> {
11390 self.0.get_str(Tag(336))
11391 }
11392
11393 #[doc(alias = "Symbol")]
11395 pub fn symbol(&self) -> Result<Option<&str>, InvalidValue> {
11396 self.0.get_str(Tag(55))
11397 }
11398
11399 #[doc(alias = "SymbolSfx")]
11401 pub fn symbol_sfx(&self) -> Result<Option<&str>, InvalidValue> {
11402 self.0.get_str(Tag(65))
11403 }
11404
11405 #[doc(alias = "SecurityID")]
11407 pub fn security_id(&self) -> Result<Option<&str>, InvalidValue> {
11408 self.0.get_str(Tag(48))
11409 }
11410
11411 #[doc(alias = "IDSource")]
11413 pub fn id_source(&self) -> Result<Option<IDSource<'_>>, InvalidValue> {
11414 Ok(self.0.get_str(Tag(22))?.map(IDSource::from_value))
11415 }
11416
11417 #[doc(alias = "SecurityType")]
11419 pub fn security_type(&self) -> Result<Option<SecurityType<'_>>, InvalidValue> {
11420 Ok(self.0.get_str(Tag(167))?.map(SecurityType::from_value))
11421 }
11422
11423 #[doc(alias = "MaturityMonthYear")]
11425 pub fn maturity_month_year(&self) -> Result<Option<MonthYear>, InvalidValue> {
11426 self.0.get_month_year(Tag(200))
11427 }
11428
11429 #[doc(alias = "MaturityDay")]
11431 pub fn maturity_day(&self) -> Result<Option<i64>, InvalidValue> {
11432 self.0.get_int(Tag(205))
11433 }
11434
11435 #[doc(alias = "PutOrCall")]
11437 pub fn put_or_call(&self) -> Result<Option<PutOrCall>, InvalidValue> {
11438 Ok(self.0.get_int(Tag(201))?.map(PutOrCall::from_value))
11439 }
11440
11441 #[doc(alias = "StrikePrice")]
11443 pub fn strike_price(&self) -> Result<Option<Decimal>, InvalidValue> {
11444 self.0.get_decimal(Tag(202))
11445 }
11446
11447 #[doc(alias = "OptAttribute")]
11449 pub fn opt_attribute(&self) -> Result<Option<&str>, InvalidValue> {
11450 self.0.get_str(Tag(206))
11451 }
11452
11453 #[doc(alias = "ContractMultiplier")]
11455 pub fn contract_multiplier(&self) -> Result<Option<Decimal>, InvalidValue> {
11456 self.0.get_decimal(Tag(231))
11457 }
11458
11459 #[doc(alias = "CouponRate")]
11461 pub fn coupon_rate(&self) -> Result<Option<Decimal>, InvalidValue> {
11462 self.0.get_decimal(Tag(223))
11463 }
11464
11465 #[doc(alias = "SecurityExchange")]
11467 pub fn security_exchange(&self) -> Result<Option<&str>, InvalidValue> {
11468 self.0.get_str(Tag(207))
11469 }
11470
11471 #[doc(alias = "Issuer")]
11473 pub fn issuer(&self) -> Result<Option<&str>, InvalidValue> {
11474 self.0.get_str(Tag(106))
11475 }
11476
11477 #[doc(alias = "EncodedIssuerLen")]
11479 pub fn encoded_issuer_len(&self) -> Result<Option<i64>, InvalidValue> {
11480 self.0.get_int(Tag(348))
11481 }
11482
11483 #[doc(alias = "EncodedIssuer")]
11485 pub fn encoded_issuer(&self) -> Option<&[u8]> {
11486 self.0.get(Tag(349))
11487 }
11488
11489 #[doc(alias = "SecurityDesc")]
11491 pub fn security_desc(&self) -> Result<Option<&str>, InvalidValue> {
11492 self.0.get_str(Tag(107))
11493 }
11494
11495 #[doc(alias = "EncodedSecurityDescLen")]
11497 pub fn encoded_security_desc_len(&self) -> Result<Option<i64>, InvalidValue> {
11498 self.0.get_int(Tag(350))
11499 }
11500
11501 #[doc(alias = "EncodedSecurityDesc")]
11503 pub fn encoded_security_desc(&self) -> Option<&[u8]> {
11504 self.0.get(Tag(351))
11505 }
11506
11507 #[doc(alias = "BidPx")]
11509 pub fn bid_px(&self) -> Result<Option<Decimal>, InvalidValue> {
11510 self.0.get_decimal(Tag(132))
11511 }
11512
11513 #[doc(alias = "OfferPx")]
11515 pub fn offer_px(&self) -> Result<Option<Decimal>, InvalidValue> {
11516 self.0.get_decimal(Tag(133))
11517 }
11518
11519 #[doc(alias = "BidSize")]
11521 pub fn bid_size(&self) -> Result<Option<Decimal>, InvalidValue> {
11522 self.0.get_decimal(Tag(134))
11523 }
11524
11525 #[doc(alias = "OfferSize")]
11527 pub fn offer_size(&self) -> Result<Option<Decimal>, InvalidValue> {
11528 self.0.get_decimal(Tag(135))
11529 }
11530
11531 #[doc(alias = "ValidUntilTime")]
11533 pub fn valid_until_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
11534 self.0.get_utc_timestamp(Tag(62))
11535 }
11536
11537 #[doc(alias = "BidSpotRate")]
11539 pub fn bid_spot_rate(&self) -> Result<Option<Decimal>, InvalidValue> {
11540 self.0.get_decimal(Tag(188))
11541 }
11542
11543 #[doc(alias = "OfferSpotRate")]
11545 pub fn offer_spot_rate(&self) -> Result<Option<Decimal>, InvalidValue> {
11546 self.0.get_decimal(Tag(190))
11547 }
11548
11549 #[doc(alias = "BidForwardPoints")]
11551 pub fn bid_forward_points(&self) -> Result<Option<Decimal>, InvalidValue> {
11552 self.0.get_decimal(Tag(189))
11553 }
11554
11555 #[doc(alias = "OfferForwardPoints")]
11557 pub fn offer_forward_points(&self) -> Result<Option<Decimal>, InvalidValue> {
11558 self.0.get_decimal(Tag(191))
11559 }
11560
11561 #[doc(alias = "TransactTime")]
11563 pub fn transact_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
11564 self.0.get_utc_timestamp(Tag(60))
11565 }
11566
11567 #[doc(alias = "FutSettDate")]
11569 pub fn fut_sett_date(&self) -> Result<Option<Date>, InvalidValue> {
11570 self.0.get_date(Tag(64))
11571 }
11572
11573 #[doc(alias = "OrdType")]
11575 pub fn ord_type(&self) -> Result<Option<OrdType<'_>>, InvalidValue> {
11576 Ok(self.0.get_str(Tag(40))?.map(OrdType::from_value))
11577 }
11578
11579 #[doc(alias = "FutSettDate2")]
11581 pub fn fut_sett_date2(&self) -> Result<Option<Date>, InvalidValue> {
11582 self.0.get_date(Tag(193))
11583 }
11584
11585 #[doc(alias = "OrderQty2")]
11587 pub fn order_qty2(&self) -> Result<Option<Decimal>, InvalidValue> {
11588 self.0.get_decimal(Tag(192))
11589 }
11590
11591 #[doc(alias = "Currency")]
11593 pub fn currency(&self) -> Result<Option<&str>, InvalidValue> {
11594 self.0.get_str(Tag(15))
11595 }
11596}
11597
11598impl std::fmt::Debug for Quote {
11599 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
11600 write!(f, "Quote({})", self.0)
11601 }
11602}
11603
11604impl std::fmt::Display for Quote {
11605 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
11606 std::fmt::Display::fmt(&self.0, f)
11607 }
11608}
11609
11610pub struct SettlementInstructions(RawMessage);
11612
11613impl SettlementInstructions {
11614 pub const MSG_TYPE: &[u8] = b"T";
11615
11616 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
11617 Tag(8), Tag(9), Tag(10), Tag(30), Tag(34), Tag(35), Tag(43), Tag(49), Tag(50), Tag(52),
11618 Tag(54), Tag(56), Tag(57), Tag(60), Tag(70), Tag(75), Tag(76), Tag(79), Tag(89), Tag(90),
11619 Tag(91), Tag(93), Tag(97), Tag(109), Tag(115), Tag(116), Tag(122), Tag(128), Tag(129),
11620 Tag(142), Tag(143), Tag(144), Tag(145), Tag(160), Tag(162), Tag(163), Tag(165), Tag(166),
11621 Tag(167), Tag(168), Tag(169), Tag(170), Tag(171), Tag(172), Tag(173), Tag(174), Tag(175),
11622 Tag(176), Tag(177), Tag(178), Tag(179), Tag(180), Tag(181), Tag(182), Tag(183), Tag(184),
11623 Tag(185), Tag(186), Tag(187), Tag(212), Tag(213), Tag(214), Tag(336), Tag(347), Tag(369),
11624 Tag(370),
11625 ]);
11626
11627 pub fn from_raw(raw: RawMessage) -> Self {
11628 Self(raw)
11629 }
11630
11631 pub fn raw(&self) -> &RawMessage {
11632 &self.0
11633 }
11634
11635 pub fn header(&self) -> Header<'_> {
11636 Header(self.0.scope())
11637 }
11638
11639 pub fn trailer(&self) -> Trailer<'_> {
11640 Trailer(self.0.scope())
11641 }
11642
11643 #[doc(alias = "SettlInstID")]
11645 pub fn settl_inst_id(&self) -> Result<Option<&str>, InvalidValue> {
11646 self.0.get_str(Tag(162))
11647 }
11648
11649 #[doc(alias = "SettlInstTransType")]
11651 pub fn settl_inst_trans_type(&self) -> Result<Option<SettlInstTransType<'_>>, InvalidValue> {
11652 Ok(self.0.get_str(Tag(163))?.map(SettlInstTransType::from_value))
11653 }
11654
11655 #[doc(alias = "SettlInstRefID")]
11657 pub fn settl_inst_ref_id(&self) -> Result<Option<&str>, InvalidValue> {
11658 self.0.get_str(Tag(214))
11659 }
11660
11661 #[doc(alias = "SettlInstMode")]
11663 pub fn settl_inst_mode(&self) -> Result<Option<SettlInstMode<'_>>, InvalidValue> {
11664 Ok(self.0.get_str(Tag(160))?.map(SettlInstMode::from_value))
11665 }
11666
11667 #[doc(alias = "SettlInstSource")]
11669 pub fn settl_inst_source(&self) -> Result<Option<SettlInstSource<'_>>, InvalidValue> {
11670 Ok(self.0.get_str(Tag(165))?.map(SettlInstSource::from_value))
11671 }
11672
11673 #[doc(alias = "AllocAccount")]
11675 pub fn alloc_account(&self) -> Result<Option<&str>, InvalidValue> {
11676 self.0.get_str(Tag(79))
11677 }
11678
11679 #[doc(alias = "SettlLocation")]
11681 pub fn settl_location(&self) -> Result<Option<SettlLocation<'_>>, InvalidValue> {
11682 Ok(self.0.get_str(Tag(166))?.map(SettlLocation::from_value))
11683 }
11684
11685 #[doc(alias = "TradeDate")]
11687 pub fn trade_date(&self) -> Result<Option<Date>, InvalidValue> {
11688 self.0.get_date(Tag(75))
11689 }
11690
11691 #[doc(alias = "AllocID")]
11693 pub fn alloc_id(&self) -> Result<Option<&str>, InvalidValue> {
11694 self.0.get_str(Tag(70))
11695 }
11696
11697 #[doc(alias = "LastMkt")]
11699 pub fn last_mkt(&self) -> Result<Option<&str>, InvalidValue> {
11700 self.0.get_str(Tag(30))
11701 }
11702
11703 #[doc(alias = "TradingSessionID")]
11705 pub fn trading_session_id(&self) -> Result<Option<&str>, InvalidValue> {
11706 self.0.get_str(Tag(336))
11707 }
11708
11709 #[doc(alias = "Side")]
11711 pub fn side(&self) -> Result<Option<Side<'_>>, InvalidValue> {
11712 Ok(self.0.get_str(Tag(54))?.map(Side::from_value))
11713 }
11714
11715 #[doc(alias = "SecurityType")]
11717 pub fn security_type(&self) -> Result<Option<SecurityType<'_>>, InvalidValue> {
11718 Ok(self.0.get_str(Tag(167))?.map(SecurityType::from_value))
11719 }
11720
11721 #[doc(alias = "EffectiveTime")]
11723 pub fn effective_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
11724 self.0.get_utc_timestamp(Tag(168))
11725 }
11726
11727 #[doc(alias = "TransactTime")]
11729 pub fn transact_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
11730 self.0.get_utc_timestamp(Tag(60))
11731 }
11732
11733 #[doc(alias = "ClientID")]
11735 pub fn client_id(&self) -> Result<Option<&str>, InvalidValue> {
11736 self.0.get_str(Tag(109))
11737 }
11738
11739 #[doc(alias = "ExecBroker")]
11741 pub fn exec_broker(&self) -> Result<Option<&str>, InvalidValue> {
11742 self.0.get_str(Tag(76))
11743 }
11744
11745 #[doc(alias = "StandInstDbType")]
11747 pub fn stand_inst_db_type(&self) -> Result<Option<StandInstDbType>, InvalidValue> {
11748 Ok(self.0.get_int(Tag(169))?.map(StandInstDbType::from_value))
11749 }
11750
11751 #[doc(alias = "StandInstDbName")]
11753 pub fn stand_inst_db_name(&self) -> Result<Option<&str>, InvalidValue> {
11754 self.0.get_str(Tag(170))
11755 }
11756
11757 #[doc(alias = "StandInstDbID")]
11759 pub fn stand_inst_db_id(&self) -> Result<Option<&str>, InvalidValue> {
11760 self.0.get_str(Tag(171))
11761 }
11762
11763 #[doc(alias = "SettlDeliveryType")]
11765 pub fn settl_delivery_type(&self) -> Result<Option<i64>, InvalidValue> {
11766 self.0.get_int(Tag(172))
11767 }
11768
11769 #[doc(alias = "SettlDepositoryCode")]
11771 pub fn settl_depository_code(&self) -> Result<Option<&str>, InvalidValue> {
11772 self.0.get_str(Tag(173))
11773 }
11774
11775 #[doc(alias = "SettlBrkrCode")]
11777 pub fn settl_brkr_code(&self) -> Result<Option<&str>, InvalidValue> {
11778 self.0.get_str(Tag(174))
11779 }
11780
11781 #[doc(alias = "SettlInstCode")]
11783 pub fn settl_inst_code(&self) -> Result<Option<&str>, InvalidValue> {
11784 self.0.get_str(Tag(175))
11785 }
11786
11787 #[doc(alias = "SecuritySettlAgentName")]
11789 pub fn security_settl_agent_name(&self) -> Result<Option<&str>, InvalidValue> {
11790 self.0.get_str(Tag(176))
11791 }
11792
11793 #[doc(alias = "SecuritySettlAgentCode")]
11795 pub fn security_settl_agent_code(&self) -> Result<Option<&str>, InvalidValue> {
11796 self.0.get_str(Tag(177))
11797 }
11798
11799 #[doc(alias = "SecuritySettlAgentAcctNum")]
11801 pub fn security_settl_agent_acct_num(&self) -> Result<Option<&str>, InvalidValue> {
11802 self.0.get_str(Tag(178))
11803 }
11804
11805 #[doc(alias = "SecuritySettlAgentAcctName")]
11807 pub fn security_settl_agent_acct_name(&self) -> Result<Option<&str>, InvalidValue> {
11808 self.0.get_str(Tag(179))
11809 }
11810
11811 #[doc(alias = "SecuritySettlAgentContactName")]
11813 pub fn security_settl_agent_contact_name(&self) -> Result<Option<&str>, InvalidValue> {
11814 self.0.get_str(Tag(180))
11815 }
11816
11817 #[doc(alias = "SecuritySettlAgentContactPhone")]
11819 pub fn security_settl_agent_contact_phone(&self) -> Result<Option<&str>, InvalidValue> {
11820 self.0.get_str(Tag(181))
11821 }
11822
11823 #[doc(alias = "CashSettlAgentName")]
11825 pub fn cash_settl_agent_name(&self) -> Result<Option<&str>, InvalidValue> {
11826 self.0.get_str(Tag(182))
11827 }
11828
11829 #[doc(alias = "CashSettlAgentCode")]
11831 pub fn cash_settl_agent_code(&self) -> Result<Option<&str>, InvalidValue> {
11832 self.0.get_str(Tag(183))
11833 }
11834
11835 #[doc(alias = "CashSettlAgentAcctNum")]
11837 pub fn cash_settl_agent_acct_num(&self) -> Result<Option<&str>, InvalidValue> {
11838 self.0.get_str(Tag(184))
11839 }
11840
11841 #[doc(alias = "CashSettlAgentAcctName")]
11843 pub fn cash_settl_agent_acct_name(&self) -> Result<Option<&str>, InvalidValue> {
11844 self.0.get_str(Tag(185))
11845 }
11846
11847 #[doc(alias = "CashSettlAgentContactName")]
11849 pub fn cash_settl_agent_contact_name(&self) -> Result<Option<&str>, InvalidValue> {
11850 self.0.get_str(Tag(186))
11851 }
11852
11853 #[doc(alias = "CashSettlAgentContactPhone")]
11855 pub fn cash_settl_agent_contact_phone(&self) -> Result<Option<&str>, InvalidValue> {
11856 self.0.get_str(Tag(187))
11857 }
11858}
11859
11860impl std::fmt::Debug for SettlementInstructions {
11861 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
11862 write!(f, "SettlementInstructions({})", self.0)
11863 }
11864}
11865
11866impl std::fmt::Display for SettlementInstructions {
11867 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
11868 std::fmt::Display::fmt(&self.0, f)
11869 }
11870}
11871
11872pub struct MarketDataRequest(RawMessage);
11874
11875impl MarketDataRequest {
11876 pub const MSG_TYPE: &[u8] = b"V";
11877
11878 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
11879 Tag(8), Tag(9), Tag(10), Tag(22), Tag(34), Tag(35), Tag(43), Tag(48), Tag(49), Tag(50),
11880 Tag(52), Tag(55), Tag(56), Tag(57), Tag(65), Tag(89), Tag(90), Tag(91), Tag(93), Tag(97),
11881 Tag(106), Tag(107), Tag(115), Tag(116), Tag(122), Tag(128), Tag(129), Tag(142), Tag(143),
11882 Tag(144), Tag(145), Tag(146), Tag(167), Tag(200), Tag(201), Tag(202), Tag(205), Tag(206),
11883 Tag(207), Tag(212), Tag(213), Tag(223), Tag(231), Tag(262), Tag(263), Tag(264), Tag(265),
11884 Tag(266), Tag(267), Tag(269), Tag(336), Tag(347), Tag(348), Tag(349), Tag(350), Tag(351),
11885 Tag(369), Tag(370),
11886 ]);
11887
11888 pub fn from_raw(raw: RawMessage) -> Self {
11889 Self(raw)
11890 }
11891
11892 pub fn raw(&self) -> &RawMessage {
11893 &self.0
11894 }
11895
11896 pub fn header(&self) -> Header<'_> {
11897 Header(self.0.scope())
11898 }
11899
11900 pub fn trailer(&self) -> Trailer<'_> {
11901 Trailer(self.0.scope())
11902 }
11903
11904 #[doc(alias = "MDReqID")]
11906 pub fn md_req_id(&self) -> Result<Option<&str>, InvalidValue> {
11907 self.0.get_str(Tag(262))
11908 }
11909
11910 #[doc(alias = "SubscriptionRequestType")]
11912 pub fn subscription_request_type(&self) -> Result<Option<SubscriptionRequestType<'_>>, InvalidValue> {
11913 Ok(self.0.get_str(Tag(263))?.map(SubscriptionRequestType::from_value))
11914 }
11915
11916 #[doc(alias = "MarketDepth")]
11918 pub fn market_depth(&self) -> Result<Option<i64>, InvalidValue> {
11919 self.0.get_int(Tag(264))
11920 }
11921
11922 #[doc(alias = "MDUpdateType")]
11924 pub fn md_update_type(&self) -> Result<Option<MDUpdateType>, InvalidValue> {
11925 Ok(self.0.get_int(Tag(265))?.map(MDUpdateType::from_value))
11926 }
11927
11928 #[doc(alias = "AggregatedBook")]
11930 pub fn aggregated_book(&self) -> Result<Option<bool>, InvalidValue> {
11931 self.0.get_bool(Tag(266))
11932 }
11933
11934 #[doc(alias = "NoMDEntryTypes")]
11936 pub fn md_entry_types(&self) -> Result<Instances<'_, market_data_request::md_entry_types::Instance<'_>>, InvalidValue> {
11937 self.0.get_group(&market_data_request::md_entry_types::TABLE, &Self::KNOWN_TAGS).map(Instances::from)
11938 }
11939
11940 #[doc(alias = "NoRelatedSym")]
11942 pub fn related_sym(&self) -> Result<Instances<'_, market_data_request::related_sym::Instance<'_>>, InvalidValue> {
11943 self.0.get_group(&market_data_request::related_sym::TABLE, &Self::KNOWN_TAGS).map(Instances::from)
11944 }
11945}
11946
11947impl std::fmt::Debug for MarketDataRequest {
11948 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
11949 write!(f, "MarketDataRequest({})", self.0)
11950 }
11951}
11952
11953impl std::fmt::Display for MarketDataRequest {
11954 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
11955 std::fmt::Display::fmt(&self.0, f)
11956 }
11957}
11958
11959pub mod market_data_request {
11960 pub mod md_entry_types {
11961 use super::super::*;
11962
11963 pub const TABLE: GroupTable<'static> = GroupTable::new(
11964 Tag(267),
11965 Tag(269),
11966 &[Tag(269)],
11967 &[],
11968 );
11969
11970 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[Tag(269)]);
11971
11972 #[derive(Clone, Copy, Debug)]
11973 pub struct Instance<'a>(refix_message::Scope<'a>);
11974
11975 impl<'a> From<refix_message::Scope<'a>> for Instance<'a> {
11976 fn from(scope: refix_message::Scope<'a>) -> Self {
11977 Self(scope)
11978 }
11979 }
11980
11981 impl<'a> Instance<'a> {
11982 pub fn raw(&self) -> refix_message::Scope<'a> {
11983 self.0
11984 }
11985
11986 #[doc(alias = "MDEntryType")]
11988 pub fn md_entry_type(&self) -> Result<Option<MDEntryType<'a>>, InvalidValue> {
11989 Ok(self.0.get_str(Tag(269))?.map(MDEntryType::from_value))
11990 }
11991 }
11992 }
11993
11994 pub mod related_sym {
11995 use super::super::*;
11996
11997 pub const TABLE: GroupTable<'static> = GroupTable::new(
11998 Tag(146),
11999 Tag(55),
12000 &[
12001 Tag(22), Tag(48), Tag(55), Tag(65), Tag(106), Tag(107), Tag(167), Tag(200),
12002 Tag(201), Tag(202), Tag(205), Tag(206), Tag(207), Tag(223), Tag(231), Tag(336),
12003 Tag(348), Tag(349), Tag(350), Tag(351),
12004 ],
12005 &[],
12006 );
12007
12008 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
12009 Tag(22), Tag(48), Tag(55), Tag(65), Tag(106), Tag(107), Tag(167), Tag(200), Tag(201),
12010 Tag(202), Tag(205), Tag(206), Tag(207), Tag(223), Tag(231), Tag(336), Tag(348),
12011 Tag(349), Tag(350), Tag(351),
12012 ]);
12013
12014 #[derive(Clone, Copy, Debug)]
12015 pub struct Instance<'a>(refix_message::Scope<'a>);
12016
12017 impl<'a> From<refix_message::Scope<'a>> for Instance<'a> {
12018 fn from(scope: refix_message::Scope<'a>) -> Self {
12019 Self(scope)
12020 }
12021 }
12022
12023 impl<'a> Instance<'a> {
12024 pub fn raw(&self) -> refix_message::Scope<'a> {
12025 self.0
12026 }
12027
12028 #[doc(alias = "Symbol")]
12030 pub fn symbol(&self) -> Result<Option<&'a str>, InvalidValue> {
12031 self.0.get_str(Tag(55))
12032 }
12033
12034 #[doc(alias = "SymbolSfx")]
12036 pub fn symbol_sfx(&self) -> Result<Option<&'a str>, InvalidValue> {
12037 self.0.get_str(Tag(65))
12038 }
12039
12040 #[doc(alias = "SecurityID")]
12042 pub fn security_id(&self) -> Result<Option<&'a str>, InvalidValue> {
12043 self.0.get_str(Tag(48))
12044 }
12045
12046 #[doc(alias = "IDSource")]
12048 pub fn id_source(&self) -> Result<Option<IDSource<'a>>, InvalidValue> {
12049 Ok(self.0.get_str(Tag(22))?.map(IDSource::from_value))
12050 }
12051
12052 #[doc(alias = "SecurityType")]
12054 pub fn security_type(&self) -> Result<Option<SecurityType<'a>>, InvalidValue> {
12055 Ok(self.0.get_str(Tag(167))?.map(SecurityType::from_value))
12056 }
12057
12058 #[doc(alias = "MaturityMonthYear")]
12060 pub fn maturity_month_year(&self) -> Result<Option<MonthYear>, InvalidValue> {
12061 self.0.get_month_year(Tag(200))
12062 }
12063
12064 #[doc(alias = "MaturityDay")]
12066 pub fn maturity_day(&self) -> Result<Option<i64>, InvalidValue> {
12067 self.0.get_int(Tag(205))
12068 }
12069
12070 #[doc(alias = "PutOrCall")]
12072 pub fn put_or_call(&self) -> Result<Option<PutOrCall>, InvalidValue> {
12073 Ok(self.0.get_int(Tag(201))?.map(PutOrCall::from_value))
12074 }
12075
12076 #[doc(alias = "StrikePrice")]
12078 pub fn strike_price(&self) -> Result<Option<Decimal>, InvalidValue> {
12079 self.0.get_decimal(Tag(202))
12080 }
12081
12082 #[doc(alias = "OptAttribute")]
12084 pub fn opt_attribute(&self) -> Result<Option<&'a str>, InvalidValue> {
12085 self.0.get_str(Tag(206))
12086 }
12087
12088 #[doc(alias = "ContractMultiplier")]
12090 pub fn contract_multiplier(&self) -> Result<Option<Decimal>, InvalidValue> {
12091 self.0.get_decimal(Tag(231))
12092 }
12093
12094 #[doc(alias = "CouponRate")]
12096 pub fn coupon_rate(&self) -> Result<Option<Decimal>, InvalidValue> {
12097 self.0.get_decimal(Tag(223))
12098 }
12099
12100 #[doc(alias = "SecurityExchange")]
12102 pub fn security_exchange(&self) -> Result<Option<&'a str>, InvalidValue> {
12103 self.0.get_str(Tag(207))
12104 }
12105
12106 #[doc(alias = "Issuer")]
12108 pub fn issuer(&self) -> Result<Option<&'a str>, InvalidValue> {
12109 self.0.get_str(Tag(106))
12110 }
12111
12112 #[doc(alias = "EncodedIssuerLen")]
12114 pub fn encoded_issuer_len(&self) -> Result<Option<i64>, InvalidValue> {
12115 self.0.get_int(Tag(348))
12116 }
12117
12118 #[doc(alias = "EncodedIssuer")]
12120 pub fn encoded_issuer(&self) -> Option<&'a [u8]> {
12121 self.0.get(Tag(349))
12122 }
12123
12124 #[doc(alias = "SecurityDesc")]
12126 pub fn security_desc(&self) -> Result<Option<&'a str>, InvalidValue> {
12127 self.0.get_str(Tag(107))
12128 }
12129
12130 #[doc(alias = "EncodedSecurityDescLen")]
12132 pub fn encoded_security_desc_len(&self) -> Result<Option<i64>, InvalidValue> {
12133 self.0.get_int(Tag(350))
12134 }
12135
12136 #[doc(alias = "EncodedSecurityDesc")]
12138 pub fn encoded_security_desc(&self) -> Option<&'a [u8]> {
12139 self.0.get(Tag(351))
12140 }
12141
12142 #[doc(alias = "TradingSessionID")]
12144 pub fn trading_session_id(&self) -> Result<Option<&'a str>, InvalidValue> {
12145 self.0.get_str(Tag(336))
12146 }
12147 }
12148 }
12149}
12150
12151pub struct MarketDataSnapshotFullRefresh(RawMessage);
12153
12154impl MarketDataSnapshotFullRefresh {
12155 pub const MSG_TYPE: &[u8] = b"W";
12156
12157 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
12158 Tag(8), Tag(9), Tag(10), Tag(15), Tag(18), Tag(22), Tag(34), Tag(35), Tag(37), Tag(43),
12159 Tag(48), Tag(49), Tag(50), Tag(52), Tag(55), Tag(56), Tag(57), Tag(58), Tag(59), Tag(65),
12160 Tag(89), Tag(90), Tag(91), Tag(93), Tag(97), Tag(106), Tag(107), Tag(110), Tag(115),
12161 Tag(116), Tag(122), Tag(126), Tag(128), Tag(129), Tag(142), Tag(143), Tag(144), Tag(145),
12162 Tag(167), Tag(200), Tag(201), Tag(202), Tag(205), Tag(206), Tag(207), Tag(212), Tag(213),
12163 Tag(223), Tag(231), Tag(262), Tag(268), Tag(269), Tag(270), Tag(271), Tag(272), Tag(273),
12164 Tag(274), Tag(275), Tag(276), Tag(277), Tag(282), Tag(283), Tag(284), Tag(286), Tag(287),
12165 Tag(288), Tag(289), Tag(290), Tag(291), Tag(292), Tag(299), Tag(336), Tag(346), Tag(347),
12166 Tag(348), Tag(349), Tag(350), Tag(351), Tag(354), Tag(355), Tag(369), Tag(370), Tag(387),
12167 Tag(432),
12168 ]);
12169
12170 pub fn from_raw(raw: RawMessage) -> Self {
12171 Self(raw)
12172 }
12173
12174 pub fn raw(&self) -> &RawMessage {
12175 &self.0
12176 }
12177
12178 pub fn header(&self) -> Header<'_> {
12179 Header(self.0.scope())
12180 }
12181
12182 pub fn trailer(&self) -> Trailer<'_> {
12183 Trailer(self.0.scope())
12184 }
12185
12186 #[doc(alias = "MDReqID")]
12188 pub fn md_req_id(&self) -> Result<Option<&str>, InvalidValue> {
12189 self.0.get_str(Tag(262))
12190 }
12191
12192 #[doc(alias = "Symbol")]
12194 pub fn symbol(&self) -> Result<Option<&str>, InvalidValue> {
12195 self.0.get_str(Tag(55))
12196 }
12197
12198 #[doc(alias = "SymbolSfx")]
12200 pub fn symbol_sfx(&self) -> Result<Option<&str>, InvalidValue> {
12201 self.0.get_str(Tag(65))
12202 }
12203
12204 #[doc(alias = "SecurityID")]
12206 pub fn security_id(&self) -> Result<Option<&str>, InvalidValue> {
12207 self.0.get_str(Tag(48))
12208 }
12209
12210 #[doc(alias = "IDSource")]
12212 pub fn id_source(&self) -> Result<Option<IDSource<'_>>, InvalidValue> {
12213 Ok(self.0.get_str(Tag(22))?.map(IDSource::from_value))
12214 }
12215
12216 #[doc(alias = "SecurityType")]
12218 pub fn security_type(&self) -> Result<Option<SecurityType<'_>>, InvalidValue> {
12219 Ok(self.0.get_str(Tag(167))?.map(SecurityType::from_value))
12220 }
12221
12222 #[doc(alias = "MaturityMonthYear")]
12224 pub fn maturity_month_year(&self) -> Result<Option<MonthYear>, InvalidValue> {
12225 self.0.get_month_year(Tag(200))
12226 }
12227
12228 #[doc(alias = "MaturityDay")]
12230 pub fn maturity_day(&self) -> Result<Option<i64>, InvalidValue> {
12231 self.0.get_int(Tag(205))
12232 }
12233
12234 #[doc(alias = "PutOrCall")]
12236 pub fn put_or_call(&self) -> Result<Option<PutOrCall>, InvalidValue> {
12237 Ok(self.0.get_int(Tag(201))?.map(PutOrCall::from_value))
12238 }
12239
12240 #[doc(alias = "StrikePrice")]
12242 pub fn strike_price(&self) -> Result<Option<Decimal>, InvalidValue> {
12243 self.0.get_decimal(Tag(202))
12244 }
12245
12246 #[doc(alias = "OptAttribute")]
12248 pub fn opt_attribute(&self) -> Result<Option<&str>, InvalidValue> {
12249 self.0.get_str(Tag(206))
12250 }
12251
12252 #[doc(alias = "ContractMultiplier")]
12254 pub fn contract_multiplier(&self) -> Result<Option<Decimal>, InvalidValue> {
12255 self.0.get_decimal(Tag(231))
12256 }
12257
12258 #[doc(alias = "CouponRate")]
12260 pub fn coupon_rate(&self) -> Result<Option<Decimal>, InvalidValue> {
12261 self.0.get_decimal(Tag(223))
12262 }
12263
12264 #[doc(alias = "SecurityExchange")]
12266 pub fn security_exchange(&self) -> Result<Option<&str>, InvalidValue> {
12267 self.0.get_str(Tag(207))
12268 }
12269
12270 #[doc(alias = "Issuer")]
12272 pub fn issuer(&self) -> Result<Option<&str>, InvalidValue> {
12273 self.0.get_str(Tag(106))
12274 }
12275
12276 #[doc(alias = "EncodedIssuerLen")]
12278 pub fn encoded_issuer_len(&self) -> Result<Option<i64>, InvalidValue> {
12279 self.0.get_int(Tag(348))
12280 }
12281
12282 #[doc(alias = "EncodedIssuer")]
12284 pub fn encoded_issuer(&self) -> Option<&[u8]> {
12285 self.0.get(Tag(349))
12286 }
12287
12288 #[doc(alias = "SecurityDesc")]
12290 pub fn security_desc(&self) -> Result<Option<&str>, InvalidValue> {
12291 self.0.get_str(Tag(107))
12292 }
12293
12294 #[doc(alias = "EncodedSecurityDescLen")]
12296 pub fn encoded_security_desc_len(&self) -> Result<Option<i64>, InvalidValue> {
12297 self.0.get_int(Tag(350))
12298 }
12299
12300 #[doc(alias = "EncodedSecurityDesc")]
12302 pub fn encoded_security_desc(&self) -> Option<&[u8]> {
12303 self.0.get(Tag(351))
12304 }
12305
12306 #[doc(alias = "FinancialStatus")]
12308 pub fn financial_status(&self) -> Result<Option<FinancialStatus<'_>>, InvalidValue> {
12309 Ok(self.0.get_str(Tag(291))?.map(FinancialStatus::from_value))
12310 }
12311
12312 #[doc(alias = "CorporateAction")]
12314 pub fn corporate_action(&self) -> Result<Option<CorporateAction<'_>>, InvalidValue> {
12315 Ok(self.0.get_str(Tag(292))?.map(CorporateAction::from_value))
12316 }
12317
12318 #[doc(alias = "TotalVolumeTraded")]
12320 pub fn total_volume_traded(&self) -> Result<Option<Decimal>, InvalidValue> {
12321 self.0.get_decimal(Tag(387))
12322 }
12323
12324 #[doc(alias = "NoMDEntries")]
12326 pub fn md_entries(&self) -> Result<Instances<'_, market_data_snapshot_full_refresh::md_entries::Instance<'_>>, InvalidValue> {
12327 self.0.get_group(&market_data_snapshot_full_refresh::md_entries::TABLE, &Self::KNOWN_TAGS).map(Instances::from)
12328 }
12329}
12330
12331impl std::fmt::Debug for MarketDataSnapshotFullRefresh {
12332 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
12333 write!(f, "MarketDataSnapshotFullRefresh({})", self.0)
12334 }
12335}
12336
12337impl std::fmt::Display for MarketDataSnapshotFullRefresh {
12338 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
12339 std::fmt::Display::fmt(&self.0, f)
12340 }
12341}
12342
12343pub mod market_data_snapshot_full_refresh {
12344 pub mod md_entries {
12345 use super::super::*;
12346
12347 pub const TABLE: GroupTable<'static> = GroupTable::new(
12348 Tag(268),
12349 Tag(269),
12350 &[
12351 Tag(15), Tag(18), Tag(37), Tag(58), Tag(59), Tag(110), Tag(126), Tag(269), Tag(270),
12352 Tag(271), Tag(272), Tag(273), Tag(274), Tag(275), Tag(276), Tag(277), Tag(282),
12353 Tag(283), Tag(284), Tag(286), Tag(287), Tag(288), Tag(289), Tag(290), Tag(299),
12354 Tag(336), Tag(346), Tag(354), Tag(355), Tag(432),
12355 ],
12356 &[],
12357 );
12358
12359 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
12360 Tag(15), Tag(18), Tag(37), Tag(58), Tag(59), Tag(110), Tag(126), Tag(269), Tag(270),
12361 Tag(271), Tag(272), Tag(273), Tag(274), Tag(275), Tag(276), Tag(277), Tag(282),
12362 Tag(283), Tag(284), Tag(286), Tag(287), Tag(288), Tag(289), Tag(290), Tag(299),
12363 Tag(336), Tag(346), Tag(354), Tag(355), Tag(432),
12364 ]);
12365
12366 #[derive(Clone, Copy, Debug)]
12367 pub struct Instance<'a>(refix_message::Scope<'a>);
12368
12369 impl<'a> From<refix_message::Scope<'a>> for Instance<'a> {
12370 fn from(scope: refix_message::Scope<'a>) -> Self {
12371 Self(scope)
12372 }
12373 }
12374
12375 impl<'a> Instance<'a> {
12376 pub fn raw(&self) -> refix_message::Scope<'a> {
12377 self.0
12378 }
12379
12380 #[doc(alias = "MDEntryType")]
12382 pub fn md_entry_type(&self) -> Result<Option<MDEntryType<'a>>, InvalidValue> {
12383 Ok(self.0.get_str(Tag(269))?.map(MDEntryType::from_value))
12384 }
12385
12386 #[doc(alias = "MDEntryPx")]
12388 pub fn md_entry_px(&self) -> Result<Option<Decimal>, InvalidValue> {
12389 self.0.get_decimal(Tag(270))
12390 }
12391
12392 #[doc(alias = "Currency")]
12394 pub fn currency(&self) -> Result<Option<&'a str>, InvalidValue> {
12395 self.0.get_str(Tag(15))
12396 }
12397
12398 #[doc(alias = "MDEntrySize")]
12400 pub fn md_entry_size(&self) -> Result<Option<Decimal>, InvalidValue> {
12401 self.0.get_decimal(Tag(271))
12402 }
12403
12404 #[doc(alias = "MDEntryDate")]
12406 pub fn md_entry_date(&self) -> Result<Option<Date>, InvalidValue> {
12407 self.0.get_date(Tag(272))
12408 }
12409
12410 #[doc(alias = "MDEntryTime")]
12412 pub fn md_entry_time(&self) -> Result<Option<Time>, InvalidValue> {
12413 self.0.get_time(Tag(273))
12414 }
12415
12416 #[doc(alias = "TickDirection")]
12418 pub fn tick_direction(&self) -> Result<Option<TickDirection<'a>>, InvalidValue> {
12419 Ok(self.0.get_str(Tag(274))?.map(TickDirection::from_value))
12420 }
12421
12422 #[doc(alias = "MDMkt")]
12424 pub fn md_mkt(&self) -> Result<Option<&'a str>, InvalidValue> {
12425 self.0.get_str(Tag(275))
12426 }
12427
12428 #[doc(alias = "TradingSessionID")]
12430 pub fn trading_session_id(&self) -> Result<Option<&'a str>, InvalidValue> {
12431 self.0.get_str(Tag(336))
12432 }
12433
12434 #[doc(alias = "QuoteCondition")]
12436 pub fn quote_condition(&self) -> Result<Option<MultipleValues<'a, QuoteCondition<'a>>>, InvalidValue> {
12437 self.0.get_multiple_values(Tag(276))
12438 }
12439
12440 #[doc(alias = "TradeCondition")]
12442 pub fn trade_condition(&self) -> Result<Option<MultipleValues<'a, TradeCondition<'a>>>, InvalidValue> {
12443 self.0.get_multiple_values(Tag(277))
12444 }
12445
12446 #[doc(alias = "MDEntryOriginator")]
12448 pub fn md_entry_originator(&self) -> Result<Option<&'a str>, InvalidValue> {
12449 self.0.get_str(Tag(282))
12450 }
12451
12452 #[doc(alias = "LocationID")]
12454 pub fn location_id(&self) -> Result<Option<&'a str>, InvalidValue> {
12455 self.0.get_str(Tag(283))
12456 }
12457
12458 #[doc(alias = "DeskID")]
12460 pub fn desk_id(&self) -> Result<Option<&'a str>, InvalidValue> {
12461 self.0.get_str(Tag(284))
12462 }
12463
12464 #[doc(alias = "OpenCloseSettleFlag")]
12466 pub fn open_close_settle_flag(&self) -> Result<Option<OpenCloseSettleFlag<'a>>, InvalidValue> {
12467 Ok(self.0.get_str(Tag(286))?.map(OpenCloseSettleFlag::from_value))
12468 }
12469
12470 #[doc(alias = "TimeInForce")]
12472 pub fn time_in_force(&self) -> Result<Option<TimeInForce<'a>>, InvalidValue> {
12473 Ok(self.0.get_str(Tag(59))?.map(TimeInForce::from_value))
12474 }
12475
12476 #[doc(alias = "ExpireDate")]
12478 pub fn expire_date(&self) -> Result<Option<Date>, InvalidValue> {
12479 self.0.get_date(Tag(432))
12480 }
12481
12482 #[doc(alias = "ExpireTime")]
12484 pub fn expire_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
12485 self.0.get_utc_timestamp(Tag(126))
12486 }
12487
12488 #[doc(alias = "MinQty")]
12490 pub fn min_qty(&self) -> Result<Option<Decimal>, InvalidValue> {
12491 self.0.get_decimal(Tag(110))
12492 }
12493
12494 #[doc(alias = "ExecInst")]
12496 pub fn exec_inst(&self) -> Result<Option<MultipleValues<'a, ExecInst<'a>>>, InvalidValue> {
12497 self.0.get_multiple_values(Tag(18))
12498 }
12499
12500 #[doc(alias = "SellerDays")]
12502 pub fn seller_days(&self) -> Result<Option<i64>, InvalidValue> {
12503 self.0.get_int(Tag(287))
12504 }
12505
12506 #[doc(alias = "OrderID")]
12508 pub fn order_id(&self) -> Result<Option<&'a str>, InvalidValue> {
12509 self.0.get_str(Tag(37))
12510 }
12511
12512 #[doc(alias = "QuoteEntryID")]
12514 pub fn quote_entry_id(&self) -> Result<Option<&'a str>, InvalidValue> {
12515 self.0.get_str(Tag(299))
12516 }
12517
12518 #[doc(alias = "MDEntryBuyer")]
12520 pub fn md_entry_buyer(&self) -> Result<Option<&'a str>, InvalidValue> {
12521 self.0.get_str(Tag(288))
12522 }
12523
12524 #[doc(alias = "MDEntrySeller")]
12526 pub fn md_entry_seller(&self) -> Result<Option<&'a str>, InvalidValue> {
12527 self.0.get_str(Tag(289))
12528 }
12529
12530 #[doc(alias = "NumberOfOrders")]
12532 pub fn number_of_orders(&self) -> Result<Option<i64>, InvalidValue> {
12533 self.0.get_int(Tag(346))
12534 }
12535
12536 #[doc(alias = "MDEntryPositionNo")]
12538 pub fn md_entry_position_no(&self) -> Result<Option<i64>, InvalidValue> {
12539 self.0.get_int(Tag(290))
12540 }
12541
12542 #[doc(alias = "Text")]
12544 pub fn text(&self) -> Result<Option<&'a str>, InvalidValue> {
12545 self.0.get_str(Tag(58))
12546 }
12547
12548 #[doc(alias = "EncodedTextLen")]
12550 pub fn encoded_text_len(&self) -> Result<Option<i64>, InvalidValue> {
12551 self.0.get_int(Tag(354))
12552 }
12553
12554 #[doc(alias = "EncodedText")]
12556 pub fn encoded_text(&self) -> Option<&'a [u8]> {
12557 self.0.get(Tag(355))
12558 }
12559 }
12560 }
12561}
12562
12563pub struct MarketDataIncrementalRefresh(RawMessage);
12565
12566impl MarketDataIncrementalRefresh {
12567 pub const MSG_TYPE: &[u8] = b"X";
12568
12569 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
12570 Tag(8), Tag(9), Tag(10), Tag(15), Tag(18), Tag(22), Tag(34), Tag(35), Tag(37), Tag(43),
12571 Tag(48), Tag(49), Tag(50), Tag(52), Tag(55), Tag(56), Tag(57), Tag(58), Tag(59), Tag(65),
12572 Tag(89), Tag(90), Tag(91), Tag(93), Tag(97), Tag(106), Tag(107), Tag(110), Tag(115),
12573 Tag(116), Tag(122), Tag(126), Tag(128), Tag(129), Tag(142), Tag(143), Tag(144), Tag(145),
12574 Tag(167), Tag(200), Tag(201), Tag(202), Tag(205), Tag(206), Tag(207), Tag(212), Tag(213),
12575 Tag(223), Tag(231), Tag(262), Tag(268), Tag(269), Tag(270), Tag(271), Tag(272), Tag(273),
12576 Tag(274), Tag(275), Tag(276), Tag(277), Tag(278), Tag(279), Tag(280), Tag(282), Tag(283),
12577 Tag(284), Tag(285), Tag(286), Tag(287), Tag(288), Tag(289), Tag(290), Tag(291), Tag(292),
12578 Tag(299), Tag(336), Tag(346), Tag(347), Tag(348), Tag(349), Tag(350), Tag(351), Tag(354),
12579 Tag(355), Tag(369), Tag(370), Tag(387), Tag(432),
12580 ]);
12581
12582 pub fn from_raw(raw: RawMessage) -> Self {
12583 Self(raw)
12584 }
12585
12586 pub fn raw(&self) -> &RawMessage {
12587 &self.0
12588 }
12589
12590 pub fn header(&self) -> Header<'_> {
12591 Header(self.0.scope())
12592 }
12593
12594 pub fn trailer(&self) -> Trailer<'_> {
12595 Trailer(self.0.scope())
12596 }
12597
12598 #[doc(alias = "MDReqID")]
12600 pub fn md_req_id(&self) -> Result<Option<&str>, InvalidValue> {
12601 self.0.get_str(Tag(262))
12602 }
12603
12604 #[doc(alias = "NoMDEntries")]
12606 pub fn md_entries(&self) -> Result<Instances<'_, market_data_incremental_refresh::md_entries::Instance<'_>>, InvalidValue> {
12607 self.0.get_group(&market_data_incremental_refresh::md_entries::TABLE, &Self::KNOWN_TAGS).map(Instances::from)
12608 }
12609}
12610
12611impl std::fmt::Debug for MarketDataIncrementalRefresh {
12612 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
12613 write!(f, "MarketDataIncrementalRefresh({})", self.0)
12614 }
12615}
12616
12617impl std::fmt::Display for MarketDataIncrementalRefresh {
12618 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
12619 std::fmt::Display::fmt(&self.0, f)
12620 }
12621}
12622
12623pub mod market_data_incremental_refresh {
12624 pub mod md_entries {
12625 use super::super::*;
12626
12627 pub const TABLE: GroupTable<'static> = GroupTable::new(
12628 Tag(268),
12629 Tag(279),
12630 &[
12631 Tag(15), Tag(18), Tag(22), Tag(37), Tag(48), Tag(55), Tag(58), Tag(59), Tag(65),
12632 Tag(106), Tag(107), Tag(110), Tag(126), Tag(167), Tag(200), Tag(201), Tag(202),
12633 Tag(205), Tag(206), Tag(207), Tag(223), Tag(231), Tag(269), Tag(270), Tag(271),
12634 Tag(272), Tag(273), Tag(274), Tag(275), Tag(276), Tag(277), Tag(278), Tag(279),
12635 Tag(280), Tag(282), Tag(283), Tag(284), Tag(285), Tag(286), Tag(287), Tag(288),
12636 Tag(289), Tag(290), Tag(291), Tag(292), Tag(299), Tag(336), Tag(346), Tag(348),
12637 Tag(349), Tag(350), Tag(351), Tag(354), Tag(355), Tag(387), Tag(432),
12638 ],
12639 &[],
12640 );
12641
12642 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
12643 Tag(15), Tag(18), Tag(22), Tag(37), Tag(48), Tag(55), Tag(58), Tag(59), Tag(65),
12644 Tag(106), Tag(107), Tag(110), Tag(126), Tag(167), Tag(200), Tag(201), Tag(202),
12645 Tag(205), Tag(206), Tag(207), Tag(223), Tag(231), Tag(269), Tag(270), Tag(271),
12646 Tag(272), Tag(273), Tag(274), Tag(275), Tag(276), Tag(277), Tag(278), Tag(279),
12647 Tag(280), Tag(282), Tag(283), Tag(284), Tag(285), Tag(286), Tag(287), Tag(288),
12648 Tag(289), Tag(290), Tag(291), Tag(292), Tag(299), Tag(336), Tag(346), Tag(348),
12649 Tag(349), Tag(350), Tag(351), Tag(354), Tag(355), Tag(387), Tag(432),
12650 ]);
12651
12652 #[derive(Clone, Copy, Debug)]
12653 pub struct Instance<'a>(refix_message::Scope<'a>);
12654
12655 impl<'a> From<refix_message::Scope<'a>> for Instance<'a> {
12656 fn from(scope: refix_message::Scope<'a>) -> Self {
12657 Self(scope)
12658 }
12659 }
12660
12661 impl<'a> Instance<'a> {
12662 pub fn raw(&self) -> refix_message::Scope<'a> {
12663 self.0
12664 }
12665
12666 #[doc(alias = "MDUpdateAction")]
12668 pub fn md_update_action(&self) -> Result<Option<MDUpdateAction<'a>>, InvalidValue> {
12669 Ok(self.0.get_str(Tag(279))?.map(MDUpdateAction::from_value))
12670 }
12671
12672 #[doc(alias = "DeleteReason")]
12674 pub fn delete_reason(&self) -> Result<Option<DeleteReason<'a>>, InvalidValue> {
12675 Ok(self.0.get_str(Tag(285))?.map(DeleteReason::from_value))
12676 }
12677
12678 #[doc(alias = "MDEntryType")]
12680 pub fn md_entry_type(&self) -> Result<Option<MDEntryType<'a>>, InvalidValue> {
12681 Ok(self.0.get_str(Tag(269))?.map(MDEntryType::from_value))
12682 }
12683
12684 #[doc(alias = "MDEntryID")]
12686 pub fn md_entry_id(&self) -> Result<Option<&'a str>, InvalidValue> {
12687 self.0.get_str(Tag(278))
12688 }
12689
12690 #[doc(alias = "MDEntryRefID")]
12692 pub fn md_entry_ref_id(&self) -> Result<Option<&'a str>, InvalidValue> {
12693 self.0.get_str(Tag(280))
12694 }
12695
12696 #[doc(alias = "Symbol")]
12698 pub fn symbol(&self) -> Result<Option<&'a str>, InvalidValue> {
12699 self.0.get_str(Tag(55))
12700 }
12701
12702 #[doc(alias = "SymbolSfx")]
12704 pub fn symbol_sfx(&self) -> Result<Option<&'a str>, InvalidValue> {
12705 self.0.get_str(Tag(65))
12706 }
12707
12708 #[doc(alias = "SecurityID")]
12710 pub fn security_id(&self) -> Result<Option<&'a str>, InvalidValue> {
12711 self.0.get_str(Tag(48))
12712 }
12713
12714 #[doc(alias = "IDSource")]
12716 pub fn id_source(&self) -> Result<Option<IDSource<'a>>, InvalidValue> {
12717 Ok(self.0.get_str(Tag(22))?.map(IDSource::from_value))
12718 }
12719
12720 #[doc(alias = "SecurityType")]
12722 pub fn security_type(&self) -> Result<Option<SecurityType<'a>>, InvalidValue> {
12723 Ok(self.0.get_str(Tag(167))?.map(SecurityType::from_value))
12724 }
12725
12726 #[doc(alias = "MaturityMonthYear")]
12728 pub fn maturity_month_year(&self) -> Result<Option<MonthYear>, InvalidValue> {
12729 self.0.get_month_year(Tag(200))
12730 }
12731
12732 #[doc(alias = "MaturityDay")]
12734 pub fn maturity_day(&self) -> Result<Option<i64>, InvalidValue> {
12735 self.0.get_int(Tag(205))
12736 }
12737
12738 #[doc(alias = "PutOrCall")]
12740 pub fn put_or_call(&self) -> Result<Option<PutOrCall>, InvalidValue> {
12741 Ok(self.0.get_int(Tag(201))?.map(PutOrCall::from_value))
12742 }
12743
12744 #[doc(alias = "StrikePrice")]
12746 pub fn strike_price(&self) -> Result<Option<Decimal>, InvalidValue> {
12747 self.0.get_decimal(Tag(202))
12748 }
12749
12750 #[doc(alias = "OptAttribute")]
12752 pub fn opt_attribute(&self) -> Result<Option<&'a str>, InvalidValue> {
12753 self.0.get_str(Tag(206))
12754 }
12755
12756 #[doc(alias = "ContractMultiplier")]
12758 pub fn contract_multiplier(&self) -> Result<Option<Decimal>, InvalidValue> {
12759 self.0.get_decimal(Tag(231))
12760 }
12761
12762 #[doc(alias = "CouponRate")]
12764 pub fn coupon_rate(&self) -> Result<Option<Decimal>, InvalidValue> {
12765 self.0.get_decimal(Tag(223))
12766 }
12767
12768 #[doc(alias = "SecurityExchange")]
12770 pub fn security_exchange(&self) -> Result<Option<&'a str>, InvalidValue> {
12771 self.0.get_str(Tag(207))
12772 }
12773
12774 #[doc(alias = "Issuer")]
12776 pub fn issuer(&self) -> Result<Option<&'a str>, InvalidValue> {
12777 self.0.get_str(Tag(106))
12778 }
12779
12780 #[doc(alias = "EncodedIssuerLen")]
12782 pub fn encoded_issuer_len(&self) -> Result<Option<i64>, InvalidValue> {
12783 self.0.get_int(Tag(348))
12784 }
12785
12786 #[doc(alias = "EncodedIssuer")]
12788 pub fn encoded_issuer(&self) -> Option<&'a [u8]> {
12789 self.0.get(Tag(349))
12790 }
12791
12792 #[doc(alias = "SecurityDesc")]
12794 pub fn security_desc(&self) -> Result<Option<&'a str>, InvalidValue> {
12795 self.0.get_str(Tag(107))
12796 }
12797
12798 #[doc(alias = "EncodedSecurityDescLen")]
12800 pub fn encoded_security_desc_len(&self) -> Result<Option<i64>, InvalidValue> {
12801 self.0.get_int(Tag(350))
12802 }
12803
12804 #[doc(alias = "EncodedSecurityDesc")]
12806 pub fn encoded_security_desc(&self) -> Option<&'a [u8]> {
12807 self.0.get(Tag(351))
12808 }
12809
12810 #[doc(alias = "FinancialStatus")]
12812 pub fn financial_status(&self) -> Result<Option<FinancialStatus<'a>>, InvalidValue> {
12813 Ok(self.0.get_str(Tag(291))?.map(FinancialStatus::from_value))
12814 }
12815
12816 #[doc(alias = "CorporateAction")]
12818 pub fn corporate_action(&self) -> Result<Option<CorporateAction<'a>>, InvalidValue> {
12819 Ok(self.0.get_str(Tag(292))?.map(CorporateAction::from_value))
12820 }
12821
12822 #[doc(alias = "MDEntryPx")]
12824 pub fn md_entry_px(&self) -> Result<Option<Decimal>, InvalidValue> {
12825 self.0.get_decimal(Tag(270))
12826 }
12827
12828 #[doc(alias = "Currency")]
12830 pub fn currency(&self) -> Result<Option<&'a str>, InvalidValue> {
12831 self.0.get_str(Tag(15))
12832 }
12833
12834 #[doc(alias = "MDEntrySize")]
12836 pub fn md_entry_size(&self) -> Result<Option<Decimal>, InvalidValue> {
12837 self.0.get_decimal(Tag(271))
12838 }
12839
12840 #[doc(alias = "MDEntryDate")]
12842 pub fn md_entry_date(&self) -> Result<Option<Date>, InvalidValue> {
12843 self.0.get_date(Tag(272))
12844 }
12845
12846 #[doc(alias = "MDEntryTime")]
12848 pub fn md_entry_time(&self) -> Result<Option<Time>, InvalidValue> {
12849 self.0.get_time(Tag(273))
12850 }
12851
12852 #[doc(alias = "TickDirection")]
12854 pub fn tick_direction(&self) -> Result<Option<TickDirection<'a>>, InvalidValue> {
12855 Ok(self.0.get_str(Tag(274))?.map(TickDirection::from_value))
12856 }
12857
12858 #[doc(alias = "MDMkt")]
12860 pub fn md_mkt(&self) -> Result<Option<&'a str>, InvalidValue> {
12861 self.0.get_str(Tag(275))
12862 }
12863
12864 #[doc(alias = "TradingSessionID")]
12866 pub fn trading_session_id(&self) -> Result<Option<&'a str>, InvalidValue> {
12867 self.0.get_str(Tag(336))
12868 }
12869
12870 #[doc(alias = "QuoteCondition")]
12872 pub fn quote_condition(&self) -> Result<Option<MultipleValues<'a, QuoteCondition<'a>>>, InvalidValue> {
12873 self.0.get_multiple_values(Tag(276))
12874 }
12875
12876 #[doc(alias = "TradeCondition")]
12878 pub fn trade_condition(&self) -> Result<Option<MultipleValues<'a, TradeCondition<'a>>>, InvalidValue> {
12879 self.0.get_multiple_values(Tag(277))
12880 }
12881
12882 #[doc(alias = "MDEntryOriginator")]
12884 pub fn md_entry_originator(&self) -> Result<Option<&'a str>, InvalidValue> {
12885 self.0.get_str(Tag(282))
12886 }
12887
12888 #[doc(alias = "LocationID")]
12890 pub fn location_id(&self) -> Result<Option<&'a str>, InvalidValue> {
12891 self.0.get_str(Tag(283))
12892 }
12893
12894 #[doc(alias = "DeskID")]
12896 pub fn desk_id(&self) -> Result<Option<&'a str>, InvalidValue> {
12897 self.0.get_str(Tag(284))
12898 }
12899
12900 #[doc(alias = "OpenCloseSettleFlag")]
12902 pub fn open_close_settle_flag(&self) -> Result<Option<OpenCloseSettleFlag<'a>>, InvalidValue> {
12903 Ok(self.0.get_str(Tag(286))?.map(OpenCloseSettleFlag::from_value))
12904 }
12905
12906 #[doc(alias = "TimeInForce")]
12908 pub fn time_in_force(&self) -> Result<Option<TimeInForce<'a>>, InvalidValue> {
12909 Ok(self.0.get_str(Tag(59))?.map(TimeInForce::from_value))
12910 }
12911
12912 #[doc(alias = "ExpireDate")]
12914 pub fn expire_date(&self) -> Result<Option<Date>, InvalidValue> {
12915 self.0.get_date(Tag(432))
12916 }
12917
12918 #[doc(alias = "ExpireTime")]
12920 pub fn expire_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
12921 self.0.get_utc_timestamp(Tag(126))
12922 }
12923
12924 #[doc(alias = "MinQty")]
12926 pub fn min_qty(&self) -> Result<Option<Decimal>, InvalidValue> {
12927 self.0.get_decimal(Tag(110))
12928 }
12929
12930 #[doc(alias = "ExecInst")]
12932 pub fn exec_inst(&self) -> Result<Option<MultipleValues<'a, ExecInst<'a>>>, InvalidValue> {
12933 self.0.get_multiple_values(Tag(18))
12934 }
12935
12936 #[doc(alias = "SellerDays")]
12938 pub fn seller_days(&self) -> Result<Option<i64>, InvalidValue> {
12939 self.0.get_int(Tag(287))
12940 }
12941
12942 #[doc(alias = "OrderID")]
12944 pub fn order_id(&self) -> Result<Option<&'a str>, InvalidValue> {
12945 self.0.get_str(Tag(37))
12946 }
12947
12948 #[doc(alias = "QuoteEntryID")]
12950 pub fn quote_entry_id(&self) -> Result<Option<&'a str>, InvalidValue> {
12951 self.0.get_str(Tag(299))
12952 }
12953
12954 #[doc(alias = "MDEntryBuyer")]
12956 pub fn md_entry_buyer(&self) -> Result<Option<&'a str>, InvalidValue> {
12957 self.0.get_str(Tag(288))
12958 }
12959
12960 #[doc(alias = "MDEntrySeller")]
12962 pub fn md_entry_seller(&self) -> Result<Option<&'a str>, InvalidValue> {
12963 self.0.get_str(Tag(289))
12964 }
12965
12966 #[doc(alias = "NumberOfOrders")]
12968 pub fn number_of_orders(&self) -> Result<Option<i64>, InvalidValue> {
12969 self.0.get_int(Tag(346))
12970 }
12971
12972 #[doc(alias = "MDEntryPositionNo")]
12974 pub fn md_entry_position_no(&self) -> Result<Option<i64>, InvalidValue> {
12975 self.0.get_int(Tag(290))
12976 }
12977
12978 #[doc(alias = "TotalVolumeTraded")]
12980 pub fn total_volume_traded(&self) -> Result<Option<Decimal>, InvalidValue> {
12981 self.0.get_decimal(Tag(387))
12982 }
12983
12984 #[doc(alias = "Text")]
12986 pub fn text(&self) -> Result<Option<&'a str>, InvalidValue> {
12987 self.0.get_str(Tag(58))
12988 }
12989
12990 #[doc(alias = "EncodedTextLen")]
12992 pub fn encoded_text_len(&self) -> Result<Option<i64>, InvalidValue> {
12993 self.0.get_int(Tag(354))
12994 }
12995
12996 #[doc(alias = "EncodedText")]
12998 pub fn encoded_text(&self) -> Option<&'a [u8]> {
12999 self.0.get(Tag(355))
13000 }
13001 }
13002 }
13003}
13004
13005pub struct MarketDataRequestReject(RawMessage);
13007
13008impl MarketDataRequestReject {
13009 pub const MSG_TYPE: &[u8] = b"Y";
13010
13011 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
13012 Tag(8), Tag(9), Tag(10), Tag(34), Tag(35), Tag(43), Tag(49), Tag(50), Tag(52), Tag(56),
13013 Tag(57), Tag(58), Tag(89), Tag(90), Tag(91), Tag(93), Tag(97), Tag(115), Tag(116), Tag(122),
13014 Tag(128), Tag(129), Tag(142), Tag(143), Tag(144), Tag(145), Tag(212), Tag(213), Tag(262),
13015 Tag(281), Tag(347), Tag(354), Tag(355), Tag(369), Tag(370),
13016 ]);
13017
13018 pub fn from_raw(raw: RawMessage) -> Self {
13019 Self(raw)
13020 }
13021
13022 pub fn raw(&self) -> &RawMessage {
13023 &self.0
13024 }
13025
13026 pub fn header(&self) -> Header<'_> {
13027 Header(self.0.scope())
13028 }
13029
13030 pub fn trailer(&self) -> Trailer<'_> {
13031 Trailer(self.0.scope())
13032 }
13033
13034 #[doc(alias = "MDReqID")]
13036 pub fn md_req_id(&self) -> Result<Option<&str>, InvalidValue> {
13037 self.0.get_str(Tag(262))
13038 }
13039
13040 #[doc(alias = "MDReqRejReason")]
13042 pub fn md_req_rej_reason(&self) -> Result<Option<MDReqRejReason<'_>>, InvalidValue> {
13043 Ok(self.0.get_str(Tag(281))?.map(MDReqRejReason::from_value))
13044 }
13045
13046 #[doc(alias = "Text")]
13048 pub fn text(&self) -> Result<Option<&str>, InvalidValue> {
13049 self.0.get_str(Tag(58))
13050 }
13051
13052 #[doc(alias = "EncodedTextLen")]
13054 pub fn encoded_text_len(&self) -> Result<Option<i64>, InvalidValue> {
13055 self.0.get_int(Tag(354))
13056 }
13057
13058 #[doc(alias = "EncodedText")]
13060 pub fn encoded_text(&self) -> Option<&[u8]> {
13061 self.0.get(Tag(355))
13062 }
13063}
13064
13065impl std::fmt::Debug for MarketDataRequestReject {
13066 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
13067 write!(f, "MarketDataRequestReject({})", self.0)
13068 }
13069}
13070
13071impl std::fmt::Display for MarketDataRequestReject {
13072 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
13073 std::fmt::Display::fmt(&self.0, f)
13074 }
13075}
13076
13077pub struct QuoteCancel(RawMessage);
13079
13080impl QuoteCancel {
13081 pub const MSG_TYPE: &[u8] = b"Z";
13082
13083 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
13084 Tag(8), Tag(9), Tag(10), Tag(22), Tag(34), Tag(35), Tag(43), Tag(48), Tag(49), Tag(50),
13085 Tag(52), Tag(55), Tag(56), Tag(57), Tag(65), Tag(89), Tag(90), Tag(91), Tag(93), Tag(97),
13086 Tag(106), Tag(107), Tag(115), Tag(116), Tag(117), Tag(122), Tag(128), Tag(129), Tag(131),
13087 Tag(142), Tag(143), Tag(144), Tag(145), Tag(167), Tag(200), Tag(201), Tag(202), Tag(205),
13088 Tag(206), Tag(207), Tag(212), Tag(213), Tag(223), Tag(231), Tag(295), Tag(298), Tag(301),
13089 Tag(311), Tag(336), Tag(347), Tag(348), Tag(349), Tag(350), Tag(351), Tag(369), Tag(370),
13090 ]);
13091
13092 pub fn from_raw(raw: RawMessage) -> Self {
13093 Self(raw)
13094 }
13095
13096 pub fn raw(&self) -> &RawMessage {
13097 &self.0
13098 }
13099
13100 pub fn header(&self) -> Header<'_> {
13101 Header(self.0.scope())
13102 }
13103
13104 pub fn trailer(&self) -> Trailer<'_> {
13105 Trailer(self.0.scope())
13106 }
13107
13108 #[doc(alias = "QuoteReqID")]
13110 pub fn quote_req_id(&self) -> Result<Option<&str>, InvalidValue> {
13111 self.0.get_str(Tag(131))
13112 }
13113
13114 #[doc(alias = "QuoteID")]
13116 pub fn quote_id(&self) -> Result<Option<&str>, InvalidValue> {
13117 self.0.get_str(Tag(117))
13118 }
13119
13120 #[doc(alias = "QuoteCancelType")]
13122 pub fn quote_cancel_type(&self) -> Result<Option<QuoteCancelType>, InvalidValue> {
13123 Ok(self.0.get_int(Tag(298))?.map(QuoteCancelType::from_value))
13124 }
13125
13126 #[doc(alias = "QuoteResponseLevel")]
13128 pub fn quote_response_level(&self) -> Result<Option<QuoteResponseLevel>, InvalidValue> {
13129 Ok(self.0.get_int(Tag(301))?.map(QuoteResponseLevel::from_value))
13130 }
13131
13132 #[doc(alias = "TradingSessionID")]
13134 pub fn trading_session_id(&self) -> Result<Option<&str>, InvalidValue> {
13135 self.0.get_str(Tag(336))
13136 }
13137
13138 #[doc(alias = "NoQuoteEntries")]
13140 pub fn quote_entries(&self) -> Result<Instances<'_, quote_cancel::quote_entries::Instance<'_>>, InvalidValue> {
13141 self.0.get_group("e_cancel::quote_entries::TABLE, &Self::KNOWN_TAGS).map(Instances::from)
13142 }
13143}
13144
13145impl std::fmt::Debug for QuoteCancel {
13146 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
13147 write!(f, "QuoteCancel({})", self.0)
13148 }
13149}
13150
13151impl std::fmt::Display for QuoteCancel {
13152 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
13153 std::fmt::Display::fmt(&self.0, f)
13154 }
13155}
13156
13157pub mod quote_cancel {
13158 pub mod quote_entries {
13159 use super::super::*;
13160
13161 pub const TABLE: GroupTable<'static> = GroupTable::new(
13162 Tag(295),
13163 Tag(55),
13164 &[
13165 Tag(22), Tag(48), Tag(55), Tag(65), Tag(106), Tag(107), Tag(167), Tag(200),
13166 Tag(201), Tag(202), Tag(205), Tag(206), Tag(207), Tag(223), Tag(231), Tag(311),
13167 Tag(348), Tag(349), Tag(350), Tag(351),
13168 ],
13169 &[],
13170 );
13171
13172 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
13173 Tag(22), Tag(48), Tag(55), Tag(65), Tag(106), Tag(107), Tag(167), Tag(200), Tag(201),
13174 Tag(202), Tag(205), Tag(206), Tag(207), Tag(223), Tag(231), Tag(311), Tag(348),
13175 Tag(349), Tag(350), Tag(351),
13176 ]);
13177
13178 #[derive(Clone, Copy, Debug)]
13179 pub struct Instance<'a>(refix_message::Scope<'a>);
13180
13181 impl<'a> From<refix_message::Scope<'a>> for Instance<'a> {
13182 fn from(scope: refix_message::Scope<'a>) -> Self {
13183 Self(scope)
13184 }
13185 }
13186
13187 impl<'a> Instance<'a> {
13188 pub fn raw(&self) -> refix_message::Scope<'a> {
13189 self.0
13190 }
13191
13192 #[doc(alias = "Symbol")]
13194 pub fn symbol(&self) -> Result<Option<&'a str>, InvalidValue> {
13195 self.0.get_str(Tag(55))
13196 }
13197
13198 #[doc(alias = "SymbolSfx")]
13200 pub fn symbol_sfx(&self) -> Result<Option<&'a str>, InvalidValue> {
13201 self.0.get_str(Tag(65))
13202 }
13203
13204 #[doc(alias = "SecurityID")]
13206 pub fn security_id(&self) -> Result<Option<&'a str>, InvalidValue> {
13207 self.0.get_str(Tag(48))
13208 }
13209
13210 #[doc(alias = "IDSource")]
13212 pub fn id_source(&self) -> Result<Option<IDSource<'a>>, InvalidValue> {
13213 Ok(self.0.get_str(Tag(22))?.map(IDSource::from_value))
13214 }
13215
13216 #[doc(alias = "SecurityType")]
13218 pub fn security_type(&self) -> Result<Option<SecurityType<'a>>, InvalidValue> {
13219 Ok(self.0.get_str(Tag(167))?.map(SecurityType::from_value))
13220 }
13221
13222 #[doc(alias = "MaturityMonthYear")]
13224 pub fn maturity_month_year(&self) -> Result<Option<MonthYear>, InvalidValue> {
13225 self.0.get_month_year(Tag(200))
13226 }
13227
13228 #[doc(alias = "MaturityDay")]
13230 pub fn maturity_day(&self) -> Result<Option<i64>, InvalidValue> {
13231 self.0.get_int(Tag(205))
13232 }
13233
13234 #[doc(alias = "PutOrCall")]
13236 pub fn put_or_call(&self) -> Result<Option<PutOrCall>, InvalidValue> {
13237 Ok(self.0.get_int(Tag(201))?.map(PutOrCall::from_value))
13238 }
13239
13240 #[doc(alias = "StrikePrice")]
13242 pub fn strike_price(&self) -> Result<Option<Decimal>, InvalidValue> {
13243 self.0.get_decimal(Tag(202))
13244 }
13245
13246 #[doc(alias = "OptAttribute")]
13248 pub fn opt_attribute(&self) -> Result<Option<&'a str>, InvalidValue> {
13249 self.0.get_str(Tag(206))
13250 }
13251
13252 #[doc(alias = "ContractMultiplier")]
13254 pub fn contract_multiplier(&self) -> Result<Option<Decimal>, InvalidValue> {
13255 self.0.get_decimal(Tag(231))
13256 }
13257
13258 #[doc(alias = "CouponRate")]
13260 pub fn coupon_rate(&self) -> Result<Option<Decimal>, InvalidValue> {
13261 self.0.get_decimal(Tag(223))
13262 }
13263
13264 #[doc(alias = "SecurityExchange")]
13266 pub fn security_exchange(&self) -> Result<Option<&'a str>, InvalidValue> {
13267 self.0.get_str(Tag(207))
13268 }
13269
13270 #[doc(alias = "Issuer")]
13272 pub fn issuer(&self) -> Result<Option<&'a str>, InvalidValue> {
13273 self.0.get_str(Tag(106))
13274 }
13275
13276 #[doc(alias = "EncodedIssuerLen")]
13278 pub fn encoded_issuer_len(&self) -> Result<Option<i64>, InvalidValue> {
13279 self.0.get_int(Tag(348))
13280 }
13281
13282 #[doc(alias = "EncodedIssuer")]
13284 pub fn encoded_issuer(&self) -> Option<&'a [u8]> {
13285 self.0.get(Tag(349))
13286 }
13287
13288 #[doc(alias = "SecurityDesc")]
13290 pub fn security_desc(&self) -> Result<Option<&'a str>, InvalidValue> {
13291 self.0.get_str(Tag(107))
13292 }
13293
13294 #[doc(alias = "EncodedSecurityDescLen")]
13296 pub fn encoded_security_desc_len(&self) -> Result<Option<i64>, InvalidValue> {
13297 self.0.get_int(Tag(350))
13298 }
13299
13300 #[doc(alias = "EncodedSecurityDesc")]
13302 pub fn encoded_security_desc(&self) -> Option<&'a [u8]> {
13303 self.0.get(Tag(351))
13304 }
13305
13306 #[doc(alias = "UnderlyingSymbol")]
13308 pub fn underlying_symbol(&self) -> Result<Option<&'a str>, InvalidValue> {
13309 self.0.get_str(Tag(311))
13310 }
13311 }
13312 }
13313}
13314
13315pub struct QuoteStatusRequest(RawMessage);
13317
13318impl QuoteStatusRequest {
13319 pub const MSG_TYPE: &[u8] = b"a";
13320
13321 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
13322 Tag(8), Tag(9), Tag(10), Tag(22), Tag(34), Tag(35), Tag(43), Tag(48), Tag(49), Tag(50),
13323 Tag(52), Tag(54), Tag(55), Tag(56), Tag(57), Tag(65), Tag(89), Tag(90), Tag(91), Tag(93),
13324 Tag(97), Tag(106), Tag(107), Tag(115), Tag(116), Tag(117), Tag(122), Tag(128), Tag(129),
13325 Tag(142), Tag(143), Tag(144), Tag(145), Tag(167), Tag(200), Tag(201), Tag(202), Tag(205),
13326 Tag(206), Tag(207), Tag(212), Tag(213), Tag(223), Tag(231), Tag(336), Tag(347), Tag(348),
13327 Tag(349), Tag(350), Tag(351), Tag(369), Tag(370),
13328 ]);
13329
13330 pub fn from_raw(raw: RawMessage) -> Self {
13331 Self(raw)
13332 }
13333
13334 pub fn raw(&self) -> &RawMessage {
13335 &self.0
13336 }
13337
13338 pub fn header(&self) -> Header<'_> {
13339 Header(self.0.scope())
13340 }
13341
13342 pub fn trailer(&self) -> Trailer<'_> {
13343 Trailer(self.0.scope())
13344 }
13345
13346 #[doc(alias = "QuoteID")]
13348 pub fn quote_id(&self) -> Result<Option<&str>, InvalidValue> {
13349 self.0.get_str(Tag(117))
13350 }
13351
13352 #[doc(alias = "Symbol")]
13354 pub fn symbol(&self) -> Result<Option<&str>, InvalidValue> {
13355 self.0.get_str(Tag(55))
13356 }
13357
13358 #[doc(alias = "SymbolSfx")]
13360 pub fn symbol_sfx(&self) -> Result<Option<&str>, InvalidValue> {
13361 self.0.get_str(Tag(65))
13362 }
13363
13364 #[doc(alias = "SecurityID")]
13366 pub fn security_id(&self) -> Result<Option<&str>, InvalidValue> {
13367 self.0.get_str(Tag(48))
13368 }
13369
13370 #[doc(alias = "IDSource")]
13372 pub fn id_source(&self) -> Result<Option<IDSource<'_>>, InvalidValue> {
13373 Ok(self.0.get_str(Tag(22))?.map(IDSource::from_value))
13374 }
13375
13376 #[doc(alias = "SecurityType")]
13378 pub fn security_type(&self) -> Result<Option<SecurityType<'_>>, InvalidValue> {
13379 Ok(self.0.get_str(Tag(167))?.map(SecurityType::from_value))
13380 }
13381
13382 #[doc(alias = "MaturityMonthYear")]
13384 pub fn maturity_month_year(&self) -> Result<Option<MonthYear>, InvalidValue> {
13385 self.0.get_month_year(Tag(200))
13386 }
13387
13388 #[doc(alias = "MaturityDay")]
13390 pub fn maturity_day(&self) -> Result<Option<i64>, InvalidValue> {
13391 self.0.get_int(Tag(205))
13392 }
13393
13394 #[doc(alias = "PutOrCall")]
13396 pub fn put_or_call(&self) -> Result<Option<PutOrCall>, InvalidValue> {
13397 Ok(self.0.get_int(Tag(201))?.map(PutOrCall::from_value))
13398 }
13399
13400 #[doc(alias = "StrikePrice")]
13402 pub fn strike_price(&self) -> Result<Option<Decimal>, InvalidValue> {
13403 self.0.get_decimal(Tag(202))
13404 }
13405
13406 #[doc(alias = "OptAttribute")]
13408 pub fn opt_attribute(&self) -> Result<Option<&str>, InvalidValue> {
13409 self.0.get_str(Tag(206))
13410 }
13411
13412 #[doc(alias = "ContractMultiplier")]
13414 pub fn contract_multiplier(&self) -> Result<Option<Decimal>, InvalidValue> {
13415 self.0.get_decimal(Tag(231))
13416 }
13417
13418 #[doc(alias = "CouponRate")]
13420 pub fn coupon_rate(&self) -> Result<Option<Decimal>, InvalidValue> {
13421 self.0.get_decimal(Tag(223))
13422 }
13423
13424 #[doc(alias = "SecurityExchange")]
13426 pub fn security_exchange(&self) -> Result<Option<&str>, InvalidValue> {
13427 self.0.get_str(Tag(207))
13428 }
13429
13430 #[doc(alias = "Issuer")]
13432 pub fn issuer(&self) -> Result<Option<&str>, InvalidValue> {
13433 self.0.get_str(Tag(106))
13434 }
13435
13436 #[doc(alias = "EncodedIssuerLen")]
13438 pub fn encoded_issuer_len(&self) -> Result<Option<i64>, InvalidValue> {
13439 self.0.get_int(Tag(348))
13440 }
13441
13442 #[doc(alias = "EncodedIssuer")]
13444 pub fn encoded_issuer(&self) -> Option<&[u8]> {
13445 self.0.get(Tag(349))
13446 }
13447
13448 #[doc(alias = "SecurityDesc")]
13450 pub fn security_desc(&self) -> Result<Option<&str>, InvalidValue> {
13451 self.0.get_str(Tag(107))
13452 }
13453
13454 #[doc(alias = "EncodedSecurityDescLen")]
13456 pub fn encoded_security_desc_len(&self) -> Result<Option<i64>, InvalidValue> {
13457 self.0.get_int(Tag(350))
13458 }
13459
13460 #[doc(alias = "EncodedSecurityDesc")]
13462 pub fn encoded_security_desc(&self) -> Option<&[u8]> {
13463 self.0.get(Tag(351))
13464 }
13465
13466 #[doc(alias = "Side")]
13468 pub fn side(&self) -> Result<Option<Side<'_>>, InvalidValue> {
13469 Ok(self.0.get_str(Tag(54))?.map(Side::from_value))
13470 }
13471
13472 #[doc(alias = "TradingSessionID")]
13474 pub fn trading_session_id(&self) -> Result<Option<&str>, InvalidValue> {
13475 self.0.get_str(Tag(336))
13476 }
13477}
13478
13479impl std::fmt::Debug for QuoteStatusRequest {
13480 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
13481 write!(f, "QuoteStatusRequest({})", self.0)
13482 }
13483}
13484
13485impl std::fmt::Display for QuoteStatusRequest {
13486 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
13487 std::fmt::Display::fmt(&self.0, f)
13488 }
13489}
13490
13491pub struct QuoteAcknowledgement(RawMessage);
13493
13494impl QuoteAcknowledgement {
13495 pub const MSG_TYPE: &[u8] = b"b";
13496
13497 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
13498 Tag(8), Tag(9), Tag(10), Tag(22), Tag(34), Tag(35), Tag(43), Tag(48), Tag(49), Tag(50),
13499 Tag(52), Tag(55), Tag(56), Tag(57), Tag(58), Tag(65), Tag(89), Tag(90), Tag(91), Tag(93),
13500 Tag(97), Tag(106), Tag(107), Tag(115), Tag(116), Tag(117), Tag(122), Tag(128), Tag(129),
13501 Tag(131), Tag(142), Tag(143), Tag(144), Tag(145), Tag(167), Tag(200), Tag(201), Tag(202),
13502 Tag(205), Tag(206), Tag(207), Tag(212), Tag(213), Tag(223), Tag(231), Tag(295), Tag(296),
13503 Tag(297), Tag(299), Tag(300), Tag(301), Tag(302), Tag(304), Tag(305), Tag(306), Tag(307),
13504 Tag(308), Tag(309), Tag(310), Tag(311), Tag(312), Tag(313), Tag(314), Tag(315), Tag(316),
13505 Tag(317), Tag(336), Tag(347), Tag(348), Tag(349), Tag(350), Tag(351), Tag(362), Tag(363),
13506 Tag(364), Tag(365), Tag(368), Tag(369), Tag(370), Tag(435), Tag(436),
13507 ]);
13508
13509 pub fn from_raw(raw: RawMessage) -> Self {
13510 Self(raw)
13511 }
13512
13513 pub fn raw(&self) -> &RawMessage {
13514 &self.0
13515 }
13516
13517 pub fn header(&self) -> Header<'_> {
13518 Header(self.0.scope())
13519 }
13520
13521 pub fn trailer(&self) -> Trailer<'_> {
13522 Trailer(self.0.scope())
13523 }
13524
13525 #[doc(alias = "QuoteReqID")]
13527 pub fn quote_req_id(&self) -> Result<Option<&str>, InvalidValue> {
13528 self.0.get_str(Tag(131))
13529 }
13530
13531 #[doc(alias = "QuoteID")]
13533 pub fn quote_id(&self) -> Result<Option<&str>, InvalidValue> {
13534 self.0.get_str(Tag(117))
13535 }
13536
13537 #[doc(alias = "QuoteStatus")]
13539 pub fn quote_status(&self) -> Result<Option<QuoteStatus>, InvalidValue> {
13540 Ok(self.0.get_int(Tag(297))?.map(QuoteStatus::from_value))
13541 }
13542
13543 #[doc(alias = "QuoteRejectReason")]
13545 pub fn quote_reject_reason(&self) -> Result<Option<QuoteRejectReason>, InvalidValue> {
13546 Ok(self.0.get_int(Tag(300))?.map(QuoteRejectReason::from_value))
13547 }
13548
13549 #[doc(alias = "QuoteResponseLevel")]
13551 pub fn quote_response_level(&self) -> Result<Option<QuoteResponseLevel>, InvalidValue> {
13552 Ok(self.0.get_int(Tag(301))?.map(QuoteResponseLevel::from_value))
13553 }
13554
13555 #[doc(alias = "TradingSessionID")]
13557 pub fn trading_session_id(&self) -> Result<Option<&str>, InvalidValue> {
13558 self.0.get_str(Tag(336))
13559 }
13560
13561 #[doc(alias = "Text")]
13563 pub fn text(&self) -> Result<Option<&str>, InvalidValue> {
13564 self.0.get_str(Tag(58))
13565 }
13566
13567 #[doc(alias = "NoQuoteSets")]
13569 pub fn quote_sets(&self) -> Result<Instances<'_, quote_acknowledgement::quote_sets::Instance<'_>>, InvalidValue> {
13570 self.0.get_group("e_acknowledgement::quote_sets::TABLE, &Self::KNOWN_TAGS).map(Instances::from)
13571 }
13572}
13573
13574impl std::fmt::Debug for QuoteAcknowledgement {
13575 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
13576 write!(f, "QuoteAcknowledgement({})", self.0)
13577 }
13578}
13579
13580impl std::fmt::Display for QuoteAcknowledgement {
13581 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
13582 std::fmt::Display::fmt(&self.0, f)
13583 }
13584}
13585
13586pub mod quote_acknowledgement {
13587 pub mod quote_sets {
13588 use super::super::*;
13589
13590 pub const TABLE: GroupTable<'static> = GroupTable::new(
13591 Tag(296),
13592 Tag(302),
13593 &[
13594 Tag(295), Tag(302), Tag(304), Tag(305), Tag(306), Tag(307), Tag(308), Tag(309),
13595 Tag(310), Tag(311), Tag(312), Tag(313), Tag(314), Tag(315), Tag(316), Tag(317),
13596 Tag(362), Tag(363), Tag(364), Tag(365), Tag(435), Tag(436),
13597 ],
13598 &[quote_acknowledgement::quote_sets::quote_entries::TABLE],
13599 );
13600
13601 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
13602 Tag(22), Tag(48), Tag(55), Tag(65), Tag(106), Tag(107), Tag(167), Tag(200), Tag(201),
13603 Tag(202), Tag(205), Tag(206), Tag(207), Tag(223), Tag(231), Tag(295), Tag(299),
13604 Tag(302), Tag(304), Tag(305), Tag(306), Tag(307), Tag(308), Tag(309), Tag(310),
13605 Tag(311), Tag(312), Tag(313), Tag(314), Tag(315), Tag(316), Tag(317), Tag(348),
13606 Tag(349), Tag(350), Tag(351), Tag(362), Tag(363), Tag(364), Tag(365), Tag(368),
13607 Tag(435), Tag(436),
13608 ]);
13609
13610 #[derive(Clone, Copy, Debug)]
13611 pub struct Instance<'a>(refix_message::Scope<'a>);
13612
13613 impl<'a> From<refix_message::Scope<'a>> for Instance<'a> {
13614 fn from(scope: refix_message::Scope<'a>) -> Self {
13615 Self(scope)
13616 }
13617 }
13618
13619 impl<'a> Instance<'a> {
13620 pub fn raw(&self) -> refix_message::Scope<'a> {
13621 self.0
13622 }
13623
13624 #[doc(alias = "QuoteSetID")]
13626 pub fn quote_set_id(&self) -> Result<Option<&'a str>, InvalidValue> {
13627 self.0.get_str(Tag(302))
13628 }
13629
13630 #[doc(alias = "UnderlyingSymbol")]
13632 pub fn underlying_symbol(&self) -> Result<Option<&'a str>, InvalidValue> {
13633 self.0.get_str(Tag(311))
13634 }
13635
13636 #[doc(alias = "UnderlyingSymbolSfx")]
13638 pub fn underlying_symbol_sfx(&self) -> Result<Option<&'a str>, InvalidValue> {
13639 self.0.get_str(Tag(312))
13640 }
13641
13642 #[doc(alias = "UnderlyingSecurityID")]
13644 pub fn underlying_security_id(&self) -> Result<Option<&'a str>, InvalidValue> {
13645 self.0.get_str(Tag(309))
13646 }
13647
13648 #[doc(alias = "UnderlyingIDSource")]
13650 pub fn underlying_id_source(&self) -> Result<Option<&'a str>, InvalidValue> {
13651 self.0.get_str(Tag(305))
13652 }
13653
13654 #[doc(alias = "UnderlyingSecurityType")]
13656 pub fn underlying_security_type(&self) -> Result<Option<&'a str>, InvalidValue> {
13657 self.0.get_str(Tag(310))
13658 }
13659
13660 #[doc(alias = "UnderlyingMaturityMonthYear")]
13662 pub fn underlying_maturity_month_year(&self) -> Result<Option<MonthYear>, InvalidValue> {
13663 self.0.get_month_year(Tag(313))
13664 }
13665
13666 #[doc(alias = "UnderlyingMaturityDay")]
13668 pub fn underlying_maturity_day(&self) -> Result<Option<i64>, InvalidValue> {
13669 self.0.get_int(Tag(314))
13670 }
13671
13672 #[doc(alias = "UnderlyingPutOrCall")]
13674 pub fn underlying_put_or_call(&self) -> Result<Option<i64>, InvalidValue> {
13675 self.0.get_int(Tag(315))
13676 }
13677
13678 #[doc(alias = "UnderlyingStrikePrice")]
13680 pub fn underlying_strike_price(&self) -> Result<Option<Decimal>, InvalidValue> {
13681 self.0.get_decimal(Tag(316))
13682 }
13683
13684 #[doc(alias = "UnderlyingOptAttribute")]
13686 pub fn underlying_opt_attribute(&self) -> Result<Option<&'a str>, InvalidValue> {
13687 self.0.get_str(Tag(317))
13688 }
13689
13690 #[doc(alias = "UnderlyingContractMultiplier")]
13692 pub fn underlying_contract_multiplier(&self) -> Result<Option<Decimal>, InvalidValue> {
13693 self.0.get_decimal(Tag(436))
13694 }
13695
13696 #[doc(alias = "UnderlyingCouponRate")]
13698 pub fn underlying_coupon_rate(&self) -> Result<Option<Decimal>, InvalidValue> {
13699 self.0.get_decimal(Tag(435))
13700 }
13701
13702 #[doc(alias = "UnderlyingSecurityExchange")]
13704 pub fn underlying_security_exchange(&self) -> Result<Option<&'a str>, InvalidValue> {
13705 self.0.get_str(Tag(308))
13706 }
13707
13708 #[doc(alias = "UnderlyingIssuer")]
13710 pub fn underlying_issuer(&self) -> Result<Option<&'a str>, InvalidValue> {
13711 self.0.get_str(Tag(306))
13712 }
13713
13714 #[doc(alias = "EncodedUnderlyingIssuerLen")]
13716 pub fn encoded_underlying_issuer_len(&self) -> Result<Option<i64>, InvalidValue> {
13717 self.0.get_int(Tag(362))
13718 }
13719
13720 #[doc(alias = "EncodedUnderlyingIssuer")]
13722 pub fn encoded_underlying_issuer(&self) -> Option<&'a [u8]> {
13723 self.0.get(Tag(363))
13724 }
13725
13726 #[doc(alias = "UnderlyingSecurityDesc")]
13728 pub fn underlying_security_desc(&self) -> Result<Option<&'a str>, InvalidValue> {
13729 self.0.get_str(Tag(307))
13730 }
13731
13732 #[doc(alias = "EncodedUnderlyingSecurityDescLen")]
13734 pub fn encoded_underlying_security_desc_len(&self) -> Result<Option<i64>, InvalidValue> {
13735 self.0.get_int(Tag(364))
13736 }
13737
13738 #[doc(alias = "EncodedUnderlyingSecurityDesc")]
13740 pub fn encoded_underlying_security_desc(&self) -> Option<&'a [u8]> {
13741 self.0.get(Tag(365))
13742 }
13743
13744 #[doc(alias = "TotQuoteEntries")]
13746 pub fn tot_quote_entries(&self) -> Result<Option<i64>, InvalidValue> {
13747 self.0.get_int(Tag(304))
13748 }
13749
13750 #[doc(alias = "NoQuoteEntries")]
13752 pub fn quote_entries(&self) -> Result<Instances<'a, quote_acknowledgement::quote_sets::quote_entries::Instance<'a>>, InvalidValue> {
13753 self.0.get_group("e_acknowledgement::quote_sets::quote_entries::TABLE, &KNOWN_TAGS).map(Instances::from)
13754 }
13755 }
13756
13757 pub mod quote_entries {
13758 use super::super::super::*;
13759
13760 pub const TABLE: GroupTable<'static> = GroupTable::new(
13761 Tag(295),
13762 Tag(299),
13763 &[
13764 Tag(22), Tag(48), Tag(55), Tag(65), Tag(106), Tag(107), Tag(167), Tag(200),
13765 Tag(201), Tag(202), Tag(205), Tag(206), Tag(207), Tag(223), Tag(231), Tag(299),
13766 Tag(348), Tag(349), Tag(350), Tag(351), Tag(368),
13767 ],
13768 &[],
13769 );
13770
13771 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
13772 Tag(22), Tag(48), Tag(55), Tag(65), Tag(106), Tag(107), Tag(167), Tag(200),
13773 Tag(201), Tag(202), Tag(205), Tag(206), Tag(207), Tag(223), Tag(231), Tag(299),
13774 Tag(348), Tag(349), Tag(350), Tag(351), Tag(368),
13775 ]);
13776
13777 #[derive(Clone, Copy, Debug)]
13778 pub struct Instance<'a>(refix_message::Scope<'a>);
13779
13780 impl<'a> From<refix_message::Scope<'a>> for Instance<'a> {
13781 fn from(scope: refix_message::Scope<'a>) -> Self {
13782 Self(scope)
13783 }
13784 }
13785
13786 impl<'a> Instance<'a> {
13787 pub fn raw(&self) -> refix_message::Scope<'a> {
13788 self.0
13789 }
13790
13791 #[doc(alias = "QuoteEntryID")]
13793 pub fn quote_entry_id(&self) -> Result<Option<&'a str>, InvalidValue> {
13794 self.0.get_str(Tag(299))
13795 }
13796
13797 #[doc(alias = "Symbol")]
13799 pub fn symbol(&self) -> Result<Option<&'a str>, InvalidValue> {
13800 self.0.get_str(Tag(55))
13801 }
13802
13803 #[doc(alias = "SymbolSfx")]
13805 pub fn symbol_sfx(&self) -> Result<Option<&'a str>, InvalidValue> {
13806 self.0.get_str(Tag(65))
13807 }
13808
13809 #[doc(alias = "SecurityID")]
13811 pub fn security_id(&self) -> Result<Option<&'a str>, InvalidValue> {
13812 self.0.get_str(Tag(48))
13813 }
13814
13815 #[doc(alias = "IDSource")]
13817 pub fn id_source(&self) -> Result<Option<IDSource<'a>>, InvalidValue> {
13818 Ok(self.0.get_str(Tag(22))?.map(IDSource::from_value))
13819 }
13820
13821 #[doc(alias = "SecurityType")]
13823 pub fn security_type(&self) -> Result<Option<SecurityType<'a>>, InvalidValue> {
13824 Ok(self.0.get_str(Tag(167))?.map(SecurityType::from_value))
13825 }
13826
13827 #[doc(alias = "MaturityMonthYear")]
13829 pub fn maturity_month_year(&self) -> Result<Option<MonthYear>, InvalidValue> {
13830 self.0.get_month_year(Tag(200))
13831 }
13832
13833 #[doc(alias = "MaturityDay")]
13835 pub fn maturity_day(&self) -> Result<Option<i64>, InvalidValue> {
13836 self.0.get_int(Tag(205))
13837 }
13838
13839 #[doc(alias = "PutOrCall")]
13841 pub fn put_or_call(&self) -> Result<Option<PutOrCall>, InvalidValue> {
13842 Ok(self.0.get_int(Tag(201))?.map(PutOrCall::from_value))
13843 }
13844
13845 #[doc(alias = "StrikePrice")]
13847 pub fn strike_price(&self) -> Result<Option<Decimal>, InvalidValue> {
13848 self.0.get_decimal(Tag(202))
13849 }
13850
13851 #[doc(alias = "OptAttribute")]
13853 pub fn opt_attribute(&self) -> Result<Option<&'a str>, InvalidValue> {
13854 self.0.get_str(Tag(206))
13855 }
13856
13857 #[doc(alias = "ContractMultiplier")]
13859 pub fn contract_multiplier(&self) -> Result<Option<Decimal>, InvalidValue> {
13860 self.0.get_decimal(Tag(231))
13861 }
13862
13863 #[doc(alias = "CouponRate")]
13865 pub fn coupon_rate(&self) -> Result<Option<Decimal>, InvalidValue> {
13866 self.0.get_decimal(Tag(223))
13867 }
13868
13869 #[doc(alias = "SecurityExchange")]
13871 pub fn security_exchange(&self) -> Result<Option<&'a str>, InvalidValue> {
13872 self.0.get_str(Tag(207))
13873 }
13874
13875 #[doc(alias = "Issuer")]
13877 pub fn issuer(&self) -> Result<Option<&'a str>, InvalidValue> {
13878 self.0.get_str(Tag(106))
13879 }
13880
13881 #[doc(alias = "EncodedIssuerLen")]
13883 pub fn encoded_issuer_len(&self) -> Result<Option<i64>, InvalidValue> {
13884 self.0.get_int(Tag(348))
13885 }
13886
13887 #[doc(alias = "EncodedIssuer")]
13889 pub fn encoded_issuer(&self) -> Option<&'a [u8]> {
13890 self.0.get(Tag(349))
13891 }
13892
13893 #[doc(alias = "SecurityDesc")]
13895 pub fn security_desc(&self) -> Result<Option<&'a str>, InvalidValue> {
13896 self.0.get_str(Tag(107))
13897 }
13898
13899 #[doc(alias = "EncodedSecurityDescLen")]
13901 pub fn encoded_security_desc_len(&self) -> Result<Option<i64>, InvalidValue> {
13902 self.0.get_int(Tag(350))
13903 }
13904
13905 #[doc(alias = "EncodedSecurityDesc")]
13907 pub fn encoded_security_desc(&self) -> Option<&'a [u8]> {
13908 self.0.get(Tag(351))
13909 }
13910
13911 #[doc(alias = "QuoteEntryRejectReason")]
13913 pub fn quote_entry_reject_reason(&self) -> Result<Option<QuoteEntryRejectReason>, InvalidValue> {
13914 Ok(self.0.get_int(Tag(368))?.map(QuoteEntryRejectReason::from_value))
13915 }
13916 }
13917 }
13918 }
13919}
13920
13921pub struct SecurityDefinitionRequest(RawMessage);
13923
13924impl SecurityDefinitionRequest {
13925 pub const MSG_TYPE: &[u8] = b"c";
13926
13927 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
13928 Tag(8), Tag(9), Tag(10), Tag(15), Tag(22), Tag(34), Tag(35), Tag(43), Tag(48), Tag(49),
13929 Tag(50), Tag(52), Tag(54), Tag(55), Tag(56), Tag(57), Tag(58), Tag(65), Tag(89), Tag(90),
13930 Tag(91), Tag(93), Tag(97), Tag(106), Tag(107), Tag(115), Tag(116), Tag(122), Tag(128),
13931 Tag(129), Tag(142), Tag(143), Tag(144), Tag(145), Tag(146), Tag(167), Tag(200), Tag(201),
13932 Tag(202), Tag(205), Tag(206), Tag(207), Tag(212), Tag(213), Tag(223), Tag(231), Tag(305),
13933 Tag(306), Tag(307), Tag(308), Tag(309), Tag(310), Tag(311), Tag(312), Tag(313), Tag(314),
13934 Tag(315), Tag(316), Tag(317), Tag(318), Tag(319), Tag(320), Tag(321), Tag(336), Tag(347),
13935 Tag(348), Tag(349), Tag(350), Tag(351), Tag(354), Tag(355), Tag(362), Tag(363), Tag(364),
13936 Tag(365), Tag(369), Tag(370), Tag(435), Tag(436),
13937 ]);
13938
13939 pub fn from_raw(raw: RawMessage) -> Self {
13940 Self(raw)
13941 }
13942
13943 pub fn raw(&self) -> &RawMessage {
13944 &self.0
13945 }
13946
13947 pub fn header(&self) -> Header<'_> {
13948 Header(self.0.scope())
13949 }
13950
13951 pub fn trailer(&self) -> Trailer<'_> {
13952 Trailer(self.0.scope())
13953 }
13954
13955 #[doc(alias = "SecurityReqID")]
13957 pub fn security_req_id(&self) -> Result<Option<&str>, InvalidValue> {
13958 self.0.get_str(Tag(320))
13959 }
13960
13961 #[doc(alias = "SecurityRequestType")]
13963 pub fn security_request_type(&self) -> Result<Option<SecurityRequestType>, InvalidValue> {
13964 Ok(self.0.get_int(Tag(321))?.map(SecurityRequestType::from_value))
13965 }
13966
13967 #[doc(alias = "Symbol")]
13969 pub fn symbol(&self) -> Result<Option<&str>, InvalidValue> {
13970 self.0.get_str(Tag(55))
13971 }
13972
13973 #[doc(alias = "SymbolSfx")]
13975 pub fn symbol_sfx(&self) -> Result<Option<&str>, InvalidValue> {
13976 self.0.get_str(Tag(65))
13977 }
13978
13979 #[doc(alias = "SecurityID")]
13981 pub fn security_id(&self) -> Result<Option<&str>, InvalidValue> {
13982 self.0.get_str(Tag(48))
13983 }
13984
13985 #[doc(alias = "IDSource")]
13987 pub fn id_source(&self) -> Result<Option<IDSource<'_>>, InvalidValue> {
13988 Ok(self.0.get_str(Tag(22))?.map(IDSource::from_value))
13989 }
13990
13991 #[doc(alias = "SecurityType")]
13993 pub fn security_type(&self) -> Result<Option<SecurityType<'_>>, InvalidValue> {
13994 Ok(self.0.get_str(Tag(167))?.map(SecurityType::from_value))
13995 }
13996
13997 #[doc(alias = "MaturityMonthYear")]
13999 pub fn maturity_month_year(&self) -> Result<Option<MonthYear>, InvalidValue> {
14000 self.0.get_month_year(Tag(200))
14001 }
14002
14003 #[doc(alias = "MaturityDay")]
14005 pub fn maturity_day(&self) -> Result<Option<i64>, InvalidValue> {
14006 self.0.get_int(Tag(205))
14007 }
14008
14009 #[doc(alias = "PutOrCall")]
14011 pub fn put_or_call(&self) -> Result<Option<PutOrCall>, InvalidValue> {
14012 Ok(self.0.get_int(Tag(201))?.map(PutOrCall::from_value))
14013 }
14014
14015 #[doc(alias = "StrikePrice")]
14017 pub fn strike_price(&self) -> Result<Option<Decimal>, InvalidValue> {
14018 self.0.get_decimal(Tag(202))
14019 }
14020
14021 #[doc(alias = "OptAttribute")]
14023 pub fn opt_attribute(&self) -> Result<Option<&str>, InvalidValue> {
14024 self.0.get_str(Tag(206))
14025 }
14026
14027 #[doc(alias = "ContractMultiplier")]
14029 pub fn contract_multiplier(&self) -> Result<Option<Decimal>, InvalidValue> {
14030 self.0.get_decimal(Tag(231))
14031 }
14032
14033 #[doc(alias = "CouponRate")]
14035 pub fn coupon_rate(&self) -> Result<Option<Decimal>, InvalidValue> {
14036 self.0.get_decimal(Tag(223))
14037 }
14038
14039 #[doc(alias = "SecurityExchange")]
14041 pub fn security_exchange(&self) -> Result<Option<&str>, InvalidValue> {
14042 self.0.get_str(Tag(207))
14043 }
14044
14045 #[doc(alias = "Issuer")]
14047 pub fn issuer(&self) -> Result<Option<&str>, InvalidValue> {
14048 self.0.get_str(Tag(106))
14049 }
14050
14051 #[doc(alias = "EncodedIssuerLen")]
14053 pub fn encoded_issuer_len(&self) -> Result<Option<i64>, InvalidValue> {
14054 self.0.get_int(Tag(348))
14055 }
14056
14057 #[doc(alias = "EncodedIssuer")]
14059 pub fn encoded_issuer(&self) -> Option<&[u8]> {
14060 self.0.get(Tag(349))
14061 }
14062
14063 #[doc(alias = "SecurityDesc")]
14065 pub fn security_desc(&self) -> Result<Option<&str>, InvalidValue> {
14066 self.0.get_str(Tag(107))
14067 }
14068
14069 #[doc(alias = "EncodedSecurityDescLen")]
14071 pub fn encoded_security_desc_len(&self) -> Result<Option<i64>, InvalidValue> {
14072 self.0.get_int(Tag(350))
14073 }
14074
14075 #[doc(alias = "EncodedSecurityDesc")]
14077 pub fn encoded_security_desc(&self) -> Option<&[u8]> {
14078 self.0.get(Tag(351))
14079 }
14080
14081 #[doc(alias = "Currency")]
14083 pub fn currency(&self) -> Result<Option<&str>, InvalidValue> {
14084 self.0.get_str(Tag(15))
14085 }
14086
14087 #[doc(alias = "Text")]
14089 pub fn text(&self) -> Result<Option<&str>, InvalidValue> {
14090 self.0.get_str(Tag(58))
14091 }
14092
14093 #[doc(alias = "EncodedTextLen")]
14095 pub fn encoded_text_len(&self) -> Result<Option<i64>, InvalidValue> {
14096 self.0.get_int(Tag(354))
14097 }
14098
14099 #[doc(alias = "EncodedText")]
14101 pub fn encoded_text(&self) -> Option<&[u8]> {
14102 self.0.get(Tag(355))
14103 }
14104
14105 #[doc(alias = "TradingSessionID")]
14107 pub fn trading_session_id(&self) -> Result<Option<&str>, InvalidValue> {
14108 self.0.get_str(Tag(336))
14109 }
14110
14111 #[doc(alias = "NoRelatedSym")]
14113 pub fn related_sym(&self) -> Result<Instances<'_, security_definition_request::related_sym::Instance<'_>>, InvalidValue> {
14114 self.0.get_group(&security_definition_request::related_sym::TABLE, &Self::KNOWN_TAGS).map(Instances::from)
14115 }
14116}
14117
14118impl std::fmt::Debug for SecurityDefinitionRequest {
14119 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
14120 write!(f, "SecurityDefinitionRequest({})", self.0)
14121 }
14122}
14123
14124impl std::fmt::Display for SecurityDefinitionRequest {
14125 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
14126 std::fmt::Display::fmt(&self.0, f)
14127 }
14128}
14129
14130pub mod security_definition_request {
14131 pub mod related_sym {
14132 use super::super::*;
14133
14134 pub const TABLE: GroupTable<'static> = GroupTable::new(
14135 Tag(146),
14136 Tag(311),
14137 &[
14138 Tag(54), Tag(305), Tag(306), Tag(307), Tag(308), Tag(309), Tag(310), Tag(311),
14139 Tag(312), Tag(313), Tag(314), Tag(315), Tag(316), Tag(317), Tag(318), Tag(319),
14140 Tag(362), Tag(363), Tag(364), Tag(365), Tag(435), Tag(436),
14141 ],
14142 &[],
14143 );
14144
14145 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
14146 Tag(54), Tag(305), Tag(306), Tag(307), Tag(308), Tag(309), Tag(310), Tag(311), Tag(312),
14147 Tag(313), Tag(314), Tag(315), Tag(316), Tag(317), Tag(318), Tag(319), Tag(362),
14148 Tag(363), Tag(364), Tag(365), Tag(435), Tag(436),
14149 ]);
14150
14151 #[derive(Clone, Copy, Debug)]
14152 pub struct Instance<'a>(refix_message::Scope<'a>);
14153
14154 impl<'a> From<refix_message::Scope<'a>> for Instance<'a> {
14155 fn from(scope: refix_message::Scope<'a>) -> Self {
14156 Self(scope)
14157 }
14158 }
14159
14160 impl<'a> Instance<'a> {
14161 pub fn raw(&self) -> refix_message::Scope<'a> {
14162 self.0
14163 }
14164
14165 #[doc(alias = "UnderlyingSymbol")]
14167 pub fn underlying_symbol(&self) -> Result<Option<&'a str>, InvalidValue> {
14168 self.0.get_str(Tag(311))
14169 }
14170
14171 #[doc(alias = "UnderlyingSymbolSfx")]
14173 pub fn underlying_symbol_sfx(&self) -> Result<Option<&'a str>, InvalidValue> {
14174 self.0.get_str(Tag(312))
14175 }
14176
14177 #[doc(alias = "UnderlyingSecurityID")]
14179 pub fn underlying_security_id(&self) -> Result<Option<&'a str>, InvalidValue> {
14180 self.0.get_str(Tag(309))
14181 }
14182
14183 #[doc(alias = "UnderlyingIDSource")]
14185 pub fn underlying_id_source(&self) -> Result<Option<&'a str>, InvalidValue> {
14186 self.0.get_str(Tag(305))
14187 }
14188
14189 #[doc(alias = "UnderlyingSecurityType")]
14191 pub fn underlying_security_type(&self) -> Result<Option<&'a str>, InvalidValue> {
14192 self.0.get_str(Tag(310))
14193 }
14194
14195 #[doc(alias = "UnderlyingMaturityMonthYear")]
14197 pub fn underlying_maturity_month_year(&self) -> Result<Option<MonthYear>, InvalidValue> {
14198 self.0.get_month_year(Tag(313))
14199 }
14200
14201 #[doc(alias = "UnderlyingMaturityDay")]
14203 pub fn underlying_maturity_day(&self) -> Result<Option<i64>, InvalidValue> {
14204 self.0.get_int(Tag(314))
14205 }
14206
14207 #[doc(alias = "UnderlyingPutOrCall")]
14209 pub fn underlying_put_or_call(&self) -> Result<Option<i64>, InvalidValue> {
14210 self.0.get_int(Tag(315))
14211 }
14212
14213 #[doc(alias = "UnderlyingStrikePrice")]
14215 pub fn underlying_strike_price(&self) -> Result<Option<Decimal>, InvalidValue> {
14216 self.0.get_decimal(Tag(316))
14217 }
14218
14219 #[doc(alias = "UnderlyingOptAttribute")]
14221 pub fn underlying_opt_attribute(&self) -> Result<Option<&'a str>, InvalidValue> {
14222 self.0.get_str(Tag(317))
14223 }
14224
14225 #[doc(alias = "UnderlyingContractMultiplier")]
14227 pub fn underlying_contract_multiplier(&self) -> Result<Option<Decimal>, InvalidValue> {
14228 self.0.get_decimal(Tag(436))
14229 }
14230
14231 #[doc(alias = "UnderlyingCouponRate")]
14233 pub fn underlying_coupon_rate(&self) -> Result<Option<Decimal>, InvalidValue> {
14234 self.0.get_decimal(Tag(435))
14235 }
14236
14237 #[doc(alias = "UnderlyingSecurityExchange")]
14239 pub fn underlying_security_exchange(&self) -> Result<Option<&'a str>, InvalidValue> {
14240 self.0.get_str(Tag(308))
14241 }
14242
14243 #[doc(alias = "UnderlyingIssuer")]
14245 pub fn underlying_issuer(&self) -> Result<Option<&'a str>, InvalidValue> {
14246 self.0.get_str(Tag(306))
14247 }
14248
14249 #[doc(alias = "EncodedUnderlyingIssuerLen")]
14251 pub fn encoded_underlying_issuer_len(&self) -> Result<Option<i64>, InvalidValue> {
14252 self.0.get_int(Tag(362))
14253 }
14254
14255 #[doc(alias = "EncodedUnderlyingIssuer")]
14257 pub fn encoded_underlying_issuer(&self) -> Option<&'a [u8]> {
14258 self.0.get(Tag(363))
14259 }
14260
14261 #[doc(alias = "UnderlyingSecurityDesc")]
14263 pub fn underlying_security_desc(&self) -> Result<Option<&'a str>, InvalidValue> {
14264 self.0.get_str(Tag(307))
14265 }
14266
14267 #[doc(alias = "EncodedUnderlyingSecurityDescLen")]
14269 pub fn encoded_underlying_security_desc_len(&self) -> Result<Option<i64>, InvalidValue> {
14270 self.0.get_int(Tag(364))
14271 }
14272
14273 #[doc(alias = "EncodedUnderlyingSecurityDesc")]
14275 pub fn encoded_underlying_security_desc(&self) -> Option<&'a [u8]> {
14276 self.0.get(Tag(365))
14277 }
14278
14279 #[doc(alias = "RatioQty")]
14281 pub fn ratio_qty(&self) -> Result<Option<Decimal>, InvalidValue> {
14282 self.0.get_decimal(Tag(319))
14283 }
14284
14285 #[doc(alias = "Side")]
14287 pub fn side(&self) -> Result<Option<Side<'a>>, InvalidValue> {
14288 Ok(self.0.get_str(Tag(54))?.map(Side::from_value))
14289 }
14290
14291 #[doc(alias = "UnderlyingCurrency")]
14293 pub fn underlying_currency(&self) -> Result<Option<&'a str>, InvalidValue> {
14294 self.0.get_str(Tag(318))
14295 }
14296 }
14297 }
14298}
14299
14300pub struct SecurityDefinition(RawMessage);
14302
14303impl SecurityDefinition {
14304 pub const MSG_TYPE: &[u8] = b"d";
14305
14306 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
14307 Tag(8), Tag(9), Tag(10), Tag(15), Tag(22), Tag(34), Tag(35), Tag(43), Tag(48), Tag(49),
14308 Tag(50), Tag(52), Tag(54), Tag(55), Tag(56), Tag(57), Tag(58), Tag(65), Tag(89), Tag(90),
14309 Tag(91), Tag(93), Tag(97), Tag(106), Tag(107), Tag(115), Tag(116), Tag(122), Tag(128),
14310 Tag(129), Tag(142), Tag(143), Tag(144), Tag(145), Tag(146), Tag(167), Tag(200), Tag(201),
14311 Tag(202), Tag(205), Tag(206), Tag(207), Tag(212), Tag(213), Tag(223), Tag(231), Tag(305),
14312 Tag(306), Tag(307), Tag(308), Tag(309), Tag(310), Tag(311), Tag(312), Tag(313), Tag(314),
14313 Tag(315), Tag(316), Tag(317), Tag(318), Tag(319), Tag(320), Tag(322), Tag(323), Tag(336),
14314 Tag(347), Tag(348), Tag(349), Tag(350), Tag(351), Tag(354), Tag(355), Tag(362), Tag(363),
14315 Tag(364), Tag(365), Tag(369), Tag(370), Tag(393), Tag(435), Tag(436),
14316 ]);
14317
14318 pub fn from_raw(raw: RawMessage) -> Self {
14319 Self(raw)
14320 }
14321
14322 pub fn raw(&self) -> &RawMessage {
14323 &self.0
14324 }
14325
14326 pub fn header(&self) -> Header<'_> {
14327 Header(self.0.scope())
14328 }
14329
14330 pub fn trailer(&self) -> Trailer<'_> {
14331 Trailer(self.0.scope())
14332 }
14333
14334 #[doc(alias = "SecurityReqID")]
14336 pub fn security_req_id(&self) -> Result<Option<&str>, InvalidValue> {
14337 self.0.get_str(Tag(320))
14338 }
14339
14340 #[doc(alias = "SecurityResponseID")]
14342 pub fn security_response_id(&self) -> Result<Option<&str>, InvalidValue> {
14343 self.0.get_str(Tag(322))
14344 }
14345
14346 #[doc(alias = "SecurityResponseType")]
14348 pub fn security_response_type(&self) -> Result<Option<SecurityResponseType>, InvalidValue> {
14349 Ok(self.0.get_int(Tag(323))?.map(SecurityResponseType::from_value))
14350 }
14351
14352 #[doc(alias = "TotalNumSecurities")]
14354 pub fn total_num_securities(&self) -> Result<Option<i64>, InvalidValue> {
14355 self.0.get_int(Tag(393))
14356 }
14357
14358 #[doc(alias = "Symbol")]
14360 pub fn symbol(&self) -> Result<Option<&str>, InvalidValue> {
14361 self.0.get_str(Tag(55))
14362 }
14363
14364 #[doc(alias = "SymbolSfx")]
14366 pub fn symbol_sfx(&self) -> Result<Option<&str>, InvalidValue> {
14367 self.0.get_str(Tag(65))
14368 }
14369
14370 #[doc(alias = "SecurityID")]
14372 pub fn security_id(&self) -> Result<Option<&str>, InvalidValue> {
14373 self.0.get_str(Tag(48))
14374 }
14375
14376 #[doc(alias = "IDSource")]
14378 pub fn id_source(&self) -> Result<Option<IDSource<'_>>, InvalidValue> {
14379 Ok(self.0.get_str(Tag(22))?.map(IDSource::from_value))
14380 }
14381
14382 #[doc(alias = "SecurityType")]
14384 pub fn security_type(&self) -> Result<Option<SecurityType<'_>>, InvalidValue> {
14385 Ok(self.0.get_str(Tag(167))?.map(SecurityType::from_value))
14386 }
14387
14388 #[doc(alias = "MaturityMonthYear")]
14390 pub fn maturity_month_year(&self) -> Result<Option<MonthYear>, InvalidValue> {
14391 self.0.get_month_year(Tag(200))
14392 }
14393
14394 #[doc(alias = "MaturityDay")]
14396 pub fn maturity_day(&self) -> Result<Option<i64>, InvalidValue> {
14397 self.0.get_int(Tag(205))
14398 }
14399
14400 #[doc(alias = "PutOrCall")]
14402 pub fn put_or_call(&self) -> Result<Option<PutOrCall>, InvalidValue> {
14403 Ok(self.0.get_int(Tag(201))?.map(PutOrCall::from_value))
14404 }
14405
14406 #[doc(alias = "StrikePrice")]
14408 pub fn strike_price(&self) -> Result<Option<Decimal>, InvalidValue> {
14409 self.0.get_decimal(Tag(202))
14410 }
14411
14412 #[doc(alias = "OptAttribute")]
14414 pub fn opt_attribute(&self) -> Result<Option<&str>, InvalidValue> {
14415 self.0.get_str(Tag(206))
14416 }
14417
14418 #[doc(alias = "ContractMultiplier")]
14420 pub fn contract_multiplier(&self) -> Result<Option<Decimal>, InvalidValue> {
14421 self.0.get_decimal(Tag(231))
14422 }
14423
14424 #[doc(alias = "CouponRate")]
14426 pub fn coupon_rate(&self) -> Result<Option<Decimal>, InvalidValue> {
14427 self.0.get_decimal(Tag(223))
14428 }
14429
14430 #[doc(alias = "SecurityExchange")]
14432 pub fn security_exchange(&self) -> Result<Option<&str>, InvalidValue> {
14433 self.0.get_str(Tag(207))
14434 }
14435
14436 #[doc(alias = "Issuer")]
14438 pub fn issuer(&self) -> Result<Option<&str>, InvalidValue> {
14439 self.0.get_str(Tag(106))
14440 }
14441
14442 #[doc(alias = "EncodedIssuerLen")]
14444 pub fn encoded_issuer_len(&self) -> Result<Option<i64>, InvalidValue> {
14445 self.0.get_int(Tag(348))
14446 }
14447
14448 #[doc(alias = "EncodedIssuer")]
14450 pub fn encoded_issuer(&self) -> Option<&[u8]> {
14451 self.0.get(Tag(349))
14452 }
14453
14454 #[doc(alias = "SecurityDesc")]
14456 pub fn security_desc(&self) -> Result<Option<&str>, InvalidValue> {
14457 self.0.get_str(Tag(107))
14458 }
14459
14460 #[doc(alias = "EncodedSecurityDescLen")]
14462 pub fn encoded_security_desc_len(&self) -> Result<Option<i64>, InvalidValue> {
14463 self.0.get_int(Tag(350))
14464 }
14465
14466 #[doc(alias = "EncodedSecurityDesc")]
14468 pub fn encoded_security_desc(&self) -> Option<&[u8]> {
14469 self.0.get(Tag(351))
14470 }
14471
14472 #[doc(alias = "Currency")]
14474 pub fn currency(&self) -> Result<Option<&str>, InvalidValue> {
14475 self.0.get_str(Tag(15))
14476 }
14477
14478 #[doc(alias = "TradingSessionID")]
14480 pub fn trading_session_id(&self) -> Result<Option<&str>, InvalidValue> {
14481 self.0.get_str(Tag(336))
14482 }
14483
14484 #[doc(alias = "Text")]
14486 pub fn text(&self) -> Result<Option<&str>, InvalidValue> {
14487 self.0.get_str(Tag(58))
14488 }
14489
14490 #[doc(alias = "EncodedTextLen")]
14492 pub fn encoded_text_len(&self) -> Result<Option<i64>, InvalidValue> {
14493 self.0.get_int(Tag(354))
14494 }
14495
14496 #[doc(alias = "EncodedText")]
14498 pub fn encoded_text(&self) -> Option<&[u8]> {
14499 self.0.get(Tag(355))
14500 }
14501
14502 #[doc(alias = "NoRelatedSym")]
14504 pub fn related_sym(&self) -> Result<Instances<'_, security_definition::related_sym::Instance<'_>>, InvalidValue> {
14505 self.0.get_group(&security_definition::related_sym::TABLE, &Self::KNOWN_TAGS).map(Instances::from)
14506 }
14507}
14508
14509impl std::fmt::Debug for SecurityDefinition {
14510 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
14511 write!(f, "SecurityDefinition({})", self.0)
14512 }
14513}
14514
14515impl std::fmt::Display for SecurityDefinition {
14516 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
14517 std::fmt::Display::fmt(&self.0, f)
14518 }
14519}
14520
14521pub mod security_definition {
14522 pub mod related_sym {
14523 use super::super::*;
14524
14525 pub const TABLE: GroupTable<'static> = GroupTable::new(
14526 Tag(146),
14527 Tag(311),
14528 &[
14529 Tag(54), Tag(305), Tag(306), Tag(307), Tag(308), Tag(309), Tag(310), Tag(311),
14530 Tag(312), Tag(313), Tag(314), Tag(315), Tag(316), Tag(317), Tag(318), Tag(319),
14531 Tag(362), Tag(363), Tag(364), Tag(365), Tag(435), Tag(436),
14532 ],
14533 &[],
14534 );
14535
14536 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
14537 Tag(54), Tag(305), Tag(306), Tag(307), Tag(308), Tag(309), Tag(310), Tag(311), Tag(312),
14538 Tag(313), Tag(314), Tag(315), Tag(316), Tag(317), Tag(318), Tag(319), Tag(362),
14539 Tag(363), Tag(364), Tag(365), Tag(435), Tag(436),
14540 ]);
14541
14542 #[derive(Clone, Copy, Debug)]
14543 pub struct Instance<'a>(refix_message::Scope<'a>);
14544
14545 impl<'a> From<refix_message::Scope<'a>> for Instance<'a> {
14546 fn from(scope: refix_message::Scope<'a>) -> Self {
14547 Self(scope)
14548 }
14549 }
14550
14551 impl<'a> Instance<'a> {
14552 pub fn raw(&self) -> refix_message::Scope<'a> {
14553 self.0
14554 }
14555
14556 #[doc(alias = "UnderlyingSymbol")]
14558 pub fn underlying_symbol(&self) -> Result<Option<&'a str>, InvalidValue> {
14559 self.0.get_str(Tag(311))
14560 }
14561
14562 #[doc(alias = "UnderlyingSymbolSfx")]
14564 pub fn underlying_symbol_sfx(&self) -> Result<Option<&'a str>, InvalidValue> {
14565 self.0.get_str(Tag(312))
14566 }
14567
14568 #[doc(alias = "UnderlyingSecurityID")]
14570 pub fn underlying_security_id(&self) -> Result<Option<&'a str>, InvalidValue> {
14571 self.0.get_str(Tag(309))
14572 }
14573
14574 #[doc(alias = "UnderlyingIDSource")]
14576 pub fn underlying_id_source(&self) -> Result<Option<&'a str>, InvalidValue> {
14577 self.0.get_str(Tag(305))
14578 }
14579
14580 #[doc(alias = "UnderlyingSecurityType")]
14582 pub fn underlying_security_type(&self) -> Result<Option<&'a str>, InvalidValue> {
14583 self.0.get_str(Tag(310))
14584 }
14585
14586 #[doc(alias = "UnderlyingMaturityMonthYear")]
14588 pub fn underlying_maturity_month_year(&self) -> Result<Option<MonthYear>, InvalidValue> {
14589 self.0.get_month_year(Tag(313))
14590 }
14591
14592 #[doc(alias = "UnderlyingMaturityDay")]
14594 pub fn underlying_maturity_day(&self) -> Result<Option<i64>, InvalidValue> {
14595 self.0.get_int(Tag(314))
14596 }
14597
14598 #[doc(alias = "UnderlyingPutOrCall")]
14600 pub fn underlying_put_or_call(&self) -> Result<Option<i64>, InvalidValue> {
14601 self.0.get_int(Tag(315))
14602 }
14603
14604 #[doc(alias = "UnderlyingStrikePrice")]
14606 pub fn underlying_strike_price(&self) -> Result<Option<Decimal>, InvalidValue> {
14607 self.0.get_decimal(Tag(316))
14608 }
14609
14610 #[doc(alias = "UnderlyingOptAttribute")]
14612 pub fn underlying_opt_attribute(&self) -> Result<Option<&'a str>, InvalidValue> {
14613 self.0.get_str(Tag(317))
14614 }
14615
14616 #[doc(alias = "UnderlyingContractMultiplier")]
14618 pub fn underlying_contract_multiplier(&self) -> Result<Option<Decimal>, InvalidValue> {
14619 self.0.get_decimal(Tag(436))
14620 }
14621
14622 #[doc(alias = "UnderlyingCouponRate")]
14624 pub fn underlying_coupon_rate(&self) -> Result<Option<Decimal>, InvalidValue> {
14625 self.0.get_decimal(Tag(435))
14626 }
14627
14628 #[doc(alias = "UnderlyingSecurityExchange")]
14630 pub fn underlying_security_exchange(&self) -> Result<Option<&'a str>, InvalidValue> {
14631 self.0.get_str(Tag(308))
14632 }
14633
14634 #[doc(alias = "UnderlyingIssuer")]
14636 pub fn underlying_issuer(&self) -> Result<Option<&'a str>, InvalidValue> {
14637 self.0.get_str(Tag(306))
14638 }
14639
14640 #[doc(alias = "EncodedUnderlyingIssuerLen")]
14642 pub fn encoded_underlying_issuer_len(&self) -> Result<Option<i64>, InvalidValue> {
14643 self.0.get_int(Tag(362))
14644 }
14645
14646 #[doc(alias = "EncodedUnderlyingIssuer")]
14648 pub fn encoded_underlying_issuer(&self) -> Option<&'a [u8]> {
14649 self.0.get(Tag(363))
14650 }
14651
14652 #[doc(alias = "UnderlyingSecurityDesc")]
14654 pub fn underlying_security_desc(&self) -> Result<Option<&'a str>, InvalidValue> {
14655 self.0.get_str(Tag(307))
14656 }
14657
14658 #[doc(alias = "EncodedUnderlyingSecurityDescLen")]
14660 pub fn encoded_underlying_security_desc_len(&self) -> Result<Option<i64>, InvalidValue> {
14661 self.0.get_int(Tag(364))
14662 }
14663
14664 #[doc(alias = "EncodedUnderlyingSecurityDesc")]
14666 pub fn encoded_underlying_security_desc(&self) -> Option<&'a [u8]> {
14667 self.0.get(Tag(365))
14668 }
14669
14670 #[doc(alias = "RatioQty")]
14672 pub fn ratio_qty(&self) -> Result<Option<Decimal>, InvalidValue> {
14673 self.0.get_decimal(Tag(319))
14674 }
14675
14676 #[doc(alias = "Side")]
14678 pub fn side(&self) -> Result<Option<Side<'a>>, InvalidValue> {
14679 Ok(self.0.get_str(Tag(54))?.map(Side::from_value))
14680 }
14681
14682 #[doc(alias = "UnderlyingCurrency")]
14684 pub fn underlying_currency(&self) -> Result<Option<&'a str>, InvalidValue> {
14685 self.0.get_str(Tag(318))
14686 }
14687 }
14688 }
14689}
14690
14691pub struct SecurityStatusRequest(RawMessage);
14693
14694impl SecurityStatusRequest {
14695 pub const MSG_TYPE: &[u8] = b"e";
14696
14697 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
14698 Tag(8), Tag(9), Tag(10), Tag(15), Tag(22), Tag(34), Tag(35), Tag(43), Tag(48), Tag(49),
14699 Tag(50), Tag(52), Tag(55), Tag(56), Tag(57), Tag(65), Tag(89), Tag(90), Tag(91), Tag(93),
14700 Tag(97), Tag(106), Tag(107), Tag(115), Tag(116), Tag(122), Tag(128), Tag(129), Tag(142),
14701 Tag(143), Tag(144), Tag(145), Tag(167), Tag(200), Tag(201), Tag(202), Tag(205), Tag(206),
14702 Tag(207), Tag(212), Tag(213), Tag(223), Tag(231), Tag(263), Tag(324), Tag(336), Tag(347),
14703 Tag(348), Tag(349), Tag(350), Tag(351), Tag(369), Tag(370),
14704 ]);
14705
14706 pub fn from_raw(raw: RawMessage) -> Self {
14707 Self(raw)
14708 }
14709
14710 pub fn raw(&self) -> &RawMessage {
14711 &self.0
14712 }
14713
14714 pub fn header(&self) -> Header<'_> {
14715 Header(self.0.scope())
14716 }
14717
14718 pub fn trailer(&self) -> Trailer<'_> {
14719 Trailer(self.0.scope())
14720 }
14721
14722 #[doc(alias = "SecurityStatusReqID")]
14724 pub fn security_status_req_id(&self) -> Result<Option<&str>, InvalidValue> {
14725 self.0.get_str(Tag(324))
14726 }
14727
14728 #[doc(alias = "Symbol")]
14730 pub fn symbol(&self) -> Result<Option<&str>, InvalidValue> {
14731 self.0.get_str(Tag(55))
14732 }
14733
14734 #[doc(alias = "SymbolSfx")]
14736 pub fn symbol_sfx(&self) -> Result<Option<&str>, InvalidValue> {
14737 self.0.get_str(Tag(65))
14738 }
14739
14740 #[doc(alias = "SecurityID")]
14742 pub fn security_id(&self) -> Result<Option<&str>, InvalidValue> {
14743 self.0.get_str(Tag(48))
14744 }
14745
14746 #[doc(alias = "IDSource")]
14748 pub fn id_source(&self) -> Result<Option<IDSource<'_>>, InvalidValue> {
14749 Ok(self.0.get_str(Tag(22))?.map(IDSource::from_value))
14750 }
14751
14752 #[doc(alias = "SecurityType")]
14754 pub fn security_type(&self) -> Result<Option<SecurityType<'_>>, InvalidValue> {
14755 Ok(self.0.get_str(Tag(167))?.map(SecurityType::from_value))
14756 }
14757
14758 #[doc(alias = "MaturityMonthYear")]
14760 pub fn maturity_month_year(&self) -> Result<Option<MonthYear>, InvalidValue> {
14761 self.0.get_month_year(Tag(200))
14762 }
14763
14764 #[doc(alias = "MaturityDay")]
14766 pub fn maturity_day(&self) -> Result<Option<i64>, InvalidValue> {
14767 self.0.get_int(Tag(205))
14768 }
14769
14770 #[doc(alias = "PutOrCall")]
14772 pub fn put_or_call(&self) -> Result<Option<PutOrCall>, InvalidValue> {
14773 Ok(self.0.get_int(Tag(201))?.map(PutOrCall::from_value))
14774 }
14775
14776 #[doc(alias = "StrikePrice")]
14778 pub fn strike_price(&self) -> Result<Option<Decimal>, InvalidValue> {
14779 self.0.get_decimal(Tag(202))
14780 }
14781
14782 #[doc(alias = "OptAttribute")]
14784 pub fn opt_attribute(&self) -> Result<Option<&str>, InvalidValue> {
14785 self.0.get_str(Tag(206))
14786 }
14787
14788 #[doc(alias = "ContractMultiplier")]
14790 pub fn contract_multiplier(&self) -> Result<Option<Decimal>, InvalidValue> {
14791 self.0.get_decimal(Tag(231))
14792 }
14793
14794 #[doc(alias = "CouponRate")]
14796 pub fn coupon_rate(&self) -> Result<Option<Decimal>, InvalidValue> {
14797 self.0.get_decimal(Tag(223))
14798 }
14799
14800 #[doc(alias = "SecurityExchange")]
14802 pub fn security_exchange(&self) -> Result<Option<&str>, InvalidValue> {
14803 self.0.get_str(Tag(207))
14804 }
14805
14806 #[doc(alias = "Issuer")]
14808 pub fn issuer(&self) -> Result<Option<&str>, InvalidValue> {
14809 self.0.get_str(Tag(106))
14810 }
14811
14812 #[doc(alias = "EncodedIssuerLen")]
14814 pub fn encoded_issuer_len(&self) -> Result<Option<i64>, InvalidValue> {
14815 self.0.get_int(Tag(348))
14816 }
14817
14818 #[doc(alias = "EncodedIssuer")]
14820 pub fn encoded_issuer(&self) -> Option<&[u8]> {
14821 self.0.get(Tag(349))
14822 }
14823
14824 #[doc(alias = "SecurityDesc")]
14826 pub fn security_desc(&self) -> Result<Option<&str>, InvalidValue> {
14827 self.0.get_str(Tag(107))
14828 }
14829
14830 #[doc(alias = "EncodedSecurityDescLen")]
14832 pub fn encoded_security_desc_len(&self) -> Result<Option<i64>, InvalidValue> {
14833 self.0.get_int(Tag(350))
14834 }
14835
14836 #[doc(alias = "EncodedSecurityDesc")]
14838 pub fn encoded_security_desc(&self) -> Option<&[u8]> {
14839 self.0.get(Tag(351))
14840 }
14841
14842 #[doc(alias = "Currency")]
14844 pub fn currency(&self) -> Result<Option<&str>, InvalidValue> {
14845 self.0.get_str(Tag(15))
14846 }
14847
14848 #[doc(alias = "SubscriptionRequestType")]
14850 pub fn subscription_request_type(&self) -> Result<Option<SubscriptionRequestType<'_>>, InvalidValue> {
14851 Ok(self.0.get_str(Tag(263))?.map(SubscriptionRequestType::from_value))
14852 }
14853
14854 #[doc(alias = "TradingSessionID")]
14856 pub fn trading_session_id(&self) -> Result<Option<&str>, InvalidValue> {
14857 self.0.get_str(Tag(336))
14858 }
14859}
14860
14861impl std::fmt::Debug for SecurityStatusRequest {
14862 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
14863 write!(f, "SecurityStatusRequest({})", self.0)
14864 }
14865}
14866
14867impl std::fmt::Display for SecurityStatusRequest {
14868 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
14869 std::fmt::Display::fmt(&self.0, f)
14870 }
14871}
14872
14873pub struct SecurityStatus(RawMessage);
14875
14876impl SecurityStatus {
14877 pub const MSG_TYPE: &[u8] = b"f";
14878
14879 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
14880 Tag(8), Tag(9), Tag(10), Tag(15), Tag(22), Tag(31), Tag(34), Tag(35), Tag(43), Tag(48),
14881 Tag(49), Tag(50), Tag(52), Tag(55), Tag(56), Tag(57), Tag(60), Tag(65), Tag(89), Tag(90),
14882 Tag(91), Tag(93), Tag(97), Tag(106), Tag(107), Tag(115), Tag(116), Tag(122), Tag(128),
14883 Tag(129), Tag(142), Tag(143), Tag(144), Tag(145), Tag(167), Tag(200), Tag(201), Tag(202),
14884 Tag(205), Tag(206), Tag(207), Tag(212), Tag(213), Tag(223), Tag(231), Tag(291), Tag(292),
14885 Tag(324), Tag(325), Tag(326), Tag(327), Tag(328), Tag(329), Tag(330), Tag(331), Tag(332),
14886 Tag(333), Tag(334), Tag(336), Tag(347), Tag(348), Tag(349), Tag(350), Tag(351), Tag(369),
14887 Tag(370),
14888 ]);
14889
14890 pub fn from_raw(raw: RawMessage) -> Self {
14891 Self(raw)
14892 }
14893
14894 pub fn raw(&self) -> &RawMessage {
14895 &self.0
14896 }
14897
14898 pub fn header(&self) -> Header<'_> {
14899 Header(self.0.scope())
14900 }
14901
14902 pub fn trailer(&self) -> Trailer<'_> {
14903 Trailer(self.0.scope())
14904 }
14905
14906 #[doc(alias = "SecurityStatusReqID")]
14908 pub fn security_status_req_id(&self) -> Result<Option<&str>, InvalidValue> {
14909 self.0.get_str(Tag(324))
14910 }
14911
14912 #[doc(alias = "Symbol")]
14914 pub fn symbol(&self) -> Result<Option<&str>, InvalidValue> {
14915 self.0.get_str(Tag(55))
14916 }
14917
14918 #[doc(alias = "SymbolSfx")]
14920 pub fn symbol_sfx(&self) -> Result<Option<&str>, InvalidValue> {
14921 self.0.get_str(Tag(65))
14922 }
14923
14924 #[doc(alias = "SecurityID")]
14926 pub fn security_id(&self) -> Result<Option<&str>, InvalidValue> {
14927 self.0.get_str(Tag(48))
14928 }
14929
14930 #[doc(alias = "IDSource")]
14932 pub fn id_source(&self) -> Result<Option<IDSource<'_>>, InvalidValue> {
14933 Ok(self.0.get_str(Tag(22))?.map(IDSource::from_value))
14934 }
14935
14936 #[doc(alias = "SecurityType")]
14938 pub fn security_type(&self) -> Result<Option<SecurityType<'_>>, InvalidValue> {
14939 Ok(self.0.get_str(Tag(167))?.map(SecurityType::from_value))
14940 }
14941
14942 #[doc(alias = "MaturityMonthYear")]
14944 pub fn maturity_month_year(&self) -> Result<Option<MonthYear>, InvalidValue> {
14945 self.0.get_month_year(Tag(200))
14946 }
14947
14948 #[doc(alias = "MaturityDay")]
14950 pub fn maturity_day(&self) -> Result<Option<i64>, InvalidValue> {
14951 self.0.get_int(Tag(205))
14952 }
14953
14954 #[doc(alias = "PutOrCall")]
14956 pub fn put_or_call(&self) -> Result<Option<PutOrCall>, InvalidValue> {
14957 Ok(self.0.get_int(Tag(201))?.map(PutOrCall::from_value))
14958 }
14959
14960 #[doc(alias = "StrikePrice")]
14962 pub fn strike_price(&self) -> Result<Option<Decimal>, InvalidValue> {
14963 self.0.get_decimal(Tag(202))
14964 }
14965
14966 #[doc(alias = "OptAttribute")]
14968 pub fn opt_attribute(&self) -> Result<Option<&str>, InvalidValue> {
14969 self.0.get_str(Tag(206))
14970 }
14971
14972 #[doc(alias = "ContractMultiplier")]
14974 pub fn contract_multiplier(&self) -> Result<Option<Decimal>, InvalidValue> {
14975 self.0.get_decimal(Tag(231))
14976 }
14977
14978 #[doc(alias = "CouponRate")]
14980 pub fn coupon_rate(&self) -> Result<Option<Decimal>, InvalidValue> {
14981 self.0.get_decimal(Tag(223))
14982 }
14983
14984 #[doc(alias = "SecurityExchange")]
14986 pub fn security_exchange(&self) -> Result<Option<&str>, InvalidValue> {
14987 self.0.get_str(Tag(207))
14988 }
14989
14990 #[doc(alias = "Issuer")]
14992 pub fn issuer(&self) -> Result<Option<&str>, InvalidValue> {
14993 self.0.get_str(Tag(106))
14994 }
14995
14996 #[doc(alias = "EncodedIssuerLen")]
14998 pub fn encoded_issuer_len(&self) -> Result<Option<i64>, InvalidValue> {
14999 self.0.get_int(Tag(348))
15000 }
15001
15002 #[doc(alias = "EncodedIssuer")]
15004 pub fn encoded_issuer(&self) -> Option<&[u8]> {
15005 self.0.get(Tag(349))
15006 }
15007
15008 #[doc(alias = "SecurityDesc")]
15010 pub fn security_desc(&self) -> Result<Option<&str>, InvalidValue> {
15011 self.0.get_str(Tag(107))
15012 }
15013
15014 #[doc(alias = "EncodedSecurityDescLen")]
15016 pub fn encoded_security_desc_len(&self) -> Result<Option<i64>, InvalidValue> {
15017 self.0.get_int(Tag(350))
15018 }
15019
15020 #[doc(alias = "EncodedSecurityDesc")]
15022 pub fn encoded_security_desc(&self) -> Option<&[u8]> {
15023 self.0.get(Tag(351))
15024 }
15025
15026 #[doc(alias = "Currency")]
15028 pub fn currency(&self) -> Result<Option<&str>, InvalidValue> {
15029 self.0.get_str(Tag(15))
15030 }
15031
15032 #[doc(alias = "TradingSessionID")]
15034 pub fn trading_session_id(&self) -> Result<Option<&str>, InvalidValue> {
15035 self.0.get_str(Tag(336))
15036 }
15037
15038 #[doc(alias = "UnsolicitedIndicator")]
15040 pub fn unsolicited_indicator(&self) -> Result<Option<bool>, InvalidValue> {
15041 self.0.get_bool(Tag(325))
15042 }
15043
15044 #[doc(alias = "SecurityTradingStatus")]
15046 pub fn security_trading_status(&self) -> Result<Option<SecurityTradingStatus>, InvalidValue> {
15047 Ok(self.0.get_int(Tag(326))?.map(SecurityTradingStatus::from_value))
15048 }
15049
15050 #[doc(alias = "FinancialStatus")]
15052 pub fn financial_status(&self) -> Result<Option<FinancialStatus<'_>>, InvalidValue> {
15053 Ok(self.0.get_str(Tag(291))?.map(FinancialStatus::from_value))
15054 }
15055
15056 #[doc(alias = "CorporateAction")]
15058 pub fn corporate_action(&self) -> Result<Option<CorporateAction<'_>>, InvalidValue> {
15059 Ok(self.0.get_str(Tag(292))?.map(CorporateAction::from_value))
15060 }
15061
15062 #[doc(alias = "HaltReasonChar")]
15064 pub fn halt_reason_char(&self) -> Result<Option<HaltReasonChar<'_>>, InvalidValue> {
15065 Ok(self.0.get_str(Tag(327))?.map(HaltReasonChar::from_value))
15066 }
15067
15068 #[doc(alias = "InViewOfCommon")]
15070 pub fn in_view_of_common(&self) -> Result<Option<bool>, InvalidValue> {
15071 self.0.get_bool(Tag(328))
15072 }
15073
15074 #[doc(alias = "DueToRelated")]
15076 pub fn due_to_related(&self) -> Result<Option<bool>, InvalidValue> {
15077 self.0.get_bool(Tag(329))
15078 }
15079
15080 #[doc(alias = "BuyVolume")]
15082 pub fn buy_volume(&self) -> Result<Option<Decimal>, InvalidValue> {
15083 self.0.get_decimal(Tag(330))
15084 }
15085
15086 #[doc(alias = "SellVolume")]
15088 pub fn sell_volume(&self) -> Result<Option<Decimal>, InvalidValue> {
15089 self.0.get_decimal(Tag(331))
15090 }
15091
15092 #[doc(alias = "HighPx")]
15094 pub fn high_px(&self) -> Result<Option<Decimal>, InvalidValue> {
15095 self.0.get_decimal(Tag(332))
15096 }
15097
15098 #[doc(alias = "LowPx")]
15100 pub fn low_px(&self) -> Result<Option<Decimal>, InvalidValue> {
15101 self.0.get_decimal(Tag(333))
15102 }
15103
15104 #[doc(alias = "LastPx")]
15106 pub fn last_px(&self) -> Result<Option<Decimal>, InvalidValue> {
15107 self.0.get_decimal(Tag(31))
15108 }
15109
15110 #[doc(alias = "TransactTime")]
15112 pub fn transact_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
15113 self.0.get_utc_timestamp(Tag(60))
15114 }
15115
15116 #[doc(alias = "Adjustment")]
15118 pub fn adjustment(&self) -> Result<Option<Adjustment>, InvalidValue> {
15119 Ok(self.0.get_int(Tag(334))?.map(Adjustment::from_value))
15120 }
15121}
15122
15123impl std::fmt::Debug for SecurityStatus {
15124 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
15125 write!(f, "SecurityStatus({})", self.0)
15126 }
15127}
15128
15129impl std::fmt::Display for SecurityStatus {
15130 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
15131 std::fmt::Display::fmt(&self.0, f)
15132 }
15133}
15134
15135pub struct TradingSessionStatusRequest(RawMessage);
15137
15138impl TradingSessionStatusRequest {
15139 pub const MSG_TYPE: &[u8] = b"g";
15140
15141 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
15142 Tag(8), Tag(9), Tag(10), Tag(34), Tag(35), Tag(43), Tag(49), Tag(50), Tag(52), Tag(56),
15143 Tag(57), Tag(89), Tag(90), Tag(91), Tag(93), Tag(97), Tag(115), Tag(116), Tag(122),
15144 Tag(128), Tag(129), Tag(142), Tag(143), Tag(144), Tag(145), Tag(212), Tag(213), Tag(263),
15145 Tag(335), Tag(336), Tag(338), Tag(339), Tag(347), Tag(369), Tag(370),
15146 ]);
15147
15148 pub fn from_raw(raw: RawMessage) -> Self {
15149 Self(raw)
15150 }
15151
15152 pub fn raw(&self) -> &RawMessage {
15153 &self.0
15154 }
15155
15156 pub fn header(&self) -> Header<'_> {
15157 Header(self.0.scope())
15158 }
15159
15160 pub fn trailer(&self) -> Trailer<'_> {
15161 Trailer(self.0.scope())
15162 }
15163
15164 #[doc(alias = "TradSesReqID")]
15166 pub fn trad_ses_req_id(&self) -> Result<Option<&str>, InvalidValue> {
15167 self.0.get_str(Tag(335))
15168 }
15169
15170 #[doc(alias = "TradingSessionID")]
15172 pub fn trading_session_id(&self) -> Result<Option<&str>, InvalidValue> {
15173 self.0.get_str(Tag(336))
15174 }
15175
15176 #[doc(alias = "TradSesMethod")]
15178 pub fn trad_ses_method(&self) -> Result<Option<TradSesMethod>, InvalidValue> {
15179 Ok(self.0.get_int(Tag(338))?.map(TradSesMethod::from_value))
15180 }
15181
15182 #[doc(alias = "TradSesMode")]
15184 pub fn trad_ses_mode(&self) -> Result<Option<TradSesMode>, InvalidValue> {
15185 Ok(self.0.get_int(Tag(339))?.map(TradSesMode::from_value))
15186 }
15187
15188 #[doc(alias = "SubscriptionRequestType")]
15190 pub fn subscription_request_type(&self) -> Result<Option<SubscriptionRequestType<'_>>, InvalidValue> {
15191 Ok(self.0.get_str(Tag(263))?.map(SubscriptionRequestType::from_value))
15192 }
15193}
15194
15195impl std::fmt::Debug for TradingSessionStatusRequest {
15196 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
15197 write!(f, "TradingSessionStatusRequest({})", self.0)
15198 }
15199}
15200
15201impl std::fmt::Display for TradingSessionStatusRequest {
15202 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
15203 std::fmt::Display::fmt(&self.0, f)
15204 }
15205}
15206
15207pub struct TradingSessionStatus(RawMessage);
15209
15210impl TradingSessionStatus {
15211 pub const MSG_TYPE: &[u8] = b"h";
15212
15213 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
15214 Tag(8), Tag(9), Tag(10), Tag(34), Tag(35), Tag(43), Tag(49), Tag(50), Tag(52), Tag(56),
15215 Tag(57), Tag(58), Tag(89), Tag(90), Tag(91), Tag(93), Tag(97), Tag(115), Tag(116), Tag(122),
15216 Tag(128), Tag(129), Tag(142), Tag(143), Tag(144), Tag(145), Tag(212), Tag(213), Tag(325),
15217 Tag(335), Tag(336), Tag(338), Tag(339), Tag(340), Tag(341), Tag(342), Tag(343), Tag(344),
15218 Tag(345), Tag(347), Tag(354), Tag(355), Tag(369), Tag(370), Tag(387),
15219 ]);
15220
15221 pub fn from_raw(raw: RawMessage) -> Self {
15222 Self(raw)
15223 }
15224
15225 pub fn raw(&self) -> &RawMessage {
15226 &self.0
15227 }
15228
15229 pub fn header(&self) -> Header<'_> {
15230 Header(self.0.scope())
15231 }
15232
15233 pub fn trailer(&self) -> Trailer<'_> {
15234 Trailer(self.0.scope())
15235 }
15236
15237 #[doc(alias = "TradSesReqID")]
15239 pub fn trad_ses_req_id(&self) -> Result<Option<&str>, InvalidValue> {
15240 self.0.get_str(Tag(335))
15241 }
15242
15243 #[doc(alias = "TradingSessionID")]
15245 pub fn trading_session_id(&self) -> Result<Option<&str>, InvalidValue> {
15246 self.0.get_str(Tag(336))
15247 }
15248
15249 #[doc(alias = "TradSesMethod")]
15251 pub fn trad_ses_method(&self) -> Result<Option<TradSesMethod>, InvalidValue> {
15252 Ok(self.0.get_int(Tag(338))?.map(TradSesMethod::from_value))
15253 }
15254
15255 #[doc(alias = "TradSesMode")]
15257 pub fn trad_ses_mode(&self) -> Result<Option<TradSesMode>, InvalidValue> {
15258 Ok(self.0.get_int(Tag(339))?.map(TradSesMode::from_value))
15259 }
15260
15261 #[doc(alias = "UnsolicitedIndicator")]
15263 pub fn unsolicited_indicator(&self) -> Result<Option<bool>, InvalidValue> {
15264 self.0.get_bool(Tag(325))
15265 }
15266
15267 #[doc(alias = "TradSesStatus")]
15269 pub fn trad_ses_status(&self) -> Result<Option<TradSesStatus>, InvalidValue> {
15270 Ok(self.0.get_int(Tag(340))?.map(TradSesStatus::from_value))
15271 }
15272
15273 #[doc(alias = "TradSesStartTime")]
15275 pub fn trad_ses_start_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
15276 self.0.get_utc_timestamp(Tag(341))
15277 }
15278
15279 #[doc(alias = "TradSesOpenTime")]
15281 pub fn trad_ses_open_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
15282 self.0.get_utc_timestamp(Tag(342))
15283 }
15284
15285 #[doc(alias = "TradSesPreCloseTime")]
15287 pub fn trad_ses_pre_close_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
15288 self.0.get_utc_timestamp(Tag(343))
15289 }
15290
15291 #[doc(alias = "TradSesCloseTime")]
15293 pub fn trad_ses_close_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
15294 self.0.get_utc_timestamp(Tag(344))
15295 }
15296
15297 #[doc(alias = "TradSesEndTime")]
15299 pub fn trad_ses_end_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
15300 self.0.get_utc_timestamp(Tag(345))
15301 }
15302
15303 #[doc(alias = "TotalVolumeTraded")]
15305 pub fn total_volume_traded(&self) -> Result<Option<Decimal>, InvalidValue> {
15306 self.0.get_decimal(Tag(387))
15307 }
15308
15309 #[doc(alias = "Text")]
15311 pub fn text(&self) -> Result<Option<&str>, InvalidValue> {
15312 self.0.get_str(Tag(58))
15313 }
15314
15315 #[doc(alias = "EncodedTextLen")]
15317 pub fn encoded_text_len(&self) -> Result<Option<i64>, InvalidValue> {
15318 self.0.get_int(Tag(354))
15319 }
15320
15321 #[doc(alias = "EncodedText")]
15323 pub fn encoded_text(&self) -> Option<&[u8]> {
15324 self.0.get(Tag(355))
15325 }
15326}
15327
15328impl std::fmt::Debug for TradingSessionStatus {
15329 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
15330 write!(f, "TradingSessionStatus({})", self.0)
15331 }
15332}
15333
15334impl std::fmt::Display for TradingSessionStatus {
15335 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
15336 std::fmt::Display::fmt(&self.0, f)
15337 }
15338}
15339
15340pub struct MassQuote(RawMessage);
15342
15343impl MassQuote {
15344 pub const MSG_TYPE: &[u8] = b"i";
15345
15346 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
15347 Tag(8), Tag(9), Tag(10), Tag(15), Tag(22), Tag(34), Tag(35), Tag(40), Tag(43), Tag(48),
15348 Tag(49), Tag(50), Tag(52), Tag(55), Tag(56), Tag(57), Tag(60), Tag(62), Tag(64), Tag(65),
15349 Tag(89), Tag(90), Tag(91), Tag(93), Tag(97), Tag(106), Tag(107), Tag(115), Tag(116),
15350 Tag(117), Tag(122), Tag(128), Tag(129), Tag(131), Tag(132), Tag(133), Tag(134), Tag(135),
15351 Tag(142), Tag(143), Tag(144), Tag(145), Tag(167), Tag(188), Tag(189), Tag(190), Tag(191),
15352 Tag(192), Tag(193), Tag(200), Tag(201), Tag(202), Tag(205), Tag(206), Tag(207), Tag(212),
15353 Tag(213), Tag(223), Tag(231), Tag(293), Tag(294), Tag(295), Tag(296), Tag(299), Tag(301),
15354 Tag(302), Tag(304), Tag(305), Tag(306), Tag(307), Tag(308), Tag(309), Tag(310), Tag(311),
15355 Tag(312), Tag(313), Tag(314), Tag(315), Tag(316), Tag(317), Tag(336), Tag(347), Tag(348),
15356 Tag(349), Tag(350), Tag(351), Tag(362), Tag(363), Tag(364), Tag(365), Tag(367), Tag(369),
15357 Tag(370), Tag(435), Tag(436),
15358 ]);
15359
15360 pub fn from_raw(raw: RawMessage) -> Self {
15361 Self(raw)
15362 }
15363
15364 pub fn raw(&self) -> &RawMessage {
15365 &self.0
15366 }
15367
15368 pub fn header(&self) -> Header<'_> {
15369 Header(self.0.scope())
15370 }
15371
15372 pub fn trailer(&self) -> Trailer<'_> {
15373 Trailer(self.0.scope())
15374 }
15375
15376 #[doc(alias = "QuoteReqID")]
15378 pub fn quote_req_id(&self) -> Result<Option<&str>, InvalidValue> {
15379 self.0.get_str(Tag(131))
15380 }
15381
15382 #[doc(alias = "QuoteID")]
15384 pub fn quote_id(&self) -> Result<Option<&str>, InvalidValue> {
15385 self.0.get_str(Tag(117))
15386 }
15387
15388 #[doc(alias = "QuoteResponseLevel")]
15390 pub fn quote_response_level(&self) -> Result<Option<QuoteResponseLevel>, InvalidValue> {
15391 Ok(self.0.get_int(Tag(301))?.map(QuoteResponseLevel::from_value))
15392 }
15393
15394 #[doc(alias = "DefBidSize")]
15396 pub fn def_bid_size(&self) -> Result<Option<Decimal>, InvalidValue> {
15397 self.0.get_decimal(Tag(293))
15398 }
15399
15400 #[doc(alias = "DefOfferSize")]
15402 pub fn def_offer_size(&self) -> Result<Option<Decimal>, InvalidValue> {
15403 self.0.get_decimal(Tag(294))
15404 }
15405
15406 #[doc(alias = "NoQuoteSets")]
15408 pub fn quote_sets(&self) -> Result<Instances<'_, mass_quote::quote_sets::Instance<'_>>, InvalidValue> {
15409 self.0.get_group(&mass_quote::quote_sets::TABLE, &Self::KNOWN_TAGS).map(Instances::from)
15410 }
15411}
15412
15413impl std::fmt::Debug for MassQuote {
15414 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
15415 write!(f, "MassQuote({})", self.0)
15416 }
15417}
15418
15419impl std::fmt::Display for MassQuote {
15420 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
15421 std::fmt::Display::fmt(&self.0, f)
15422 }
15423}
15424
15425pub mod mass_quote {
15426 pub mod quote_sets {
15427 use super::super::*;
15428
15429 pub const TABLE: GroupTable<'static> = GroupTable::new(
15430 Tag(296),
15431 Tag(302),
15432 &[
15433 Tag(295), Tag(302), Tag(304), Tag(305), Tag(306), Tag(307), Tag(308), Tag(309),
15434 Tag(310), Tag(311), Tag(312), Tag(313), Tag(314), Tag(315), Tag(316), Tag(317),
15435 Tag(362), Tag(363), Tag(364), Tag(365), Tag(367), Tag(435), Tag(436),
15436 ],
15437 &[mass_quote::quote_sets::quote_entries::TABLE],
15438 );
15439
15440 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
15441 Tag(15), Tag(22), Tag(40), Tag(48), Tag(55), Tag(60), Tag(62), Tag(64), Tag(65),
15442 Tag(106), Tag(107), Tag(132), Tag(133), Tag(134), Tag(135), Tag(167), Tag(188),
15443 Tag(189), Tag(190), Tag(191), Tag(192), Tag(193), Tag(200), Tag(201), Tag(202),
15444 Tag(205), Tag(206), Tag(207), Tag(223), Tag(231), Tag(295), Tag(299), Tag(302),
15445 Tag(304), Tag(305), Tag(306), Tag(307), Tag(308), Tag(309), Tag(310), Tag(311),
15446 Tag(312), Tag(313), Tag(314), Tag(315), Tag(316), Tag(317), Tag(336), Tag(348),
15447 Tag(349), Tag(350), Tag(351), Tag(362), Tag(363), Tag(364), Tag(365), Tag(367),
15448 Tag(435), Tag(436),
15449 ]);
15450
15451 #[derive(Clone, Copy, Debug)]
15452 pub struct Instance<'a>(refix_message::Scope<'a>);
15453
15454 impl<'a> From<refix_message::Scope<'a>> for Instance<'a> {
15455 fn from(scope: refix_message::Scope<'a>) -> Self {
15456 Self(scope)
15457 }
15458 }
15459
15460 impl<'a> Instance<'a> {
15461 pub fn raw(&self) -> refix_message::Scope<'a> {
15462 self.0
15463 }
15464
15465 #[doc(alias = "QuoteSetID")]
15467 pub fn quote_set_id(&self) -> Result<Option<&'a str>, InvalidValue> {
15468 self.0.get_str(Tag(302))
15469 }
15470
15471 #[doc(alias = "UnderlyingSymbol")]
15473 pub fn underlying_symbol(&self) -> Result<Option<&'a str>, InvalidValue> {
15474 self.0.get_str(Tag(311))
15475 }
15476
15477 #[doc(alias = "UnderlyingSymbolSfx")]
15479 pub fn underlying_symbol_sfx(&self) -> Result<Option<&'a str>, InvalidValue> {
15480 self.0.get_str(Tag(312))
15481 }
15482
15483 #[doc(alias = "UnderlyingSecurityID")]
15485 pub fn underlying_security_id(&self) -> Result<Option<&'a str>, InvalidValue> {
15486 self.0.get_str(Tag(309))
15487 }
15488
15489 #[doc(alias = "UnderlyingIDSource")]
15491 pub fn underlying_id_source(&self) -> Result<Option<&'a str>, InvalidValue> {
15492 self.0.get_str(Tag(305))
15493 }
15494
15495 #[doc(alias = "UnderlyingSecurityType")]
15497 pub fn underlying_security_type(&self) -> Result<Option<&'a str>, InvalidValue> {
15498 self.0.get_str(Tag(310))
15499 }
15500
15501 #[doc(alias = "UnderlyingMaturityMonthYear")]
15503 pub fn underlying_maturity_month_year(&self) -> Result<Option<MonthYear>, InvalidValue> {
15504 self.0.get_month_year(Tag(313))
15505 }
15506
15507 #[doc(alias = "UnderlyingMaturityDay")]
15509 pub fn underlying_maturity_day(&self) -> Result<Option<i64>, InvalidValue> {
15510 self.0.get_int(Tag(314))
15511 }
15512
15513 #[doc(alias = "UnderlyingPutOrCall")]
15515 pub fn underlying_put_or_call(&self) -> Result<Option<i64>, InvalidValue> {
15516 self.0.get_int(Tag(315))
15517 }
15518
15519 #[doc(alias = "UnderlyingStrikePrice")]
15521 pub fn underlying_strike_price(&self) -> Result<Option<Decimal>, InvalidValue> {
15522 self.0.get_decimal(Tag(316))
15523 }
15524
15525 #[doc(alias = "UnderlyingOptAttribute")]
15527 pub fn underlying_opt_attribute(&self) -> Result<Option<&'a str>, InvalidValue> {
15528 self.0.get_str(Tag(317))
15529 }
15530
15531 #[doc(alias = "UnderlyingContractMultiplier")]
15533 pub fn underlying_contract_multiplier(&self) -> Result<Option<Decimal>, InvalidValue> {
15534 self.0.get_decimal(Tag(436))
15535 }
15536
15537 #[doc(alias = "UnderlyingCouponRate")]
15539 pub fn underlying_coupon_rate(&self) -> Result<Option<Decimal>, InvalidValue> {
15540 self.0.get_decimal(Tag(435))
15541 }
15542
15543 #[doc(alias = "UnderlyingSecurityExchange")]
15545 pub fn underlying_security_exchange(&self) -> Result<Option<&'a str>, InvalidValue> {
15546 self.0.get_str(Tag(308))
15547 }
15548
15549 #[doc(alias = "UnderlyingIssuer")]
15551 pub fn underlying_issuer(&self) -> Result<Option<&'a str>, InvalidValue> {
15552 self.0.get_str(Tag(306))
15553 }
15554
15555 #[doc(alias = "EncodedUnderlyingIssuerLen")]
15557 pub fn encoded_underlying_issuer_len(&self) -> Result<Option<i64>, InvalidValue> {
15558 self.0.get_int(Tag(362))
15559 }
15560
15561 #[doc(alias = "EncodedUnderlyingIssuer")]
15563 pub fn encoded_underlying_issuer(&self) -> Option<&'a [u8]> {
15564 self.0.get(Tag(363))
15565 }
15566
15567 #[doc(alias = "UnderlyingSecurityDesc")]
15569 pub fn underlying_security_desc(&self) -> Result<Option<&'a str>, InvalidValue> {
15570 self.0.get_str(Tag(307))
15571 }
15572
15573 #[doc(alias = "EncodedUnderlyingSecurityDescLen")]
15575 pub fn encoded_underlying_security_desc_len(&self) -> Result<Option<i64>, InvalidValue> {
15576 self.0.get_int(Tag(364))
15577 }
15578
15579 #[doc(alias = "EncodedUnderlyingSecurityDesc")]
15581 pub fn encoded_underlying_security_desc(&self) -> Option<&'a [u8]> {
15582 self.0.get(Tag(365))
15583 }
15584
15585 #[doc(alias = "QuoteSetValidUntilTime")]
15587 pub fn quote_set_valid_until_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
15588 self.0.get_utc_timestamp(Tag(367))
15589 }
15590
15591 #[doc(alias = "TotQuoteEntries")]
15593 pub fn tot_quote_entries(&self) -> Result<Option<i64>, InvalidValue> {
15594 self.0.get_int(Tag(304))
15595 }
15596
15597 #[doc(alias = "NoQuoteEntries")]
15599 pub fn quote_entries(&self) -> Result<Instances<'a, mass_quote::quote_sets::quote_entries::Instance<'a>>, InvalidValue> {
15600 self.0.get_group(&mass_quote::quote_sets::quote_entries::TABLE, &KNOWN_TAGS).map(Instances::from)
15601 }
15602 }
15603
15604 pub mod quote_entries {
15605 use super::super::super::*;
15606
15607 pub const TABLE: GroupTable<'static> = GroupTable::new(
15608 Tag(295),
15609 Tag(299),
15610 &[
15611 Tag(15), Tag(22), Tag(40), Tag(48), Tag(55), Tag(60), Tag(62), Tag(64), Tag(65),
15612 Tag(106), Tag(107), Tag(132), Tag(133), Tag(134), Tag(135), Tag(167), Tag(188),
15613 Tag(189), Tag(190), Tag(191), Tag(192), Tag(193), Tag(200), Tag(201), Tag(202),
15614 Tag(205), Tag(206), Tag(207), Tag(223), Tag(231), Tag(299), Tag(336), Tag(348),
15615 Tag(349), Tag(350), Tag(351),
15616 ],
15617 &[],
15618 );
15619
15620 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
15621 Tag(15), Tag(22), Tag(40), Tag(48), Tag(55), Tag(60), Tag(62), Tag(64), Tag(65),
15622 Tag(106), Tag(107), Tag(132), Tag(133), Tag(134), Tag(135), Tag(167), Tag(188),
15623 Tag(189), Tag(190), Tag(191), Tag(192), Tag(193), Tag(200), Tag(201), Tag(202),
15624 Tag(205), Tag(206), Tag(207), Tag(223), Tag(231), Tag(299), Tag(336), Tag(348),
15625 Tag(349), Tag(350), Tag(351),
15626 ]);
15627
15628 #[derive(Clone, Copy, Debug)]
15629 pub struct Instance<'a>(refix_message::Scope<'a>);
15630
15631 impl<'a> From<refix_message::Scope<'a>> for Instance<'a> {
15632 fn from(scope: refix_message::Scope<'a>) -> Self {
15633 Self(scope)
15634 }
15635 }
15636
15637 impl<'a> Instance<'a> {
15638 pub fn raw(&self) -> refix_message::Scope<'a> {
15639 self.0
15640 }
15641
15642 #[doc(alias = "QuoteEntryID")]
15644 pub fn quote_entry_id(&self) -> Result<Option<&'a str>, InvalidValue> {
15645 self.0.get_str(Tag(299))
15646 }
15647
15648 #[doc(alias = "Symbol")]
15650 pub fn symbol(&self) -> Result<Option<&'a str>, InvalidValue> {
15651 self.0.get_str(Tag(55))
15652 }
15653
15654 #[doc(alias = "SymbolSfx")]
15656 pub fn symbol_sfx(&self) -> Result<Option<&'a str>, InvalidValue> {
15657 self.0.get_str(Tag(65))
15658 }
15659
15660 #[doc(alias = "SecurityID")]
15662 pub fn security_id(&self) -> Result<Option<&'a str>, InvalidValue> {
15663 self.0.get_str(Tag(48))
15664 }
15665
15666 #[doc(alias = "IDSource")]
15668 pub fn id_source(&self) -> Result<Option<IDSource<'a>>, InvalidValue> {
15669 Ok(self.0.get_str(Tag(22))?.map(IDSource::from_value))
15670 }
15671
15672 #[doc(alias = "SecurityType")]
15674 pub fn security_type(&self) -> Result<Option<SecurityType<'a>>, InvalidValue> {
15675 Ok(self.0.get_str(Tag(167))?.map(SecurityType::from_value))
15676 }
15677
15678 #[doc(alias = "MaturityMonthYear")]
15680 pub fn maturity_month_year(&self) -> Result<Option<MonthYear>, InvalidValue> {
15681 self.0.get_month_year(Tag(200))
15682 }
15683
15684 #[doc(alias = "MaturityDay")]
15686 pub fn maturity_day(&self) -> Result<Option<i64>, InvalidValue> {
15687 self.0.get_int(Tag(205))
15688 }
15689
15690 #[doc(alias = "PutOrCall")]
15692 pub fn put_or_call(&self) -> Result<Option<PutOrCall>, InvalidValue> {
15693 Ok(self.0.get_int(Tag(201))?.map(PutOrCall::from_value))
15694 }
15695
15696 #[doc(alias = "StrikePrice")]
15698 pub fn strike_price(&self) -> Result<Option<Decimal>, InvalidValue> {
15699 self.0.get_decimal(Tag(202))
15700 }
15701
15702 #[doc(alias = "OptAttribute")]
15704 pub fn opt_attribute(&self) -> Result<Option<&'a str>, InvalidValue> {
15705 self.0.get_str(Tag(206))
15706 }
15707
15708 #[doc(alias = "ContractMultiplier")]
15710 pub fn contract_multiplier(&self) -> Result<Option<Decimal>, InvalidValue> {
15711 self.0.get_decimal(Tag(231))
15712 }
15713
15714 #[doc(alias = "CouponRate")]
15716 pub fn coupon_rate(&self) -> Result<Option<Decimal>, InvalidValue> {
15717 self.0.get_decimal(Tag(223))
15718 }
15719
15720 #[doc(alias = "SecurityExchange")]
15722 pub fn security_exchange(&self) -> Result<Option<&'a str>, InvalidValue> {
15723 self.0.get_str(Tag(207))
15724 }
15725
15726 #[doc(alias = "Issuer")]
15728 pub fn issuer(&self) -> Result<Option<&'a str>, InvalidValue> {
15729 self.0.get_str(Tag(106))
15730 }
15731
15732 #[doc(alias = "EncodedIssuerLen")]
15734 pub fn encoded_issuer_len(&self) -> Result<Option<i64>, InvalidValue> {
15735 self.0.get_int(Tag(348))
15736 }
15737
15738 #[doc(alias = "EncodedIssuer")]
15740 pub fn encoded_issuer(&self) -> Option<&'a [u8]> {
15741 self.0.get(Tag(349))
15742 }
15743
15744 #[doc(alias = "SecurityDesc")]
15746 pub fn security_desc(&self) -> Result<Option<&'a str>, InvalidValue> {
15747 self.0.get_str(Tag(107))
15748 }
15749
15750 #[doc(alias = "EncodedSecurityDescLen")]
15752 pub fn encoded_security_desc_len(&self) -> Result<Option<i64>, InvalidValue> {
15753 self.0.get_int(Tag(350))
15754 }
15755
15756 #[doc(alias = "EncodedSecurityDesc")]
15758 pub fn encoded_security_desc(&self) -> Option<&'a [u8]> {
15759 self.0.get(Tag(351))
15760 }
15761
15762 #[doc(alias = "BidPx")]
15764 pub fn bid_px(&self) -> Result<Option<Decimal>, InvalidValue> {
15765 self.0.get_decimal(Tag(132))
15766 }
15767
15768 #[doc(alias = "OfferPx")]
15770 pub fn offer_px(&self) -> Result<Option<Decimal>, InvalidValue> {
15771 self.0.get_decimal(Tag(133))
15772 }
15773
15774 #[doc(alias = "BidSize")]
15776 pub fn bid_size(&self) -> Result<Option<Decimal>, InvalidValue> {
15777 self.0.get_decimal(Tag(134))
15778 }
15779
15780 #[doc(alias = "OfferSize")]
15782 pub fn offer_size(&self) -> Result<Option<Decimal>, InvalidValue> {
15783 self.0.get_decimal(Tag(135))
15784 }
15785
15786 #[doc(alias = "ValidUntilTime")]
15788 pub fn valid_until_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
15789 self.0.get_utc_timestamp(Tag(62))
15790 }
15791
15792 #[doc(alias = "BidSpotRate")]
15794 pub fn bid_spot_rate(&self) -> Result<Option<Decimal>, InvalidValue> {
15795 self.0.get_decimal(Tag(188))
15796 }
15797
15798 #[doc(alias = "OfferSpotRate")]
15800 pub fn offer_spot_rate(&self) -> Result<Option<Decimal>, InvalidValue> {
15801 self.0.get_decimal(Tag(190))
15802 }
15803
15804 #[doc(alias = "BidForwardPoints")]
15806 pub fn bid_forward_points(&self) -> Result<Option<Decimal>, InvalidValue> {
15807 self.0.get_decimal(Tag(189))
15808 }
15809
15810 #[doc(alias = "OfferForwardPoints")]
15812 pub fn offer_forward_points(&self) -> Result<Option<Decimal>, InvalidValue> {
15813 self.0.get_decimal(Tag(191))
15814 }
15815
15816 #[doc(alias = "TransactTime")]
15818 pub fn transact_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
15819 self.0.get_utc_timestamp(Tag(60))
15820 }
15821
15822 #[doc(alias = "TradingSessionID")]
15824 pub fn trading_session_id(&self) -> Result<Option<&'a str>, InvalidValue> {
15825 self.0.get_str(Tag(336))
15826 }
15827
15828 #[doc(alias = "FutSettDate")]
15830 pub fn fut_sett_date(&self) -> Result<Option<Date>, InvalidValue> {
15831 self.0.get_date(Tag(64))
15832 }
15833
15834 #[doc(alias = "OrdType")]
15836 pub fn ord_type(&self) -> Result<Option<OrdType<'a>>, InvalidValue> {
15837 Ok(self.0.get_str(Tag(40))?.map(OrdType::from_value))
15838 }
15839
15840 #[doc(alias = "FutSettDate2")]
15842 pub fn fut_sett_date2(&self) -> Result<Option<Date>, InvalidValue> {
15843 self.0.get_date(Tag(193))
15844 }
15845
15846 #[doc(alias = "OrderQty2")]
15848 pub fn order_qty2(&self) -> Result<Option<Decimal>, InvalidValue> {
15849 self.0.get_decimal(Tag(192))
15850 }
15851
15852 #[doc(alias = "Currency")]
15854 pub fn currency(&self) -> Result<Option<&'a str>, InvalidValue> {
15855 self.0.get_str(Tag(15))
15856 }
15857 }
15858 }
15859 }
15860}
15861
15862pub struct BusinessMessageReject(RawMessage);
15864
15865impl BusinessMessageReject {
15866 pub const MSG_TYPE: &[u8] = b"j";
15867
15868 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
15869 Tag(8), Tag(9), Tag(10), Tag(34), Tag(35), Tag(43), Tag(45), Tag(49), Tag(50), Tag(52),
15870 Tag(56), Tag(57), Tag(58), Tag(89), Tag(90), Tag(91), Tag(93), Tag(97), Tag(115), Tag(116),
15871 Tag(122), Tag(128), Tag(129), Tag(142), Tag(143), Tag(144), Tag(145), Tag(212), Tag(213),
15872 Tag(347), Tag(354), Tag(355), Tag(369), Tag(370), Tag(372), Tag(379), Tag(380),
15873 ]);
15874
15875 pub fn from_raw(raw: RawMessage) -> Self {
15876 Self(raw)
15877 }
15878
15879 pub fn raw(&self) -> &RawMessage {
15880 &self.0
15881 }
15882
15883 pub fn header(&self) -> Header<'_> {
15884 Header(self.0.scope())
15885 }
15886
15887 pub fn trailer(&self) -> Trailer<'_> {
15888 Trailer(self.0.scope())
15889 }
15890
15891 #[doc(alias = "RefSeqNum")]
15893 pub fn ref_seq_num(&self) -> Result<Option<i64>, InvalidValue> {
15894 self.0.get_int(Tag(45))
15895 }
15896
15897 #[doc(alias = "RefMsgType")]
15899 pub fn ref_msg_type(&self) -> Result<Option<&str>, InvalidValue> {
15900 self.0.get_str(Tag(372))
15901 }
15902
15903 #[doc(alias = "BusinessRejectRefID")]
15905 pub fn business_reject_ref_id(&self) -> Result<Option<&str>, InvalidValue> {
15906 self.0.get_str(Tag(379))
15907 }
15908
15909 #[doc(alias = "BusinessRejectReason")]
15911 pub fn business_reject_reason(&self) -> Result<Option<BusinessRejectReason>, InvalidValue> {
15912 Ok(self.0.get_int(Tag(380))?.map(BusinessRejectReason::from_value))
15913 }
15914
15915 #[doc(alias = "Text")]
15917 pub fn text(&self) -> Result<Option<&str>, InvalidValue> {
15918 self.0.get_str(Tag(58))
15919 }
15920
15921 #[doc(alias = "EncodedTextLen")]
15923 pub fn encoded_text_len(&self) -> Result<Option<i64>, InvalidValue> {
15924 self.0.get_int(Tag(354))
15925 }
15926
15927 #[doc(alias = "EncodedText")]
15929 pub fn encoded_text(&self) -> Option<&[u8]> {
15930 self.0.get(Tag(355))
15931 }
15932}
15933
15934impl std::fmt::Debug for BusinessMessageReject {
15935 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
15936 write!(f, "BusinessMessageReject({})", self.0)
15937 }
15938}
15939
15940impl std::fmt::Display for BusinessMessageReject {
15941 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
15942 std::fmt::Display::fmt(&self.0, f)
15943 }
15944}
15945
15946pub struct BidRequest(RawMessage);
15948
15949impl BidRequest {
15950 pub const MSG_TYPE: &[u8] = b"k";
15951
15952 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
15953 Tag(1), Tag(8), Tag(9), Tag(10), Tag(15), Tag(34), Tag(35), Tag(43), Tag(49), Tag(50),
15954 Tag(52), Tag(54), Tag(56), Tag(57), Tag(58), Tag(63), Tag(64), Tag(66), Tag(75), Tag(89),
15955 Tag(90), Tag(91), Tag(93), Tag(97), Tag(115), Tag(116), Tag(121), Tag(122), Tag(128),
15956 Tag(129), Tag(142), Tag(143), Tag(144), Tag(145), Tag(212), Tag(213), Tag(336), Tag(347),
15957 Tag(354), Tag(355), Tag(369), Tag(370), Tag(374), Tag(390), Tag(391), Tag(392), Tag(393),
15958 Tag(394), Tag(395), Tag(396), Tag(397), Tag(398), Tag(399), Tag(400), Tag(401), Tag(402),
15959 Tag(403), Tag(404), Tag(405), Tag(406), Tag(407), Tag(408), Tag(409), Tag(410), Tag(411),
15960 Tag(412), Tag(413), Tag(414), Tag(415), Tag(416), Tag(417), Tag(418), Tag(419), Tag(420),
15961 Tag(430), Tag(441), Tag(443),
15962 ]);
15963
15964 pub fn from_raw(raw: RawMessage) -> Self {
15965 Self(raw)
15966 }
15967
15968 pub fn raw(&self) -> &RawMessage {
15969 &self.0
15970 }
15971
15972 pub fn header(&self) -> Header<'_> {
15973 Header(self.0.scope())
15974 }
15975
15976 pub fn trailer(&self) -> Trailer<'_> {
15977 Trailer(self.0.scope())
15978 }
15979
15980 #[doc(alias = "BidID")]
15982 pub fn bid_id(&self) -> Result<Option<&str>, InvalidValue> {
15983 self.0.get_str(Tag(390))
15984 }
15985
15986 #[doc(alias = "ClientBidID")]
15988 pub fn client_bid_id(&self) -> Result<Option<&str>, InvalidValue> {
15989 self.0.get_str(Tag(391))
15990 }
15991
15992 #[doc(alias = "BidRequestTransType")]
15994 pub fn bid_request_trans_type(&self) -> Result<Option<BidRequestTransType<'_>>, InvalidValue> {
15995 Ok(self.0.get_str(Tag(374))?.map(BidRequestTransType::from_value))
15996 }
15997
15998 #[doc(alias = "ListName")]
16000 pub fn list_name(&self) -> Result<Option<&str>, InvalidValue> {
16001 self.0.get_str(Tag(392))
16002 }
16003
16004 #[doc(alias = "TotalNumSecurities")]
16006 pub fn total_num_securities(&self) -> Result<Option<i64>, InvalidValue> {
16007 self.0.get_int(Tag(393))
16008 }
16009
16010 #[doc(alias = "BidType")]
16012 pub fn bid_type(&self) -> Result<Option<i64>, InvalidValue> {
16013 self.0.get_int(Tag(394))
16014 }
16015
16016 #[doc(alias = "NumTickets")]
16018 pub fn num_tickets(&self) -> Result<Option<i64>, InvalidValue> {
16019 self.0.get_int(Tag(395))
16020 }
16021
16022 #[doc(alias = "Currency")]
16024 pub fn currency(&self) -> Result<Option<&str>, InvalidValue> {
16025 self.0.get_str(Tag(15))
16026 }
16027
16028 #[doc(alias = "SideValue1")]
16030 pub fn side_value1(&self) -> Result<Option<Decimal>, InvalidValue> {
16031 self.0.get_decimal(Tag(396))
16032 }
16033
16034 #[doc(alias = "SideValue2")]
16036 pub fn side_value2(&self) -> Result<Option<Decimal>, InvalidValue> {
16037 self.0.get_decimal(Tag(397))
16038 }
16039
16040 #[doc(alias = "NoBidDescriptors")]
16042 pub fn bid_descriptors(&self) -> Result<Instances<'_, bid_request::bid_descriptors::Instance<'_>>, InvalidValue> {
16043 self.0.get_group(&bid_request::bid_descriptors::TABLE, &Self::KNOWN_TAGS).map(Instances::from)
16044 }
16045
16046 #[doc(alias = "NoBidComponents")]
16048 pub fn bid_components(&self) -> Result<Instances<'_, bid_request::bid_components::Instance<'_>>, InvalidValue> {
16049 self.0.get_group(&bid_request::bid_components::TABLE, &Self::KNOWN_TAGS).map(Instances::from)
16050 }
16051
16052 #[doc(alias = "LiquidityIndType")]
16054 pub fn liquidity_ind_type(&self) -> Result<Option<LiquidityIndType>, InvalidValue> {
16055 Ok(self.0.get_int(Tag(409))?.map(LiquidityIndType::from_value))
16056 }
16057
16058 #[doc(alias = "WtAverageLiquidity")]
16060 pub fn wt_average_liquidity(&self) -> Result<Option<Decimal>, InvalidValue> {
16061 self.0.get_decimal(Tag(410))
16062 }
16063
16064 #[doc(alias = "ExchangeForPhysical")]
16066 pub fn exchange_for_physical(&self) -> Result<Option<bool>, InvalidValue> {
16067 self.0.get_bool(Tag(411))
16068 }
16069
16070 #[doc(alias = "OutMainCntryUIndex")]
16072 pub fn out_main_cntry_u_index(&self) -> Result<Option<Decimal>, InvalidValue> {
16073 self.0.get_decimal(Tag(412))
16074 }
16075
16076 #[doc(alias = "CrossPercent")]
16078 pub fn cross_percent(&self) -> Result<Option<Decimal>, InvalidValue> {
16079 self.0.get_decimal(Tag(413))
16080 }
16081
16082 #[doc(alias = "ProgRptReqs")]
16084 pub fn prog_rpt_reqs(&self) -> Result<Option<ProgRptReqs>, InvalidValue> {
16085 Ok(self.0.get_int(Tag(414))?.map(ProgRptReqs::from_value))
16086 }
16087
16088 #[doc(alias = "ProgPeriodInterval")]
16090 pub fn prog_period_interval(&self) -> Result<Option<i64>, InvalidValue> {
16091 self.0.get_int(Tag(415))
16092 }
16093
16094 #[doc(alias = "IncTaxInd")]
16096 pub fn inc_tax_ind(&self) -> Result<Option<IncTaxInd>, InvalidValue> {
16097 Ok(self.0.get_int(Tag(416))?.map(IncTaxInd::from_value))
16098 }
16099
16100 #[doc(alias = "ForexReq")]
16102 pub fn forex_req(&self) -> Result<Option<bool>, InvalidValue> {
16103 self.0.get_bool(Tag(121))
16104 }
16105
16106 #[doc(alias = "NumBidders")]
16108 pub fn num_bidders(&self) -> Result<Option<i64>, InvalidValue> {
16109 self.0.get_int(Tag(417))
16110 }
16111
16112 #[doc(alias = "TradeDate")]
16114 pub fn trade_date(&self) -> Result<Option<Date>, InvalidValue> {
16115 self.0.get_date(Tag(75))
16116 }
16117
16118 #[doc(alias = "TradeType")]
16120 pub fn trade_type(&self) -> Result<Option<TradeType<'_>>, InvalidValue> {
16121 Ok(self.0.get_str(Tag(418))?.map(TradeType::from_value))
16122 }
16123
16124 #[doc(alias = "BasisPxType")]
16126 pub fn basis_px_type(&self) -> Result<Option<BasisPxType<'_>>, InvalidValue> {
16127 Ok(self.0.get_str(Tag(419))?.map(BasisPxType::from_value))
16128 }
16129
16130 #[doc(alias = "StrikeTime")]
16132 pub fn strike_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
16133 self.0.get_utc_timestamp(Tag(443))
16134 }
16135
16136 #[doc(alias = "Text")]
16138 pub fn text(&self) -> Result<Option<&str>, InvalidValue> {
16139 self.0.get_str(Tag(58))
16140 }
16141
16142 #[doc(alias = "EncodedTextLen")]
16144 pub fn encoded_text_len(&self) -> Result<Option<i64>, InvalidValue> {
16145 self.0.get_int(Tag(354))
16146 }
16147
16148 #[doc(alias = "EncodedText")]
16150 pub fn encoded_text(&self) -> Option<&[u8]> {
16151 self.0.get(Tag(355))
16152 }
16153}
16154
16155impl std::fmt::Debug for BidRequest {
16156 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
16157 write!(f, "BidRequest({})", self.0)
16158 }
16159}
16160
16161impl std::fmt::Display for BidRequest {
16162 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
16163 std::fmt::Display::fmt(&self.0, f)
16164 }
16165}
16166
16167pub mod bid_request {
16168 pub mod bid_descriptors {
16169 use super::super::*;
16170
16171 pub const TABLE: GroupTable<'static> = GroupTable::new(
16172 Tag(398),
16173 Tag(399),
16174 &[
16175 Tag(399), Tag(400), Tag(401), Tag(402), Tag(403), Tag(404), Tag(405), Tag(406),
16176 Tag(407), Tag(408), Tag(441),
16177 ],
16178 &[],
16179 );
16180
16181 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
16182 Tag(399), Tag(400), Tag(401), Tag(402), Tag(403), Tag(404), Tag(405), Tag(406),
16183 Tag(407), Tag(408), Tag(441),
16184 ]);
16185
16186 #[derive(Clone, Copy, Debug)]
16187 pub struct Instance<'a>(refix_message::Scope<'a>);
16188
16189 impl<'a> From<refix_message::Scope<'a>> for Instance<'a> {
16190 fn from(scope: refix_message::Scope<'a>) -> Self {
16191 Self(scope)
16192 }
16193 }
16194
16195 impl<'a> Instance<'a> {
16196 pub fn raw(&self) -> refix_message::Scope<'a> {
16197 self.0
16198 }
16199
16200 #[doc(alias = "BidDescriptorType")]
16202 pub fn bid_descriptor_type(&self) -> Result<Option<i64>, InvalidValue> {
16203 self.0.get_int(Tag(399))
16204 }
16205
16206 #[doc(alias = "BidDescriptor")]
16208 pub fn bid_descriptor(&self) -> Result<Option<&'a str>, InvalidValue> {
16209 self.0.get_str(Tag(400))
16210 }
16211
16212 #[doc(alias = "SideValueInd")]
16214 pub fn side_value_ind(&self) -> Result<Option<i64>, InvalidValue> {
16215 self.0.get_int(Tag(401))
16216 }
16217
16218 #[doc(alias = "LiquidityValue")]
16220 pub fn liquidity_value(&self) -> Result<Option<Decimal>, InvalidValue> {
16221 self.0.get_decimal(Tag(404))
16222 }
16223
16224 #[doc(alias = "LiquidityNumSecurities")]
16226 pub fn liquidity_num_securities(&self) -> Result<Option<i64>, InvalidValue> {
16227 self.0.get_int(Tag(441))
16228 }
16229
16230 #[doc(alias = "LiquidityPctLow")]
16232 pub fn liquidity_pct_low(&self) -> Result<Option<Decimal>, InvalidValue> {
16233 self.0.get_decimal(Tag(402))
16234 }
16235
16236 #[doc(alias = "LiquidityPctHigh")]
16238 pub fn liquidity_pct_high(&self) -> Result<Option<Decimal>, InvalidValue> {
16239 self.0.get_decimal(Tag(403))
16240 }
16241
16242 #[doc(alias = "EFPTrackingError")]
16244 pub fn efp_tracking_error(&self) -> Result<Option<Decimal>, InvalidValue> {
16245 self.0.get_decimal(Tag(405))
16246 }
16247
16248 #[doc(alias = "FairValue")]
16250 pub fn fair_value(&self) -> Result<Option<Decimal>, InvalidValue> {
16251 self.0.get_decimal(Tag(406))
16252 }
16253
16254 #[doc(alias = "OutsideIndexPct")]
16256 pub fn outside_index_pct(&self) -> Result<Option<Decimal>, InvalidValue> {
16257 self.0.get_decimal(Tag(407))
16258 }
16259
16260 #[doc(alias = "ValueOfFutures")]
16262 pub fn value_of_futures(&self) -> Result<Option<Decimal>, InvalidValue> {
16263 self.0.get_decimal(Tag(408))
16264 }
16265 }
16266 }
16267
16268 pub mod bid_components {
16269 use super::super::*;
16270
16271 pub const TABLE: GroupTable<'static> = GroupTable::new(
16272 Tag(420),
16273 Tag(66),
16274 &[Tag(1), Tag(54), Tag(63), Tag(64), Tag(66), Tag(336), Tag(430)],
16275 &[],
16276 );
16277
16278 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
16279 Tag(1), Tag(54), Tag(63), Tag(64), Tag(66), Tag(336), Tag(430),
16280 ]);
16281
16282 #[derive(Clone, Copy, Debug)]
16283 pub struct Instance<'a>(refix_message::Scope<'a>);
16284
16285 impl<'a> From<refix_message::Scope<'a>> for Instance<'a> {
16286 fn from(scope: refix_message::Scope<'a>) -> Self {
16287 Self(scope)
16288 }
16289 }
16290
16291 impl<'a> Instance<'a> {
16292 pub fn raw(&self) -> refix_message::Scope<'a> {
16293 self.0
16294 }
16295
16296 #[doc(alias = "ListID")]
16298 pub fn list_id(&self) -> Result<Option<&'a str>, InvalidValue> {
16299 self.0.get_str(Tag(66))
16300 }
16301
16302 #[doc(alias = "Side")]
16304 pub fn side(&self) -> Result<Option<Side<'a>>, InvalidValue> {
16305 Ok(self.0.get_str(Tag(54))?.map(Side::from_value))
16306 }
16307
16308 #[doc(alias = "TradingSessionID")]
16310 pub fn trading_session_id(&self) -> Result<Option<&'a str>, InvalidValue> {
16311 self.0.get_str(Tag(336))
16312 }
16313
16314 #[doc(alias = "NetGrossInd")]
16316 pub fn net_gross_ind(&self) -> Result<Option<NetGrossInd>, InvalidValue> {
16317 Ok(self.0.get_int(Tag(430))?.map(NetGrossInd::from_value))
16318 }
16319
16320 #[doc(alias = "SettlmntTyp")]
16322 pub fn settlmnt_typ(&self) -> Result<Option<SettlmntTyp<'a>>, InvalidValue> {
16323 Ok(self.0.get_str(Tag(63))?.map(SettlmntTyp::from_value))
16324 }
16325
16326 #[doc(alias = "FutSettDate")]
16328 pub fn fut_sett_date(&self) -> Result<Option<Date>, InvalidValue> {
16329 self.0.get_date(Tag(64))
16330 }
16331
16332 #[doc(alias = "Account")]
16334 pub fn account(&self) -> Result<Option<&'a str>, InvalidValue> {
16335 self.0.get_str(Tag(1))
16336 }
16337 }
16338 }
16339}
16340
16341pub struct BidResponse(RawMessage);
16343
16344impl BidResponse {
16345 pub const MSG_TYPE: &[u8] = b"l";
16346
16347 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
16348 Tag(8), Tag(9), Tag(10), Tag(12), Tag(13), Tag(34), Tag(35), Tag(43), Tag(44), Tag(49),
16349 Tag(50), Tag(52), Tag(54), Tag(56), Tag(57), Tag(58), Tag(63), Tag(64), Tag(66), Tag(89),
16350 Tag(90), Tag(91), Tag(93), Tag(97), Tag(115), Tag(116), Tag(122), Tag(128), Tag(129),
16351 Tag(142), Tag(143), Tag(144), Tag(145), Tag(212), Tag(213), Tag(336), Tag(347), Tag(354),
16352 Tag(355), Tag(369), Tag(370), Tag(390), Tag(391), Tag(406), Tag(420), Tag(421), Tag(423),
16353 Tag(430),
16354 ]);
16355
16356 pub fn from_raw(raw: RawMessage) -> Self {
16357 Self(raw)
16358 }
16359
16360 pub fn raw(&self) -> &RawMessage {
16361 &self.0
16362 }
16363
16364 pub fn header(&self) -> Header<'_> {
16365 Header(self.0.scope())
16366 }
16367
16368 pub fn trailer(&self) -> Trailer<'_> {
16369 Trailer(self.0.scope())
16370 }
16371
16372 #[doc(alias = "BidID")]
16374 pub fn bid_id(&self) -> Result<Option<&str>, InvalidValue> {
16375 self.0.get_str(Tag(390))
16376 }
16377
16378 #[doc(alias = "ClientBidID")]
16380 pub fn client_bid_id(&self) -> Result<Option<&str>, InvalidValue> {
16381 self.0.get_str(Tag(391))
16382 }
16383
16384 #[doc(alias = "NoBidComponents")]
16386 pub fn bid_components(&self) -> Result<Instances<'_, bid_response::bid_components::Instance<'_>>, InvalidValue> {
16387 self.0.get_group(&bid_response::bid_components::TABLE, &Self::KNOWN_TAGS).map(Instances::from)
16388 }
16389}
16390
16391impl std::fmt::Debug for BidResponse {
16392 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
16393 write!(f, "BidResponse({})", self.0)
16394 }
16395}
16396
16397impl std::fmt::Display for BidResponse {
16398 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
16399 std::fmt::Display::fmt(&self.0, f)
16400 }
16401}
16402
16403pub mod bid_response {
16404 pub mod bid_components {
16405 use super::super::*;
16406
16407 pub const TABLE: GroupTable<'static> = GroupTable::new(
16408 Tag(420),
16409 Tag(12),
16410 &[
16411 Tag(12), Tag(13), Tag(44), Tag(54), Tag(58), Tag(63), Tag(64), Tag(66), Tag(336),
16412 Tag(354), Tag(355), Tag(406), Tag(421), Tag(423), Tag(430),
16413 ],
16414 &[],
16415 );
16416
16417 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
16418 Tag(12), Tag(13), Tag(44), Tag(54), Tag(58), Tag(63), Tag(64), Tag(66), Tag(336),
16419 Tag(354), Tag(355), Tag(406), Tag(421), Tag(423), Tag(430),
16420 ]);
16421
16422 #[derive(Clone, Copy, Debug)]
16423 pub struct Instance<'a>(refix_message::Scope<'a>);
16424
16425 impl<'a> From<refix_message::Scope<'a>> for Instance<'a> {
16426 fn from(scope: refix_message::Scope<'a>) -> Self {
16427 Self(scope)
16428 }
16429 }
16430
16431 impl<'a> Instance<'a> {
16432 pub fn raw(&self) -> refix_message::Scope<'a> {
16433 self.0
16434 }
16435
16436 #[doc(alias = "Commission")]
16438 pub fn commission(&self) -> Result<Option<Decimal>, InvalidValue> {
16439 self.0.get_decimal(Tag(12))
16440 }
16441
16442 #[doc(alias = "CommType")]
16444 pub fn comm_type(&self) -> Result<Option<CommType<'a>>, InvalidValue> {
16445 Ok(self.0.get_str(Tag(13))?.map(CommType::from_value))
16446 }
16447
16448 #[doc(alias = "ListID")]
16450 pub fn list_id(&self) -> Result<Option<&'a str>, InvalidValue> {
16451 self.0.get_str(Tag(66))
16452 }
16453
16454 #[doc(alias = "Country")]
16456 pub fn country(&self) -> Result<Option<&'a str>, InvalidValue> {
16457 self.0.get_str(Tag(421))
16458 }
16459
16460 #[doc(alias = "Side")]
16462 pub fn side(&self) -> Result<Option<Side<'a>>, InvalidValue> {
16463 Ok(self.0.get_str(Tag(54))?.map(Side::from_value))
16464 }
16465
16466 #[doc(alias = "Price")]
16468 pub fn price(&self) -> Result<Option<Decimal>, InvalidValue> {
16469 self.0.get_decimal(Tag(44))
16470 }
16471
16472 #[doc(alias = "PriceType")]
16474 pub fn price_type(&self) -> Result<Option<PriceType>, InvalidValue> {
16475 Ok(self.0.get_int(Tag(423))?.map(PriceType::from_value))
16476 }
16477
16478 #[doc(alias = "FairValue")]
16480 pub fn fair_value(&self) -> Result<Option<Decimal>, InvalidValue> {
16481 self.0.get_decimal(Tag(406))
16482 }
16483
16484 #[doc(alias = "NetGrossInd")]
16486 pub fn net_gross_ind(&self) -> Result<Option<NetGrossInd>, InvalidValue> {
16487 Ok(self.0.get_int(Tag(430))?.map(NetGrossInd::from_value))
16488 }
16489
16490 #[doc(alias = "SettlmntTyp")]
16492 pub fn settlmnt_typ(&self) -> Result<Option<SettlmntTyp<'a>>, InvalidValue> {
16493 Ok(self.0.get_str(Tag(63))?.map(SettlmntTyp::from_value))
16494 }
16495
16496 #[doc(alias = "FutSettDate")]
16498 pub fn fut_sett_date(&self) -> Result<Option<Date>, InvalidValue> {
16499 self.0.get_date(Tag(64))
16500 }
16501
16502 #[doc(alias = "TradingSessionID")]
16504 pub fn trading_session_id(&self) -> Result<Option<&'a str>, InvalidValue> {
16505 self.0.get_str(Tag(336))
16506 }
16507
16508 #[doc(alias = "Text")]
16510 pub fn text(&self) -> Result<Option<&'a str>, InvalidValue> {
16511 self.0.get_str(Tag(58))
16512 }
16513
16514 #[doc(alias = "EncodedTextLen")]
16516 pub fn encoded_text_len(&self) -> Result<Option<i64>, InvalidValue> {
16517 self.0.get_int(Tag(354))
16518 }
16519
16520 #[doc(alias = "EncodedText")]
16522 pub fn encoded_text(&self) -> Option<&'a [u8]> {
16523 self.0.get(Tag(355))
16524 }
16525 }
16526 }
16527}
16528
16529pub struct ListStrikePrice(RawMessage);
16531
16532impl ListStrikePrice {
16533 pub const MSG_TYPE: &[u8] = b"m";
16534
16535 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
16536 Tag(8), Tag(9), Tag(10), Tag(11), Tag(15), Tag(22), Tag(34), Tag(35), Tag(43), Tag(44),
16537 Tag(48), Tag(49), Tag(50), Tag(52), Tag(54), Tag(55), Tag(56), Tag(57), Tag(58), Tag(65),
16538 Tag(66), Tag(89), Tag(90), Tag(91), Tag(93), Tag(97), Tag(106), Tag(107), Tag(115),
16539 Tag(116), Tag(122), Tag(128), Tag(129), Tag(140), Tag(142), Tag(143), Tag(144), Tag(145),
16540 Tag(167), Tag(200), Tag(201), Tag(202), Tag(205), Tag(206), Tag(207), Tag(212), Tag(213),
16541 Tag(223), Tag(231), Tag(347), Tag(348), Tag(349), Tag(350), Tag(351), Tag(354), Tag(355),
16542 Tag(369), Tag(370), Tag(422), Tag(428),
16543 ]);
16544
16545 pub fn from_raw(raw: RawMessage) -> Self {
16546 Self(raw)
16547 }
16548
16549 pub fn raw(&self) -> &RawMessage {
16550 &self.0
16551 }
16552
16553 pub fn header(&self) -> Header<'_> {
16554 Header(self.0.scope())
16555 }
16556
16557 pub fn trailer(&self) -> Trailer<'_> {
16558 Trailer(self.0.scope())
16559 }
16560
16561 #[doc(alias = "ListID")]
16563 pub fn list_id(&self) -> Result<Option<&str>, InvalidValue> {
16564 self.0.get_str(Tag(66))
16565 }
16566
16567 #[doc(alias = "TotNoStrikes")]
16569 pub fn tot_no_strikes(&self) -> Result<Option<i64>, InvalidValue> {
16570 self.0.get_int(Tag(422))
16571 }
16572
16573 #[doc(alias = "NoStrikes")]
16575 pub fn strikes(&self) -> Result<Instances<'_, list_strike_price::strikes::Instance<'_>>, InvalidValue> {
16576 self.0.get_group(&list_strike_price::strikes::TABLE, &Self::KNOWN_TAGS).map(Instances::from)
16577 }
16578}
16579
16580impl std::fmt::Debug for ListStrikePrice {
16581 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
16582 write!(f, "ListStrikePrice({})", self.0)
16583 }
16584}
16585
16586impl std::fmt::Display for ListStrikePrice {
16587 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
16588 std::fmt::Display::fmt(&self.0, f)
16589 }
16590}
16591
16592pub mod list_strike_price {
16593 pub mod strikes {
16594 use super::super::*;
16595
16596 pub const TABLE: GroupTable<'static> = GroupTable::new(
16597 Tag(428),
16598 Tag(55),
16599 &[
16600 Tag(11), Tag(15), Tag(22), Tag(44), Tag(48), Tag(54), Tag(55), Tag(58), Tag(65),
16601 Tag(106), Tag(107), Tag(140), Tag(167), Tag(200), Tag(201), Tag(202), Tag(205),
16602 Tag(206), Tag(207), Tag(223), Tag(231), Tag(348), Tag(349), Tag(350), Tag(351),
16603 Tag(354), Tag(355),
16604 ],
16605 &[],
16606 );
16607
16608 pub const KNOWN_TAGS: KnownTags<'static> = KnownTags::new(&[
16609 Tag(11), Tag(15), Tag(22), Tag(44), Tag(48), Tag(54), Tag(55), Tag(58), Tag(65),
16610 Tag(106), Tag(107), Tag(140), Tag(167), Tag(200), Tag(201), Tag(202), Tag(205),
16611 Tag(206), Tag(207), Tag(223), Tag(231), Tag(348), Tag(349), Tag(350), Tag(351),
16612 Tag(354), Tag(355),
16613 ]);
16614
16615 #[derive(Clone, Copy, Debug)]
16616 pub struct Instance<'a>(refix_message::Scope<'a>);
16617
16618 impl<'a> From<refix_message::Scope<'a>> for Instance<'a> {
16619 fn from(scope: refix_message::Scope<'a>) -> Self {
16620 Self(scope)
16621 }
16622 }
16623
16624 impl<'a> Instance<'a> {
16625 pub fn raw(&self) -> refix_message::Scope<'a> {
16626 self.0
16627 }
16628
16629 #[doc(alias = "Symbol")]
16631 pub fn symbol(&self) -> Result<Option<&'a str>, InvalidValue> {
16632 self.0.get_str(Tag(55))
16633 }
16634
16635 #[doc(alias = "SymbolSfx")]
16637 pub fn symbol_sfx(&self) -> Result<Option<&'a str>, InvalidValue> {
16638 self.0.get_str(Tag(65))
16639 }
16640
16641 #[doc(alias = "SecurityID")]
16643 pub fn security_id(&self) -> Result<Option<&'a str>, InvalidValue> {
16644 self.0.get_str(Tag(48))
16645 }
16646
16647 #[doc(alias = "IDSource")]
16649 pub fn id_source(&self) -> Result<Option<IDSource<'a>>, InvalidValue> {
16650 Ok(self.0.get_str(Tag(22))?.map(IDSource::from_value))
16651 }
16652
16653 #[doc(alias = "SecurityType")]
16655 pub fn security_type(&self) -> Result<Option<SecurityType<'a>>, InvalidValue> {
16656 Ok(self.0.get_str(Tag(167))?.map(SecurityType::from_value))
16657 }
16658
16659 #[doc(alias = "MaturityMonthYear")]
16661 pub fn maturity_month_year(&self) -> Result<Option<MonthYear>, InvalidValue> {
16662 self.0.get_month_year(Tag(200))
16663 }
16664
16665 #[doc(alias = "MaturityDay")]
16667 pub fn maturity_day(&self) -> Result<Option<i64>, InvalidValue> {
16668 self.0.get_int(Tag(205))
16669 }
16670
16671 #[doc(alias = "PutOrCall")]
16673 pub fn put_or_call(&self) -> Result<Option<PutOrCall>, InvalidValue> {
16674 Ok(self.0.get_int(Tag(201))?.map(PutOrCall::from_value))
16675 }
16676
16677 #[doc(alias = "StrikePrice")]
16679 pub fn strike_price(&self) -> Result<Option<Decimal>, InvalidValue> {
16680 self.0.get_decimal(Tag(202))
16681 }
16682
16683 #[doc(alias = "OptAttribute")]
16685 pub fn opt_attribute(&self) -> Result<Option<&'a str>, InvalidValue> {
16686 self.0.get_str(Tag(206))
16687 }
16688
16689 #[doc(alias = "ContractMultiplier")]
16691 pub fn contract_multiplier(&self) -> Result<Option<Decimal>, InvalidValue> {
16692 self.0.get_decimal(Tag(231))
16693 }
16694
16695 #[doc(alias = "CouponRate")]
16697 pub fn coupon_rate(&self) -> Result<Option<Decimal>, InvalidValue> {
16698 self.0.get_decimal(Tag(223))
16699 }
16700
16701 #[doc(alias = "SecurityExchange")]
16703 pub fn security_exchange(&self) -> Result<Option<&'a str>, InvalidValue> {
16704 self.0.get_str(Tag(207))
16705 }
16706
16707 #[doc(alias = "Issuer")]
16709 pub fn issuer(&self) -> Result<Option<&'a str>, InvalidValue> {
16710 self.0.get_str(Tag(106))
16711 }
16712
16713 #[doc(alias = "EncodedIssuerLen")]
16715 pub fn encoded_issuer_len(&self) -> Result<Option<i64>, InvalidValue> {
16716 self.0.get_int(Tag(348))
16717 }
16718
16719 #[doc(alias = "EncodedIssuer")]
16721 pub fn encoded_issuer(&self) -> Option<&'a [u8]> {
16722 self.0.get(Tag(349))
16723 }
16724
16725 #[doc(alias = "SecurityDesc")]
16727 pub fn security_desc(&self) -> Result<Option<&'a str>, InvalidValue> {
16728 self.0.get_str(Tag(107))
16729 }
16730
16731 #[doc(alias = "EncodedSecurityDescLen")]
16733 pub fn encoded_security_desc_len(&self) -> Result<Option<i64>, InvalidValue> {
16734 self.0.get_int(Tag(350))
16735 }
16736
16737 #[doc(alias = "EncodedSecurityDesc")]
16739 pub fn encoded_security_desc(&self) -> Option<&'a [u8]> {
16740 self.0.get(Tag(351))
16741 }
16742
16743 #[doc(alias = "PrevClosePx")]
16745 pub fn prev_close_px(&self) -> Result<Option<Decimal>, InvalidValue> {
16746 self.0.get_decimal(Tag(140))
16747 }
16748
16749 #[doc(alias = "ClOrdID")]
16751 pub fn cl_ord_id(&self) -> Result<Option<&'a str>, InvalidValue> {
16752 self.0.get_str(Tag(11))
16753 }
16754
16755 #[doc(alias = "Side")]
16757 pub fn side(&self) -> Result<Option<Side<'a>>, InvalidValue> {
16758 Ok(self.0.get_str(Tag(54))?.map(Side::from_value))
16759 }
16760
16761 #[doc(alias = "Price")]
16763 pub fn price(&self) -> Result<Option<Decimal>, InvalidValue> {
16764 self.0.get_decimal(Tag(44))
16765 }
16766
16767 #[doc(alias = "Currency")]
16769 pub fn currency(&self) -> Result<Option<&'a str>, InvalidValue> {
16770 self.0.get_str(Tag(15))
16771 }
16772
16773 #[doc(alias = "Text")]
16775 pub fn text(&self) -> Result<Option<&'a str>, InvalidValue> {
16776 self.0.get_str(Tag(58))
16777 }
16778
16779 #[doc(alias = "EncodedTextLen")]
16781 pub fn encoded_text_len(&self) -> Result<Option<i64>, InvalidValue> {
16782 self.0.get_int(Tag(354))
16783 }
16784
16785 #[doc(alias = "EncodedText")]
16787 pub fn encoded_text(&self) -> Option<&'a [u8]> {
16788 self.0.get(Tag(355))
16789 }
16790 }
16791 }
16792}
16793
16794pub enum Message {
16796 Heartbeat(Heartbeat),
16797 TestRequest(TestRequest),
16798 ResendRequest(ResendRequest),
16799 Reject(Reject),
16800 SequenceReset(SequenceReset),
16801 Logout(Logout),
16802 IOI(IOI),
16803 Advertisement(Advertisement),
16804 ExecutionReport(ExecutionReport),
16805 OrderCancelReject(OrderCancelReject),
16806 Logon(Logon),
16807 News(News),
16808 Email(Email),
16809 NewOrderSingle(NewOrderSingle),
16810 NewOrderList(NewOrderList),
16811 OrderCancelRequest(OrderCancelRequest),
16812 OrderCancelReplaceRequest(OrderCancelReplaceRequest),
16813 OrderStatusRequest(OrderStatusRequest),
16814 Allocation(Allocation),
16815 ListCancelRequest(ListCancelRequest),
16816 ListExecute(ListExecute),
16817 ListStatusRequest(ListStatusRequest),
16818 ListStatus(ListStatus),
16819 AllocationInstructionAck(AllocationInstructionAck),
16820 DontKnowTrade(DontKnowTrade),
16821 QuoteRequest(QuoteRequest),
16822 Quote(Quote),
16823 SettlementInstructions(SettlementInstructions),
16824 MarketDataRequest(MarketDataRequest),
16825 MarketDataSnapshotFullRefresh(MarketDataSnapshotFullRefresh),
16826 MarketDataIncrementalRefresh(MarketDataIncrementalRefresh),
16827 MarketDataRequestReject(MarketDataRequestReject),
16828 QuoteCancel(QuoteCancel),
16829 QuoteStatusRequest(QuoteStatusRequest),
16830 QuoteAcknowledgement(QuoteAcknowledgement),
16831 SecurityDefinitionRequest(SecurityDefinitionRequest),
16832 SecurityDefinition(SecurityDefinition),
16833 SecurityStatusRequest(SecurityStatusRequest),
16834 SecurityStatus(SecurityStatus),
16835 TradingSessionStatusRequest(TradingSessionStatusRequest),
16836 TradingSessionStatus(TradingSessionStatus),
16837 MassQuote(MassQuote),
16838 BusinessMessageReject(BusinessMessageReject),
16839 BidRequest(BidRequest),
16840 BidResponse(BidResponse),
16841 ListStrikePrice(ListStrikePrice),
16842 Unrecognized(RawMessage),
16843}
16844
16845impl Message {
16846 pub fn from_raw(raw: RawMessage) -> Self {
16847 match raw.get(Tag(35)) {
16848 Some(Heartbeat::MSG_TYPE) => Self::Heartbeat(Heartbeat::from_raw(raw)),
16849 Some(TestRequest::MSG_TYPE) => Self::TestRequest(TestRequest::from_raw(raw)),
16850 Some(ResendRequest::MSG_TYPE) => Self::ResendRequest(ResendRequest::from_raw(raw)),
16851 Some(Reject::MSG_TYPE) => Self::Reject(Reject::from_raw(raw)),
16852 Some(SequenceReset::MSG_TYPE) => Self::SequenceReset(SequenceReset::from_raw(raw)),
16853 Some(Logout::MSG_TYPE) => Self::Logout(Logout::from_raw(raw)),
16854 Some(IOI::MSG_TYPE) => Self::IOI(IOI::from_raw(raw)),
16855 Some(Advertisement::MSG_TYPE) => Self::Advertisement(Advertisement::from_raw(raw)),
16856 Some(ExecutionReport::MSG_TYPE) => Self::ExecutionReport(ExecutionReport::from_raw(raw)),
16857 Some(OrderCancelReject::MSG_TYPE) => Self::OrderCancelReject(OrderCancelReject::from_raw(raw)),
16858 Some(Logon::MSG_TYPE) => Self::Logon(Logon::from_raw(raw)),
16859 Some(News::MSG_TYPE) => Self::News(News::from_raw(raw)),
16860 Some(Email::MSG_TYPE) => Self::Email(Email::from_raw(raw)),
16861 Some(NewOrderSingle::MSG_TYPE) => Self::NewOrderSingle(NewOrderSingle::from_raw(raw)),
16862 Some(NewOrderList::MSG_TYPE) => Self::NewOrderList(NewOrderList::from_raw(raw)),
16863 Some(OrderCancelRequest::MSG_TYPE) => Self::OrderCancelRequest(OrderCancelRequest::from_raw(raw)),
16864 Some(OrderCancelReplaceRequest::MSG_TYPE) => Self::OrderCancelReplaceRequest(OrderCancelReplaceRequest::from_raw(raw)),
16865 Some(OrderStatusRequest::MSG_TYPE) => Self::OrderStatusRequest(OrderStatusRequest::from_raw(raw)),
16866 Some(Allocation::MSG_TYPE) => Self::Allocation(Allocation::from_raw(raw)),
16867 Some(ListCancelRequest::MSG_TYPE) => Self::ListCancelRequest(ListCancelRequest::from_raw(raw)),
16868 Some(ListExecute::MSG_TYPE) => Self::ListExecute(ListExecute::from_raw(raw)),
16869 Some(ListStatusRequest::MSG_TYPE) => Self::ListStatusRequest(ListStatusRequest::from_raw(raw)),
16870 Some(ListStatus::MSG_TYPE) => Self::ListStatus(ListStatus::from_raw(raw)),
16871 Some(AllocationInstructionAck::MSG_TYPE) => Self::AllocationInstructionAck(AllocationInstructionAck::from_raw(raw)),
16872 Some(DontKnowTrade::MSG_TYPE) => Self::DontKnowTrade(DontKnowTrade::from_raw(raw)),
16873 Some(QuoteRequest::MSG_TYPE) => Self::QuoteRequest(QuoteRequest::from_raw(raw)),
16874 Some(Quote::MSG_TYPE) => Self::Quote(Quote::from_raw(raw)),
16875 Some(SettlementInstructions::MSG_TYPE) => Self::SettlementInstructions(SettlementInstructions::from_raw(raw)),
16876 Some(MarketDataRequest::MSG_TYPE) => Self::MarketDataRequest(MarketDataRequest::from_raw(raw)),
16877 Some(MarketDataSnapshotFullRefresh::MSG_TYPE) => Self::MarketDataSnapshotFullRefresh(MarketDataSnapshotFullRefresh::from_raw(raw)),
16878 Some(MarketDataIncrementalRefresh::MSG_TYPE) => Self::MarketDataIncrementalRefresh(MarketDataIncrementalRefresh::from_raw(raw)),
16879 Some(MarketDataRequestReject::MSG_TYPE) => Self::MarketDataRequestReject(MarketDataRequestReject::from_raw(raw)),
16880 Some(QuoteCancel::MSG_TYPE) => Self::QuoteCancel(QuoteCancel::from_raw(raw)),
16881 Some(QuoteStatusRequest::MSG_TYPE) => Self::QuoteStatusRequest(QuoteStatusRequest::from_raw(raw)),
16882 Some(QuoteAcknowledgement::MSG_TYPE) => Self::QuoteAcknowledgement(QuoteAcknowledgement::from_raw(raw)),
16883 Some(SecurityDefinitionRequest::MSG_TYPE) => Self::SecurityDefinitionRequest(SecurityDefinitionRequest::from_raw(raw)),
16884 Some(SecurityDefinition::MSG_TYPE) => Self::SecurityDefinition(SecurityDefinition::from_raw(raw)),
16885 Some(SecurityStatusRequest::MSG_TYPE) => Self::SecurityStatusRequest(SecurityStatusRequest::from_raw(raw)),
16886 Some(SecurityStatus::MSG_TYPE) => Self::SecurityStatus(SecurityStatus::from_raw(raw)),
16887 Some(TradingSessionStatusRequest::MSG_TYPE) => Self::TradingSessionStatusRequest(TradingSessionStatusRequest::from_raw(raw)),
16888 Some(TradingSessionStatus::MSG_TYPE) => Self::TradingSessionStatus(TradingSessionStatus::from_raw(raw)),
16889 Some(MassQuote::MSG_TYPE) => Self::MassQuote(MassQuote::from_raw(raw)),
16890 Some(BusinessMessageReject::MSG_TYPE) => Self::BusinessMessageReject(BusinessMessageReject::from_raw(raw)),
16891 Some(BidRequest::MSG_TYPE) => Self::BidRequest(BidRequest::from_raw(raw)),
16892 Some(BidResponse::MSG_TYPE) => Self::BidResponse(BidResponse::from_raw(raw)),
16893 Some(ListStrikePrice::MSG_TYPE) => Self::ListStrikePrice(ListStrikePrice::from_raw(raw)),
16894 _ => Self::Unrecognized(raw),
16895 }
16896 }
16897}
16898
16899impl std::fmt::Debug for Message {
16900 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
16901 match self {
16902 Self::Heartbeat(message) => std::fmt::Debug::fmt(message, f),
16903 Self::TestRequest(message) => std::fmt::Debug::fmt(message, f),
16904 Self::ResendRequest(message) => std::fmt::Debug::fmt(message, f),
16905 Self::Reject(message) => std::fmt::Debug::fmt(message, f),
16906 Self::SequenceReset(message) => std::fmt::Debug::fmt(message, f),
16907 Self::Logout(message) => std::fmt::Debug::fmt(message, f),
16908 Self::IOI(message) => std::fmt::Debug::fmt(message, f),
16909 Self::Advertisement(message) => std::fmt::Debug::fmt(message, f),
16910 Self::ExecutionReport(message) => std::fmt::Debug::fmt(message, f),
16911 Self::OrderCancelReject(message) => std::fmt::Debug::fmt(message, f),
16912 Self::Logon(message) => std::fmt::Debug::fmt(message, f),
16913 Self::News(message) => std::fmt::Debug::fmt(message, f),
16914 Self::Email(message) => std::fmt::Debug::fmt(message, f),
16915 Self::NewOrderSingle(message) => std::fmt::Debug::fmt(message, f),
16916 Self::NewOrderList(message) => std::fmt::Debug::fmt(message, f),
16917 Self::OrderCancelRequest(message) => std::fmt::Debug::fmt(message, f),
16918 Self::OrderCancelReplaceRequest(message) => std::fmt::Debug::fmt(message, f),
16919 Self::OrderStatusRequest(message) => std::fmt::Debug::fmt(message, f),
16920 Self::Allocation(message) => std::fmt::Debug::fmt(message, f),
16921 Self::ListCancelRequest(message) => std::fmt::Debug::fmt(message, f),
16922 Self::ListExecute(message) => std::fmt::Debug::fmt(message, f),
16923 Self::ListStatusRequest(message) => std::fmt::Debug::fmt(message, f),
16924 Self::ListStatus(message) => std::fmt::Debug::fmt(message, f),
16925 Self::AllocationInstructionAck(message) => std::fmt::Debug::fmt(message, f),
16926 Self::DontKnowTrade(message) => std::fmt::Debug::fmt(message, f),
16927 Self::QuoteRequest(message) => std::fmt::Debug::fmt(message, f),
16928 Self::Quote(message) => std::fmt::Debug::fmt(message, f),
16929 Self::SettlementInstructions(message) => std::fmt::Debug::fmt(message, f),
16930 Self::MarketDataRequest(message) => std::fmt::Debug::fmt(message, f),
16931 Self::MarketDataSnapshotFullRefresh(message) => std::fmt::Debug::fmt(message, f),
16932 Self::MarketDataIncrementalRefresh(message) => std::fmt::Debug::fmt(message, f),
16933 Self::MarketDataRequestReject(message) => std::fmt::Debug::fmt(message, f),
16934 Self::QuoteCancel(message) => std::fmt::Debug::fmt(message, f),
16935 Self::QuoteStatusRequest(message) => std::fmt::Debug::fmt(message, f),
16936 Self::QuoteAcknowledgement(message) => std::fmt::Debug::fmt(message, f),
16937 Self::SecurityDefinitionRequest(message) => std::fmt::Debug::fmt(message, f),
16938 Self::SecurityDefinition(message) => std::fmt::Debug::fmt(message, f),
16939 Self::SecurityStatusRequest(message) => std::fmt::Debug::fmt(message, f),
16940 Self::SecurityStatus(message) => std::fmt::Debug::fmt(message, f),
16941 Self::TradingSessionStatusRequest(message) => std::fmt::Debug::fmt(message, f),
16942 Self::TradingSessionStatus(message) => std::fmt::Debug::fmt(message, f),
16943 Self::MassQuote(message) => std::fmt::Debug::fmt(message, f),
16944 Self::BusinessMessageReject(message) => std::fmt::Debug::fmt(message, f),
16945 Self::BidRequest(message) => std::fmt::Debug::fmt(message, f),
16946 Self::BidResponse(message) => std::fmt::Debug::fmt(message, f),
16947 Self::ListStrikePrice(message) => std::fmt::Debug::fmt(message, f),
16948 Self::Unrecognized(raw) => write!(f, "Unrecognized({raw})"),
16949 }
16950 }
16951}
16952
16953impl std::fmt::Display for Message {
16954 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
16955 match self {
16956 Self::Heartbeat(message) => std::fmt::Display::fmt(message, f),
16957 Self::TestRequest(message) => std::fmt::Display::fmt(message, f),
16958 Self::ResendRequest(message) => std::fmt::Display::fmt(message, f),
16959 Self::Reject(message) => std::fmt::Display::fmt(message, f),
16960 Self::SequenceReset(message) => std::fmt::Display::fmt(message, f),
16961 Self::Logout(message) => std::fmt::Display::fmt(message, f),
16962 Self::IOI(message) => std::fmt::Display::fmt(message, f),
16963 Self::Advertisement(message) => std::fmt::Display::fmt(message, f),
16964 Self::ExecutionReport(message) => std::fmt::Display::fmt(message, f),
16965 Self::OrderCancelReject(message) => std::fmt::Display::fmt(message, f),
16966 Self::Logon(message) => std::fmt::Display::fmt(message, f),
16967 Self::News(message) => std::fmt::Display::fmt(message, f),
16968 Self::Email(message) => std::fmt::Display::fmt(message, f),
16969 Self::NewOrderSingle(message) => std::fmt::Display::fmt(message, f),
16970 Self::NewOrderList(message) => std::fmt::Display::fmt(message, f),
16971 Self::OrderCancelRequest(message) => std::fmt::Display::fmt(message, f),
16972 Self::OrderCancelReplaceRequest(message) => std::fmt::Display::fmt(message, f),
16973 Self::OrderStatusRequest(message) => std::fmt::Display::fmt(message, f),
16974 Self::Allocation(message) => std::fmt::Display::fmt(message, f),
16975 Self::ListCancelRequest(message) => std::fmt::Display::fmt(message, f),
16976 Self::ListExecute(message) => std::fmt::Display::fmt(message, f),
16977 Self::ListStatusRequest(message) => std::fmt::Display::fmt(message, f),
16978 Self::ListStatus(message) => std::fmt::Display::fmt(message, f),
16979 Self::AllocationInstructionAck(message) => std::fmt::Display::fmt(message, f),
16980 Self::DontKnowTrade(message) => std::fmt::Display::fmt(message, f),
16981 Self::QuoteRequest(message) => std::fmt::Display::fmt(message, f),
16982 Self::Quote(message) => std::fmt::Display::fmt(message, f),
16983 Self::SettlementInstructions(message) => std::fmt::Display::fmt(message, f),
16984 Self::MarketDataRequest(message) => std::fmt::Display::fmt(message, f),
16985 Self::MarketDataSnapshotFullRefresh(message) => std::fmt::Display::fmt(message, f),
16986 Self::MarketDataIncrementalRefresh(message) => std::fmt::Display::fmt(message, f),
16987 Self::MarketDataRequestReject(message) => std::fmt::Display::fmt(message, f),
16988 Self::QuoteCancel(message) => std::fmt::Display::fmt(message, f),
16989 Self::QuoteStatusRequest(message) => std::fmt::Display::fmt(message, f),
16990 Self::QuoteAcknowledgement(message) => std::fmt::Display::fmt(message, f),
16991 Self::SecurityDefinitionRequest(message) => std::fmt::Display::fmt(message, f),
16992 Self::SecurityDefinition(message) => std::fmt::Display::fmt(message, f),
16993 Self::SecurityStatusRequest(message) => std::fmt::Display::fmt(message, f),
16994 Self::SecurityStatus(message) => std::fmt::Display::fmt(message, f),
16995 Self::TradingSessionStatusRequest(message) => std::fmt::Display::fmt(message, f),
16996 Self::TradingSessionStatus(message) => std::fmt::Display::fmt(message, f),
16997 Self::MassQuote(message) => std::fmt::Display::fmt(message, f),
16998 Self::BusinessMessageReject(message) => std::fmt::Display::fmt(message, f),
16999 Self::BidRequest(message) => std::fmt::Display::fmt(message, f),
17000 Self::BidResponse(message) => std::fmt::Display::fmt(message, f),
17001 Self::ListStrikePrice(message) => std::fmt::Display::fmt(message, f),
17002 Self::Unrecognized(raw) => std::fmt::Display::fmt(raw, f),
17003 }
17004 }
17005}