1#![cfg_attr(rustfmt, rustfmt::skip)]
3
4#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
6pub enum AdvSide<'a> {
7 Buy,
9 Sell,
11 Cross,
13 Trade,
15 Unrecognized(&'a str),
17}
18
19impl<'a> AdvSide<'a> {
20 pub fn from_value(value: &'a str) -> Self {
21 match value {
22 "B" => Self::Buy,
23 "S" => Self::Sell,
24 "X" => Self::Cross,
25 "T" => Self::Trade,
26 unrecognized => Self::Unrecognized(unrecognized),
27 }
28 }
29
30 pub fn value(self) -> &'a str {
31 match self {
32 Self::Buy => "B",
33 Self::Sell => "S",
34 Self::Cross => "X",
35 Self::Trade => "T",
36 Self::Unrecognized(value) => value,
37 }
38 }
39}
40
41impl<'a> From<&'a str> for AdvSide<'a> {
42 fn from(value: &'a str) -> Self {
43 Self::from_value(value)
44 }
45}
46
47#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
49pub enum AdvTransType<'a> {
50 New,
52 Cancel,
54 Replace,
56 Unrecognized(&'a str),
58}
59
60impl<'a> AdvTransType<'a> {
61 pub fn from_value(value: &'a str) -> Self {
62 match value {
63 "N" => Self::New,
64 "C" => Self::Cancel,
65 "R" => Self::Replace,
66 unrecognized => Self::Unrecognized(unrecognized),
67 }
68 }
69
70 pub fn value(self) -> &'a str {
71 match self {
72 Self::New => "N",
73 Self::Cancel => "C",
74 Self::Replace => "R",
75 Self::Unrecognized(value) => value,
76 }
77 }
78}
79
80impl<'a> From<&'a str> for AdvTransType<'a> {
81 fn from(value: &'a str) -> Self {
82 Self::from_value(value)
83 }
84}
85
86#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
88pub enum CommType<'a> {
89 PerUnit,
91 Percent,
93 Absolute,
95 PercentageWaivedCashDiscount,
97 PercentageWaivedEnhancedUnits,
99 PointsPerBondOrContract,
101 Unrecognized(&'a str),
103}
104
105impl<'a> CommType<'a> {
106 pub fn from_value(value: &'a str) -> Self {
107 match value {
108 "1" => Self::PerUnit,
109 "2" => Self::Percent,
110 "3" => Self::Absolute,
111 "4" => Self::PercentageWaivedCashDiscount,
112 "5" => Self::PercentageWaivedEnhancedUnits,
113 "6" => Self::PointsPerBondOrContract,
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::PercentageWaivedCashDiscount => "4",
124 Self::PercentageWaivedEnhancedUnits => "5",
125 Self::PointsPerBondOrContract => "6",
126 Self::Unrecognized(value) => value,
127 }
128 }
129}
130
131impl<'a> From<&'a str> for CommType<'a> {
132 fn from(value: &'a str) -> Self {
133 Self::from_value(value)
134 }
135}
136
137#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
139pub enum ExecInst<'a> {
140 NotHeld,
142 Work,
144 GoAlong,
146 OverTheDay,
148 Held,
150 ParticipateDoNotInitiate,
152 StrictScale,
154 TryToScale,
156 StayOnBidSide,
158 StayOnOfferSide,
160 NoCross,
162 OkToCross,
164 CallFirst,
166 PercentOfVolume,
168 DoNotIncrease,
170 DoNotReduce,
172 AllOrNone,
174 ReinstateOnSystemFailure,
176 InstitutionsOnly,
178 ReinstateOnTradingHalt,
180 CancelOnTradingHalt,
182 LastPeg,
184 MidPricePeg,
186 NonNegotiable,
188 OpeningPeg,
190 MarketPeg,
192 CancelOnSystemFailure,
194 PrimaryPeg,
196 Suspend,
198 CustomerDisplayInstruction,
200 Netting,
202 PegToVwap,
204 TradeAlong,
206 TryToStop,
208 CancelIfNotBest,
210 TrailingStopPeg,
212 StrictLimit,
214 IgnorePriceValidityChecks,
216 PegToLimitPrice,
218 WorkToTargetStrategy,
220 Unrecognized(&'a str),
222}
223
224impl<'a> ExecInst<'a> {
225 pub fn from_value(value: &'a str) -> Self {
226 match value {
227 "1" => Self::NotHeld,
228 "2" => Self::Work,
229 "3" => Self::GoAlong,
230 "4" => Self::OverTheDay,
231 "5" => Self::Held,
232 "6" => Self::ParticipateDoNotInitiate,
233 "7" => Self::StrictScale,
234 "8" => Self::TryToScale,
235 "9" => Self::StayOnBidSide,
236 "0" => Self::StayOnOfferSide,
237 "A" => Self::NoCross,
238 "B" => Self::OkToCross,
239 "C" => Self::CallFirst,
240 "D" => Self::PercentOfVolume,
241 "E" => Self::DoNotIncrease,
242 "F" => Self::DoNotReduce,
243 "G" => Self::AllOrNone,
244 "H" => Self::ReinstateOnSystemFailure,
245 "I" => Self::InstitutionsOnly,
246 "J" => Self::ReinstateOnTradingHalt,
247 "K" => Self::CancelOnTradingHalt,
248 "L" => Self::LastPeg,
249 "M" => Self::MidPricePeg,
250 "N" => Self::NonNegotiable,
251 "O" => Self::OpeningPeg,
252 "P" => Self::MarketPeg,
253 "Q" => Self::CancelOnSystemFailure,
254 "R" => Self::PrimaryPeg,
255 "S" => Self::Suspend,
256 "U" => Self::CustomerDisplayInstruction,
257 "V" => Self::Netting,
258 "W" => Self::PegToVwap,
259 "X" => Self::TradeAlong,
260 "Y" => Self::TryToStop,
261 "Z" => Self::CancelIfNotBest,
262 "a" => Self::TrailingStopPeg,
263 "b" => Self::StrictLimit,
264 "c" => Self::IgnorePriceValidityChecks,
265 "d" => Self::PegToLimitPrice,
266 "e" => Self::WorkToTargetStrategy,
267 unrecognized => Self::Unrecognized(unrecognized),
268 }
269 }
270
271 pub fn value(self) -> &'a str {
272 match self {
273 Self::NotHeld => "1",
274 Self::Work => "2",
275 Self::GoAlong => "3",
276 Self::OverTheDay => "4",
277 Self::Held => "5",
278 Self::ParticipateDoNotInitiate => "6",
279 Self::StrictScale => "7",
280 Self::TryToScale => "8",
281 Self::StayOnBidSide => "9",
282 Self::StayOnOfferSide => "0",
283 Self::NoCross => "A",
284 Self::OkToCross => "B",
285 Self::CallFirst => "C",
286 Self::PercentOfVolume => "D",
287 Self::DoNotIncrease => "E",
288 Self::DoNotReduce => "F",
289 Self::AllOrNone => "G",
290 Self::ReinstateOnSystemFailure => "H",
291 Self::InstitutionsOnly => "I",
292 Self::ReinstateOnTradingHalt => "J",
293 Self::CancelOnTradingHalt => "K",
294 Self::LastPeg => "L",
295 Self::MidPricePeg => "M",
296 Self::NonNegotiable => "N",
297 Self::OpeningPeg => "O",
298 Self::MarketPeg => "P",
299 Self::CancelOnSystemFailure => "Q",
300 Self::PrimaryPeg => "R",
301 Self::Suspend => "S",
302 Self::CustomerDisplayInstruction => "U",
303 Self::Netting => "V",
304 Self::PegToVwap => "W",
305 Self::TradeAlong => "X",
306 Self::TryToStop => "Y",
307 Self::CancelIfNotBest => "Z",
308 Self::TrailingStopPeg => "a",
309 Self::StrictLimit => "b",
310 Self::IgnorePriceValidityChecks => "c",
311 Self::PegToLimitPrice => "d",
312 Self::WorkToTargetStrategy => "e",
313 Self::Unrecognized(value) => value,
314 }
315 }
316}
317
318impl<'a> From<&'a str> for ExecInst<'a> {
319 fn from(value: &'a str) -> Self {
320 Self::from_value(value)
321 }
322}
323
324#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
326pub enum HandlInst<'a> {
327 AutomatedExecutionNoIntervention,
329 AutomatedExecutionInterventionOk,
331 ManualOrder,
333 Unrecognized(&'a str),
335}
336
337impl<'a> HandlInst<'a> {
338 pub fn from_value(value: &'a str) -> Self {
339 match value {
340 "1" => Self::AutomatedExecutionNoIntervention,
341 "2" => Self::AutomatedExecutionInterventionOk,
342 "3" => Self::ManualOrder,
343 unrecognized => Self::Unrecognized(unrecognized),
344 }
345 }
346
347 pub fn value(self) -> &'a str {
348 match self {
349 Self::AutomatedExecutionNoIntervention => "1",
350 Self::AutomatedExecutionInterventionOk => "2",
351 Self::ManualOrder => "3",
352 Self::Unrecognized(value) => value,
353 }
354 }
355}
356
357impl<'a> From<&'a str> for HandlInst<'a> {
358 fn from(value: &'a str) -> Self {
359 Self::from_value(value)
360 }
361}
362
363#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
365pub enum SecurityIDSource<'a> {
366 Cusip,
368 Sedol,
370 Quik,
372 IsinNumber,
374 RicCode,
376 IsoCurrencyCode,
378 IsoCountryCode,
380 ExchangeSymbol,
382 ConsolidatedTapeAssociation,
384 BloombergSymbol,
386 Wertpapier,
388 Dutch,
390 Valoren,
392 Sicovam,
394 Belgian,
396 Common,
398 ClearingHouse,
400 IsdaFpMlSpecification,
402 OptionPriceReportingAuthority,
404 Unrecognized(&'a str),
406}
407
408impl<'a> SecurityIDSource<'a> {
409 pub fn from_value(value: &'a str) -> Self {
410 match value {
411 "1" => Self::Cusip,
412 "2" => Self::Sedol,
413 "3" => Self::Quik,
414 "4" => Self::IsinNumber,
415 "5" => Self::RicCode,
416 "6" => Self::IsoCurrencyCode,
417 "7" => Self::IsoCountryCode,
418 "8" => Self::ExchangeSymbol,
419 "9" => Self::ConsolidatedTapeAssociation,
420 "A" => Self::BloombergSymbol,
421 "B" => Self::Wertpapier,
422 "C" => Self::Dutch,
423 "D" => Self::Valoren,
424 "E" => Self::Sicovam,
425 "F" => Self::Belgian,
426 "G" => Self::Common,
427 "H" => Self::ClearingHouse,
428 "I" => Self::IsdaFpMlSpecification,
429 "J" => Self::OptionPriceReportingAuthority,
430 unrecognized => Self::Unrecognized(unrecognized),
431 }
432 }
433
434 pub fn value(self) -> &'a str {
435 match self {
436 Self::Cusip => "1",
437 Self::Sedol => "2",
438 Self::Quik => "3",
439 Self::IsinNumber => "4",
440 Self::RicCode => "5",
441 Self::IsoCurrencyCode => "6",
442 Self::IsoCountryCode => "7",
443 Self::ExchangeSymbol => "8",
444 Self::ConsolidatedTapeAssociation => "9",
445 Self::BloombergSymbol => "A",
446 Self::Wertpapier => "B",
447 Self::Dutch => "C",
448 Self::Valoren => "D",
449 Self::Sicovam => "E",
450 Self::Belgian => "F",
451 Self::Common => "G",
452 Self::ClearingHouse => "H",
453 Self::IsdaFpMlSpecification => "I",
454 Self::OptionPriceReportingAuthority => "J",
455 Self::Unrecognized(value) => value,
456 }
457 }
458}
459
460impl<'a> From<&'a str> for SecurityIDSource<'a> {
461 fn from(value: &'a str) -> Self {
462 Self::from_value(value)
463 }
464}
465
466#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
468pub enum IOIQltyInd<'a> {
469 Low,
471 Medium,
473 High,
475 Unrecognized(&'a str),
477}
478
479impl<'a> IOIQltyInd<'a> {
480 pub fn from_value(value: &'a str) -> Self {
481 match value {
482 "L" => Self::Low,
483 "M" => Self::Medium,
484 "H" => Self::High,
485 unrecognized => Self::Unrecognized(unrecognized),
486 }
487 }
488
489 pub fn value(self) -> &'a str {
490 match self {
491 Self::Low => "L",
492 Self::Medium => "M",
493 Self::High => "H",
494 Self::Unrecognized(value) => value,
495 }
496 }
497}
498
499impl<'a> From<&'a str> for IOIQltyInd<'a> {
500 fn from(value: &'a str) -> Self {
501 Self::from_value(value)
502 }
503}
504
505#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
507pub enum IOIQty<'a> {
508 Small,
510 Medium,
512 Large,
514 Unrecognized(&'a str),
516}
517
518impl<'a> IOIQty<'a> {
519 pub fn from_value(value: &'a str) -> Self {
520 match value {
521 "S" => Self::Small,
522 "M" => Self::Medium,
523 "L" => Self::Large,
524 unrecognized => Self::Unrecognized(unrecognized),
525 }
526 }
527
528 pub fn value(self) -> &'a str {
529 match self {
530 Self::Small => "S",
531 Self::Medium => "M",
532 Self::Large => "L",
533 Self::Unrecognized(value) => value,
534 }
535 }
536}
537
538impl<'a> From<&'a str> for IOIQty<'a> {
539 fn from(value: &'a str) -> Self {
540 Self::from_value(value)
541 }
542}
543
544#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
546pub enum IOITransType<'a> {
547 New,
549 Cancel,
551 Replace,
553 Unrecognized(&'a str),
555}
556
557impl<'a> IOITransType<'a> {
558 pub fn from_value(value: &'a str) -> Self {
559 match value {
560 "N" => Self::New,
561 "C" => Self::Cancel,
562 "R" => Self::Replace,
563 unrecognized => Self::Unrecognized(unrecognized),
564 }
565 }
566
567 pub fn value(self) -> &'a str {
568 match self {
569 Self::New => "N",
570 Self::Cancel => "C",
571 Self::Replace => "R",
572 Self::Unrecognized(value) => value,
573 }
574 }
575}
576
577impl<'a> From<&'a str> for IOITransType<'a> {
578 fn from(value: &'a str) -> Self {
579 Self::from_value(value)
580 }
581}
582
583#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
585pub enum LastCapacity<'a> {
586 Agent,
588 CrossAsAgent,
590 CrossAsPrincipal,
592 Principal,
594 Unrecognized(&'a str),
596}
597
598impl<'a> LastCapacity<'a> {
599 pub fn from_value(value: &'a str) -> Self {
600 match value {
601 "1" => Self::Agent,
602 "2" => Self::CrossAsAgent,
603 "3" => Self::CrossAsPrincipal,
604 "4" => Self::Principal,
605 unrecognized => Self::Unrecognized(unrecognized),
606 }
607 }
608
609 pub fn value(self) -> &'a str {
610 match self {
611 Self::Agent => "1",
612 Self::CrossAsAgent => "2",
613 Self::CrossAsPrincipal => "3",
614 Self::Principal => "4",
615 Self::Unrecognized(value) => value,
616 }
617 }
618}
619
620impl<'a> From<&'a str> for LastCapacity<'a> {
621 fn from(value: &'a str) -> Self {
622 Self::from_value(value)
623 }
624}
625
626#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
628pub enum MsgType<'a> {
629 Heartbeat,
631 TestRequest,
633 ResendRequest,
635 Reject,
637 SequenceReset,
639 Logout,
641 Ioi,
643 Advertisement,
645 ExecutionReport,
647 OrderCancelReject,
649 Logon,
651 News,
653 Email,
655 NewOrderSingle,
657 NewOrderList,
659 OrderCancelRequest,
661 OrderCancelReplaceRequest,
663 OrderStatusRequest,
665 AllocationInstruction,
667 ListCancelRequest,
669 ListExecute,
671 ListStatusRequest,
673 ListStatus,
675 AllocationInstructionAck,
677 DontKnowTrade,
679 QuoteRequest,
681 Quote,
683 SettlementInstructions,
685 MarketDataRequest,
687 MarketDataSnapshotFullRefresh,
689 MarketDataIncrementalRefresh,
691 MarketDataRequestReject,
693 QuoteCancel,
695 QuoteStatusRequest,
697 MassQuoteAcknowledgement,
699 SecurityDefinitionRequest,
701 SecurityDefinition,
703 SecurityStatusRequest,
705 SecurityStatus,
707 TradingSessionStatusRequest,
709 TradingSessionStatus,
711 MassQuote,
713 BusinessMessageReject,
715 BidRequest,
717 BidResponse,
719 ListStrikePrice,
721 XmlNonFix,
723 RegistrationInstructions,
725 RegistrationInstructionsResponse,
727 OrderMassCancelRequest,
729 OrderMassCancelReport,
731 NewOrderCross,
733 CrossOrderCancelReplaceRequest,
735 CrossOrderCancelRequest,
737 SecurityTypeRequest,
739 SecurityTypes,
741 SecurityListRequest,
743 SecurityList,
745 DerivativeSecurityListRequest,
747 DerivativeSecurityList,
749 NewOrderMultileg,
751 MultilegOrderCancelReplace,
753 TradeCaptureReportRequest,
755 TradeCaptureReport,
757 OrderMassStatusRequest,
759 QuoteRequestReject,
761 RfqRequest,
763 QuoteStatusReport,
765 QuoteResponse,
767 Confirmation,
769 PositionMaintenanceRequest,
771 PositionMaintenanceReport,
773 RequestForPositions,
775 RequestForPositionsAck,
777 PositionReport,
779 TradeCaptureReportRequestAck,
781 TradeCaptureReportAck,
783 AllocationReport,
785 AllocationReportAck,
787 ConfirmationAck,
789 SettlementInstructionRequest,
791 AssignmentReport,
793 CollateralRequest,
795 CollateralAssignment,
797 CollateralResponse,
799 CollateralReport,
801 CollateralInquiry,
803 NetworkCounterpartySystemStatusRequest,
805 NetworkCounterpartySystemStatusResponse,
807 UserRequest,
809 UserResponse,
811 CollateralInquiryAck,
813 ConfirmationRequest,
815 Unrecognized(&'a str),
817}
818
819impl<'a> MsgType<'a> {
820 pub fn from_value(value: &'a str) -> Self {
821 match value {
822 "0" => Self::Heartbeat,
823 "1" => Self::TestRequest,
824 "2" => Self::ResendRequest,
825 "3" => Self::Reject,
826 "4" => Self::SequenceReset,
827 "5" => Self::Logout,
828 "6" => Self::Ioi,
829 "7" => Self::Advertisement,
830 "8" => Self::ExecutionReport,
831 "9" => Self::OrderCancelReject,
832 "A" => Self::Logon,
833 "B" => Self::News,
834 "C" => Self::Email,
835 "D" => Self::NewOrderSingle,
836 "E" => Self::NewOrderList,
837 "F" => Self::OrderCancelRequest,
838 "G" => Self::OrderCancelReplaceRequest,
839 "H" => Self::OrderStatusRequest,
840 "J" => Self::AllocationInstruction,
841 "K" => Self::ListCancelRequest,
842 "L" => Self::ListExecute,
843 "M" => Self::ListStatusRequest,
844 "N" => Self::ListStatus,
845 "P" => Self::AllocationInstructionAck,
846 "Q" => Self::DontKnowTrade,
847 "R" => Self::QuoteRequest,
848 "S" => Self::Quote,
849 "T" => Self::SettlementInstructions,
850 "V" => Self::MarketDataRequest,
851 "W" => Self::MarketDataSnapshotFullRefresh,
852 "X" => Self::MarketDataIncrementalRefresh,
853 "Y" => Self::MarketDataRequestReject,
854 "Z" => Self::QuoteCancel,
855 "a" => Self::QuoteStatusRequest,
856 "b" => Self::MassQuoteAcknowledgement,
857 "c" => Self::SecurityDefinitionRequest,
858 "d" => Self::SecurityDefinition,
859 "e" => Self::SecurityStatusRequest,
860 "f" => Self::SecurityStatus,
861 "g" => Self::TradingSessionStatusRequest,
862 "h" => Self::TradingSessionStatus,
863 "i" => Self::MassQuote,
864 "j" => Self::BusinessMessageReject,
865 "k" => Self::BidRequest,
866 "l" => Self::BidResponse,
867 "m" => Self::ListStrikePrice,
868 "n" => Self::XmlNonFix,
869 "o" => Self::RegistrationInstructions,
870 "p" => Self::RegistrationInstructionsResponse,
871 "q" => Self::OrderMassCancelRequest,
872 "r" => Self::OrderMassCancelReport,
873 "s" => Self::NewOrderCross,
874 "t" => Self::CrossOrderCancelReplaceRequest,
875 "u" => Self::CrossOrderCancelRequest,
876 "v" => Self::SecurityTypeRequest,
877 "w" => Self::SecurityTypes,
878 "x" => Self::SecurityListRequest,
879 "y" => Self::SecurityList,
880 "z" => Self::DerivativeSecurityListRequest,
881 "AA" => Self::DerivativeSecurityList,
882 "AB" => Self::NewOrderMultileg,
883 "AC" => Self::MultilegOrderCancelReplace,
884 "AD" => Self::TradeCaptureReportRequest,
885 "AE" => Self::TradeCaptureReport,
886 "AF" => Self::OrderMassStatusRequest,
887 "AG" => Self::QuoteRequestReject,
888 "AH" => Self::RfqRequest,
889 "AI" => Self::QuoteStatusReport,
890 "AJ" => Self::QuoteResponse,
891 "AK" => Self::Confirmation,
892 "AL" => Self::PositionMaintenanceRequest,
893 "AM" => Self::PositionMaintenanceReport,
894 "AN" => Self::RequestForPositions,
895 "AO" => Self::RequestForPositionsAck,
896 "AP" => Self::PositionReport,
897 "AQ" => Self::TradeCaptureReportRequestAck,
898 "AR" => Self::TradeCaptureReportAck,
899 "AS" => Self::AllocationReport,
900 "AT" => Self::AllocationReportAck,
901 "AU" => Self::ConfirmationAck,
902 "AV" => Self::SettlementInstructionRequest,
903 "AW" => Self::AssignmentReport,
904 "AX" => Self::CollateralRequest,
905 "AY" => Self::CollateralAssignment,
906 "AZ" => Self::CollateralResponse,
907 "BA" => Self::CollateralReport,
908 "BB" => Self::CollateralInquiry,
909 "BC" => Self::NetworkCounterpartySystemStatusRequest,
910 "BD" => Self::NetworkCounterpartySystemStatusResponse,
911 "BE" => Self::UserRequest,
912 "BF" => Self::UserResponse,
913 "BG" => Self::CollateralInquiryAck,
914 "BH" => Self::ConfirmationRequest,
915 unrecognized => Self::Unrecognized(unrecognized),
916 }
917 }
918
919 pub fn value(self) -> &'a str {
920 match self {
921 Self::Heartbeat => "0",
922 Self::TestRequest => "1",
923 Self::ResendRequest => "2",
924 Self::Reject => "3",
925 Self::SequenceReset => "4",
926 Self::Logout => "5",
927 Self::Ioi => "6",
928 Self::Advertisement => "7",
929 Self::ExecutionReport => "8",
930 Self::OrderCancelReject => "9",
931 Self::Logon => "A",
932 Self::News => "B",
933 Self::Email => "C",
934 Self::NewOrderSingle => "D",
935 Self::NewOrderList => "E",
936 Self::OrderCancelRequest => "F",
937 Self::OrderCancelReplaceRequest => "G",
938 Self::OrderStatusRequest => "H",
939 Self::AllocationInstruction => "J",
940 Self::ListCancelRequest => "K",
941 Self::ListExecute => "L",
942 Self::ListStatusRequest => "M",
943 Self::ListStatus => "N",
944 Self::AllocationInstructionAck => "P",
945 Self::DontKnowTrade => "Q",
946 Self::QuoteRequest => "R",
947 Self::Quote => "S",
948 Self::SettlementInstructions => "T",
949 Self::MarketDataRequest => "V",
950 Self::MarketDataSnapshotFullRefresh => "W",
951 Self::MarketDataIncrementalRefresh => "X",
952 Self::MarketDataRequestReject => "Y",
953 Self::QuoteCancel => "Z",
954 Self::QuoteStatusRequest => "a",
955 Self::MassQuoteAcknowledgement => "b",
956 Self::SecurityDefinitionRequest => "c",
957 Self::SecurityDefinition => "d",
958 Self::SecurityStatusRequest => "e",
959 Self::SecurityStatus => "f",
960 Self::TradingSessionStatusRequest => "g",
961 Self::TradingSessionStatus => "h",
962 Self::MassQuote => "i",
963 Self::BusinessMessageReject => "j",
964 Self::BidRequest => "k",
965 Self::BidResponse => "l",
966 Self::ListStrikePrice => "m",
967 Self::XmlNonFix => "n",
968 Self::RegistrationInstructions => "o",
969 Self::RegistrationInstructionsResponse => "p",
970 Self::OrderMassCancelRequest => "q",
971 Self::OrderMassCancelReport => "r",
972 Self::NewOrderCross => "s",
973 Self::CrossOrderCancelReplaceRequest => "t",
974 Self::CrossOrderCancelRequest => "u",
975 Self::SecurityTypeRequest => "v",
976 Self::SecurityTypes => "w",
977 Self::SecurityListRequest => "x",
978 Self::SecurityList => "y",
979 Self::DerivativeSecurityListRequest => "z",
980 Self::DerivativeSecurityList => "AA",
981 Self::NewOrderMultileg => "AB",
982 Self::MultilegOrderCancelReplace => "AC",
983 Self::TradeCaptureReportRequest => "AD",
984 Self::TradeCaptureReport => "AE",
985 Self::OrderMassStatusRequest => "AF",
986 Self::QuoteRequestReject => "AG",
987 Self::RfqRequest => "AH",
988 Self::QuoteStatusReport => "AI",
989 Self::QuoteResponse => "AJ",
990 Self::Confirmation => "AK",
991 Self::PositionMaintenanceRequest => "AL",
992 Self::PositionMaintenanceReport => "AM",
993 Self::RequestForPositions => "AN",
994 Self::RequestForPositionsAck => "AO",
995 Self::PositionReport => "AP",
996 Self::TradeCaptureReportRequestAck => "AQ",
997 Self::TradeCaptureReportAck => "AR",
998 Self::AllocationReport => "AS",
999 Self::AllocationReportAck => "AT",
1000 Self::ConfirmationAck => "AU",
1001 Self::SettlementInstructionRequest => "AV",
1002 Self::AssignmentReport => "AW",
1003 Self::CollateralRequest => "AX",
1004 Self::CollateralAssignment => "AY",
1005 Self::CollateralResponse => "AZ",
1006 Self::CollateralReport => "BA",
1007 Self::CollateralInquiry => "BB",
1008 Self::NetworkCounterpartySystemStatusRequest => "BC",
1009 Self::NetworkCounterpartySystemStatusResponse => "BD",
1010 Self::UserRequest => "BE",
1011 Self::UserResponse => "BF",
1012 Self::CollateralInquiryAck => "BG",
1013 Self::ConfirmationRequest => "BH",
1014 Self::Unrecognized(value) => value,
1015 }
1016 }
1017}
1018
1019impl<'a> From<&'a str> for MsgType<'a> {
1020 fn from(value: &'a str) -> Self {
1021 Self::from_value(value)
1022 }
1023}
1024
1025#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
1027pub enum OrdStatus<'a> {
1028 New,
1030 PartiallyFilled,
1032 Filled,
1034 DoneForDay,
1036 Canceled,
1038 PendingCancel,
1040 Stopped,
1042 Rejected,
1044 Suspended,
1046 PendingNew,
1048 Calculated,
1050 Expired,
1052 AcceptedForBidding,
1054 PendingReplace,
1056 Unrecognized(&'a str),
1058}
1059
1060impl<'a> OrdStatus<'a> {
1061 pub fn from_value(value: &'a str) -> Self {
1062 match value {
1063 "0" => Self::New,
1064 "1" => Self::PartiallyFilled,
1065 "2" => Self::Filled,
1066 "3" => Self::DoneForDay,
1067 "4" => Self::Canceled,
1068 "6" => Self::PendingCancel,
1069 "7" => Self::Stopped,
1070 "8" => Self::Rejected,
1071 "9" => Self::Suspended,
1072 "A" => Self::PendingNew,
1073 "B" => Self::Calculated,
1074 "C" => Self::Expired,
1075 "D" => Self::AcceptedForBidding,
1076 "E" => Self::PendingReplace,
1077 unrecognized => Self::Unrecognized(unrecognized),
1078 }
1079 }
1080
1081 pub fn value(self) -> &'a str {
1082 match self {
1083 Self::New => "0",
1084 Self::PartiallyFilled => "1",
1085 Self::Filled => "2",
1086 Self::DoneForDay => "3",
1087 Self::Canceled => "4",
1088 Self::PendingCancel => "6",
1089 Self::Stopped => "7",
1090 Self::Rejected => "8",
1091 Self::Suspended => "9",
1092 Self::PendingNew => "A",
1093 Self::Calculated => "B",
1094 Self::Expired => "C",
1095 Self::AcceptedForBidding => "D",
1096 Self::PendingReplace => "E",
1097 Self::Unrecognized(value) => value,
1098 }
1099 }
1100}
1101
1102impl<'a> From<&'a str> for OrdStatus<'a> {
1103 fn from(value: &'a str) -> Self {
1104 Self::from_value(value)
1105 }
1106}
1107
1108#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
1110pub enum OrdType<'a> {
1111 Market,
1113 Limit,
1115 Stop,
1117 StopLimit,
1119 WithOrWithout,
1121 LimitOrBetter,
1123 LimitWithOrWithout,
1125 OnBasis,
1127 PreviouslyQuoted,
1129 PreviouslyIndicated,
1131 ForexSwap,
1133 Funari,
1135 MarketIfTouched,
1137 MarketWithLeftOverAsLimit,
1139 PreviousFundValuationPoint,
1141 NextFundValuationPoint,
1143 Pegged,
1145 Unrecognized(&'a str),
1147}
1148
1149impl<'a> OrdType<'a> {
1150 pub fn from_value(value: &'a str) -> Self {
1151 match value {
1152 "1" => Self::Market,
1153 "2" => Self::Limit,
1154 "3" => Self::Stop,
1155 "4" => Self::StopLimit,
1156 "6" => Self::WithOrWithout,
1157 "7" => Self::LimitOrBetter,
1158 "8" => Self::LimitWithOrWithout,
1159 "9" => Self::OnBasis,
1160 "D" => Self::PreviouslyQuoted,
1161 "E" => Self::PreviouslyIndicated,
1162 "G" => Self::ForexSwap,
1163 "I" => Self::Funari,
1164 "J" => Self::MarketIfTouched,
1165 "K" => Self::MarketWithLeftOverAsLimit,
1166 "L" => Self::PreviousFundValuationPoint,
1167 "M" => Self::NextFundValuationPoint,
1168 "P" => Self::Pegged,
1169 unrecognized => Self::Unrecognized(unrecognized),
1170 }
1171 }
1172
1173 pub fn value(self) -> &'a str {
1174 match self {
1175 Self::Market => "1",
1176 Self::Limit => "2",
1177 Self::Stop => "3",
1178 Self::StopLimit => "4",
1179 Self::WithOrWithout => "6",
1180 Self::LimitOrBetter => "7",
1181 Self::LimitWithOrWithout => "8",
1182 Self::OnBasis => "9",
1183 Self::PreviouslyQuoted => "D",
1184 Self::PreviouslyIndicated => "E",
1185 Self::ForexSwap => "G",
1186 Self::Funari => "I",
1187 Self::MarketIfTouched => "J",
1188 Self::MarketWithLeftOverAsLimit => "K",
1189 Self::PreviousFundValuationPoint => "L",
1190 Self::NextFundValuationPoint => "M",
1191 Self::Pegged => "P",
1192 Self::Unrecognized(value) => value,
1193 }
1194 }
1195}
1196
1197impl<'a> From<&'a str> for OrdType<'a> {
1198 fn from(value: &'a str) -> Self {
1199 Self::from_value(value)
1200 }
1201}
1202
1203#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
1205pub enum Side<'a> {
1206 Buy,
1208 Sell,
1210 BuyMinus,
1212 SellPlus,
1214 SellShort,
1216 SellShortExempt,
1218 Undisclosed,
1220 Cross,
1222 CrossShort,
1224 CrossShortExempt,
1226 AsDefined,
1228 Opposite,
1230 Subscribe,
1232 Redeem,
1234 Lend,
1236 Borrow,
1238 Unrecognized(&'a str),
1240}
1241
1242impl<'a> Side<'a> {
1243 pub fn from_value(value: &'a str) -> Self {
1244 match value {
1245 "1" => Self::Buy,
1246 "2" => Self::Sell,
1247 "3" => Self::BuyMinus,
1248 "4" => Self::SellPlus,
1249 "5" => Self::SellShort,
1250 "6" => Self::SellShortExempt,
1251 "7" => Self::Undisclosed,
1252 "8" => Self::Cross,
1253 "9" => Self::CrossShort,
1254 "A" => Self::CrossShortExempt,
1255 "B" => Self::AsDefined,
1256 "C" => Self::Opposite,
1257 "D" => Self::Subscribe,
1258 "E" => Self::Redeem,
1259 "F" => Self::Lend,
1260 "G" => Self::Borrow,
1261 unrecognized => Self::Unrecognized(unrecognized),
1262 }
1263 }
1264
1265 pub fn value(self) -> &'a str {
1266 match self {
1267 Self::Buy => "1",
1268 Self::Sell => "2",
1269 Self::BuyMinus => "3",
1270 Self::SellPlus => "4",
1271 Self::SellShort => "5",
1272 Self::SellShortExempt => "6",
1273 Self::Undisclosed => "7",
1274 Self::Cross => "8",
1275 Self::CrossShort => "9",
1276 Self::CrossShortExempt => "A",
1277 Self::AsDefined => "B",
1278 Self::Opposite => "C",
1279 Self::Subscribe => "D",
1280 Self::Redeem => "E",
1281 Self::Lend => "F",
1282 Self::Borrow => "G",
1283 Self::Unrecognized(value) => value,
1284 }
1285 }
1286}
1287
1288impl<'a> From<&'a str> for Side<'a> {
1289 fn from(value: &'a str) -> Self {
1290 Self::from_value(value)
1291 }
1292}
1293
1294#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
1296pub enum TimeInForce<'a> {
1297 Day,
1299 GoodTillCancel,
1301 AtTheOpening,
1303 ImmediateOrCancel,
1305 FillOrKill,
1307 GoodTillCrossing,
1309 GoodTillDate,
1311 AtTheClose,
1313 Unrecognized(&'a str),
1315}
1316
1317impl<'a> TimeInForce<'a> {
1318 pub fn from_value(value: &'a str) -> Self {
1319 match value {
1320 "0" => Self::Day,
1321 "1" => Self::GoodTillCancel,
1322 "2" => Self::AtTheOpening,
1323 "3" => Self::ImmediateOrCancel,
1324 "4" => Self::FillOrKill,
1325 "5" => Self::GoodTillCrossing,
1326 "6" => Self::GoodTillDate,
1327 "7" => Self::AtTheClose,
1328 unrecognized => Self::Unrecognized(unrecognized),
1329 }
1330 }
1331
1332 pub fn value(self) -> &'a str {
1333 match self {
1334 Self::Day => "0",
1335 Self::GoodTillCancel => "1",
1336 Self::AtTheOpening => "2",
1337 Self::ImmediateOrCancel => "3",
1338 Self::FillOrKill => "4",
1339 Self::GoodTillCrossing => "5",
1340 Self::GoodTillDate => "6",
1341 Self::AtTheClose => "7",
1342 Self::Unrecognized(value) => value,
1343 }
1344 }
1345}
1346
1347impl<'a> From<&'a str> for TimeInForce<'a> {
1348 fn from(value: &'a str) -> Self {
1349 Self::from_value(value)
1350 }
1351}
1352
1353#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
1355pub enum Urgency<'a> {
1356 Normal,
1358 Flash,
1360 Background,
1362 Unrecognized(&'a str),
1364}
1365
1366impl<'a> Urgency<'a> {
1367 pub fn from_value(value: &'a str) -> Self {
1368 match value {
1369 "0" => Self::Normal,
1370 "1" => Self::Flash,
1371 "2" => Self::Background,
1372 unrecognized => Self::Unrecognized(unrecognized),
1373 }
1374 }
1375
1376 pub fn value(self) -> &'a str {
1377 match self {
1378 Self::Normal => "0",
1379 Self::Flash => "1",
1380 Self::Background => "2",
1381 Self::Unrecognized(value) => value,
1382 }
1383 }
1384}
1385
1386impl<'a> From<&'a str> for Urgency<'a> {
1387 fn from(value: &'a str) -> Self {
1388 Self::from_value(value)
1389 }
1390}
1391
1392#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
1394pub enum SettlType<'a> {
1395 Regular,
1397 Cash,
1399 NextDay,
1401 TPlus2,
1403 TPlus3,
1405 TPlus4,
1407 Future,
1409 WhenAndIfIssued,
1411 SellersOption,
1413 TPlus5,
1415 Unrecognized(&'a str),
1417}
1418
1419impl<'a> SettlType<'a> {
1420 pub fn from_value(value: &'a str) -> Self {
1421 match value {
1422 "0" => Self::Regular,
1423 "1" => Self::Cash,
1424 "2" => Self::NextDay,
1425 "3" => Self::TPlus2,
1426 "4" => Self::TPlus3,
1427 "5" => Self::TPlus4,
1428 "6" => Self::Future,
1429 "7" => Self::WhenAndIfIssued,
1430 "8" => Self::SellersOption,
1431 "9" => Self::TPlus5,
1432 unrecognized => Self::Unrecognized(unrecognized),
1433 }
1434 }
1435
1436 pub fn value(self) -> &'a str {
1437 match self {
1438 Self::Regular => "0",
1439 Self::Cash => "1",
1440 Self::NextDay => "2",
1441 Self::TPlus2 => "3",
1442 Self::TPlus3 => "4",
1443 Self::TPlus4 => "5",
1444 Self::Future => "6",
1445 Self::WhenAndIfIssued => "7",
1446 Self::SellersOption => "8",
1447 Self::TPlus5 => "9",
1448 Self::Unrecognized(value) => value,
1449 }
1450 }
1451}
1452
1453impl<'a> From<&'a str> for SettlType<'a> {
1454 fn from(value: &'a str) -> Self {
1455 Self::from_value(value)
1456 }
1457}
1458
1459#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
1461pub enum AllocTransType<'a> {
1462 New,
1464 Replace,
1466 Cancel,
1468 Unrecognized(&'a str),
1470}
1471
1472impl<'a> AllocTransType<'a> {
1473 pub fn from_value(value: &'a str) -> Self {
1474 match value {
1475 "0" => Self::New,
1476 "1" => Self::Replace,
1477 "2" => Self::Cancel,
1478 unrecognized => Self::Unrecognized(unrecognized),
1479 }
1480 }
1481
1482 pub fn value(self) -> &'a str {
1483 match self {
1484 Self::New => "0",
1485 Self::Replace => "1",
1486 Self::Cancel => "2",
1487 Self::Unrecognized(value) => value,
1488 }
1489 }
1490}
1491
1492impl<'a> From<&'a str> for AllocTransType<'a> {
1493 fn from(value: &'a str) -> Self {
1494 Self::from_value(value)
1495 }
1496}
1497
1498#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
1500pub enum PositionEffect<'a> {
1501 Open,
1503 Close,
1505 Rolled,
1507 Fifo,
1509 Unrecognized(&'a str),
1511}
1512
1513impl<'a> PositionEffect<'a> {
1514 pub fn from_value(value: &'a str) -> Self {
1515 match value {
1516 "O" => Self::Open,
1517 "C" => Self::Close,
1518 "R" => Self::Rolled,
1519 "F" => Self::Fifo,
1520 unrecognized => Self::Unrecognized(unrecognized),
1521 }
1522 }
1523
1524 pub fn value(self) -> &'a str {
1525 match self {
1526 Self::Open => "O",
1527 Self::Close => "C",
1528 Self::Rolled => "R",
1529 Self::Fifo => "F",
1530 Self::Unrecognized(value) => value,
1531 }
1532 }
1533}
1534
1535impl<'a> From<&'a str> for PositionEffect<'a> {
1536 fn from(value: &'a str) -> Self {
1537 Self::from_value(value)
1538 }
1539}
1540
1541#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
1543pub enum ProcessCode<'a> {
1544 Regular,
1546 SoftDollar,
1548 StepIn,
1550 StepOut,
1552 SoftDollarStepIn,
1554 SoftDollarStepOut,
1556 PlanSponsor,
1558 Unrecognized(&'a str),
1560}
1561
1562impl<'a> ProcessCode<'a> {
1563 pub fn from_value(value: &'a str) -> Self {
1564 match value {
1565 "0" => Self::Regular,
1566 "1" => Self::SoftDollar,
1567 "2" => Self::StepIn,
1568 "3" => Self::StepOut,
1569 "4" => Self::SoftDollarStepIn,
1570 "5" => Self::SoftDollarStepOut,
1571 "6" => Self::PlanSponsor,
1572 unrecognized => Self::Unrecognized(unrecognized),
1573 }
1574 }
1575
1576 pub fn value(self) -> &'a str {
1577 match self {
1578 Self::Regular => "0",
1579 Self::SoftDollar => "1",
1580 Self::StepIn => "2",
1581 Self::StepOut => "3",
1582 Self::SoftDollarStepIn => "4",
1583 Self::SoftDollarStepOut => "5",
1584 Self::PlanSponsor => "6",
1585 Self::Unrecognized(value) => value,
1586 }
1587 }
1588}
1589
1590impl<'a> From<&'a str> for ProcessCode<'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 AllocStatus {
1599 Accepted,
1601 BlockLevelReject,
1603 AccountLevelReject,
1605 Received,
1607 Incomplete,
1609 RejectedByIntermediary,
1611 Unrecognized(i64),
1613}
1614
1615impl AllocStatus {
1616 pub fn from_value(value: i64) -> Self {
1617 match value {
1618 0 => Self::Accepted,
1619 1 => Self::BlockLevelReject,
1620 2 => Self::AccountLevelReject,
1621 3 => Self::Received,
1622 4 => Self::Incomplete,
1623 5 => Self::RejectedByIntermediary,
1624 unrecognized => Self::Unrecognized(unrecognized),
1625 }
1626 }
1627
1628 pub fn value(self) -> i64 {
1629 match self {
1630 Self::Accepted => 0,
1631 Self::BlockLevelReject => 1,
1632 Self::AccountLevelReject => 2,
1633 Self::Received => 3,
1634 Self::Incomplete => 4,
1635 Self::RejectedByIntermediary => 5,
1636 Self::Unrecognized(value) => value,
1637 }
1638 }
1639}
1640
1641#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
1643pub enum AllocRejCode {
1644 UnknownAccount,
1646 IncorrectQuantity,
1648 IncorrectAveragegPrice,
1650 UnknownExecutingBrokerMnemonic,
1652 CommissionDifference,
1654 UnknownOrderId,
1656 UnknownListId,
1658 OtherSeeText,
1660 IncorrectAllocatedQuantity,
1662 CalculationDifference,
1664 UnknownOrStaleExecId,
1666 MismatchedData,
1668 UnknownClOrdId,
1670 WarehouseRequestRejected,
1672 Unrecognized(i64),
1674}
1675
1676impl AllocRejCode {
1677 pub fn from_value(value: i64) -> Self {
1678 match value {
1679 0 => Self::UnknownAccount,
1680 1 => Self::IncorrectQuantity,
1681 2 => Self::IncorrectAveragegPrice,
1682 3 => Self::UnknownExecutingBrokerMnemonic,
1683 4 => Self::CommissionDifference,
1684 5 => Self::UnknownOrderId,
1685 6 => Self::UnknownListId,
1686 7 => Self::OtherSeeText,
1687 8 => Self::IncorrectAllocatedQuantity,
1688 9 => Self::CalculationDifference,
1689 10 => Self::UnknownOrStaleExecId,
1690 11 => Self::MismatchedData,
1691 12 => Self::UnknownClOrdId,
1692 13 => Self::WarehouseRequestRejected,
1693 unrecognized => Self::Unrecognized(unrecognized),
1694 }
1695 }
1696
1697 pub fn value(self) -> i64 {
1698 match self {
1699 Self::UnknownAccount => 0,
1700 Self::IncorrectQuantity => 1,
1701 Self::IncorrectAveragegPrice => 2,
1702 Self::UnknownExecutingBrokerMnemonic => 3,
1703 Self::CommissionDifference => 4,
1704 Self::UnknownOrderId => 5,
1705 Self::UnknownListId => 6,
1706 Self::OtherSeeText => 7,
1707 Self::IncorrectAllocatedQuantity => 8,
1708 Self::CalculationDifference => 9,
1709 Self::UnknownOrStaleExecId => 10,
1710 Self::MismatchedData => 11,
1711 Self::UnknownClOrdId => 12,
1712 Self::WarehouseRequestRejected => 13,
1713 Self::Unrecognized(value) => value,
1714 }
1715 }
1716}
1717
1718#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
1720pub enum EmailType<'a> {
1721 New,
1723 Reply,
1725 AdminReply,
1727 Unrecognized(&'a str),
1729}
1730
1731impl<'a> EmailType<'a> {
1732 pub fn from_value(value: &'a str) -> Self {
1733 match value {
1734 "0" => Self::New,
1735 "1" => Self::Reply,
1736 "2" => Self::AdminReply,
1737 unrecognized => Self::Unrecognized(unrecognized),
1738 }
1739 }
1740
1741 pub fn value(self) -> &'a str {
1742 match self {
1743 Self::New => "0",
1744 Self::Reply => "1",
1745 Self::AdminReply => "2",
1746 Self::Unrecognized(value) => value,
1747 }
1748 }
1749}
1750
1751impl<'a> From<&'a str> for EmailType<'a> {
1752 fn from(value: &'a str) -> Self {
1753 Self::from_value(value)
1754 }
1755}
1756
1757#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
1759pub enum EncryptMethod {
1760 None,
1762 Pkcs,
1764 Des,
1766 Pkcsdes,
1768 Pgpdes,
1770 Pgpdesmd5,
1772 Pem,
1774 Unrecognized(i64),
1776}
1777
1778impl EncryptMethod {
1779 pub fn from_value(value: i64) -> Self {
1780 match value {
1781 0 => Self::None,
1782 1 => Self::Pkcs,
1783 2 => Self::Des,
1784 3 => Self::Pkcsdes,
1785 4 => Self::Pgpdes,
1786 5 => Self::Pgpdesmd5,
1787 6 => Self::Pem,
1788 unrecognized => Self::Unrecognized(unrecognized),
1789 }
1790 }
1791
1792 pub fn value(self) -> i64 {
1793 match self {
1794 Self::None => 0,
1795 Self::Pkcs => 1,
1796 Self::Des => 2,
1797 Self::Pkcsdes => 3,
1798 Self::Pgpdes => 4,
1799 Self::Pgpdesmd5 => 5,
1800 Self::Pem => 6,
1801 Self::Unrecognized(value) => value,
1802 }
1803 }
1804}
1805
1806#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
1808pub enum CxlRejReason {
1809 TooLateToCancel,
1811 UnknownOrder,
1813 BrokerCredit,
1815 OrderAlreadyInPendingStatus,
1817 UnableToProcessOrderMassCancelRequest,
1819 OrigOrdModTime,
1821 DuplicateClOrdId,
1823 Other,
1825 Unrecognized(i64),
1827}
1828
1829impl CxlRejReason {
1830 pub fn from_value(value: i64) -> Self {
1831 match value {
1832 0 => Self::TooLateToCancel,
1833 1 => Self::UnknownOrder,
1834 2 => Self::BrokerCredit,
1835 3 => Self::OrderAlreadyInPendingStatus,
1836 4 => Self::UnableToProcessOrderMassCancelRequest,
1837 5 => Self::OrigOrdModTime,
1838 6 => Self::DuplicateClOrdId,
1839 99 => Self::Other,
1840 unrecognized => Self::Unrecognized(unrecognized),
1841 }
1842 }
1843
1844 pub fn value(self) -> i64 {
1845 match self {
1846 Self::TooLateToCancel => 0,
1847 Self::UnknownOrder => 1,
1848 Self::BrokerCredit => 2,
1849 Self::OrderAlreadyInPendingStatus => 3,
1850 Self::UnableToProcessOrderMassCancelRequest => 4,
1851 Self::OrigOrdModTime => 5,
1852 Self::DuplicateClOrdId => 6,
1853 Self::Other => 99,
1854 Self::Unrecognized(value) => value,
1855 }
1856 }
1857}
1858
1859#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
1861pub enum OrdRejReason {
1862 BrokerCredit,
1864 UnknownSymbol,
1866 ExchangeClosed,
1868 OrderExceedsLimit,
1870 TooLateToEnter,
1872 UnknownOrder,
1874 DuplicateOrder,
1876 DuplicateOfAVerballyCommunicatedOrder,
1878 StaleOrder,
1880 TradeAlongRequired,
1882 InvalidInvestorId,
1884 UnsupportedOrderCharacteristic,
1886 IncorrectQuantity,
1888 IncorrectAllocatedQuantity,
1890 UnknownAccount,
1892 Other,
1894 Unrecognized(i64),
1896}
1897
1898impl OrdRejReason {
1899 pub fn from_value(value: i64) -> Self {
1900 match value {
1901 0 => Self::BrokerCredit,
1902 1 => Self::UnknownSymbol,
1903 2 => Self::ExchangeClosed,
1904 3 => Self::OrderExceedsLimit,
1905 4 => Self::TooLateToEnter,
1906 5 => Self::UnknownOrder,
1907 6 => Self::DuplicateOrder,
1908 7 => Self::DuplicateOfAVerballyCommunicatedOrder,
1909 8 => Self::StaleOrder,
1910 9 => Self::TradeAlongRequired,
1911 10 => Self::InvalidInvestorId,
1912 11 => Self::UnsupportedOrderCharacteristic,
1913 13 => Self::IncorrectQuantity,
1914 14 => Self::IncorrectAllocatedQuantity,
1915 15 => Self::UnknownAccount,
1916 99 => Self::Other,
1917 unrecognized => Self::Unrecognized(unrecognized),
1918 }
1919 }
1920
1921 pub fn value(self) -> i64 {
1922 match self {
1923 Self::BrokerCredit => 0,
1924 Self::UnknownSymbol => 1,
1925 Self::ExchangeClosed => 2,
1926 Self::OrderExceedsLimit => 3,
1927 Self::TooLateToEnter => 4,
1928 Self::UnknownOrder => 5,
1929 Self::DuplicateOrder => 6,
1930 Self::DuplicateOfAVerballyCommunicatedOrder => 7,
1931 Self::StaleOrder => 8,
1932 Self::TradeAlongRequired => 9,
1933 Self::InvalidInvestorId => 10,
1934 Self::UnsupportedOrderCharacteristic => 11,
1935 Self::IncorrectQuantity => 13,
1936 Self::IncorrectAllocatedQuantity => 14,
1937 Self::UnknownAccount => 15,
1938 Self::Other => 99,
1939 Self::Unrecognized(value) => value,
1940 }
1941 }
1942}
1943
1944#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
1946pub enum IOIQualifier<'a> {
1947 AllOrNone,
1949 MarketOnClose,
1951 AtTheClose,
1953 Vwap,
1955 InTouchWith,
1957 Limit,
1959 MoreBehind,
1961 AtTheOpen,
1963 TakingAPosition,
1965 AtTheMarket,
1967 ReadyToTrade,
1969 PortfolioShown,
1971 ThroughTheDay,
1973 Versus,
1975 Indication,
1977 CrossingOpportunity,
1979 AtTheMidpoint,
1981 PreOpen,
1983 Unrecognized(&'a str),
1985}
1986
1987impl<'a> IOIQualifier<'a> {
1988 pub fn from_value(value: &'a str) -> Self {
1989 match value {
1990 "A" => Self::AllOrNone,
1991 "B" => Self::MarketOnClose,
1992 "C" => Self::AtTheClose,
1993 "D" => Self::Vwap,
1994 "I" => Self::InTouchWith,
1995 "L" => Self::Limit,
1996 "M" => Self::MoreBehind,
1997 "O" => Self::AtTheOpen,
1998 "P" => Self::TakingAPosition,
1999 "Q" => Self::AtTheMarket,
2000 "R" => Self::ReadyToTrade,
2001 "S" => Self::PortfolioShown,
2002 "T" => Self::ThroughTheDay,
2003 "V" => Self::Versus,
2004 "W" => Self::Indication,
2005 "X" => Self::CrossingOpportunity,
2006 "Y" => Self::AtTheMidpoint,
2007 "Z" => Self::PreOpen,
2008 unrecognized => Self::Unrecognized(unrecognized),
2009 }
2010 }
2011
2012 pub fn value(self) -> &'a str {
2013 match self {
2014 Self::AllOrNone => "A",
2015 Self::MarketOnClose => "B",
2016 Self::AtTheClose => "C",
2017 Self::Vwap => "D",
2018 Self::InTouchWith => "I",
2019 Self::Limit => "L",
2020 Self::MoreBehind => "M",
2021 Self::AtTheOpen => "O",
2022 Self::TakingAPosition => "P",
2023 Self::AtTheMarket => "Q",
2024 Self::ReadyToTrade => "R",
2025 Self::PortfolioShown => "S",
2026 Self::ThroughTheDay => "T",
2027 Self::Versus => "V",
2028 Self::Indication => "W",
2029 Self::CrossingOpportunity => "X",
2030 Self::AtTheMidpoint => "Y",
2031 Self::PreOpen => "Z",
2032 Self::Unrecognized(value) => value,
2033 }
2034 }
2035}
2036
2037impl<'a> From<&'a str> for IOIQualifier<'a> {
2038 fn from(value: &'a str) -> Self {
2039 Self::from_value(value)
2040 }
2041}
2042
2043#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
2045pub enum DKReason<'a> {
2046 UnknownSymbol,
2048 WrongSide,
2050 QuantityExceedsOrder,
2052 NoMatchingOrder,
2054 PriceExceedsLimit,
2056 CalculationDifference,
2058 Other,
2060 Unrecognized(&'a str),
2062}
2063
2064impl<'a> DKReason<'a> {
2065 pub fn from_value(value: &'a str) -> Self {
2066 match value {
2067 "A" => Self::UnknownSymbol,
2068 "B" => Self::WrongSide,
2069 "C" => Self::QuantityExceedsOrder,
2070 "D" => Self::NoMatchingOrder,
2071 "E" => Self::PriceExceedsLimit,
2072 "F" => Self::CalculationDifference,
2073 "Z" => Self::Other,
2074 unrecognized => Self::Unrecognized(unrecognized),
2075 }
2076 }
2077
2078 pub fn value(self) -> &'a str {
2079 match self {
2080 Self::UnknownSymbol => "A",
2081 Self::WrongSide => "B",
2082 Self::QuantityExceedsOrder => "C",
2083 Self::NoMatchingOrder => "D",
2084 Self::PriceExceedsLimit => "E",
2085 Self::CalculationDifference => "F",
2086 Self::Other => "Z",
2087 Self::Unrecognized(value) => value,
2088 }
2089 }
2090}
2091
2092impl<'a> From<&'a str> for DKReason<'a> {
2093 fn from(value: &'a str) -> Self {
2094 Self::from_value(value)
2095 }
2096}
2097
2098#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
2100pub enum MiscFeeType<'a> {
2101 Regulatory,
2103 Tax,
2105 LocalCommission,
2107 ExchangeFees,
2109 Stamp,
2111 Levy,
2113 Other,
2115 Markup,
2117 ConsumptionTax,
2119 PerTransaction,
2121 Conversion,
2123 Agent,
2125 Unrecognized(&'a str),
2127}
2128
2129impl<'a> MiscFeeType<'a> {
2130 pub fn from_value(value: &'a str) -> Self {
2131 match value {
2132 "1" => Self::Regulatory,
2133 "2" => Self::Tax,
2134 "3" => Self::LocalCommission,
2135 "4" => Self::ExchangeFees,
2136 "5" => Self::Stamp,
2137 "6" => Self::Levy,
2138 "7" => Self::Other,
2139 "8" => Self::Markup,
2140 "9" => Self::ConsumptionTax,
2141 "10" => Self::PerTransaction,
2142 "11" => Self::Conversion,
2143 "12" => Self::Agent,
2144 unrecognized => Self::Unrecognized(unrecognized),
2145 }
2146 }
2147
2148 pub fn value(self) -> &'a str {
2149 match self {
2150 Self::Regulatory => "1",
2151 Self::Tax => "2",
2152 Self::LocalCommission => "3",
2153 Self::ExchangeFees => "4",
2154 Self::Stamp => "5",
2155 Self::Levy => "6",
2156 Self::Other => "7",
2157 Self::Markup => "8",
2158 Self::ConsumptionTax => "9",
2159 Self::PerTransaction => "10",
2160 Self::Conversion => "11",
2161 Self::Agent => "12",
2162 Self::Unrecognized(value) => value,
2163 }
2164 }
2165}
2166
2167impl<'a> From<&'a str> for MiscFeeType<'a> {
2168 fn from(value: &'a str) -> Self {
2169 Self::from_value(value)
2170 }
2171}
2172
2173#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
2175pub enum ExecType<'a> {
2176 New,
2178 DoneForDay,
2180 Canceled,
2182 Replaced,
2184 PendingCancel,
2186 Stopped,
2188 Rejected,
2190 Suspended,
2192 PendingNew,
2194 Calculated,
2196 Expired,
2198 Restated,
2200 PendingReplace,
2202 Trade,
2204 TradeCorrect,
2206 TradeCancel,
2208 OrderStatus,
2210 Unrecognized(&'a str),
2212}
2213
2214impl<'a> ExecType<'a> {
2215 pub fn from_value(value: &'a str) -> Self {
2216 match value {
2217 "0" => Self::New,
2218 "3" => Self::DoneForDay,
2219 "4" => Self::Canceled,
2220 "5" => Self::Replaced,
2221 "6" => Self::PendingCancel,
2222 "7" => Self::Stopped,
2223 "8" => Self::Rejected,
2224 "9" => Self::Suspended,
2225 "A" => Self::PendingNew,
2226 "B" => Self::Calculated,
2227 "C" => Self::Expired,
2228 "D" => Self::Restated,
2229 "E" => Self::PendingReplace,
2230 "F" => Self::Trade,
2231 "G" => Self::TradeCorrect,
2232 "H" => Self::TradeCancel,
2233 "I" => Self::OrderStatus,
2234 unrecognized => Self::Unrecognized(unrecognized),
2235 }
2236 }
2237
2238 pub fn value(self) -> &'a str {
2239 match self {
2240 Self::New => "0",
2241 Self::DoneForDay => "3",
2242 Self::Canceled => "4",
2243 Self::Replaced => "5",
2244 Self::PendingCancel => "6",
2245 Self::Stopped => "7",
2246 Self::Rejected => "8",
2247 Self::Suspended => "9",
2248 Self::PendingNew => "A",
2249 Self::Calculated => "B",
2250 Self::Expired => "C",
2251 Self::Restated => "D",
2252 Self::PendingReplace => "E",
2253 Self::Trade => "F",
2254 Self::TradeCorrect => "G",
2255 Self::TradeCancel => "H",
2256 Self::OrderStatus => "I",
2257 Self::Unrecognized(value) => value,
2258 }
2259 }
2260}
2261
2262impl<'a> From<&'a str> for ExecType<'a> {
2263 fn from(value: &'a str) -> Self {
2264 Self::from_value(value)
2265 }
2266}
2267
2268#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
2270pub enum SettlCurrFxRateCalc<'a> {
2271 Multiply,
2273 Divide,
2275 Unrecognized(&'a str),
2277}
2278
2279impl<'a> SettlCurrFxRateCalc<'a> {
2280 pub fn from_value(value: &'a str) -> Self {
2281 match value {
2282 "M" => Self::Multiply,
2283 "D" => Self::Divide,
2284 unrecognized => Self::Unrecognized(unrecognized),
2285 }
2286 }
2287
2288 pub fn value(self) -> &'a str {
2289 match self {
2290 Self::Multiply => "M",
2291 Self::Divide => "D",
2292 Self::Unrecognized(value) => value,
2293 }
2294 }
2295}
2296
2297impl<'a> From<&'a str> for SettlCurrFxRateCalc<'a> {
2298 fn from(value: &'a str) -> Self {
2299 Self::from_value(value)
2300 }
2301}
2302
2303#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
2305pub enum SettlInstMode<'a> {
2306 StandingInstructionsProvided,
2308 SpecificOrderForASingleAccount,
2310 RequestReject,
2312 Unrecognized(&'a str),
2314}
2315
2316impl<'a> SettlInstMode<'a> {
2317 pub fn from_value(value: &'a str) -> Self {
2318 match value {
2319 "1" => Self::StandingInstructionsProvided,
2320 "4" => Self::SpecificOrderForASingleAccount,
2321 "5" => Self::RequestReject,
2322 unrecognized => Self::Unrecognized(unrecognized),
2323 }
2324 }
2325
2326 pub fn value(self) -> &'a str {
2327 match self {
2328 Self::StandingInstructionsProvided => "1",
2329 Self::SpecificOrderForASingleAccount => "4",
2330 Self::RequestReject => "5",
2331 Self::Unrecognized(value) => value,
2332 }
2333 }
2334}
2335
2336impl<'a> From<&'a str> for SettlInstMode<'a> {
2337 fn from(value: &'a str) -> Self {
2338 Self::from_value(value)
2339 }
2340}
2341
2342#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
2344pub enum SettlInstTransType<'a> {
2345 New,
2347 Cancel,
2349 Replace,
2351 Restate,
2353 Unrecognized(&'a str),
2355}
2356
2357impl<'a> SettlInstTransType<'a> {
2358 pub fn from_value(value: &'a str) -> Self {
2359 match value {
2360 "N" => Self::New,
2361 "C" => Self::Cancel,
2362 "R" => Self::Replace,
2363 "T" => Self::Restate,
2364 unrecognized => Self::Unrecognized(unrecognized),
2365 }
2366 }
2367
2368 pub fn value(self) -> &'a str {
2369 match self {
2370 Self::New => "N",
2371 Self::Cancel => "C",
2372 Self::Replace => "R",
2373 Self::Restate => "T",
2374 Self::Unrecognized(value) => value,
2375 }
2376 }
2377}
2378
2379impl<'a> From<&'a str> for SettlInstTransType<'a> {
2380 fn from(value: &'a str) -> Self {
2381 Self::from_value(value)
2382 }
2383}
2384
2385#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
2387pub enum SettlInstSource<'a> {
2388 BrokerCredit,
2390 Institution,
2392 Investor,
2394 Unrecognized(&'a str),
2396}
2397
2398impl<'a> SettlInstSource<'a> {
2399 pub fn from_value(value: &'a str) -> Self {
2400 match value {
2401 "1" => Self::BrokerCredit,
2402 "2" => Self::Institution,
2403 "3" => Self::Investor,
2404 unrecognized => Self::Unrecognized(unrecognized),
2405 }
2406 }
2407
2408 pub fn value(self) -> &'a str {
2409 match self {
2410 Self::BrokerCredit => "1",
2411 Self::Institution => "2",
2412 Self::Investor => "3",
2413 Self::Unrecognized(value) => value,
2414 }
2415 }
2416}
2417
2418impl<'a> From<&'a str> for SettlInstSource<'a> {
2419 fn from(value: &'a str) -> Self {
2420 Self::from_value(value)
2421 }
2422}
2423
2424#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
2426pub enum SecurityType<'a> {
2427 EuroSupranationalCoupons,
2429 FederalAgencyCoupon,
2431 FederalAgencyDiscountNote,
2433 PrivateExportFunding,
2435 UsdSupranationalCoupons,
2437 CorporateBond,
2439 CorporatePrivatePlacement,
2441 ConvertibleBond,
2443 DualCurrency,
2445 EuroCorporateBond,
2447 IndexedLinked,
2449 StructuredNotes,
2451 YankeeCorporateBond,
2453 ForeignExchangeContract,
2455 CommonStock,
2457 PreferredStock,
2459 BradyBond,
2461 EuroSovereigns,
2463 UsTreasuryBond,
2465 InterestStripFromAnyBondOrNote,
2467 TreasuryInflationProtectedSecurities,
2469 PrincipalStripOfACallableBondOrNote,
2471 PrincipalStripFromANonCallableBondOrNote,
2473 UsTreasuryNoteOld,
2475 UsTreasuryBillOld,
2477 UsTreasuryNote,
2479 UsTreasuryBill,
2481 Repurchase,
2483 Forward,
2485 BuySellback,
2487 SecuritiesLoan,
2489 SecuritiesPledge,
2491 TermLoan,
2493 RevolverLoan,
2495 Revolver,
2497 BridgeLoan,
2499 LetterOfCredit,
2501 SwingLineFacility,
2503 DebtorInPossession,
2505 Defaulted,
2507 Withdrawn,
2509 Replaced,
2511 Matured,
2513 Amended,
2515 Retired,
2517 BankersAcceptance,
2519 BankNotes,
2521 BillOfExchanges,
2523 CertificateOfDeposit,
2525 CallLoans,
2527 CommercialPaper,
2529 DepositNotes,
2531 EuroCertificateOfDeposit,
2533 EuroCommercialPaper,
2535 LiquidityNote,
2537 MediumTermNotes,
2539 Overnight,
2541 PromissoryNote,
2543 PlazosFijos,
2545 ShortTermLoanNote,
2547 TimeDeposit,
2549 ExtendedCommNote,
2551 YankeeCertificateOfDeposit,
2553 AssetBackedSecurities,
2555 Corp,
2557 CollateralizedMortgageObligation,
2559 IoetteMortgage,
2561 MortgageBackedSecurities,
2563 MortgageInterestOnly,
2565 MortgagePrincipalOnly,
2567 MortgagePrivatePlacement,
2569 MiscellaneousPassThrough,
2571 Pfandbriefe,
2573 ToBeAnnounced,
2575 OtherAnticipationNotes,
2577 CertificateOfObligation,
2579 CertificateOfParticipation,
2581 GeneralObligationBonds,
2583 MandatoryTender,
2585 RevenueAnticipationNote,
2587 RevenueBonds,
2589 SpecialAssessment,
2591 SpecialObligation,
2593 SpecialTax,
2595 TaxAnticipationNote,
2597 TaxAllocation,
2599 TaxExemptCommercialPaper,
2601 TaxRevenueAnticipationNote,
2603 VariableRateDemandNote,
2605 Warrant,
2607 MutualFund,
2609 MultilegInstrument,
2611 NoSecurityType,
2613 Future,
2615 Option,
2617 Unrecognized(&'a str),
2619}
2620
2621impl<'a> SecurityType<'a> {
2622 pub fn from_value(value: &'a str) -> Self {
2623 match value {
2624 "EUSUPRA" => Self::EuroSupranationalCoupons,
2625 "FAC" => Self::FederalAgencyCoupon,
2626 "FADN" => Self::FederalAgencyDiscountNote,
2627 "PEF" => Self::PrivateExportFunding,
2628 "SUPRA" => Self::UsdSupranationalCoupons,
2629 "CORP" => Self::CorporateBond,
2630 "CPP" => Self::CorporatePrivatePlacement,
2631 "CB" => Self::ConvertibleBond,
2632 "DUAL" => Self::DualCurrency,
2633 "EUCORP" => Self::EuroCorporateBond,
2634 "XLINKD" => Self::IndexedLinked,
2635 "STRUCT" => Self::StructuredNotes,
2636 "YANK" => Self::YankeeCorporateBond,
2637 "FOR" => Self::ForeignExchangeContract,
2638 "CS" => Self::CommonStock,
2639 "PS" => Self::PreferredStock,
2640 "BRADY" => Self::BradyBond,
2641 "EUSOV" => Self::EuroSovereigns,
2642 "TBOND" => Self::UsTreasuryBond,
2643 "TINT" => Self::InterestStripFromAnyBondOrNote,
2644 "TIPS" => Self::TreasuryInflationProtectedSecurities,
2645 "TCAL" => Self::PrincipalStripOfACallableBondOrNote,
2646 "TPRN" => Self::PrincipalStripFromANonCallableBondOrNote,
2647 "UST" => Self::UsTreasuryNoteOld,
2648 "USTB" => Self::UsTreasuryBillOld,
2649 "TNOTE" => Self::UsTreasuryNote,
2650 "TBILL" => Self::UsTreasuryBill,
2651 "REPO" => Self::Repurchase,
2652 "FORWARD" => Self::Forward,
2653 "BUYSELL" => Self::BuySellback,
2654 "SECLOAN" => Self::SecuritiesLoan,
2655 "SECPLEDGE" => Self::SecuritiesPledge,
2656 "TERM" => Self::TermLoan,
2657 "RVLV" => Self::RevolverLoan,
2658 "RVLVTRM" => Self::Revolver,
2659 "BRIDGE" => Self::BridgeLoan,
2660 "LOFC" => Self::LetterOfCredit,
2661 "SWING" => Self::SwingLineFacility,
2662 "DINP" => Self::DebtorInPossession,
2663 "DEFLTED" => Self::Defaulted,
2664 "WITHDRN" => Self::Withdrawn,
2665 "REPLACD" => Self::Replaced,
2666 "MATURED" => Self::Matured,
2667 "AMENDED" => Self::Amended,
2668 "RETIRED" => Self::Retired,
2669 "BA" => Self::BankersAcceptance,
2670 "BN" => Self::BankNotes,
2671 "BOX" => Self::BillOfExchanges,
2672 "CD" => Self::CertificateOfDeposit,
2673 "CL" => Self::CallLoans,
2674 "CP" => Self::CommercialPaper,
2675 "DN" => Self::DepositNotes,
2676 "EUCD" => Self::EuroCertificateOfDeposit,
2677 "EUCP" => Self::EuroCommercialPaper,
2678 "LQN" => Self::LiquidityNote,
2679 "MTN" => Self::MediumTermNotes,
2680 "ONITE" => Self::Overnight,
2681 "PN" => Self::PromissoryNote,
2682 "PZFJ" => Self::PlazosFijos,
2683 "STN" => Self::ShortTermLoanNote,
2684 "TD" => Self::TimeDeposit,
2685 "XCN" => Self::ExtendedCommNote,
2686 "YCD" => Self::YankeeCertificateOfDeposit,
2687 "ABS" => Self::AssetBackedSecurities,
2688 "CMBS" => Self::Corp,
2689 "CMO" => Self::CollateralizedMortgageObligation,
2690 "IET" => Self::IoetteMortgage,
2691 "MBS" => Self::MortgageBackedSecurities,
2692 "MIO" => Self::MortgageInterestOnly,
2693 "MPO" => Self::MortgagePrincipalOnly,
2694 "MPP" => Self::MortgagePrivatePlacement,
2695 "MPT" => Self::MiscellaneousPassThrough,
2696 "PFAND" => Self::Pfandbriefe,
2697 "TBA" => Self::ToBeAnnounced,
2698 "AN" => Self::OtherAnticipationNotes,
2699 "COFO" => Self::CertificateOfObligation,
2700 "COFP" => Self::CertificateOfParticipation,
2701 "GO" => Self::GeneralObligationBonds,
2702 "MT" => Self::MandatoryTender,
2703 "RAN" => Self::RevenueAnticipationNote,
2704 "REV" => Self::RevenueBonds,
2705 "SPCLA" => Self::SpecialAssessment,
2706 "SPCLO" => Self::SpecialObligation,
2707 "SPCLT" => Self::SpecialTax,
2708 "TAN" => Self::TaxAnticipationNote,
2709 "TAXA" => Self::TaxAllocation,
2710 "TECP" => Self::TaxExemptCommercialPaper,
2711 "TRAN" => Self::TaxRevenueAnticipationNote,
2712 "VRDN" => Self::VariableRateDemandNote,
2713 "WAR" => Self::Warrant,
2714 "MF" => Self::MutualFund,
2715 "MLEG" => Self::MultilegInstrument,
2716 "NONE" => Self::NoSecurityType,
2717 "FUT" => Self::Future,
2718 "OPT" => Self::Option,
2719 unrecognized => Self::Unrecognized(unrecognized),
2720 }
2721 }
2722
2723 pub fn value(self) -> &'a str {
2724 match self {
2725 Self::EuroSupranationalCoupons => "EUSUPRA",
2726 Self::FederalAgencyCoupon => "FAC",
2727 Self::FederalAgencyDiscountNote => "FADN",
2728 Self::PrivateExportFunding => "PEF",
2729 Self::UsdSupranationalCoupons => "SUPRA",
2730 Self::CorporateBond => "CORP",
2731 Self::CorporatePrivatePlacement => "CPP",
2732 Self::ConvertibleBond => "CB",
2733 Self::DualCurrency => "DUAL",
2734 Self::EuroCorporateBond => "EUCORP",
2735 Self::IndexedLinked => "XLINKD",
2736 Self::StructuredNotes => "STRUCT",
2737 Self::YankeeCorporateBond => "YANK",
2738 Self::ForeignExchangeContract => "FOR",
2739 Self::CommonStock => "CS",
2740 Self::PreferredStock => "PS",
2741 Self::BradyBond => "BRADY",
2742 Self::EuroSovereigns => "EUSOV",
2743 Self::UsTreasuryBond => "TBOND",
2744 Self::InterestStripFromAnyBondOrNote => "TINT",
2745 Self::TreasuryInflationProtectedSecurities => "TIPS",
2746 Self::PrincipalStripOfACallableBondOrNote => "TCAL",
2747 Self::PrincipalStripFromANonCallableBondOrNote => "TPRN",
2748 Self::UsTreasuryNoteOld => "UST",
2749 Self::UsTreasuryBillOld => "USTB",
2750 Self::UsTreasuryNote => "TNOTE",
2751 Self::UsTreasuryBill => "TBILL",
2752 Self::Repurchase => "REPO",
2753 Self::Forward => "FORWARD",
2754 Self::BuySellback => "BUYSELL",
2755 Self::SecuritiesLoan => "SECLOAN",
2756 Self::SecuritiesPledge => "SECPLEDGE",
2757 Self::TermLoan => "TERM",
2758 Self::RevolverLoan => "RVLV",
2759 Self::Revolver => "RVLVTRM",
2760 Self::BridgeLoan => "BRIDGE",
2761 Self::LetterOfCredit => "LOFC",
2762 Self::SwingLineFacility => "SWING",
2763 Self::DebtorInPossession => "DINP",
2764 Self::Defaulted => "DEFLTED",
2765 Self::Withdrawn => "WITHDRN",
2766 Self::Replaced => "REPLACD",
2767 Self::Matured => "MATURED",
2768 Self::Amended => "AMENDED",
2769 Self::Retired => "RETIRED",
2770 Self::BankersAcceptance => "BA",
2771 Self::BankNotes => "BN",
2772 Self::BillOfExchanges => "BOX",
2773 Self::CertificateOfDeposit => "CD",
2774 Self::CallLoans => "CL",
2775 Self::CommercialPaper => "CP",
2776 Self::DepositNotes => "DN",
2777 Self::EuroCertificateOfDeposit => "EUCD",
2778 Self::EuroCommercialPaper => "EUCP",
2779 Self::LiquidityNote => "LQN",
2780 Self::MediumTermNotes => "MTN",
2781 Self::Overnight => "ONITE",
2782 Self::PromissoryNote => "PN",
2783 Self::PlazosFijos => "PZFJ",
2784 Self::ShortTermLoanNote => "STN",
2785 Self::TimeDeposit => "TD",
2786 Self::ExtendedCommNote => "XCN",
2787 Self::YankeeCertificateOfDeposit => "YCD",
2788 Self::AssetBackedSecurities => "ABS",
2789 Self::Corp => "CMBS",
2790 Self::CollateralizedMortgageObligation => "CMO",
2791 Self::IoetteMortgage => "IET",
2792 Self::MortgageBackedSecurities => "MBS",
2793 Self::MortgageInterestOnly => "MIO",
2794 Self::MortgagePrincipalOnly => "MPO",
2795 Self::MortgagePrivatePlacement => "MPP",
2796 Self::MiscellaneousPassThrough => "MPT",
2797 Self::Pfandbriefe => "PFAND",
2798 Self::ToBeAnnounced => "TBA",
2799 Self::OtherAnticipationNotes => "AN",
2800 Self::CertificateOfObligation => "COFO",
2801 Self::CertificateOfParticipation => "COFP",
2802 Self::GeneralObligationBonds => "GO",
2803 Self::MandatoryTender => "MT",
2804 Self::RevenueAnticipationNote => "RAN",
2805 Self::RevenueBonds => "REV",
2806 Self::SpecialAssessment => "SPCLA",
2807 Self::SpecialObligation => "SPCLO",
2808 Self::SpecialTax => "SPCLT",
2809 Self::TaxAnticipationNote => "TAN",
2810 Self::TaxAllocation => "TAXA",
2811 Self::TaxExemptCommercialPaper => "TECP",
2812 Self::TaxRevenueAnticipationNote => "TRAN",
2813 Self::VariableRateDemandNote => "VRDN",
2814 Self::Warrant => "WAR",
2815 Self::MutualFund => "MF",
2816 Self::MultilegInstrument => "MLEG",
2817 Self::NoSecurityType => "NONE",
2818 Self::Future => "FUT",
2819 Self::Option => "OPT",
2820 Self::Unrecognized(value) => value,
2821 }
2822 }
2823}
2824
2825impl<'a> From<&'a str> for SecurityType<'a> {
2826 fn from(value: &'a str) -> Self {
2827 Self::from_value(value)
2828 }
2829}
2830
2831#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
2833pub enum StandInstDbType {
2834 Other,
2836 Dtcsid,
2838 ThomsonAlert,
2840 AGlobalCustodian,
2842 AccountNet,
2844 Unrecognized(i64),
2846}
2847
2848impl StandInstDbType {
2849 pub fn from_value(value: i64) -> Self {
2850 match value {
2851 0 => Self::Other,
2852 1 => Self::Dtcsid,
2853 2 => Self::ThomsonAlert,
2854 3 => Self::AGlobalCustodian,
2855 4 => Self::AccountNet,
2856 unrecognized => Self::Unrecognized(unrecognized),
2857 }
2858 }
2859
2860 pub fn value(self) -> i64 {
2861 match self {
2862 Self::Other => 0,
2863 Self::Dtcsid => 1,
2864 Self::ThomsonAlert => 2,
2865 Self::AGlobalCustodian => 3,
2866 Self::AccountNet => 4,
2867 Self::Unrecognized(value) => value,
2868 }
2869 }
2870}
2871
2872#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
2874pub enum SettlDeliveryType {
2875 Versus,
2877 Free,
2879 TriParty,
2881 HoldInCustody,
2883 Unrecognized(i64),
2885}
2886
2887impl SettlDeliveryType {
2888 pub fn from_value(value: i64) -> Self {
2889 match value {
2890 0 => Self::Versus,
2891 1 => Self::Free,
2892 2 => Self::TriParty,
2893 3 => Self::HoldInCustody,
2894 unrecognized => Self::Unrecognized(unrecognized),
2895 }
2896 }
2897
2898 pub fn value(self) -> i64 {
2899 match self {
2900 Self::Versus => 0,
2901 Self::Free => 1,
2902 Self::TriParty => 2,
2903 Self::HoldInCustody => 3,
2904 Self::Unrecognized(value) => value,
2905 }
2906 }
2907}
2908
2909#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
2911pub enum AllocLinkType {
2912 FxNetting,
2914 FxSwap,
2916 Unrecognized(i64),
2918}
2919
2920impl AllocLinkType {
2921 pub fn from_value(value: i64) -> Self {
2922 match value {
2923 0 => Self::FxNetting,
2924 1 => Self::FxSwap,
2925 unrecognized => Self::Unrecognized(unrecognized),
2926 }
2927 }
2928
2929 pub fn value(self) -> i64 {
2930 match self {
2931 Self::FxNetting => 0,
2932 Self::FxSwap => 1,
2933 Self::Unrecognized(value) => value,
2934 }
2935 }
2936}
2937
2938#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
2940pub enum PutOrCall {
2941 Put,
2943 Call,
2945 Unrecognized(i64),
2947}
2948
2949impl PutOrCall {
2950 pub fn from_value(value: i64) -> Self {
2951 match value {
2952 0 => Self::Put,
2953 1 => Self::Call,
2954 unrecognized => Self::Unrecognized(unrecognized),
2955 }
2956 }
2957
2958 pub fn value(self) -> i64 {
2959 match self {
2960 Self::Put => 0,
2961 Self::Call => 1,
2962 Self::Unrecognized(value) => value,
2963 }
2964 }
2965}
2966
2967#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
2969pub enum CoveredOrUncovered {
2970 Covered,
2972 Uncovered,
2974 Unrecognized(i64),
2976}
2977
2978impl CoveredOrUncovered {
2979 pub fn from_value(value: i64) -> Self {
2980 match value {
2981 0 => Self::Covered,
2982 1 => Self::Uncovered,
2983 unrecognized => Self::Unrecognized(unrecognized),
2984 }
2985 }
2986
2987 pub fn value(self) -> i64 {
2988 match self {
2989 Self::Covered => 0,
2990 Self::Uncovered => 1,
2991 Self::Unrecognized(value) => value,
2992 }
2993 }
2994}
2995
2996#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
2998pub enum AllocHandlInst {
2999 Match,
3001 Forward,
3003 ForwardAndMatch,
3005 Unrecognized(i64),
3007}
3008
3009impl AllocHandlInst {
3010 pub fn from_value(value: i64) -> Self {
3011 match value {
3012 1 => Self::Match,
3013 2 => Self::Forward,
3014 3 => Self::ForwardAndMatch,
3015 unrecognized => Self::Unrecognized(unrecognized),
3016 }
3017 }
3018
3019 pub fn value(self) -> i64 {
3020 match self {
3021 Self::Match => 1,
3022 Self::Forward => 2,
3023 Self::ForwardAndMatch => 3,
3024 Self::Unrecognized(value) => value,
3025 }
3026 }
3027}
3028
3029#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
3031pub enum RoutingType {
3032 TargetFirm,
3034 TargetList,
3036 BlockFirm,
3038 BlockList,
3040 Unrecognized(i64),
3042}
3043
3044impl RoutingType {
3045 pub fn from_value(value: i64) -> Self {
3046 match value {
3047 1 => Self::TargetFirm,
3048 2 => Self::TargetList,
3049 3 => Self::BlockFirm,
3050 4 => Self::BlockList,
3051 unrecognized => Self::Unrecognized(unrecognized),
3052 }
3053 }
3054
3055 pub fn value(self) -> i64 {
3056 match self {
3057 Self::TargetFirm => 1,
3058 Self::TargetList => 2,
3059 Self::BlockFirm => 3,
3060 Self::BlockList => 4,
3061 Self::Unrecognized(value) => value,
3062 }
3063 }
3064}
3065
3066#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
3068pub enum StipulationType<'a> {
3069 AlternativeMinimumTax,
3071 AutoReinvestment,
3073 BankQualified,
3075 BargainConditions,
3077 CouponRange,
3079 IsoCurrencyCode,
3081 CustomStart,
3083 Geographics,
3085 ValuationDiscount,
3087 Insured,
3089 IssueDate,
3091 Issuer,
3093 IssueSizeRange,
3095 LookbackDays,
3097 ExplicitLotIdentifier,
3099 LotVariance,
3101 MaturityYearAndMonth,
3103 MaturityRange,
3105 MaximumSubstitutions,
3107 MinimumQuantity,
3109 MinimumIncrement,
3111 MinimumDenomination,
3113 PaymentFrequency,
3115 NumberOfPieces,
3117 PoolsMaximum,
3119 PoolsPerMillion,
3121 PoolsPerLot,
3123 PoolsPerTrade,
3125 PriceRange,
3127 PricingFrequency,
3129 ProductionYear,
3131 CallProtection,
3133 Purpose,
3135 BenchmarkPriceSource,
3137 RatingSourceAndRange,
3139 TypeOfRedemption,
3141 Restricted,
3143 MarketSector,
3145 SecurityTypeIncludedOrExcluded,
3147 Structure,
3149 SubstitutionsFrequency,
3151 SubstitutionsLeft,
3153 FreeformText,
3155 TradeVariance,
3157 WeightedAverageCoupon,
3159 WeightedAverageLifeCoupon,
3161 WeightedAverageLoanAge,
3163 WeightedAverageMaturity,
3165 WholePool,
3167 YieldRange,
3169 Unrecognized(&'a str),
3171}
3172
3173impl<'a> StipulationType<'a> {
3174 pub fn from_value(value: &'a str) -> Self {
3175 match value {
3176 "AMT" => Self::AlternativeMinimumTax,
3177 "AUTOREINV" => Self::AutoReinvestment,
3178 "BANKQUAL" => Self::BankQualified,
3179 "BGNCON" => Self::BargainConditions,
3180 "COUPON" => Self::CouponRange,
3181 "CURRENCY" => Self::IsoCurrencyCode,
3182 "CUSTOMDATE" => Self::CustomStart,
3183 "GEOG" => Self::Geographics,
3184 "HAIRCUT" => Self::ValuationDiscount,
3185 "INSURED" => Self::Insured,
3186 "ISSUE" => Self::IssueDate,
3187 "ISSUER" => Self::Issuer,
3188 "ISSUESIZE" => Self::IssueSizeRange,
3189 "LOOKBACK" => Self::LookbackDays,
3190 "LOT" => Self::ExplicitLotIdentifier,
3191 "LOTVAR" => Self::LotVariance,
3192 "MAT" => Self::MaturityYearAndMonth,
3193 "MATURITY" => Self::MaturityRange,
3194 "MAXSUBS" => Self::MaximumSubstitutions,
3195 "MINQTY" => Self::MinimumQuantity,
3196 "MININCR" => Self::MinimumIncrement,
3197 "MINDNOM" => Self::MinimumDenomination,
3198 "PAYFREQ" => Self::PaymentFrequency,
3199 "PIECES" => Self::NumberOfPieces,
3200 "PMAX" => Self::PoolsMaximum,
3201 "PPM" => Self::PoolsPerMillion,
3202 "PPL" => Self::PoolsPerLot,
3203 "PPT" => Self::PoolsPerTrade,
3204 "PRICE" => Self::PriceRange,
3205 "PRICEFREQ" => Self::PricingFrequency,
3206 "PROD" => Self::ProductionYear,
3207 "PROTECT" => Self::CallProtection,
3208 "PURPOSE" => Self::Purpose,
3209 "PXSOURCE" => Self::BenchmarkPriceSource,
3210 "RATING" => Self::RatingSourceAndRange,
3211 "REDEMPTION" => Self::TypeOfRedemption,
3212 "RESTRICTED" => Self::Restricted,
3213 "SECTOR" => Self::MarketSector,
3214 "SECTYPE" => Self::SecurityTypeIncludedOrExcluded,
3215 "STRUCT" => Self::Structure,
3216 "SUBSFREQ" => Self::SubstitutionsFrequency,
3217 "SUBSLEFT" => Self::SubstitutionsLeft,
3218 "TEXT" => Self::FreeformText,
3219 "TRDVAR" => Self::TradeVariance,
3220 "WAC" => Self::WeightedAverageCoupon,
3221 "WAL" => Self::WeightedAverageLifeCoupon,
3222 "WALA" => Self::WeightedAverageLoanAge,
3223 "WAM" => Self::WeightedAverageMaturity,
3224 "WHOLE" => Self::WholePool,
3225 "YIELD" => Self::YieldRange,
3226 unrecognized => Self::Unrecognized(unrecognized),
3227 }
3228 }
3229
3230 pub fn value(self) -> &'a str {
3231 match self {
3232 Self::AlternativeMinimumTax => "AMT",
3233 Self::AutoReinvestment => "AUTOREINV",
3234 Self::BankQualified => "BANKQUAL",
3235 Self::BargainConditions => "BGNCON",
3236 Self::CouponRange => "COUPON",
3237 Self::IsoCurrencyCode => "CURRENCY",
3238 Self::CustomStart => "CUSTOMDATE",
3239 Self::Geographics => "GEOG",
3240 Self::ValuationDiscount => "HAIRCUT",
3241 Self::Insured => "INSURED",
3242 Self::IssueDate => "ISSUE",
3243 Self::Issuer => "ISSUER",
3244 Self::IssueSizeRange => "ISSUESIZE",
3245 Self::LookbackDays => "LOOKBACK",
3246 Self::ExplicitLotIdentifier => "LOT",
3247 Self::LotVariance => "LOTVAR",
3248 Self::MaturityYearAndMonth => "MAT",
3249 Self::MaturityRange => "MATURITY",
3250 Self::MaximumSubstitutions => "MAXSUBS",
3251 Self::MinimumQuantity => "MINQTY",
3252 Self::MinimumIncrement => "MININCR",
3253 Self::MinimumDenomination => "MINDNOM",
3254 Self::PaymentFrequency => "PAYFREQ",
3255 Self::NumberOfPieces => "PIECES",
3256 Self::PoolsMaximum => "PMAX",
3257 Self::PoolsPerMillion => "PPM",
3258 Self::PoolsPerLot => "PPL",
3259 Self::PoolsPerTrade => "PPT",
3260 Self::PriceRange => "PRICE",
3261 Self::PricingFrequency => "PRICEFREQ",
3262 Self::ProductionYear => "PROD",
3263 Self::CallProtection => "PROTECT",
3264 Self::Purpose => "PURPOSE",
3265 Self::BenchmarkPriceSource => "PXSOURCE",
3266 Self::RatingSourceAndRange => "RATING",
3267 Self::TypeOfRedemption => "REDEMPTION",
3268 Self::Restricted => "RESTRICTED",
3269 Self::MarketSector => "SECTOR",
3270 Self::SecurityTypeIncludedOrExcluded => "SECTYPE",
3271 Self::Structure => "STRUCT",
3272 Self::SubstitutionsFrequency => "SUBSFREQ",
3273 Self::SubstitutionsLeft => "SUBSLEFT",
3274 Self::FreeformText => "TEXT",
3275 Self::TradeVariance => "TRDVAR",
3276 Self::WeightedAverageCoupon => "WAC",
3277 Self::WeightedAverageLifeCoupon => "WAL",
3278 Self::WeightedAverageLoanAge => "WALA",
3279 Self::WeightedAverageMaturity => "WAM",
3280 Self::WholePool => "WHOLE",
3281 Self::YieldRange => "YIELD",
3282 Self::Unrecognized(value) => value,
3283 }
3284 }
3285}
3286
3287impl<'a> From<&'a str> for StipulationType<'a> {
3288 fn from(value: &'a str) -> Self {
3289 Self::from_value(value)
3290 }
3291}
3292
3293#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
3295pub enum YieldType<'a> {
3296 AfterTaxYield,
3298 AnnualYield,
3300 YieldAtIssue,
3302 YieldToAverageMaturity,
3304 BookYield,
3306 YieldToNextCall,
3308 YieldChangeSinceClose,
3310 ClosingYield,
3312 CompoundYield,
3314 CurrentYield,
3316 TrueGrossYield,
3318 GvntEquivalentYield,
3320 YieldWithInflationAssumption,
3322 InverseFloaterBondYield,
3324 MostRecentClosingYield,
3326 ClosingYieldMostRecentMonth,
3328 ClosingYieldMostRecentQuarter,
3330 ClosingYieldMostRecentYear,
3332 YieldToLongestAverageLife,
3334 MarkToMarketYield,
3336 YieldToMaturity,
3338 YieldToNextRefund,
3340 OpenAverageYield,
3342 YieldToNextPut,
3344 PreviousCloseYield,
3346 ProceedsYield,
3348 SemiAnnualYield,
3350 YieldToShortestAverageLife,
3352 SimpleYield,
3354 TaxEquivalentYield,
3356 YieldToTenderDate,
3358 TrueYield,
3360 YieldValueOf132,
3362 YieldToWorst,
3364 Unrecognized(&'a str),
3366}
3367
3368impl<'a> YieldType<'a> {
3369 pub fn from_value(value: &'a str) -> Self {
3370 match value {
3371 "AFTERTAX" => Self::AfterTaxYield,
3372 "ANNUAL" => Self::AnnualYield,
3373 "ATISSUE" => Self::YieldAtIssue,
3374 "AVGMATURITY" => Self::YieldToAverageMaturity,
3375 "BOOK" => Self::BookYield,
3376 "CALL" => Self::YieldToNextCall,
3377 "CHANGE" => Self::YieldChangeSinceClose,
3378 "CLOSE" => Self::ClosingYield,
3379 "COMPOUND" => Self::CompoundYield,
3380 "CURRENT" => Self::CurrentYield,
3381 "GROSS" => Self::TrueGrossYield,
3382 "GOVTEQUIV" => Self::GvntEquivalentYield,
3383 "INFLATION" => Self::YieldWithInflationAssumption,
3384 "INVERSEFLOATER" => Self::InverseFloaterBondYield,
3385 "LASTCLOSE" => Self::MostRecentClosingYield,
3386 "LASTMONTH" => Self::ClosingYieldMostRecentMonth,
3387 "LASTQUARTER" => Self::ClosingYieldMostRecentQuarter,
3388 "LASTYEAR" => Self::ClosingYieldMostRecentYear,
3389 "LONGAVGLIFE" => Self::YieldToLongestAverageLife,
3390 "MARK" => Self::MarkToMarketYield,
3391 "MATURITY" => Self::YieldToMaturity,
3392 "NEXTREFUND" => Self::YieldToNextRefund,
3393 "OPENAVG" => Self::OpenAverageYield,
3394 "PUT" => Self::YieldToNextPut,
3395 "PREVCLOSE" => Self::PreviousCloseYield,
3396 "PROCEEDS" => Self::ProceedsYield,
3397 "SEMIANNUAL" => Self::SemiAnnualYield,
3398 "SHORTAVGLIFE" => Self::YieldToShortestAverageLife,
3399 "SIMPLE" => Self::SimpleYield,
3400 "TAXEQUIV" => Self::TaxEquivalentYield,
3401 "TENDER" => Self::YieldToTenderDate,
3402 "TRUE" => Self::TrueYield,
3403 "VALUE1/32" => Self::YieldValueOf132,
3404 "WORST" => Self::YieldToWorst,
3405 unrecognized => Self::Unrecognized(unrecognized),
3406 }
3407 }
3408
3409 pub fn value(self) -> &'a str {
3410 match self {
3411 Self::AfterTaxYield => "AFTERTAX",
3412 Self::AnnualYield => "ANNUAL",
3413 Self::YieldAtIssue => "ATISSUE",
3414 Self::YieldToAverageMaturity => "AVGMATURITY",
3415 Self::BookYield => "BOOK",
3416 Self::YieldToNextCall => "CALL",
3417 Self::YieldChangeSinceClose => "CHANGE",
3418 Self::ClosingYield => "CLOSE",
3419 Self::CompoundYield => "COMPOUND",
3420 Self::CurrentYield => "CURRENT",
3421 Self::TrueGrossYield => "GROSS",
3422 Self::GvntEquivalentYield => "GOVTEQUIV",
3423 Self::YieldWithInflationAssumption => "INFLATION",
3424 Self::InverseFloaterBondYield => "INVERSEFLOATER",
3425 Self::MostRecentClosingYield => "LASTCLOSE",
3426 Self::ClosingYieldMostRecentMonth => "LASTMONTH",
3427 Self::ClosingYieldMostRecentQuarter => "LASTQUARTER",
3428 Self::ClosingYieldMostRecentYear => "LASTYEAR",
3429 Self::YieldToLongestAverageLife => "LONGAVGLIFE",
3430 Self::MarkToMarketYield => "MARK",
3431 Self::YieldToMaturity => "MATURITY",
3432 Self::YieldToNextRefund => "NEXTREFUND",
3433 Self::OpenAverageYield => "OPENAVG",
3434 Self::YieldToNextPut => "PUT",
3435 Self::PreviousCloseYield => "PREVCLOSE",
3436 Self::ProceedsYield => "PROCEEDS",
3437 Self::SemiAnnualYield => "SEMIANNUAL",
3438 Self::YieldToShortestAverageLife => "SHORTAVGLIFE",
3439 Self::SimpleYield => "SIMPLE",
3440 Self::TaxEquivalentYield => "TAXEQUIV",
3441 Self::YieldToTenderDate => "TENDER",
3442 Self::TrueYield => "TRUE",
3443 Self::YieldValueOf132 => "VALUE1/32",
3444 Self::YieldToWorst => "WORST",
3445 Self::Unrecognized(value) => value,
3446 }
3447 }
3448}
3449
3450impl<'a> From<&'a str> for YieldType<'a> {
3451 fn from(value: &'a str) -> Self {
3452 Self::from_value(value)
3453 }
3454}
3455
3456#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
3458pub enum SubscriptionRequestType<'a> {
3459 Snapshot,
3461 SnapshotAndUpdates,
3463 DisablePreviousSnapshot,
3465 Unrecognized(&'a str),
3467}
3468
3469impl<'a> SubscriptionRequestType<'a> {
3470 pub fn from_value(value: &'a str) -> Self {
3471 match value {
3472 "0" => Self::Snapshot,
3473 "1" => Self::SnapshotAndUpdates,
3474 "2" => Self::DisablePreviousSnapshot,
3475 unrecognized => Self::Unrecognized(unrecognized),
3476 }
3477 }
3478
3479 pub fn value(self) -> &'a str {
3480 match self {
3481 Self::Snapshot => "0",
3482 Self::SnapshotAndUpdates => "1",
3483 Self::DisablePreviousSnapshot => "2",
3484 Self::Unrecognized(value) => value,
3485 }
3486 }
3487}
3488
3489impl<'a> From<&'a str> for SubscriptionRequestType<'a> {
3490 fn from(value: &'a str) -> Self {
3491 Self::from_value(value)
3492 }
3493}
3494
3495#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
3497pub enum MDUpdateType {
3498 FullRefresh,
3500 IncrementalRefresh,
3502 Unrecognized(i64),
3504}
3505
3506impl MDUpdateType {
3507 pub fn from_value(value: i64) -> Self {
3508 match value {
3509 0 => Self::FullRefresh,
3510 1 => Self::IncrementalRefresh,
3511 unrecognized => Self::Unrecognized(unrecognized),
3512 }
3513 }
3514
3515 pub fn value(self) -> i64 {
3516 match self {
3517 Self::FullRefresh => 0,
3518 Self::IncrementalRefresh => 1,
3519 Self::Unrecognized(value) => value,
3520 }
3521 }
3522}
3523
3524#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
3526pub enum MDEntryType<'a> {
3527 Bid,
3529 Offer,
3531 Trade,
3533 IndexValue,
3535 OpeningPrice,
3537 ClosingPrice,
3539 SettlementPrice,
3541 TradingSessionHighPrice,
3543 TradingSessionLowPrice,
3545 TradingSessionVwapPrice,
3547 Imbalance,
3549 TradeVolume,
3551 OpenInterest,
3553 Unrecognized(&'a str),
3555}
3556
3557impl<'a> MDEntryType<'a> {
3558 pub fn from_value(value: &'a str) -> Self {
3559 match value {
3560 "0" => Self::Bid,
3561 "1" => Self::Offer,
3562 "2" => Self::Trade,
3563 "3" => Self::IndexValue,
3564 "4" => Self::OpeningPrice,
3565 "5" => Self::ClosingPrice,
3566 "6" => Self::SettlementPrice,
3567 "7" => Self::TradingSessionHighPrice,
3568 "8" => Self::TradingSessionLowPrice,
3569 "9" => Self::TradingSessionVwapPrice,
3570 "A" => Self::Imbalance,
3571 "B" => Self::TradeVolume,
3572 "C" => Self::OpenInterest,
3573 unrecognized => Self::Unrecognized(unrecognized),
3574 }
3575 }
3576
3577 pub fn value(self) -> &'a str {
3578 match self {
3579 Self::Bid => "0",
3580 Self::Offer => "1",
3581 Self::Trade => "2",
3582 Self::IndexValue => "3",
3583 Self::OpeningPrice => "4",
3584 Self::ClosingPrice => "5",
3585 Self::SettlementPrice => "6",
3586 Self::TradingSessionHighPrice => "7",
3587 Self::TradingSessionLowPrice => "8",
3588 Self::TradingSessionVwapPrice => "9",
3589 Self::Imbalance => "A",
3590 Self::TradeVolume => "B",
3591 Self::OpenInterest => "C",
3592 Self::Unrecognized(value) => value,
3593 }
3594 }
3595}
3596
3597impl<'a> From<&'a str> for MDEntryType<'a> {
3598 fn from(value: &'a str) -> Self {
3599 Self::from_value(value)
3600 }
3601}
3602
3603#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
3605pub enum TickDirection<'a> {
3606 PlusTick,
3608 ZeroPlusTick,
3610 MinusTick,
3612 ZeroMinusTick,
3614 Unrecognized(&'a str),
3616}
3617
3618impl<'a> TickDirection<'a> {
3619 pub fn from_value(value: &'a str) -> Self {
3620 match value {
3621 "0" => Self::PlusTick,
3622 "1" => Self::ZeroPlusTick,
3623 "2" => Self::MinusTick,
3624 "3" => Self::ZeroMinusTick,
3625 unrecognized => Self::Unrecognized(unrecognized),
3626 }
3627 }
3628
3629 pub fn value(self) -> &'a str {
3630 match self {
3631 Self::PlusTick => "0",
3632 Self::ZeroPlusTick => "1",
3633 Self::MinusTick => "2",
3634 Self::ZeroMinusTick => "3",
3635 Self::Unrecognized(value) => value,
3636 }
3637 }
3638}
3639
3640impl<'a> From<&'a str> for TickDirection<'a> {
3641 fn from(value: &'a str) -> Self {
3642 Self::from_value(value)
3643 }
3644}
3645
3646#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
3648pub enum QuoteCondition<'a> {
3649 Open,
3651 Closed,
3653 ExchangeBest,
3655 ConsolidatedBest,
3657 Locked,
3659 Crossed,
3661 Depth,
3663 FastTrading,
3665 NonFirm,
3667 Unrecognized(&'a str),
3669}
3670
3671impl<'a> QuoteCondition<'a> {
3672 pub fn from_value(value: &'a str) -> Self {
3673 match value {
3674 "A" => Self::Open,
3675 "B" => Self::Closed,
3676 "C" => Self::ExchangeBest,
3677 "D" => Self::ConsolidatedBest,
3678 "E" => Self::Locked,
3679 "F" => Self::Crossed,
3680 "G" => Self::Depth,
3681 "H" => Self::FastTrading,
3682 "I" => Self::NonFirm,
3683 unrecognized => Self::Unrecognized(unrecognized),
3684 }
3685 }
3686
3687 pub fn value(self) -> &'a str {
3688 match self {
3689 Self::Open => "A",
3690 Self::Closed => "B",
3691 Self::ExchangeBest => "C",
3692 Self::ConsolidatedBest => "D",
3693 Self::Locked => "E",
3694 Self::Crossed => "F",
3695 Self::Depth => "G",
3696 Self::FastTrading => "H",
3697 Self::NonFirm => "I",
3698 Self::Unrecognized(value) => value,
3699 }
3700 }
3701}
3702
3703impl<'a> From<&'a str> for QuoteCondition<'a> {
3704 fn from(value: &'a str) -> Self {
3705 Self::from_value(value)
3706 }
3707}
3708
3709#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
3711pub enum TradeCondition<'a> {
3712 Cash,
3714 AveragePriceTrade,
3716 CashTrade,
3718 NextDay,
3720 Opening,
3722 IntradayTradeDetail,
3724 Rule127Trade,
3726 Rule155Trade,
3728 SoldLast,
3730 NextDayTrade,
3732 Opened,
3734 Seller,
3736 Sold,
3738 StoppedStock,
3740 ImbalanceMoreBuyers,
3742 ImbalanceMoreSellers,
3744 OpeningPrice,
3746 Unrecognized(&'a str),
3748}
3749
3750impl<'a> TradeCondition<'a> {
3751 pub fn from_value(value: &'a str) -> Self {
3752 match value {
3753 "A" => Self::Cash,
3754 "B" => Self::AveragePriceTrade,
3755 "C" => Self::CashTrade,
3756 "D" => Self::NextDay,
3757 "E" => Self::Opening,
3758 "F" => Self::IntradayTradeDetail,
3759 "G" => Self::Rule127Trade,
3760 "H" => Self::Rule155Trade,
3761 "I" => Self::SoldLast,
3762 "J" => Self::NextDayTrade,
3763 "K" => Self::Opened,
3764 "L" => Self::Seller,
3765 "M" => Self::Sold,
3766 "N" => Self::StoppedStock,
3767 "P" => Self::ImbalanceMoreBuyers,
3768 "Q" => Self::ImbalanceMoreSellers,
3769 "R" => Self::OpeningPrice,
3770 unrecognized => Self::Unrecognized(unrecognized),
3771 }
3772 }
3773
3774 pub fn value(self) -> &'a str {
3775 match self {
3776 Self::Cash => "A",
3777 Self::AveragePriceTrade => "B",
3778 Self::CashTrade => "C",
3779 Self::NextDay => "D",
3780 Self::Opening => "E",
3781 Self::IntradayTradeDetail => "F",
3782 Self::Rule127Trade => "G",
3783 Self::Rule155Trade => "H",
3784 Self::SoldLast => "I",
3785 Self::NextDayTrade => "J",
3786 Self::Opened => "K",
3787 Self::Seller => "L",
3788 Self::Sold => "M",
3789 Self::StoppedStock => "N",
3790 Self::ImbalanceMoreBuyers => "P",
3791 Self::ImbalanceMoreSellers => "Q",
3792 Self::OpeningPrice => "R",
3793 Self::Unrecognized(value) => value,
3794 }
3795 }
3796}
3797
3798impl<'a> From<&'a str> for TradeCondition<'a> {
3799 fn from(value: &'a str) -> Self {
3800 Self::from_value(value)
3801 }
3802}
3803
3804#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
3806pub enum MDUpdateAction<'a> {
3807 New,
3809 Change,
3811 Delete,
3813 Unrecognized(&'a str),
3815}
3816
3817impl<'a> MDUpdateAction<'a> {
3818 pub fn from_value(value: &'a str) -> Self {
3819 match value {
3820 "0" => Self::New,
3821 "1" => Self::Change,
3822 "2" => Self::Delete,
3823 unrecognized => Self::Unrecognized(unrecognized),
3824 }
3825 }
3826
3827 pub fn value(self) -> &'a str {
3828 match self {
3829 Self::New => "0",
3830 Self::Change => "1",
3831 Self::Delete => "2",
3832 Self::Unrecognized(value) => value,
3833 }
3834 }
3835}
3836
3837impl<'a> From<&'a str> for MDUpdateAction<'a> {
3838 fn from(value: &'a str) -> Self {
3839 Self::from_value(value)
3840 }
3841}
3842
3843#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
3845pub enum MDReqRejReason<'a> {
3846 UnknownSymbol,
3848 DuplicateMdReqId,
3850 InsufficientBandwidth,
3852 InsufficientPermissions,
3854 UnsupportedSubscriptionRequestType,
3856 UnsupportedMarketDepth,
3858 UnsupportedMdUpdateType,
3860 UnsupportedAggregatedBook,
3862 UnsupportedMdEntryType,
3864 UnsupportedTradingSessionId,
3866 UnsupportedScope,
3868 UnsupportedOpenCloseSettleFlag,
3870 UnsupportedMdImplicitDelete,
3872 Unrecognized(&'a str),
3874}
3875
3876impl<'a> MDReqRejReason<'a> {
3877 pub fn from_value(value: &'a str) -> Self {
3878 match value {
3879 "0" => Self::UnknownSymbol,
3880 "1" => Self::DuplicateMdReqId,
3881 "2" => Self::InsufficientBandwidth,
3882 "3" => Self::InsufficientPermissions,
3883 "4" => Self::UnsupportedSubscriptionRequestType,
3884 "5" => Self::UnsupportedMarketDepth,
3885 "6" => Self::UnsupportedMdUpdateType,
3886 "7" => Self::UnsupportedAggregatedBook,
3887 "8" => Self::UnsupportedMdEntryType,
3888 "9" => Self::UnsupportedTradingSessionId,
3889 "A" => Self::UnsupportedScope,
3890 "B" => Self::UnsupportedOpenCloseSettleFlag,
3891 "C" => Self::UnsupportedMdImplicitDelete,
3892 unrecognized => Self::Unrecognized(unrecognized),
3893 }
3894 }
3895
3896 pub fn value(self) -> &'a str {
3897 match self {
3898 Self::UnknownSymbol => "0",
3899 Self::DuplicateMdReqId => "1",
3900 Self::InsufficientBandwidth => "2",
3901 Self::InsufficientPermissions => "3",
3902 Self::UnsupportedSubscriptionRequestType => "4",
3903 Self::UnsupportedMarketDepth => "5",
3904 Self::UnsupportedMdUpdateType => "6",
3905 Self::UnsupportedAggregatedBook => "7",
3906 Self::UnsupportedMdEntryType => "8",
3907 Self::UnsupportedTradingSessionId => "9",
3908 Self::UnsupportedScope => "A",
3909 Self::UnsupportedOpenCloseSettleFlag => "B",
3910 Self::UnsupportedMdImplicitDelete => "C",
3911 Self::Unrecognized(value) => value,
3912 }
3913 }
3914}
3915
3916impl<'a> From<&'a str> for MDReqRejReason<'a> {
3917 fn from(value: &'a str) -> Self {
3918 Self::from_value(value)
3919 }
3920}
3921
3922#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
3924pub enum DeleteReason<'a> {
3925 Cancellation,
3927 Error,
3929 Unrecognized(&'a str),
3931}
3932
3933impl<'a> DeleteReason<'a> {
3934 pub fn from_value(value: &'a str) -> Self {
3935 match value {
3936 "0" => Self::Cancellation,
3937 "1" => Self::Error,
3938 unrecognized => Self::Unrecognized(unrecognized),
3939 }
3940 }
3941
3942 pub fn value(self) -> &'a str {
3943 match self {
3944 Self::Cancellation => "0",
3945 Self::Error => "1",
3946 Self::Unrecognized(value) => value,
3947 }
3948 }
3949}
3950
3951impl<'a> From<&'a str> for DeleteReason<'a> {
3952 fn from(value: &'a str) -> Self {
3953 Self::from_value(value)
3954 }
3955}
3956
3957#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
3959pub enum OpenCloseSettlFlag<'a> {
3960 DailyOpen,
3962 SessionOpen,
3964 DeliverySettlementEntry,
3966 ExpectedEntry,
3968 EntryFromPreviousBusinessDay,
3970 TheoreticalPriceValue,
3972 Unrecognized(&'a str),
3974}
3975
3976impl<'a> OpenCloseSettlFlag<'a> {
3977 pub fn from_value(value: &'a str) -> Self {
3978 match value {
3979 "0" => Self::DailyOpen,
3980 "1" => Self::SessionOpen,
3981 "2" => Self::DeliverySettlementEntry,
3982 "3" => Self::ExpectedEntry,
3983 "4" => Self::EntryFromPreviousBusinessDay,
3984 "5" => Self::TheoreticalPriceValue,
3985 unrecognized => Self::Unrecognized(unrecognized),
3986 }
3987 }
3988
3989 pub fn value(self) -> &'a str {
3990 match self {
3991 Self::DailyOpen => "0",
3992 Self::SessionOpen => "1",
3993 Self::DeliverySettlementEntry => "2",
3994 Self::ExpectedEntry => "3",
3995 Self::EntryFromPreviousBusinessDay => "4",
3996 Self::TheoreticalPriceValue => "5",
3997 Self::Unrecognized(value) => value,
3998 }
3999 }
4000}
4001
4002impl<'a> From<&'a str> for OpenCloseSettlFlag<'a> {
4003 fn from(value: &'a str) -> Self {
4004 Self::from_value(value)
4005 }
4006}
4007
4008#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
4010pub enum FinancialStatus<'a> {
4011 Bankrupt,
4013 PendingDelisting,
4015 Unrecognized(&'a str),
4017}
4018
4019impl<'a> FinancialStatus<'a> {
4020 pub fn from_value(value: &'a str) -> Self {
4021 match value {
4022 "1" => Self::Bankrupt,
4023 "2" => Self::PendingDelisting,
4024 unrecognized => Self::Unrecognized(unrecognized),
4025 }
4026 }
4027
4028 pub fn value(self) -> &'a str {
4029 match self {
4030 Self::Bankrupt => "1",
4031 Self::PendingDelisting => "2",
4032 Self::Unrecognized(value) => value,
4033 }
4034 }
4035}
4036
4037impl<'a> From<&'a str> for FinancialStatus<'a> {
4038 fn from(value: &'a str) -> Self {
4039 Self::from_value(value)
4040 }
4041}
4042
4043#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
4045pub enum CorporateAction<'a> {
4046 ExDividend,
4048 ExDistribution,
4050 ExRights,
4052 New,
4054 ExInterest,
4056 Unrecognized(&'a str),
4058}
4059
4060impl<'a> CorporateAction<'a> {
4061 pub fn from_value(value: &'a str) -> Self {
4062 match value {
4063 "A" => Self::ExDividend,
4064 "B" => Self::ExDistribution,
4065 "C" => Self::ExRights,
4066 "D" => Self::New,
4067 "E" => Self::ExInterest,
4068 unrecognized => Self::Unrecognized(unrecognized),
4069 }
4070 }
4071
4072 pub fn value(self) -> &'a str {
4073 match self {
4074 Self::ExDividend => "A",
4075 Self::ExDistribution => "B",
4076 Self::ExRights => "C",
4077 Self::New => "D",
4078 Self::ExInterest => "E",
4079 Self::Unrecognized(value) => value,
4080 }
4081 }
4082}
4083
4084impl<'a> From<&'a str> for CorporateAction<'a> {
4085 fn from(value: &'a str) -> Self {
4086 Self::from_value(value)
4087 }
4088}
4089
4090#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
4092pub enum QuoteStatus {
4093 Accepted,
4095 CancelForSymbol,
4097 CanceledForSecurityType,
4099 CanceledForUnderlying,
4101 CanceledAll,
4103 Rejected,
4105 RemovedFromMarket,
4107 Expired,
4109 Query,
4111 QuoteNotFound,
4113 Pending,
4115 Pass,
4117 LockedMarketWarning,
4119 CrossMarketWarning,
4121 CanceledDueToLockMarket,
4123 CanceledDueToCrossMarket,
4125 Unrecognized(i64),
4127}
4128
4129impl QuoteStatus {
4130 pub fn from_value(value: i64) -> Self {
4131 match value {
4132 0 => Self::Accepted,
4133 1 => Self::CancelForSymbol,
4134 2 => Self::CanceledForSecurityType,
4135 3 => Self::CanceledForUnderlying,
4136 4 => Self::CanceledAll,
4137 5 => Self::Rejected,
4138 6 => Self::RemovedFromMarket,
4139 7 => Self::Expired,
4140 8 => Self::Query,
4141 9 => Self::QuoteNotFound,
4142 10 => Self::Pending,
4143 11 => Self::Pass,
4144 12 => Self::LockedMarketWarning,
4145 13 => Self::CrossMarketWarning,
4146 14 => Self::CanceledDueToLockMarket,
4147 15 => Self::CanceledDueToCrossMarket,
4148 unrecognized => Self::Unrecognized(unrecognized),
4149 }
4150 }
4151
4152 pub fn value(self) -> i64 {
4153 match self {
4154 Self::Accepted => 0,
4155 Self::CancelForSymbol => 1,
4156 Self::CanceledForSecurityType => 2,
4157 Self::CanceledForUnderlying => 3,
4158 Self::CanceledAll => 4,
4159 Self::Rejected => 5,
4160 Self::RemovedFromMarket => 6,
4161 Self::Expired => 7,
4162 Self::Query => 8,
4163 Self::QuoteNotFound => 9,
4164 Self::Pending => 10,
4165 Self::Pass => 11,
4166 Self::LockedMarketWarning => 12,
4167 Self::CrossMarketWarning => 13,
4168 Self::CanceledDueToLockMarket => 14,
4169 Self::CanceledDueToCrossMarket => 15,
4170 Self::Unrecognized(value) => value,
4171 }
4172 }
4173}
4174
4175#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
4177pub enum QuoteCancelType {
4178 CancelForOneOrMoreSecurities,
4180 CancelForSecurityType,
4182 CancelForUnderlyingSecurity,
4184 CancelAllQuotes,
4186 Unrecognized(i64),
4188}
4189
4190impl QuoteCancelType {
4191 pub fn from_value(value: i64) -> Self {
4192 match value {
4193 1 => Self::CancelForOneOrMoreSecurities,
4194 2 => Self::CancelForSecurityType,
4195 3 => Self::CancelForUnderlyingSecurity,
4196 4 => Self::CancelAllQuotes,
4197 unrecognized => Self::Unrecognized(unrecognized),
4198 }
4199 }
4200
4201 pub fn value(self) -> i64 {
4202 match self {
4203 Self::CancelForOneOrMoreSecurities => 1,
4204 Self::CancelForSecurityType => 2,
4205 Self::CancelForUnderlyingSecurity => 3,
4206 Self::CancelAllQuotes => 4,
4207 Self::Unrecognized(value) => value,
4208 }
4209 }
4210}
4211
4212#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
4214pub enum QuoteRejectReason {
4215 UnknownSymbol,
4217 Exchange,
4219 QuoteRequestExceedsLimit,
4221 TooLateToEnter,
4223 UnknownQuote,
4225 DuplicateQuote,
4227 InvalidBid,
4229 InvalidPrice,
4231 NotAuthorizedToQuoteSecurity,
4233 Other,
4235 Unrecognized(i64),
4237}
4238
4239impl QuoteRejectReason {
4240 pub fn from_value(value: i64) -> Self {
4241 match value {
4242 1 => Self::UnknownSymbol,
4243 2 => Self::Exchange,
4244 3 => Self::QuoteRequestExceedsLimit,
4245 4 => Self::TooLateToEnter,
4246 5 => Self::UnknownQuote,
4247 6 => Self::DuplicateQuote,
4248 7 => Self::InvalidBid,
4249 8 => Self::InvalidPrice,
4250 9 => Self::NotAuthorizedToQuoteSecurity,
4251 99 => Self::Other,
4252 unrecognized => Self::Unrecognized(unrecognized),
4253 }
4254 }
4255
4256 pub fn value(self) -> i64 {
4257 match self {
4258 Self::UnknownSymbol => 1,
4259 Self::Exchange => 2,
4260 Self::QuoteRequestExceedsLimit => 3,
4261 Self::TooLateToEnter => 4,
4262 Self::UnknownQuote => 5,
4263 Self::DuplicateQuote => 6,
4264 Self::InvalidBid => 7,
4265 Self::InvalidPrice => 8,
4266 Self::NotAuthorizedToQuoteSecurity => 9,
4267 Self::Other => 99,
4268 Self::Unrecognized(value) => value,
4269 }
4270 }
4271}
4272
4273#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
4275pub enum QuoteResponseLevel {
4276 NoAcknowledgement,
4278 AcknowledgeOnlyNegativeOrErroneousQuotes,
4280 AcknowledgeEachQuoteMessage,
4282 Unrecognized(i64),
4284}
4285
4286impl QuoteResponseLevel {
4287 pub fn from_value(value: i64) -> Self {
4288 match value {
4289 0 => Self::NoAcknowledgement,
4290 1 => Self::AcknowledgeOnlyNegativeOrErroneousQuotes,
4291 2 => Self::AcknowledgeEachQuoteMessage,
4292 unrecognized => Self::Unrecognized(unrecognized),
4293 }
4294 }
4295
4296 pub fn value(self) -> i64 {
4297 match self {
4298 Self::NoAcknowledgement => 0,
4299 Self::AcknowledgeOnlyNegativeOrErroneousQuotes => 1,
4300 Self::AcknowledgeEachQuoteMessage => 2,
4301 Self::Unrecognized(value) => value,
4302 }
4303 }
4304}
4305
4306#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
4308pub enum QuoteRequestType {
4309 Manual,
4311 Automatic,
4313 Unrecognized(i64),
4315}
4316
4317impl QuoteRequestType {
4318 pub fn from_value(value: i64) -> Self {
4319 match value {
4320 1 => Self::Manual,
4321 2 => Self::Automatic,
4322 unrecognized => Self::Unrecognized(unrecognized),
4323 }
4324 }
4325
4326 pub fn value(self) -> i64 {
4327 match self {
4328 Self::Manual => 1,
4329 Self::Automatic => 2,
4330 Self::Unrecognized(value) => value,
4331 }
4332 }
4333}
4334
4335#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
4337pub enum SecurityRequestType {
4338 RequestSecurityIdentityAndSpecifications,
4340 RequestSecurityIdentityForSpecifications,
4342 RequestListSecurityTypes,
4344 RequestListSecurities,
4346 Unrecognized(i64),
4348}
4349
4350impl SecurityRequestType {
4351 pub fn from_value(value: i64) -> Self {
4352 match value {
4353 0 => Self::RequestSecurityIdentityAndSpecifications,
4354 1 => Self::RequestSecurityIdentityForSpecifications,
4355 2 => Self::RequestListSecurityTypes,
4356 3 => Self::RequestListSecurities,
4357 unrecognized => Self::Unrecognized(unrecognized),
4358 }
4359 }
4360
4361 pub fn value(self) -> i64 {
4362 match self {
4363 Self::RequestSecurityIdentityAndSpecifications => 0,
4364 Self::RequestSecurityIdentityForSpecifications => 1,
4365 Self::RequestListSecurityTypes => 2,
4366 Self::RequestListSecurities => 3,
4367 Self::Unrecognized(value) => value,
4368 }
4369 }
4370}
4371
4372#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
4374pub enum SecurityResponseType {
4375 AcceptAsIs,
4377 AcceptWithRevisions,
4379 RejectSecurityProposal,
4381 CannotMatchSelectionCriteria,
4383 Unrecognized(i64),
4385}
4386
4387impl SecurityResponseType {
4388 pub fn from_value(value: i64) -> Self {
4389 match value {
4390 1 => Self::AcceptAsIs,
4391 2 => Self::AcceptWithRevisions,
4392 5 => Self::RejectSecurityProposal,
4393 6 => Self::CannotMatchSelectionCriteria,
4394 unrecognized => Self::Unrecognized(unrecognized),
4395 }
4396 }
4397
4398 pub fn value(self) -> i64 {
4399 match self {
4400 Self::AcceptAsIs => 1,
4401 Self::AcceptWithRevisions => 2,
4402 Self::RejectSecurityProposal => 5,
4403 Self::CannotMatchSelectionCriteria => 6,
4404 Self::Unrecognized(value) => value,
4405 }
4406 }
4407}
4408
4409#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
4411pub enum SecurityTradingStatus {
4412 OpeningDelay,
4414 TradingHalt,
4416 Resume,
4418 NoOpen,
4420 PriceIndication,
4422 TradingRangeIndication,
4424 MarketImbalanceBuy,
4426 MarketImbalanceSell,
4428 MarketOnCloseImbalanceBuy,
4430 MarketOnCloseImbalanceSell,
4432 NoMarketImbalance,
4434 NoMarketOnCloseImbalance,
4436 ItsPreOpening,
4438 NewPriceIndication,
4440 TradeDisseminationTime,
4442 ReadyToTrade,
4444 NotAvailableForTrading,
4446 NotTradedOnThisMarket,
4448 UnknownOrInvalid,
4450 PreOpen,
4452 OpeningRotation,
4454 FastMarket,
4456 Unrecognized(i64),
4458}
4459
4460impl SecurityTradingStatus {
4461 pub fn from_value(value: i64) -> Self {
4462 match value {
4463 1 => Self::OpeningDelay,
4464 2 => Self::TradingHalt,
4465 3 => Self::Resume,
4466 4 => Self::NoOpen,
4467 5 => Self::PriceIndication,
4468 6 => Self::TradingRangeIndication,
4469 7 => Self::MarketImbalanceBuy,
4470 8 => Self::MarketImbalanceSell,
4471 9 => Self::MarketOnCloseImbalanceBuy,
4472 10 => Self::MarketOnCloseImbalanceSell,
4473 12 => Self::NoMarketImbalance,
4474 13 => Self::NoMarketOnCloseImbalance,
4475 14 => Self::ItsPreOpening,
4476 15 => Self::NewPriceIndication,
4477 16 => Self::TradeDisseminationTime,
4478 17 => Self::ReadyToTrade,
4479 18 => Self::NotAvailableForTrading,
4480 19 => Self::NotTradedOnThisMarket,
4481 20 => Self::UnknownOrInvalid,
4482 21 => Self::PreOpen,
4483 22 => Self::OpeningRotation,
4484 23 => Self::FastMarket,
4485 unrecognized => Self::Unrecognized(unrecognized),
4486 }
4487 }
4488
4489 pub fn value(self) -> i64 {
4490 match self {
4491 Self::OpeningDelay => 1,
4492 Self::TradingHalt => 2,
4493 Self::Resume => 3,
4494 Self::NoOpen => 4,
4495 Self::PriceIndication => 5,
4496 Self::TradingRangeIndication => 6,
4497 Self::MarketImbalanceBuy => 7,
4498 Self::MarketImbalanceSell => 8,
4499 Self::MarketOnCloseImbalanceBuy => 9,
4500 Self::MarketOnCloseImbalanceSell => 10,
4501 Self::NoMarketImbalance => 12,
4502 Self::NoMarketOnCloseImbalance => 13,
4503 Self::ItsPreOpening => 14,
4504 Self::NewPriceIndication => 15,
4505 Self::TradeDisseminationTime => 16,
4506 Self::ReadyToTrade => 17,
4507 Self::NotAvailableForTrading => 18,
4508 Self::NotTradedOnThisMarket => 19,
4509 Self::UnknownOrInvalid => 20,
4510 Self::PreOpen => 21,
4511 Self::OpeningRotation => 22,
4512 Self::FastMarket => 23,
4513 Self::Unrecognized(value) => value,
4514 }
4515 }
4516}
4517
4518#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
4520pub enum HaltReasonChar<'a> {
4521 OrderImbalance,
4523 EquipmentChangeover,
4525 NewsPending,
4527 NewsDissemination,
4529 OrderInflux,
4531 AdditionalInformation,
4533 Unrecognized(&'a str),
4535}
4536
4537impl<'a> HaltReasonChar<'a> {
4538 pub fn from_value(value: &'a str) -> Self {
4539 match value {
4540 "I" => Self::OrderImbalance,
4541 "X" => Self::EquipmentChangeover,
4542 "P" => Self::NewsPending,
4543 "D" => Self::NewsDissemination,
4544 "E" => Self::OrderInflux,
4545 "M" => Self::AdditionalInformation,
4546 unrecognized => Self::Unrecognized(unrecognized),
4547 }
4548 }
4549
4550 pub fn value(self) -> &'a str {
4551 match self {
4552 Self::OrderImbalance => "I",
4553 Self::EquipmentChangeover => "X",
4554 Self::NewsPending => "P",
4555 Self::NewsDissemination => "D",
4556 Self::OrderInflux => "E",
4557 Self::AdditionalInformation => "M",
4558 Self::Unrecognized(value) => value,
4559 }
4560 }
4561}
4562
4563impl<'a> From<&'a str> for HaltReasonChar<'a> {
4564 fn from(value: &'a str) -> Self {
4565 Self::from_value(value)
4566 }
4567}
4568
4569#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
4571pub enum Adjustment {
4572 Cancel,
4574 Error,
4576 Correction,
4578 Unrecognized(i64),
4580}
4581
4582impl Adjustment {
4583 pub fn from_value(value: i64) -> Self {
4584 match value {
4585 1 => Self::Cancel,
4586 2 => Self::Error,
4587 3 => Self::Correction,
4588 unrecognized => Self::Unrecognized(unrecognized),
4589 }
4590 }
4591
4592 pub fn value(self) -> i64 {
4593 match self {
4594 Self::Cancel => 1,
4595 Self::Error => 2,
4596 Self::Correction => 3,
4597 Self::Unrecognized(value) => value,
4598 }
4599 }
4600}
4601
4602#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
4604pub enum TradSesMethod {
4605 Electronic,
4607 OpenOutcry,
4609 TwoParty,
4611 Unrecognized(i64),
4613}
4614
4615impl TradSesMethod {
4616 pub fn from_value(value: i64) -> Self {
4617 match value {
4618 1 => Self::Electronic,
4619 2 => Self::OpenOutcry,
4620 3 => Self::TwoParty,
4621 unrecognized => Self::Unrecognized(unrecognized),
4622 }
4623 }
4624
4625 pub fn value(self) -> i64 {
4626 match self {
4627 Self::Electronic => 1,
4628 Self::OpenOutcry => 2,
4629 Self::TwoParty => 3,
4630 Self::Unrecognized(value) => value,
4631 }
4632 }
4633}
4634
4635#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
4637pub enum TradSesMode {
4638 Testing,
4640 Simulated,
4642 Production,
4644 Unrecognized(i64),
4646}
4647
4648impl TradSesMode {
4649 pub fn from_value(value: i64) -> Self {
4650 match value {
4651 1 => Self::Testing,
4652 2 => Self::Simulated,
4653 3 => Self::Production,
4654 unrecognized => Self::Unrecognized(unrecognized),
4655 }
4656 }
4657
4658 pub fn value(self) -> i64 {
4659 match self {
4660 Self::Testing => 1,
4661 Self::Simulated => 2,
4662 Self::Production => 3,
4663 Self::Unrecognized(value) => value,
4664 }
4665 }
4666}
4667
4668#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
4670pub enum TradSesStatus {
4671 Unknown,
4673 Halted,
4675 Open,
4677 Closed,
4679 PreOpen,
4681 PreClose,
4683 RequestRejected,
4685 Unrecognized(i64),
4687}
4688
4689impl TradSesStatus {
4690 pub fn from_value(value: i64) -> Self {
4691 match value {
4692 0 => Self::Unknown,
4693 1 => Self::Halted,
4694 2 => Self::Open,
4695 3 => Self::Closed,
4696 4 => Self::PreOpen,
4697 5 => Self::PreClose,
4698 6 => Self::RequestRejected,
4699 unrecognized => Self::Unrecognized(unrecognized),
4700 }
4701 }
4702
4703 pub fn value(self) -> i64 {
4704 match self {
4705 Self::Unknown => 0,
4706 Self::Halted => 1,
4707 Self::Open => 2,
4708 Self::Closed => 3,
4709 Self::PreOpen => 4,
4710 Self::PreClose => 5,
4711 Self::RequestRejected => 6,
4712 Self::Unrecognized(value) => value,
4713 }
4714 }
4715}
4716
4717#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
4719pub enum MessageEncoding<'a> {
4720 Iso2022Jp,
4722 Eucjp,
4724 ShiftJis,
4726 Utf8,
4728 Unrecognized(&'a str),
4730}
4731
4732impl<'a> MessageEncoding<'a> {
4733 pub fn from_value(value: &'a str) -> Self {
4734 match value {
4735 "ISO-2022-JP" => Self::Iso2022Jp,
4736 "EUC-JP" => Self::Eucjp,
4737 "Shift_JIS" => Self::ShiftJis,
4738 "UTF-8" => Self::Utf8,
4739 unrecognized => Self::Unrecognized(unrecognized),
4740 }
4741 }
4742
4743 pub fn value(self) -> &'a str {
4744 match self {
4745 Self::Iso2022Jp => "ISO-2022-JP",
4746 Self::Eucjp => "EUC-JP",
4747 Self::ShiftJis => "Shift_JIS",
4748 Self::Utf8 => "UTF-8",
4749 Self::Unrecognized(value) => value,
4750 }
4751 }
4752}
4753
4754impl<'a> From<&'a str> for MessageEncoding<'a> {
4755 fn from(value: &'a str) -> Self {
4756 Self::from_value(value)
4757 }
4758}
4759
4760#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
4762pub enum SessionRejectReason {
4763 InvalidTagNumber,
4765 RequiredTagMissing,
4767 TagNotDefinedForThisMessageType,
4769 UndefinedTag,
4771 TagSpecifiedWithoutAValue,
4773 ValueIsIncorrect,
4775 IncorrectDataFormatForValue,
4777 DecryptionProblem,
4779 SignatureProblem,
4781 CompIdProblem,
4783 SendingTimeAccuracyProblem,
4785 InvalidMsgType,
4787 XmlValidationError,
4789 TagAppearsMoreThanOnce,
4791 TagSpecifiedOutOfRequiredOrder,
4793 RepeatingGroupFieldsOutOfOrder,
4795 IncorrectNumInGroupCountForRepeatingGroup,
4797 Non,
4799 Other,
4801 Unrecognized(i64),
4803}
4804
4805impl SessionRejectReason {
4806 pub fn from_value(value: i64) -> Self {
4807 match value {
4808 0 => Self::InvalidTagNumber,
4809 1 => Self::RequiredTagMissing,
4810 2 => Self::TagNotDefinedForThisMessageType,
4811 3 => Self::UndefinedTag,
4812 4 => Self::TagSpecifiedWithoutAValue,
4813 5 => Self::ValueIsIncorrect,
4814 6 => Self::IncorrectDataFormatForValue,
4815 7 => Self::DecryptionProblem,
4816 8 => Self::SignatureProblem,
4817 9 => Self::CompIdProblem,
4818 10 => Self::SendingTimeAccuracyProblem,
4819 11 => Self::InvalidMsgType,
4820 12 => Self::XmlValidationError,
4821 13 => Self::TagAppearsMoreThanOnce,
4822 14 => Self::TagSpecifiedOutOfRequiredOrder,
4823 15 => Self::RepeatingGroupFieldsOutOfOrder,
4824 16 => Self::IncorrectNumInGroupCountForRepeatingGroup,
4825 17 => Self::Non,
4826 99 => Self::Other,
4827 unrecognized => Self::Unrecognized(unrecognized),
4828 }
4829 }
4830
4831 pub fn value(self) -> i64 {
4832 match self {
4833 Self::InvalidTagNumber => 0,
4834 Self::RequiredTagMissing => 1,
4835 Self::TagNotDefinedForThisMessageType => 2,
4836 Self::UndefinedTag => 3,
4837 Self::TagSpecifiedWithoutAValue => 4,
4838 Self::ValueIsIncorrect => 5,
4839 Self::IncorrectDataFormatForValue => 6,
4840 Self::DecryptionProblem => 7,
4841 Self::SignatureProblem => 8,
4842 Self::CompIdProblem => 9,
4843 Self::SendingTimeAccuracyProblem => 10,
4844 Self::InvalidMsgType => 11,
4845 Self::XmlValidationError => 12,
4846 Self::TagAppearsMoreThanOnce => 13,
4847 Self::TagSpecifiedOutOfRequiredOrder => 14,
4848 Self::RepeatingGroupFieldsOutOfOrder => 15,
4849 Self::IncorrectNumInGroupCountForRepeatingGroup => 16,
4850 Self::Non => 17,
4851 Self::Other => 99,
4852 Self::Unrecognized(value) => value,
4853 }
4854 }
4855}
4856
4857#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
4859pub enum BidRequestTransType<'a> {
4860 New,
4862 Cancel,
4864 Unrecognized(&'a str),
4866}
4867
4868impl<'a> BidRequestTransType<'a> {
4869 pub fn from_value(value: &'a str) -> Self {
4870 match value {
4871 "N" => Self::New,
4872 "C" => Self::Cancel,
4873 unrecognized => Self::Unrecognized(unrecognized),
4874 }
4875 }
4876
4877 pub fn value(self) -> &'a str {
4878 match self {
4879 Self::New => "N",
4880 Self::Cancel => "C",
4881 Self::Unrecognized(value) => value,
4882 }
4883 }
4884}
4885
4886impl<'a> From<&'a str> for BidRequestTransType<'a> {
4887 fn from(value: &'a str) -> Self {
4888 Self::from_value(value)
4889 }
4890}
4891
4892#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
4894pub enum ExecRestatementReason {
4895 GtCorporateAction,
4897 GtRenewal,
4899 VerbalChange,
4901 RepricingOfOrder,
4903 BrokerOption,
4905 PartialDeclineOfOrderQty,
4907 CancelOnTradingHalt,
4909 CancelOnSystemFailure,
4911 Market,
4913 Canceled,
4915 WarehouseRecap,
4917 Other,
4919 Unrecognized(i64),
4921}
4922
4923impl ExecRestatementReason {
4924 pub fn from_value(value: i64) -> Self {
4925 match value {
4926 0 => Self::GtCorporateAction,
4927 1 => Self::GtRenewal,
4928 2 => Self::VerbalChange,
4929 3 => Self::RepricingOfOrder,
4930 4 => Self::BrokerOption,
4931 5 => Self::PartialDeclineOfOrderQty,
4932 6 => Self::CancelOnTradingHalt,
4933 7 => Self::CancelOnSystemFailure,
4934 8 => Self::Market,
4935 9 => Self::Canceled,
4936 10 => Self::WarehouseRecap,
4937 99 => Self::Other,
4938 unrecognized => Self::Unrecognized(unrecognized),
4939 }
4940 }
4941
4942 pub fn value(self) -> i64 {
4943 match self {
4944 Self::GtCorporateAction => 0,
4945 Self::GtRenewal => 1,
4946 Self::VerbalChange => 2,
4947 Self::RepricingOfOrder => 3,
4948 Self::BrokerOption => 4,
4949 Self::PartialDeclineOfOrderQty => 5,
4950 Self::CancelOnTradingHalt => 6,
4951 Self::CancelOnSystemFailure => 7,
4952 Self::Market => 8,
4953 Self::Canceled => 9,
4954 Self::WarehouseRecap => 10,
4955 Self::Other => 99,
4956 Self::Unrecognized(value) => value,
4957 }
4958 }
4959}
4960
4961#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
4963pub enum BusinessRejectReason {
4964 Other,
4966 UnknownId,
4968 UnknownSecurity,
4970 UnsupportedMessageType,
4972 ApplicationNotAvailable,
4974 ConditionallyRequiredFieldMissing,
4976 NotAuthorized,
4978 DeliverToFirmNotAvailableAtThisTime,
4980 Unrecognized(i64),
4982}
4983
4984impl BusinessRejectReason {
4985 pub fn from_value(value: i64) -> Self {
4986 match value {
4987 0 => Self::Other,
4988 1 => Self::UnknownId,
4989 2 => Self::UnknownSecurity,
4990 3 => Self::UnsupportedMessageType,
4991 4 => Self::ApplicationNotAvailable,
4992 5 => Self::ConditionallyRequiredFieldMissing,
4993 6 => Self::NotAuthorized,
4994 7 => Self::DeliverToFirmNotAvailableAtThisTime,
4995 unrecognized => Self::Unrecognized(unrecognized),
4996 }
4997 }
4998
4999 pub fn value(self) -> i64 {
5000 match self {
5001 Self::Other => 0,
5002 Self::UnknownId => 1,
5003 Self::UnknownSecurity => 2,
5004 Self::UnsupportedMessageType => 3,
5005 Self::ApplicationNotAvailable => 4,
5006 Self::ConditionallyRequiredFieldMissing => 5,
5007 Self::NotAuthorized => 6,
5008 Self::DeliverToFirmNotAvailableAtThisTime => 7,
5009 Self::Unrecognized(value) => value,
5010 }
5011 }
5012}
5013
5014#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
5016pub enum MsgDirection<'a> {
5017 Send,
5019 Receive,
5021 Unrecognized(&'a str),
5023}
5024
5025impl<'a> MsgDirection<'a> {
5026 pub fn from_value(value: &'a str) -> Self {
5027 match value {
5028 "S" => Self::Send,
5029 "R" => Self::Receive,
5030 unrecognized => Self::Unrecognized(unrecognized),
5031 }
5032 }
5033
5034 pub fn value(self) -> &'a str {
5035 match self {
5036 Self::Send => "S",
5037 Self::Receive => "R",
5038 Self::Unrecognized(value) => value,
5039 }
5040 }
5041}
5042
5043impl<'a> From<&'a str> for MsgDirection<'a> {
5044 fn from(value: &'a str) -> Self {
5045 Self::from_value(value)
5046 }
5047}
5048
5049#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
5051pub enum DiscretionInst<'a> {
5052 RelatedToDisplayedPrice,
5054 RelatedToMarketPrice,
5056 RelatedToPrimaryPrice,
5058 RelatedToLocalPrimaryPrice,
5060 RelatedToMidpointPrice,
5062 RelatedToLastTradePrice,
5064 RelatedToVwap,
5066 Unrecognized(&'a str),
5068}
5069
5070impl<'a> DiscretionInst<'a> {
5071 pub fn from_value(value: &'a str) -> Self {
5072 match value {
5073 "0" => Self::RelatedToDisplayedPrice,
5074 "1" => Self::RelatedToMarketPrice,
5075 "2" => Self::RelatedToPrimaryPrice,
5076 "3" => Self::RelatedToLocalPrimaryPrice,
5077 "4" => Self::RelatedToMidpointPrice,
5078 "5" => Self::RelatedToLastTradePrice,
5079 "6" => Self::RelatedToVwap,
5080 unrecognized => Self::Unrecognized(unrecognized),
5081 }
5082 }
5083
5084 pub fn value(self) -> &'a str {
5085 match self {
5086 Self::RelatedToDisplayedPrice => "0",
5087 Self::RelatedToMarketPrice => "1",
5088 Self::RelatedToPrimaryPrice => "2",
5089 Self::RelatedToLocalPrimaryPrice => "3",
5090 Self::RelatedToMidpointPrice => "4",
5091 Self::RelatedToLastTradePrice => "5",
5092 Self::RelatedToVwap => "6",
5093 Self::Unrecognized(value) => value,
5094 }
5095 }
5096}
5097
5098impl<'a> From<&'a str> for DiscretionInst<'a> {
5099 fn from(value: &'a str) -> Self {
5100 Self::from_value(value)
5101 }
5102}
5103
5104#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
5106pub enum BidType {
5107 NonDisclosed,
5109 Disclosed,
5111 NoBiddingProcess,
5113 Unrecognized(i64),
5115}
5116
5117impl BidType {
5118 pub fn from_value(value: i64) -> Self {
5119 match value {
5120 1 => Self::NonDisclosed,
5121 2 => Self::Disclosed,
5122 3 => Self::NoBiddingProcess,
5123 unrecognized => Self::Unrecognized(unrecognized),
5124 }
5125 }
5126
5127 pub fn value(self) -> i64 {
5128 match self {
5129 Self::NonDisclosed => 1,
5130 Self::Disclosed => 2,
5131 Self::NoBiddingProcess => 3,
5132 Self::Unrecognized(value) => value,
5133 }
5134 }
5135}
5136
5137#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
5139pub enum BidDescriptorType {
5140 Sector,
5142 Country,
5144 Index,
5146 Unrecognized(i64),
5148}
5149
5150impl BidDescriptorType {
5151 pub fn from_value(value: i64) -> Self {
5152 match value {
5153 1 => Self::Sector,
5154 2 => Self::Country,
5155 3 => Self::Index,
5156 unrecognized => Self::Unrecognized(unrecognized),
5157 }
5158 }
5159
5160 pub fn value(self) -> i64 {
5161 match self {
5162 Self::Sector => 1,
5163 Self::Country => 2,
5164 Self::Index => 3,
5165 Self::Unrecognized(value) => value,
5166 }
5167 }
5168}
5169
5170#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
5172pub enum SideValueInd {
5173 SideValue1,
5175 SideValue2,
5177 Unrecognized(i64),
5179}
5180
5181impl SideValueInd {
5182 pub fn from_value(value: i64) -> Self {
5183 match value {
5184 1 => Self::SideValue1,
5185 2 => Self::SideValue2,
5186 unrecognized => Self::Unrecognized(unrecognized),
5187 }
5188 }
5189
5190 pub fn value(self) -> i64 {
5191 match self {
5192 Self::SideValue1 => 1,
5193 Self::SideValue2 => 2,
5194 Self::Unrecognized(value) => value,
5195 }
5196 }
5197}
5198
5199#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
5201pub enum LiquidityIndType {
5202 FiveDayMovingAverage,
5204 TwentyDayMovingAverage,
5206 NormalMarketSize,
5208 Other,
5210 Unrecognized(i64),
5212}
5213
5214impl LiquidityIndType {
5215 pub fn from_value(value: i64) -> Self {
5216 match value {
5217 1 => Self::FiveDayMovingAverage,
5218 2 => Self::TwentyDayMovingAverage,
5219 3 => Self::NormalMarketSize,
5220 4 => Self::Other,
5221 unrecognized => Self::Unrecognized(unrecognized),
5222 }
5223 }
5224
5225 pub fn value(self) -> i64 {
5226 match self {
5227 Self::FiveDayMovingAverage => 1,
5228 Self::TwentyDayMovingAverage => 2,
5229 Self::NormalMarketSize => 3,
5230 Self::Other => 4,
5231 Self::Unrecognized(value) => value,
5232 }
5233 }
5234}
5235
5236#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
5238pub enum ProgRptReqs {
5239 BuySideRequests,
5241 SellSideSends,
5243 RealTimeExecutionReports,
5245 Unrecognized(i64),
5247}
5248
5249impl ProgRptReqs {
5250 pub fn from_value(value: i64) -> Self {
5251 match value {
5252 1 => Self::BuySideRequests,
5253 2 => Self::SellSideSends,
5254 3 => Self::RealTimeExecutionReports,
5255 unrecognized => Self::Unrecognized(unrecognized),
5256 }
5257 }
5258
5259 pub fn value(self) -> i64 {
5260 match self {
5261 Self::BuySideRequests => 1,
5262 Self::SellSideSends => 2,
5263 Self::RealTimeExecutionReports => 3,
5264 Self::Unrecognized(value) => value,
5265 }
5266 }
5267}
5268
5269#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
5271pub enum IncTaxInd {
5272 Net,
5274 Gross,
5276 Unrecognized(i64),
5278}
5279
5280impl IncTaxInd {
5281 pub fn from_value(value: i64) -> Self {
5282 match value {
5283 1 => Self::Net,
5284 2 => Self::Gross,
5285 unrecognized => Self::Unrecognized(unrecognized),
5286 }
5287 }
5288
5289 pub fn value(self) -> i64 {
5290 match self {
5291 Self::Net => 1,
5292 Self::Gross => 2,
5293 Self::Unrecognized(value) => value,
5294 }
5295 }
5296}
5297
5298#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
5300pub enum BidTradeType<'a> {
5301 RiskTrade,
5303 VwapGuarantee,
5305 Agency,
5307 GuaranteedClose,
5309 Unrecognized(&'a str),
5311}
5312
5313impl<'a> BidTradeType<'a> {
5314 pub fn from_value(value: &'a str) -> Self {
5315 match value {
5316 "R" => Self::RiskTrade,
5317 "G" => Self::VwapGuarantee,
5318 "A" => Self::Agency,
5319 "J" => Self::GuaranteedClose,
5320 unrecognized => Self::Unrecognized(unrecognized),
5321 }
5322 }
5323
5324 pub fn value(self) -> &'a str {
5325 match self {
5326 Self::RiskTrade => "R",
5327 Self::VwapGuarantee => "G",
5328 Self::Agency => "A",
5329 Self::GuaranteedClose => "J",
5330 Self::Unrecognized(value) => value,
5331 }
5332 }
5333}
5334
5335impl<'a> From<&'a str> for BidTradeType<'a> {
5336 fn from(value: &'a str) -> Self {
5337 Self::from_value(value)
5338 }
5339}
5340
5341#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
5343pub enum BasisPxType<'a> {
5344 ClosingPriceAtMorningSession,
5346 ClosingPrice,
5348 CurrentPrice,
5350 Sq,
5352 VwapThroughADay,
5354 VwapThroughAMorningSession,
5356 VwapThroughAnAfternoonSession,
5358 VwapThroughADayExcept,
5360 VwapThroughAMorningSessionExcept,
5362 VwapThroughAnAfternoonSessionExcept,
5364 Strike,
5366 Open,
5368 Others,
5370 Unrecognized(&'a str),
5372}
5373
5374impl<'a> BasisPxType<'a> {
5375 pub fn from_value(value: &'a str) -> Self {
5376 match value {
5377 "2" => Self::ClosingPriceAtMorningSession,
5378 "3" => Self::ClosingPrice,
5379 "4" => Self::CurrentPrice,
5380 "5" => Self::Sq,
5381 "6" => Self::VwapThroughADay,
5382 "7" => Self::VwapThroughAMorningSession,
5383 "8" => Self::VwapThroughAnAfternoonSession,
5384 "9" => Self::VwapThroughADayExcept,
5385 "A" => Self::VwapThroughAMorningSessionExcept,
5386 "B" => Self::VwapThroughAnAfternoonSessionExcept,
5387 "C" => Self::Strike,
5388 "D" => Self::Open,
5389 "Z" => Self::Others,
5390 unrecognized => Self::Unrecognized(unrecognized),
5391 }
5392 }
5393
5394 pub fn value(self) -> &'a str {
5395 match self {
5396 Self::ClosingPriceAtMorningSession => "2",
5397 Self::ClosingPrice => "3",
5398 Self::CurrentPrice => "4",
5399 Self::Sq => "5",
5400 Self::VwapThroughADay => "6",
5401 Self::VwapThroughAMorningSession => "7",
5402 Self::VwapThroughAnAfternoonSession => "8",
5403 Self::VwapThroughADayExcept => "9",
5404 Self::VwapThroughAMorningSessionExcept => "A",
5405 Self::VwapThroughAnAfternoonSessionExcept => "B",
5406 Self::Strike => "C",
5407 Self::Open => "D",
5408 Self::Others => "Z",
5409 Self::Unrecognized(value) => value,
5410 }
5411 }
5412}
5413
5414impl<'a> From<&'a str> for BasisPxType<'a> {
5415 fn from(value: &'a str) -> Self {
5416 Self::from_value(value)
5417 }
5418}
5419
5420#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
5422pub enum PriceType {
5423 Percentage,
5425 PerUnit,
5427 FixedAmount,
5429 Discount,
5431 Premium,
5433 Spread,
5435 TedPrice,
5437 TedYield,
5439 Yield,
5441 FixedCabinetTradePrice,
5443 VariableCabinetTradePrice,
5445 Unrecognized(i64),
5447}
5448
5449impl PriceType {
5450 pub fn from_value(value: i64) -> Self {
5451 match value {
5452 1 => Self::Percentage,
5453 2 => Self::PerUnit,
5454 3 => Self::FixedAmount,
5455 4 => Self::Discount,
5456 5 => Self::Premium,
5457 6 => Self::Spread,
5458 7 => Self::TedPrice,
5459 8 => Self::TedYield,
5460 9 => Self::Yield,
5461 10 => Self::FixedCabinetTradePrice,
5462 11 => Self::VariableCabinetTradePrice,
5463 unrecognized => Self::Unrecognized(unrecognized),
5464 }
5465 }
5466
5467 pub fn value(self) -> i64 {
5468 match self {
5469 Self::Percentage => 1,
5470 Self::PerUnit => 2,
5471 Self::FixedAmount => 3,
5472 Self::Discount => 4,
5473 Self::Premium => 5,
5474 Self::Spread => 6,
5475 Self::TedPrice => 7,
5476 Self::TedYield => 8,
5477 Self::Yield => 9,
5478 Self::FixedCabinetTradePrice => 10,
5479 Self::VariableCabinetTradePrice => 11,
5480 Self::Unrecognized(value) => value,
5481 }
5482 }
5483}
5484
5485#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
5487pub enum GTBookingInst {
5488 BookOutAllTradesOnDayOfExecution,
5490 AccumulateUntilFilledOrExpired,
5492 AccumulateUntilVerballlyNotifiedOtherwise,
5494 Unrecognized(i64),
5496}
5497
5498impl GTBookingInst {
5499 pub fn from_value(value: i64) -> Self {
5500 match value {
5501 0 => Self::BookOutAllTradesOnDayOfExecution,
5502 1 => Self::AccumulateUntilFilledOrExpired,
5503 2 => Self::AccumulateUntilVerballlyNotifiedOtherwise,
5504 unrecognized => Self::Unrecognized(unrecognized),
5505 }
5506 }
5507
5508 pub fn value(self) -> i64 {
5509 match self {
5510 Self::BookOutAllTradesOnDayOfExecution => 0,
5511 Self::AccumulateUntilFilledOrExpired => 1,
5512 Self::AccumulateUntilVerballlyNotifiedOtherwise => 2,
5513 Self::Unrecognized(value) => value,
5514 }
5515 }
5516}
5517
5518#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
5520pub enum ListStatusType {
5521 Ack,
5523 Response,
5525 Timed,
5527 ExecStarted,
5529 AllDone,
5531 Alert,
5533 Unrecognized(i64),
5535}
5536
5537impl ListStatusType {
5538 pub fn from_value(value: i64) -> Self {
5539 match value {
5540 1 => Self::Ack,
5541 2 => Self::Response,
5542 3 => Self::Timed,
5543 4 => Self::ExecStarted,
5544 5 => Self::AllDone,
5545 6 => Self::Alert,
5546 unrecognized => Self::Unrecognized(unrecognized),
5547 }
5548 }
5549
5550 pub fn value(self) -> i64 {
5551 match self {
5552 Self::Ack => 1,
5553 Self::Response => 2,
5554 Self::Timed => 3,
5555 Self::ExecStarted => 4,
5556 Self::AllDone => 5,
5557 Self::Alert => 6,
5558 Self::Unrecognized(value) => value,
5559 }
5560 }
5561}
5562
5563#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
5565pub enum NetGrossInd {
5566 Net,
5568 Gross,
5570 Unrecognized(i64),
5572}
5573
5574impl NetGrossInd {
5575 pub fn from_value(value: i64) -> Self {
5576 match value {
5577 1 => Self::Net,
5578 2 => Self::Gross,
5579 unrecognized => Self::Unrecognized(unrecognized),
5580 }
5581 }
5582
5583 pub fn value(self) -> i64 {
5584 match self {
5585 Self::Net => 1,
5586 Self::Gross => 2,
5587 Self::Unrecognized(value) => value,
5588 }
5589 }
5590}
5591
5592#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
5594pub enum ListOrderStatus {
5595 InBiddingProcess,
5597 ReceivedForExecution,
5599 Executing,
5601 Cancelling,
5603 Alert,
5605 AllDone,
5607 Reject,
5609 Unrecognized(i64),
5611}
5612
5613impl ListOrderStatus {
5614 pub fn from_value(value: i64) -> Self {
5615 match value {
5616 1 => Self::InBiddingProcess,
5617 2 => Self::ReceivedForExecution,
5618 3 => Self::Executing,
5619 4 => Self::Cancelling,
5620 5 => Self::Alert,
5621 6 => Self::AllDone,
5622 7 => Self::Reject,
5623 unrecognized => Self::Unrecognized(unrecognized),
5624 }
5625 }
5626
5627 pub fn value(self) -> i64 {
5628 match self {
5629 Self::InBiddingProcess => 1,
5630 Self::ReceivedForExecution => 2,
5631 Self::Executing => 3,
5632 Self::Cancelling => 4,
5633 Self::Alert => 5,
5634 Self::AllDone => 6,
5635 Self::Reject => 7,
5636 Self::Unrecognized(value) => value,
5637 }
5638 }
5639}
5640
5641#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
5643pub enum ListExecInstType<'a> {
5644 Immediate,
5646 WaitForInstruction,
5648 SellDriven,
5650 BuyDrivenCashTopUp,
5652 BuyDrivenCashWithdraw,
5654 Unrecognized(&'a str),
5656}
5657
5658impl<'a> ListExecInstType<'a> {
5659 pub fn from_value(value: &'a str) -> Self {
5660 match value {
5661 "1" => Self::Immediate,
5662 "2" => Self::WaitForInstruction,
5663 "3" => Self::SellDriven,
5664 "4" => Self::BuyDrivenCashTopUp,
5665 "5" => Self::BuyDrivenCashWithdraw,
5666 unrecognized => Self::Unrecognized(unrecognized),
5667 }
5668 }
5669
5670 pub fn value(self) -> &'a str {
5671 match self {
5672 Self::Immediate => "1",
5673 Self::WaitForInstruction => "2",
5674 Self::SellDriven => "3",
5675 Self::BuyDrivenCashTopUp => "4",
5676 Self::BuyDrivenCashWithdraw => "5",
5677 Self::Unrecognized(value) => value,
5678 }
5679 }
5680}
5681
5682impl<'a> From<&'a str> for ListExecInstType<'a> {
5683 fn from(value: &'a str) -> Self {
5684 Self::from_value(value)
5685 }
5686}
5687
5688#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
5690pub enum CxlRejResponseTo<'a> {
5691 OrderCancelRequest,
5693 OrderCancel,
5695 Unrecognized(&'a str),
5697}
5698
5699impl<'a> CxlRejResponseTo<'a> {
5700 pub fn from_value(value: &'a str) -> Self {
5701 match value {
5702 "1" => Self::OrderCancelRequest,
5703 "2" => Self::OrderCancel,
5704 unrecognized => Self::Unrecognized(unrecognized),
5705 }
5706 }
5707
5708 pub fn value(self) -> &'a str {
5709 match self {
5710 Self::OrderCancelRequest => "1",
5711 Self::OrderCancel => "2",
5712 Self::Unrecognized(value) => value,
5713 }
5714 }
5715}
5716
5717impl<'a> From<&'a str> for CxlRejResponseTo<'a> {
5718 fn from(value: &'a str) -> Self {
5719 Self::from_value(value)
5720 }
5721}
5722
5723#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
5725pub enum MultiLegReportingType<'a> {
5726 SingleSecurity,
5728 IndividualLegOfAMultiLegSecurity,
5730 MultiLegSecurity,
5732 Unrecognized(&'a str),
5734}
5735
5736impl<'a> MultiLegReportingType<'a> {
5737 pub fn from_value(value: &'a str) -> Self {
5738 match value {
5739 "1" => Self::SingleSecurity,
5740 "2" => Self::IndividualLegOfAMultiLegSecurity,
5741 "3" => Self::MultiLegSecurity,
5742 unrecognized => Self::Unrecognized(unrecognized),
5743 }
5744 }
5745
5746 pub fn value(self) -> &'a str {
5747 match self {
5748 Self::SingleSecurity => "1",
5749 Self::IndividualLegOfAMultiLegSecurity => "2",
5750 Self::MultiLegSecurity => "3",
5751 Self::Unrecognized(value) => value,
5752 }
5753 }
5754}
5755
5756impl<'a> From<&'a str> for MultiLegReportingType<'a> {
5757 fn from(value: &'a str) -> Self {
5758 Self::from_value(value)
5759 }
5760}
5761
5762#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
5764pub enum PartyIDSource<'a> {
5765 Bic,
5767 GeneralIdentifier,
5769 Proprietary,
5771 IsoCountryCode,
5773 SettlementEntityLocation,
5775 Mic,
5777 CsdParticipant,
5779 KoreanInvestorId,
5781 TaiwaneseForeignInvestorId,
5783 TaiwaneseTradingAcct,
5785 MalaysianCentralDepository,
5787 ChineseInvestorId,
5789 UkNationalInsuranceOrPensionNumber,
5791 UsSocialSecurityNumber,
5793 UsEmployerOrTaxIdNumber,
5795 AustralianBusinessNumber,
5797 AustralianTaxFileNumber,
5799 IsitcAcronym,
5801 Unrecognized(&'a str),
5803}
5804
5805impl<'a> PartyIDSource<'a> {
5806 pub fn from_value(value: &'a str) -> Self {
5807 match value {
5808 "B" => Self::Bic,
5809 "C" => Self::GeneralIdentifier,
5810 "D" => Self::Proprietary,
5811 "E" => Self::IsoCountryCode,
5812 "F" => Self::SettlementEntityLocation,
5813 "G" => Self::Mic,
5814 "H" => Self::CsdParticipant,
5815 "1" => Self::KoreanInvestorId,
5816 "2" => Self::TaiwaneseForeignInvestorId,
5817 "3" => Self::TaiwaneseTradingAcct,
5818 "4" => Self::MalaysianCentralDepository,
5819 "5" => Self::ChineseInvestorId,
5820 "6" => Self::UkNationalInsuranceOrPensionNumber,
5821 "7" => Self::UsSocialSecurityNumber,
5822 "8" => Self::UsEmployerOrTaxIdNumber,
5823 "9" => Self::AustralianBusinessNumber,
5824 "A" => Self::AustralianTaxFileNumber,
5825 "I" => Self::IsitcAcronym,
5826 unrecognized => Self::Unrecognized(unrecognized),
5827 }
5828 }
5829
5830 pub fn value(self) -> &'a str {
5831 match self {
5832 Self::Bic => "B",
5833 Self::GeneralIdentifier => "C",
5834 Self::Proprietary => "D",
5835 Self::IsoCountryCode => "E",
5836 Self::SettlementEntityLocation => "F",
5837 Self::Mic => "G",
5838 Self::CsdParticipant => "H",
5839 Self::KoreanInvestorId => "1",
5840 Self::TaiwaneseForeignInvestorId => "2",
5841 Self::TaiwaneseTradingAcct => "3",
5842 Self::MalaysianCentralDepository => "4",
5843 Self::ChineseInvestorId => "5",
5844 Self::UkNationalInsuranceOrPensionNumber => "6",
5845 Self::UsSocialSecurityNumber => "7",
5846 Self::UsEmployerOrTaxIdNumber => "8",
5847 Self::AustralianBusinessNumber => "9",
5848 Self::AustralianTaxFileNumber => "A",
5849 Self::IsitcAcronym => "I",
5850 Self::Unrecognized(value) => value,
5851 }
5852 }
5853}
5854
5855impl<'a> From<&'a str> for PartyIDSource<'a> {
5856 fn from(value: &'a str) -> Self {
5857 Self::from_value(value)
5858 }
5859}
5860
5861#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
5863pub enum PartyRole {
5864 ExecutingFirm,
5866 BrokerOfCredit,
5868 ClientId,
5870 ClearingFirm,
5872 InvestorId,
5874 IntroducingFirm,
5876 EnteringFirm,
5878 Locate,
5880 FundManagerClientId,
5882 SettlementLocation,
5884 OrderOriginationTrader,
5886 ExecutingTrader,
5888 OrderOriginationFirm,
5890 GiveupClearingFirm,
5892 CorrespondantClearingFirm,
5894 ExecutingSystem,
5896 ContraFirm,
5898 ContraClearingFirm,
5900 SponsoringFirm,
5902 UnderlyingContraFirm,
5904 ClearingOrganization,
5906 Exchange,
5908 CustomerAccount,
5910 CorrespondentClearingOrganization,
5912 CorrespondentBroker,
5914 Buyer,
5916 Custodian,
5918 Intermediary,
5920 Agent,
5922 SubCustodian,
5924 Beneficiary,
5926 InterestedParty,
5928 RegulatoryBody,
5930 LiquidityProvider,
5932 EnteringTrader,
5934 ContraTrader,
5936 PositionAccount,
5938 Unrecognized(i64),
5940}
5941
5942impl PartyRole {
5943 pub fn from_value(value: i64) -> Self {
5944 match value {
5945 1 => Self::ExecutingFirm,
5946 2 => Self::BrokerOfCredit,
5947 3 => Self::ClientId,
5948 4 => Self::ClearingFirm,
5949 5 => Self::InvestorId,
5950 6 => Self::IntroducingFirm,
5951 7 => Self::EnteringFirm,
5952 8 => Self::Locate,
5953 9 => Self::FundManagerClientId,
5954 10 => Self::SettlementLocation,
5955 11 => Self::OrderOriginationTrader,
5956 12 => Self::ExecutingTrader,
5957 13 => Self::OrderOriginationFirm,
5958 14 => Self::GiveupClearingFirm,
5959 15 => Self::CorrespondantClearingFirm,
5960 16 => Self::ExecutingSystem,
5961 17 => Self::ContraFirm,
5962 18 => Self::ContraClearingFirm,
5963 19 => Self::SponsoringFirm,
5964 20 => Self::UnderlyingContraFirm,
5965 21 => Self::ClearingOrganization,
5966 22 => Self::Exchange,
5967 24 => Self::CustomerAccount,
5968 25 => Self::CorrespondentClearingOrganization,
5969 26 => Self::CorrespondentBroker,
5970 27 => Self::Buyer,
5971 28 => Self::Custodian,
5972 29 => Self::Intermediary,
5973 30 => Self::Agent,
5974 31 => Self::SubCustodian,
5975 32 => Self::Beneficiary,
5976 33 => Self::InterestedParty,
5977 34 => Self::RegulatoryBody,
5978 35 => Self::LiquidityProvider,
5979 36 => Self::EnteringTrader,
5980 37 => Self::ContraTrader,
5981 38 => Self::PositionAccount,
5982 unrecognized => Self::Unrecognized(unrecognized),
5983 }
5984 }
5985
5986 pub fn value(self) -> i64 {
5987 match self {
5988 Self::ExecutingFirm => 1,
5989 Self::BrokerOfCredit => 2,
5990 Self::ClientId => 3,
5991 Self::ClearingFirm => 4,
5992 Self::InvestorId => 5,
5993 Self::IntroducingFirm => 6,
5994 Self::EnteringFirm => 7,
5995 Self::Locate => 8,
5996 Self::FundManagerClientId => 9,
5997 Self::SettlementLocation => 10,
5998 Self::OrderOriginationTrader => 11,
5999 Self::ExecutingTrader => 12,
6000 Self::OrderOriginationFirm => 13,
6001 Self::GiveupClearingFirm => 14,
6002 Self::CorrespondantClearingFirm => 15,
6003 Self::ExecutingSystem => 16,
6004 Self::ContraFirm => 17,
6005 Self::ContraClearingFirm => 18,
6006 Self::SponsoringFirm => 19,
6007 Self::UnderlyingContraFirm => 20,
6008 Self::ClearingOrganization => 21,
6009 Self::Exchange => 22,
6010 Self::CustomerAccount => 24,
6011 Self::CorrespondentClearingOrganization => 25,
6012 Self::CorrespondentBroker => 26,
6013 Self::Buyer => 27,
6014 Self::Custodian => 28,
6015 Self::Intermediary => 29,
6016 Self::Agent => 30,
6017 Self::SubCustodian => 31,
6018 Self::Beneficiary => 32,
6019 Self::InterestedParty => 33,
6020 Self::RegulatoryBody => 34,
6021 Self::LiquidityProvider => 35,
6022 Self::EnteringTrader => 36,
6023 Self::ContraTrader => 37,
6024 Self::PositionAccount => 38,
6025 Self::Unrecognized(value) => value,
6026 }
6027 }
6028}
6029
6030#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
6032pub enum Product {
6033 Agency,
6035 Commodity,
6037 Corporate,
6039 Currency,
6041 Equity,
6043 Government,
6045 Index,
6047 Loan,
6049 Moneymarket,
6051 Mortgage,
6053 Municipal,
6055 Other,
6057 Financing,
6059 Unrecognized(i64),
6061}
6062
6063impl Product {
6064 pub fn from_value(value: i64) -> Self {
6065 match value {
6066 1 => Self::Agency,
6067 2 => Self::Commodity,
6068 3 => Self::Corporate,
6069 4 => Self::Currency,
6070 5 => Self::Equity,
6071 6 => Self::Government,
6072 7 => Self::Index,
6073 8 => Self::Loan,
6074 9 => Self::Moneymarket,
6075 10 => Self::Mortgage,
6076 11 => Self::Municipal,
6077 12 => Self::Other,
6078 13 => Self::Financing,
6079 unrecognized => Self::Unrecognized(unrecognized),
6080 }
6081 }
6082
6083 pub fn value(self) -> i64 {
6084 match self {
6085 Self::Agency => 1,
6086 Self::Commodity => 2,
6087 Self::Corporate => 3,
6088 Self::Currency => 4,
6089 Self::Equity => 5,
6090 Self::Government => 6,
6091 Self::Index => 7,
6092 Self::Loan => 8,
6093 Self::Moneymarket => 9,
6094 Self::Mortgage => 10,
6095 Self::Municipal => 11,
6096 Self::Other => 12,
6097 Self::Financing => 13,
6098 Self::Unrecognized(value) => value,
6099 }
6100 }
6101}
6102
6103#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
6105pub enum RoundingDirection<'a> {
6106 RoundToNearest,
6108 RoundDown,
6110 RoundUp,
6112 Unrecognized(&'a str),
6114}
6115
6116impl<'a> RoundingDirection<'a> {
6117 pub fn from_value(value: &'a str) -> Self {
6118 match value {
6119 "0" => Self::RoundToNearest,
6120 "1" => Self::RoundDown,
6121 "2" => Self::RoundUp,
6122 unrecognized => Self::Unrecognized(unrecognized),
6123 }
6124 }
6125
6126 pub fn value(self) -> &'a str {
6127 match self {
6128 Self::RoundToNearest => "0",
6129 Self::RoundDown => "1",
6130 Self::RoundUp => "2",
6131 Self::Unrecognized(value) => value,
6132 }
6133 }
6134}
6135
6136impl<'a> From<&'a str> for RoundingDirection<'a> {
6137 fn from(value: &'a str) -> Self {
6138 Self::from_value(value)
6139 }
6140}
6141
6142#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
6144pub enum DistribPaymentMethod {
6145 Crest,
6147 Nscc,
6149 Euroclear,
6151 Clearstream,
6153 Cheque,
6155 TelegraphicTransfer,
6157 FedWire,
6159 DirectCredit,
6161 AchCredit,
6163 Bpay,
6165 HighValueClearingSystemHvacs,
6167 ReinvestInFund,
6169 Unrecognized(i64),
6171}
6172
6173impl DistribPaymentMethod {
6174 pub fn from_value(value: i64) -> Self {
6175 match value {
6176 1 => Self::Crest,
6177 2 => Self::Nscc,
6178 3 => Self::Euroclear,
6179 4 => Self::Clearstream,
6180 5 => Self::Cheque,
6181 6 => Self::TelegraphicTransfer,
6182 7 => Self::FedWire,
6183 8 => Self::DirectCredit,
6184 9 => Self::AchCredit,
6185 10 => Self::Bpay,
6186 11 => Self::HighValueClearingSystemHvacs,
6187 12 => Self::ReinvestInFund,
6188 unrecognized => Self::Unrecognized(unrecognized),
6189 }
6190 }
6191
6192 pub fn value(self) -> i64 {
6193 match self {
6194 Self::Crest => 1,
6195 Self::Nscc => 2,
6196 Self::Euroclear => 3,
6197 Self::Clearstream => 4,
6198 Self::Cheque => 5,
6199 Self::TelegraphicTransfer => 6,
6200 Self::FedWire => 7,
6201 Self::DirectCredit => 8,
6202 Self::AchCredit => 9,
6203 Self::Bpay => 10,
6204 Self::HighValueClearingSystemHvacs => 11,
6205 Self::ReinvestInFund => 12,
6206 Self::Unrecognized(value) => value,
6207 }
6208 }
6209}
6210
6211#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
6213pub enum CancellationRights<'a> {
6214 Yes,
6216 NoExecutionOnly,
6218 NoWaiverAgreement,
6220 NoInstitutional,
6222 Unrecognized(&'a str),
6224}
6225
6226impl<'a> CancellationRights<'a> {
6227 pub fn from_value(value: &'a str) -> Self {
6228 match value {
6229 "Y" => Self::Yes,
6230 "N" => Self::NoExecutionOnly,
6231 "M" => Self::NoWaiverAgreement,
6232 "O" => Self::NoInstitutional,
6233 unrecognized => Self::Unrecognized(unrecognized),
6234 }
6235 }
6236
6237 pub fn value(self) -> &'a str {
6238 match self {
6239 Self::Yes => "Y",
6240 Self::NoExecutionOnly => "N",
6241 Self::NoWaiverAgreement => "M",
6242 Self::NoInstitutional => "O",
6243 Self::Unrecognized(value) => value,
6244 }
6245 }
6246}
6247
6248impl<'a> From<&'a str> for CancellationRights<'a> {
6249 fn from(value: &'a str) -> Self {
6250 Self::from_value(value)
6251 }
6252}
6253
6254#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
6256pub enum MoneyLaunderingStatus<'a> {
6257 Passed,
6259 NotChecked,
6261 ExemptBelowLimit,
6263 ExemptMoneyType,
6265 ExemptAuthorised,
6267 Unrecognized(&'a str),
6269}
6270
6271impl<'a> MoneyLaunderingStatus<'a> {
6272 pub fn from_value(value: &'a str) -> Self {
6273 match value {
6274 "Y" => Self::Passed,
6275 "N" => Self::NotChecked,
6276 "1" => Self::ExemptBelowLimit,
6277 "2" => Self::ExemptMoneyType,
6278 "3" => Self::ExemptAuthorised,
6279 unrecognized => Self::Unrecognized(unrecognized),
6280 }
6281 }
6282
6283 pub fn value(self) -> &'a str {
6284 match self {
6285 Self::Passed => "Y",
6286 Self::NotChecked => "N",
6287 Self::ExemptBelowLimit => "1",
6288 Self::ExemptMoneyType => "2",
6289 Self::ExemptAuthorised => "3",
6290 Self::Unrecognized(value) => value,
6291 }
6292 }
6293}
6294
6295impl<'a> From<&'a str> for MoneyLaunderingStatus<'a> {
6296 fn from(value: &'a str) -> Self {
6297 Self::from_value(value)
6298 }
6299}
6300
6301#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
6303pub enum ExecPriceType<'a> {
6304 BidPrice,
6306 CreationPrice,
6308 CreationPricePlusAdjustmentPercent,
6310 CreationPricePlusAdjustmentAmount,
6312 OfferPrice,
6314 OfferPriceMinusAdjustmentPercent,
6316 OfferPriceMinusAdjustmentAmount,
6318 SinglePrice,
6320 Unrecognized(&'a str),
6322}
6323
6324impl<'a> ExecPriceType<'a> {
6325 pub fn from_value(value: &'a str) -> Self {
6326 match value {
6327 "B" => Self::BidPrice,
6328 "C" => Self::CreationPrice,
6329 "D" => Self::CreationPricePlusAdjustmentPercent,
6330 "E" => Self::CreationPricePlusAdjustmentAmount,
6331 "O" => Self::OfferPrice,
6332 "P" => Self::OfferPriceMinusAdjustmentPercent,
6333 "Q" => Self::OfferPriceMinusAdjustmentAmount,
6334 "S" => Self::SinglePrice,
6335 unrecognized => Self::Unrecognized(unrecognized),
6336 }
6337 }
6338
6339 pub fn value(self) -> &'a str {
6340 match self {
6341 Self::BidPrice => "B",
6342 Self::CreationPrice => "C",
6343 Self::CreationPricePlusAdjustmentPercent => "D",
6344 Self::CreationPricePlusAdjustmentAmount => "E",
6345 Self::OfferPrice => "O",
6346 Self::OfferPriceMinusAdjustmentPercent => "P",
6347 Self::OfferPriceMinusAdjustmentAmount => "Q",
6348 Self::SinglePrice => "S",
6349 Self::Unrecognized(value) => value,
6350 }
6351 }
6352}
6353
6354impl<'a> From<&'a str> for ExecPriceType<'a> {
6355 fn from(value: &'a str) -> Self {
6356 Self::from_value(value)
6357 }
6358}
6359
6360#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
6362pub enum PaymentMethod {
6363 Crest,
6365 Nscc,
6367 Euroclear,
6369 Clearstream,
6371 Cheque,
6373 TelegraphicTransfer,
6375 FedWire,
6377 DebitCard,
6379 DirectDebit,
6381 DirectCredit,
6383 CreditCard,
6385 AchDebit,
6387 AchCredit,
6389 Bpay,
6391 HighValueClearingSystem,
6393 Unrecognized(i64),
6395}
6396
6397impl PaymentMethod {
6398 pub fn from_value(value: i64) -> Self {
6399 match value {
6400 1 => Self::Crest,
6401 2 => Self::Nscc,
6402 3 => Self::Euroclear,
6403 4 => Self::Clearstream,
6404 5 => Self::Cheque,
6405 6 => Self::TelegraphicTransfer,
6406 7 => Self::FedWire,
6407 8 => Self::DebitCard,
6408 9 => Self::DirectDebit,
6409 10 => Self::DirectCredit,
6410 11 => Self::CreditCard,
6411 12 => Self::AchDebit,
6412 13 => Self::AchCredit,
6413 14 => Self::Bpay,
6414 15 => Self::HighValueClearingSystem,
6415 unrecognized => Self::Unrecognized(unrecognized),
6416 }
6417 }
6418
6419 pub fn value(self) -> i64 {
6420 match self {
6421 Self::Crest => 1,
6422 Self::Nscc => 2,
6423 Self::Euroclear => 3,
6424 Self::Clearstream => 4,
6425 Self::Cheque => 5,
6426 Self::TelegraphicTransfer => 6,
6427 Self::FedWire => 7,
6428 Self::DebitCard => 8,
6429 Self::DirectDebit => 9,
6430 Self::DirectCredit => 10,
6431 Self::CreditCard => 11,
6432 Self::AchDebit => 12,
6433 Self::AchCredit => 13,
6434 Self::Bpay => 14,
6435 Self::HighValueClearingSystem => 15,
6436 Self::Unrecognized(value) => value,
6437 }
6438 }
6439}
6440
6441#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
6443pub enum TaxAdvantageType {
6444 None,
6446 MaxiIsa,
6448 Tessa,
6450 MiniCashIsa,
6452 MiniStocksAndSharesIsa,
6454 MiniInsuranceIsa,
6456 CurrentYearPayment,
6458 PriorYearPayment,
6460 AssetTransfer,
6462 EmployeePriorYear,
6464 EmployeeCurrentYear,
6466 EmployerPriorYear,
6468 EmployerCurrentYear,
6470 NonFundPrototypeIra,
6472 NonFundQualifiedPlan,
6474 DefinedContributionPlan,
6476 Ira,
6478 IraRollover,
6480 Keogh,
6482 ProfitSharingPlan,
6484 Us401K,
6486 SelfDirectedIra,
6488 Us403b,
6490 Us457,
6492 RothIraPrototype,
6494 RothIraNonPrototype,
6496 RothConversionIraPrototype,
6498 RothConversionIraNonPrototype,
6500 EducationIraPrototype,
6502 EducationIraNonPrototype,
6504 Unrecognized(i64),
6506}
6507
6508impl TaxAdvantageType {
6509 pub fn from_value(value: i64) -> Self {
6510 match value {
6511 0 => Self::None,
6512 1 => Self::MaxiIsa,
6513 2 => Self::Tessa,
6514 3 => Self::MiniCashIsa,
6515 4 => Self::MiniStocksAndSharesIsa,
6516 5 => Self::MiniInsuranceIsa,
6517 6 => Self::CurrentYearPayment,
6518 7 => Self::PriorYearPayment,
6519 8 => Self::AssetTransfer,
6520 9 => Self::EmployeePriorYear,
6521 10 => Self::EmployeeCurrentYear,
6522 11 => Self::EmployerPriorYear,
6523 12 => Self::EmployerCurrentYear,
6524 13 => Self::NonFundPrototypeIra,
6525 14 => Self::NonFundQualifiedPlan,
6526 15 => Self::DefinedContributionPlan,
6527 16 => Self::Ira,
6528 17 => Self::IraRollover,
6529 18 => Self::Keogh,
6530 19 => Self::ProfitSharingPlan,
6531 20 => Self::Us401K,
6532 21 => Self::SelfDirectedIra,
6533 22 => Self::Us403b,
6534 23 => Self::Us457,
6535 24 => Self::RothIraPrototype,
6536 25 => Self::RothIraNonPrototype,
6537 26 => Self::RothConversionIraPrototype,
6538 27 => Self::RothConversionIraNonPrototype,
6539 28 => Self::EducationIraPrototype,
6540 29 => Self::EducationIraNonPrototype,
6541 unrecognized => Self::Unrecognized(unrecognized),
6542 }
6543 }
6544
6545 pub fn value(self) -> i64 {
6546 match self {
6547 Self::None => 0,
6548 Self::MaxiIsa => 1,
6549 Self::Tessa => 2,
6550 Self::MiniCashIsa => 3,
6551 Self::MiniStocksAndSharesIsa => 4,
6552 Self::MiniInsuranceIsa => 5,
6553 Self::CurrentYearPayment => 6,
6554 Self::PriorYearPayment => 7,
6555 Self::AssetTransfer => 8,
6556 Self::EmployeePriorYear => 9,
6557 Self::EmployeeCurrentYear => 10,
6558 Self::EmployerPriorYear => 11,
6559 Self::EmployerCurrentYear => 12,
6560 Self::NonFundPrototypeIra => 13,
6561 Self::NonFundQualifiedPlan => 14,
6562 Self::DefinedContributionPlan => 15,
6563 Self::Ira => 16,
6564 Self::IraRollover => 17,
6565 Self::Keogh => 18,
6566 Self::ProfitSharingPlan => 19,
6567 Self::Us401K => 20,
6568 Self::SelfDirectedIra => 21,
6569 Self::Us403b => 22,
6570 Self::Us457 => 23,
6571 Self::RothIraPrototype => 24,
6572 Self::RothIraNonPrototype => 25,
6573 Self::RothConversionIraPrototype => 26,
6574 Self::RothConversionIraNonPrototype => 27,
6575 Self::EducationIraPrototype => 28,
6576 Self::EducationIraNonPrototype => 29,
6577 Self::Unrecognized(value) => value,
6578 }
6579 }
6580}
6581
6582#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
6584pub enum FundRenewWaiv<'a> {
6585 Yes,
6587 No,
6589 Unrecognized(&'a str),
6591}
6592
6593impl<'a> FundRenewWaiv<'a> {
6594 pub fn from_value(value: &'a str) -> Self {
6595 match value {
6596 "Y" => Self::Yes,
6597 "N" => Self::No,
6598 unrecognized => Self::Unrecognized(unrecognized),
6599 }
6600 }
6601
6602 pub fn value(self) -> &'a str {
6603 match self {
6604 Self::Yes => "Y",
6605 Self::No => "N",
6606 Self::Unrecognized(value) => value,
6607 }
6608 }
6609}
6610
6611impl<'a> From<&'a str> for FundRenewWaiv<'a> {
6612 fn from(value: &'a str) -> Self {
6613 Self::from_value(value)
6614 }
6615}
6616
6617#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
6619pub enum RegistStatus<'a> {
6620 Accepted,
6622 Rejected,
6624 Held,
6626 Reminder,
6628 Unrecognized(&'a str),
6630}
6631
6632impl<'a> RegistStatus<'a> {
6633 pub fn from_value(value: &'a str) -> Self {
6634 match value {
6635 "A" => Self::Accepted,
6636 "R" => Self::Rejected,
6637 "H" => Self::Held,
6638 "N" => Self::Reminder,
6639 unrecognized => Self::Unrecognized(unrecognized),
6640 }
6641 }
6642
6643 pub fn value(self) -> &'a str {
6644 match self {
6645 Self::Accepted => "A",
6646 Self::Rejected => "R",
6647 Self::Held => "H",
6648 Self::Reminder => "N",
6649 Self::Unrecognized(value) => value,
6650 }
6651 }
6652}
6653
6654impl<'a> From<&'a str> for RegistStatus<'a> {
6655 fn from(value: &'a str) -> Self {
6656 Self::from_value(value)
6657 }
6658}
6659
6660#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
6662pub enum RegistRejReasonCode {
6663 InvalidAccountType,
6665 InvalidTaxExemptType,
6667 InvalidOwnershipType,
6669 NoRegDetails,
6671 InvalidRegSeqNo,
6673 InvalidRegDetails,
6675 InvalidMailingDetails,
6677 InvalidMailingInstructions,
6679 InvalidInvestorId,
6681 InvalidInvestorIdSource,
6683 InvalidDateOfBirth,
6685 InvalidCountry,
6687 InvalidDistribInstns,
6689 InvalidPercentage,
6691 InvalidPaymentMethod,
6693 InvalidAccountName,
6695 InvalidAgentCode,
6697 InvalidAccountNum,
6699 Other,
6701 Unrecognized(i64),
6703}
6704
6705impl RegistRejReasonCode {
6706 pub fn from_value(value: i64) -> Self {
6707 match value {
6708 1 => Self::InvalidAccountType,
6709 2 => Self::InvalidTaxExemptType,
6710 3 => Self::InvalidOwnershipType,
6711 4 => Self::NoRegDetails,
6712 5 => Self::InvalidRegSeqNo,
6713 6 => Self::InvalidRegDetails,
6714 7 => Self::InvalidMailingDetails,
6715 8 => Self::InvalidMailingInstructions,
6716 9 => Self::InvalidInvestorId,
6717 10 => Self::InvalidInvestorIdSource,
6718 11 => Self::InvalidDateOfBirth,
6719 12 => Self::InvalidCountry,
6720 13 => Self::InvalidDistribInstns,
6721 14 => Self::InvalidPercentage,
6722 15 => Self::InvalidPaymentMethod,
6723 16 => Self::InvalidAccountName,
6724 17 => Self::InvalidAgentCode,
6725 18 => Self::InvalidAccountNum,
6726 99 => Self::Other,
6727 unrecognized => Self::Unrecognized(unrecognized),
6728 }
6729 }
6730
6731 pub fn value(self) -> i64 {
6732 match self {
6733 Self::InvalidAccountType => 1,
6734 Self::InvalidTaxExemptType => 2,
6735 Self::InvalidOwnershipType => 3,
6736 Self::NoRegDetails => 4,
6737 Self::InvalidRegSeqNo => 5,
6738 Self::InvalidRegDetails => 6,
6739 Self::InvalidMailingDetails => 7,
6740 Self::InvalidMailingInstructions => 8,
6741 Self::InvalidInvestorId => 9,
6742 Self::InvalidInvestorIdSource => 10,
6743 Self::InvalidDateOfBirth => 11,
6744 Self::InvalidCountry => 12,
6745 Self::InvalidDistribInstns => 13,
6746 Self::InvalidPercentage => 14,
6747 Self::InvalidPaymentMethod => 15,
6748 Self::InvalidAccountName => 16,
6749 Self::InvalidAgentCode => 17,
6750 Self::InvalidAccountNum => 18,
6751 Self::Other => 99,
6752 Self::Unrecognized(value) => value,
6753 }
6754 }
6755}
6756
6757#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
6759pub enum RegistTransType<'a> {
6760 New,
6762 Replace,
6764 Cancel,
6766 Unrecognized(&'a str),
6768}
6769
6770impl<'a> RegistTransType<'a> {
6771 pub fn from_value(value: &'a str) -> Self {
6772 match value {
6773 "0" => Self::New,
6774 "1" => Self::Replace,
6775 "2" => Self::Cancel,
6776 unrecognized => Self::Unrecognized(unrecognized),
6777 }
6778 }
6779
6780 pub fn value(self) -> &'a str {
6781 match self {
6782 Self::New => "0",
6783 Self::Replace => "1",
6784 Self::Cancel => "2",
6785 Self::Unrecognized(value) => value,
6786 }
6787 }
6788}
6789
6790impl<'a> From<&'a str> for RegistTransType<'a> {
6791 fn from(value: &'a str) -> Self {
6792 Self::from_value(value)
6793 }
6794}
6795
6796#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
6798pub enum OwnershipType<'a> {
6799 JointInvestors,
6801 TenantsInCommon,
6803 JointTrustees,
6805 Unrecognized(&'a str),
6807}
6808
6809impl<'a> OwnershipType<'a> {
6810 pub fn from_value(value: &'a str) -> Self {
6811 match value {
6812 "J" => Self::JointInvestors,
6813 "T" => Self::TenantsInCommon,
6814 "2" => Self::JointTrustees,
6815 unrecognized => Self::Unrecognized(unrecognized),
6816 }
6817 }
6818
6819 pub fn value(self) -> &'a str {
6820 match self {
6821 Self::JointInvestors => "J",
6822 Self::TenantsInCommon => "T",
6823 Self::JointTrustees => "2",
6824 Self::Unrecognized(value) => value,
6825 }
6826 }
6827}
6828
6829impl<'a> From<&'a str> for OwnershipType<'a> {
6830 fn from(value: &'a str) -> Self {
6831 Self::from_value(value)
6832 }
6833}
6834
6835#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
6837pub enum ContAmtType {
6838 CommissionAmount,
6840 CommissionPercent,
6842 InitialChargeAmount,
6844 InitialChargePercent,
6846 DiscountAmount,
6848 DiscountPercent,
6850 DilutionLevyAmount,
6852 DilutionLevyPercent,
6854 ExitChargeAmount,
6856 ExitChargePercent,
6858 FundBasedRenewalCommissionPercent,
6860 ProjectedFundValue,
6862 FundBasedRenewalCommissionOnOrder,
6864 FundBasedRenewalCommissionOnFund,
6866 NetSettlementAmount,
6868 Unrecognized(i64),
6870}
6871
6872impl ContAmtType {
6873 pub fn from_value(value: i64) -> Self {
6874 match value {
6875 1 => Self::CommissionAmount,
6876 2 => Self::CommissionPercent,
6877 3 => Self::InitialChargeAmount,
6878 4 => Self::InitialChargePercent,
6879 5 => Self::DiscountAmount,
6880 6 => Self::DiscountPercent,
6881 7 => Self::DilutionLevyAmount,
6882 8 => Self::DilutionLevyPercent,
6883 9 => Self::ExitChargeAmount,
6884 10 => Self::ExitChargePercent,
6885 11 => Self::FundBasedRenewalCommissionPercent,
6886 12 => Self::ProjectedFundValue,
6887 13 => Self::FundBasedRenewalCommissionOnOrder,
6888 14 => Self::FundBasedRenewalCommissionOnFund,
6889 15 => Self::NetSettlementAmount,
6890 unrecognized => Self::Unrecognized(unrecognized),
6891 }
6892 }
6893
6894 pub fn value(self) -> i64 {
6895 match self {
6896 Self::CommissionAmount => 1,
6897 Self::CommissionPercent => 2,
6898 Self::InitialChargeAmount => 3,
6899 Self::InitialChargePercent => 4,
6900 Self::DiscountAmount => 5,
6901 Self::DiscountPercent => 6,
6902 Self::DilutionLevyAmount => 7,
6903 Self::DilutionLevyPercent => 8,
6904 Self::ExitChargeAmount => 9,
6905 Self::ExitChargePercent => 10,
6906 Self::FundBasedRenewalCommissionPercent => 11,
6907 Self::ProjectedFundValue => 12,
6908 Self::FundBasedRenewalCommissionOnOrder => 13,
6909 Self::FundBasedRenewalCommissionOnFund => 14,
6910 Self::NetSettlementAmount => 15,
6911 Self::Unrecognized(value) => value,
6912 }
6913 }
6914}
6915
6916#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
6918pub enum OwnerType {
6919 IndividualInvestor,
6921 PublicCompany,
6923 PrivateCompany,
6925 IndividualTrustee,
6927 CompanyTrustee,
6929 PensionPlan,
6931 CustodianUnderGiftsToMinorsAct,
6933 Trusts,
6935 Fiduciaries,
6937 NetworkingSubAccount,
6939 NonProfitOrganization,
6941 CorporateBody,
6943 Nominee,
6945 Unrecognized(i64),
6947}
6948
6949impl OwnerType {
6950 pub fn from_value(value: i64) -> Self {
6951 match value {
6952 1 => Self::IndividualInvestor,
6953 2 => Self::PublicCompany,
6954 3 => Self::PrivateCompany,
6955 4 => Self::IndividualTrustee,
6956 5 => Self::CompanyTrustee,
6957 6 => Self::PensionPlan,
6958 7 => Self::CustodianUnderGiftsToMinorsAct,
6959 8 => Self::Trusts,
6960 9 => Self::Fiduciaries,
6961 10 => Self::NetworkingSubAccount,
6962 11 => Self::NonProfitOrganization,
6963 12 => Self::CorporateBody,
6964 13 => Self::Nominee,
6965 unrecognized => Self::Unrecognized(unrecognized),
6966 }
6967 }
6968
6969 pub fn value(self) -> i64 {
6970 match self {
6971 Self::IndividualInvestor => 1,
6972 Self::PublicCompany => 2,
6973 Self::PrivateCompany => 3,
6974 Self::IndividualTrustee => 4,
6975 Self::CompanyTrustee => 5,
6976 Self::PensionPlan => 6,
6977 Self::CustodianUnderGiftsToMinorsAct => 7,
6978 Self::Trusts => 8,
6979 Self::Fiduciaries => 9,
6980 Self::NetworkingSubAccount => 10,
6981 Self::NonProfitOrganization => 11,
6982 Self::CorporateBody => 12,
6983 Self::Nominee => 13,
6984 Self::Unrecognized(value) => value,
6985 }
6986 }
6987}
6988
6989#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
6991pub enum OrderCapacity<'a> {
6992 Agency,
6994 Proprietary,
6996 Individual,
6998 Principal,
7000 RisklessPrincipal,
7002 AgentForOtherMember,
7004 Unrecognized(&'a str),
7006}
7007
7008impl<'a> OrderCapacity<'a> {
7009 pub fn from_value(value: &'a str) -> Self {
7010 match value {
7011 "A" => Self::Agency,
7012 "G" => Self::Proprietary,
7013 "I" => Self::Individual,
7014 "P" => Self::Principal,
7015 "R" => Self::RisklessPrincipal,
7016 "W" => Self::AgentForOtherMember,
7017 unrecognized => Self::Unrecognized(unrecognized),
7018 }
7019 }
7020
7021 pub fn value(self) -> &'a str {
7022 match self {
7023 Self::Agency => "A",
7024 Self::Proprietary => "G",
7025 Self::Individual => "I",
7026 Self::Principal => "P",
7027 Self::RisklessPrincipal => "R",
7028 Self::AgentForOtherMember => "W",
7029 Self::Unrecognized(value) => value,
7030 }
7031 }
7032}
7033
7034impl<'a> From<&'a str> for OrderCapacity<'a> {
7035 fn from(value: &'a str) -> Self {
7036 Self::from_value(value)
7037 }
7038}
7039
7040#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
7042pub enum OrderRestrictions<'a> {
7043 ProgramTrade,
7045 IndexArbitrage,
7047 NonIndexArbitrage,
7049 CompetingMarketMaker,
7051 ActingAsMarketMakerOrSpecialistInSecurity,
7053 ActingAsMarketMakerOrSpecialistInUnderlying,
7055 ForeignEntity,
7057 ExternalMarketParticipant,
7059 ExternalInterConnectedMarketLinkage,
7061 RisklessArbitrage,
7063 Unrecognized(&'a str),
7065}
7066
7067impl<'a> OrderRestrictions<'a> {
7068 pub fn from_value(value: &'a str) -> Self {
7069 match value {
7070 "1" => Self::ProgramTrade,
7071 "2" => Self::IndexArbitrage,
7072 "3" => Self::NonIndexArbitrage,
7073 "4" => Self::CompetingMarketMaker,
7074 "5" => Self::ActingAsMarketMakerOrSpecialistInSecurity,
7075 "6" => Self::ActingAsMarketMakerOrSpecialistInUnderlying,
7076 "7" => Self::ForeignEntity,
7077 "8" => Self::ExternalMarketParticipant,
7078 "9" => Self::ExternalInterConnectedMarketLinkage,
7079 "A" => Self::RisklessArbitrage,
7080 unrecognized => Self::Unrecognized(unrecognized),
7081 }
7082 }
7083
7084 pub fn value(self) -> &'a str {
7085 match self {
7086 Self::ProgramTrade => "1",
7087 Self::IndexArbitrage => "2",
7088 Self::NonIndexArbitrage => "3",
7089 Self::CompetingMarketMaker => "4",
7090 Self::ActingAsMarketMakerOrSpecialistInSecurity => "5",
7091 Self::ActingAsMarketMakerOrSpecialistInUnderlying => "6",
7092 Self::ForeignEntity => "7",
7093 Self::ExternalMarketParticipant => "8",
7094 Self::ExternalInterConnectedMarketLinkage => "9",
7095 Self::RisklessArbitrage => "A",
7096 Self::Unrecognized(value) => value,
7097 }
7098 }
7099}
7100
7101impl<'a> From<&'a str> for OrderRestrictions<'a> {
7102 fn from(value: &'a str) -> Self {
7103 Self::from_value(value)
7104 }
7105}
7106
7107#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
7109pub enum MassCancelRequestType<'a> {
7110 CancelOrdersForASecurity,
7112 CancelOrdersForAnUnderlyingSecurity,
7114 CancelOrdersForAProduct,
7116 CancelOrdersForAcfiCode,
7118 CancelOrdersForASecurityType,
7120 CancelOrdersForATradingSession,
7122 CancelAllOrders,
7124 Unrecognized(&'a str),
7126}
7127
7128impl<'a> MassCancelRequestType<'a> {
7129 pub fn from_value(value: &'a str) -> Self {
7130 match value {
7131 "1" => Self::CancelOrdersForASecurity,
7132 "2" => Self::CancelOrdersForAnUnderlyingSecurity,
7133 "3" => Self::CancelOrdersForAProduct,
7134 "4" => Self::CancelOrdersForAcfiCode,
7135 "5" => Self::CancelOrdersForASecurityType,
7136 "6" => Self::CancelOrdersForATradingSession,
7137 "7" => Self::CancelAllOrders,
7138 unrecognized => Self::Unrecognized(unrecognized),
7139 }
7140 }
7141
7142 pub fn value(self) -> &'a str {
7143 match self {
7144 Self::CancelOrdersForASecurity => "1",
7145 Self::CancelOrdersForAnUnderlyingSecurity => "2",
7146 Self::CancelOrdersForAProduct => "3",
7147 Self::CancelOrdersForAcfiCode => "4",
7148 Self::CancelOrdersForASecurityType => "5",
7149 Self::CancelOrdersForATradingSession => "6",
7150 Self::CancelAllOrders => "7",
7151 Self::Unrecognized(value) => value,
7152 }
7153 }
7154}
7155
7156impl<'a> From<&'a str> for MassCancelRequestType<'a> {
7157 fn from(value: &'a str) -> Self {
7158 Self::from_value(value)
7159 }
7160}
7161
7162#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
7164pub enum MassCancelResponse<'a> {
7165 CancelRequestRejected,
7167 CancelOrdersForASecurity,
7169 CancelOrdersForAnUnderlyingSecurity,
7171 CancelOrdersForAProduct,
7173 CancelOrdersForAcfiCode,
7175 CancelOrdersForASecurityType,
7177 CancelOrdersForATradingSession,
7179 CancelAllOrders,
7181 Unrecognized(&'a str),
7183}
7184
7185impl<'a> MassCancelResponse<'a> {
7186 pub fn from_value(value: &'a str) -> Self {
7187 match value {
7188 "0" => Self::CancelRequestRejected,
7189 "1" => Self::CancelOrdersForASecurity,
7190 "2" => Self::CancelOrdersForAnUnderlyingSecurity,
7191 "3" => Self::CancelOrdersForAProduct,
7192 "4" => Self::CancelOrdersForAcfiCode,
7193 "5" => Self::CancelOrdersForASecurityType,
7194 "6" => Self::CancelOrdersForATradingSession,
7195 "7" => Self::CancelAllOrders,
7196 unrecognized => Self::Unrecognized(unrecognized),
7197 }
7198 }
7199
7200 pub fn value(self) -> &'a str {
7201 match self {
7202 Self::CancelRequestRejected => "0",
7203 Self::CancelOrdersForASecurity => "1",
7204 Self::CancelOrdersForAnUnderlyingSecurity => "2",
7205 Self::CancelOrdersForAProduct => "3",
7206 Self::CancelOrdersForAcfiCode => "4",
7207 Self::CancelOrdersForASecurityType => "5",
7208 Self::CancelOrdersForATradingSession => "6",
7209 Self::CancelAllOrders => "7",
7210 Self::Unrecognized(value) => value,
7211 }
7212 }
7213}
7214
7215impl<'a> From<&'a str> for MassCancelResponse<'a> {
7216 fn from(value: &'a str) -> Self {
7217 Self::from_value(value)
7218 }
7219}
7220
7221#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
7223pub enum MassCancelRejectReason<'a> {
7224 MassCancelNotSupported,
7226 InvalidOrUnknownSecurity,
7228 InvalidOrUnkownUnderlyingSecurity,
7230 InvalidOrUnknownProduct,
7232 InvalidOrUnknownCfiCode,
7234 InvalidOrUnknownSecurityType,
7236 InvalidOrUnknownTradingSession,
7238 Other,
7240 Unrecognized(&'a str),
7242}
7243
7244impl<'a> MassCancelRejectReason<'a> {
7245 pub fn from_value(value: &'a str) -> Self {
7246 match value {
7247 "0" => Self::MassCancelNotSupported,
7248 "1" => Self::InvalidOrUnknownSecurity,
7249 "2" => Self::InvalidOrUnkownUnderlyingSecurity,
7250 "3" => Self::InvalidOrUnknownProduct,
7251 "4" => Self::InvalidOrUnknownCfiCode,
7252 "5" => Self::InvalidOrUnknownSecurityType,
7253 "6" => Self::InvalidOrUnknownTradingSession,
7254 "99" => Self::Other,
7255 unrecognized => Self::Unrecognized(unrecognized),
7256 }
7257 }
7258
7259 pub fn value(self) -> &'a str {
7260 match self {
7261 Self::MassCancelNotSupported => "0",
7262 Self::InvalidOrUnknownSecurity => "1",
7263 Self::InvalidOrUnkownUnderlyingSecurity => "2",
7264 Self::InvalidOrUnknownProduct => "3",
7265 Self::InvalidOrUnknownCfiCode => "4",
7266 Self::InvalidOrUnknownSecurityType => "5",
7267 Self::InvalidOrUnknownTradingSession => "6",
7268 Self::Other => "99",
7269 Self::Unrecognized(value) => value,
7270 }
7271 }
7272}
7273
7274impl<'a> From<&'a str> for MassCancelRejectReason<'a> {
7275 fn from(value: &'a str) -> Self {
7276 Self::from_value(value)
7277 }
7278}
7279
7280#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
7282pub enum QuoteType {
7283 Indicative,
7285 Tradeable,
7287 RestrictedTradeable,
7289 Counter,
7291 Unrecognized(i64),
7293}
7294
7295impl QuoteType {
7296 pub fn from_value(value: i64) -> Self {
7297 match value {
7298 0 => Self::Indicative,
7299 1 => Self::Tradeable,
7300 2 => Self::RestrictedTradeable,
7301 3 => Self::Counter,
7302 unrecognized => Self::Unrecognized(unrecognized),
7303 }
7304 }
7305
7306 pub fn value(self) -> i64 {
7307 match self {
7308 Self::Indicative => 0,
7309 Self::Tradeable => 1,
7310 Self::RestrictedTradeable => 2,
7311 Self::Counter => 3,
7312 Self::Unrecognized(value) => value,
7313 }
7314 }
7315}
7316
7317#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
7319pub enum CashMargin<'a> {
7320 Cash,
7322 MarginOpen,
7324 MarginClose,
7326 Unrecognized(&'a str),
7328}
7329
7330impl<'a> CashMargin<'a> {
7331 pub fn from_value(value: &'a str) -> Self {
7332 match value {
7333 "1" => Self::Cash,
7334 "2" => Self::MarginOpen,
7335 "3" => Self::MarginClose,
7336 unrecognized => Self::Unrecognized(unrecognized),
7337 }
7338 }
7339
7340 pub fn value(self) -> &'a str {
7341 match self {
7342 Self::Cash => "1",
7343 Self::MarginOpen => "2",
7344 Self::MarginClose => "3",
7345 Self::Unrecognized(value) => value,
7346 }
7347 }
7348}
7349
7350impl<'a> From<&'a str> for CashMargin<'a> {
7351 fn from(value: &'a str) -> Self {
7352 Self::from_value(value)
7353 }
7354}
7355
7356#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
7358pub enum Scope<'a> {
7359 LocalMarket,
7361 National,
7363 Global,
7365 Unrecognized(&'a str),
7367}
7368
7369impl<'a> Scope<'a> {
7370 pub fn from_value(value: &'a str) -> Self {
7371 match value {
7372 "1" => Self::LocalMarket,
7373 "2" => Self::National,
7374 "3" => Self::Global,
7375 unrecognized => Self::Unrecognized(unrecognized),
7376 }
7377 }
7378
7379 pub fn value(self) -> &'a str {
7380 match self {
7381 Self::LocalMarket => "1",
7382 Self::National => "2",
7383 Self::Global => "3",
7384 Self::Unrecognized(value) => value,
7385 }
7386 }
7387}
7388
7389impl<'a> From<&'a str> for Scope<'a> {
7390 fn from(value: &'a str) -> Self {
7391 Self::from_value(value)
7392 }
7393}
7394
7395#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
7397pub enum CrossType {
7398 CrossAon,
7400 CrossIoc,
7402 CrossOneSide,
7404 CrossSamePrice,
7406 Unrecognized(i64),
7408}
7409
7410impl CrossType {
7411 pub fn from_value(value: i64) -> Self {
7412 match value {
7413 1 => Self::CrossAon,
7414 2 => Self::CrossIoc,
7415 3 => Self::CrossOneSide,
7416 4 => Self::CrossSamePrice,
7417 unrecognized => Self::Unrecognized(unrecognized),
7418 }
7419 }
7420
7421 pub fn value(self) -> i64 {
7422 match self {
7423 Self::CrossAon => 1,
7424 Self::CrossIoc => 2,
7425 Self::CrossOneSide => 3,
7426 Self::CrossSamePrice => 4,
7427 Self::Unrecognized(value) => value,
7428 }
7429 }
7430}
7431
7432#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
7434pub enum CrossPrioritization {
7435 None,
7437 BuySideIsPrioritized,
7439 SellSideIsPrioritized,
7441 Unrecognized(i64),
7443}
7444
7445impl CrossPrioritization {
7446 pub fn from_value(value: i64) -> Self {
7447 match value {
7448 0 => Self::None,
7449 1 => Self::BuySideIsPrioritized,
7450 2 => Self::SellSideIsPrioritized,
7451 unrecognized => Self::Unrecognized(unrecognized),
7452 }
7453 }
7454
7455 pub fn value(self) -> i64 {
7456 match self {
7457 Self::None => 0,
7458 Self::BuySideIsPrioritized => 1,
7459 Self::SellSideIsPrioritized => 2,
7460 Self::Unrecognized(value) => value,
7461 }
7462 }
7463}
7464
7465#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
7467pub enum NoSides {
7468 OneSide,
7470 BothSides,
7472 Unrecognized(i64),
7474}
7475
7476impl NoSides {
7477 pub fn from_value(value: i64) -> Self {
7478 match value {
7479 1 => Self::OneSide,
7480 2 => Self::BothSides,
7481 unrecognized => Self::Unrecognized(unrecognized),
7482 }
7483 }
7484
7485 pub fn value(self) -> i64 {
7486 match self {
7487 Self::OneSide => 1,
7488 Self::BothSides => 2,
7489 Self::Unrecognized(value) => value,
7490 }
7491 }
7492}
7493
7494#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
7496pub enum SecurityListRequestType {
7497 Symbol,
7499 SecurityTypeAnd,
7501 Product,
7503 TradingSessionId,
7505 AllSecurities,
7507 Unrecognized(i64),
7509}
7510
7511impl SecurityListRequestType {
7512 pub fn from_value(value: i64) -> Self {
7513 match value {
7514 0 => Self::Symbol,
7515 1 => Self::SecurityTypeAnd,
7516 2 => Self::Product,
7517 3 => Self::TradingSessionId,
7518 4 => Self::AllSecurities,
7519 unrecognized => Self::Unrecognized(unrecognized),
7520 }
7521 }
7522
7523 pub fn value(self) -> i64 {
7524 match self {
7525 Self::Symbol => 0,
7526 Self::SecurityTypeAnd => 1,
7527 Self::Product => 2,
7528 Self::TradingSessionId => 3,
7529 Self::AllSecurities => 4,
7530 Self::Unrecognized(value) => value,
7531 }
7532 }
7533}
7534
7535#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
7537pub enum SecurityRequestResult {
7538 ValidRequest,
7540 InvalidOrUnsupportedRequest,
7542 NoInstrumentsFound,
7544 NotAuthorizedToRetrieveInstrumentData,
7546 InstrumentDataTemporarilyUnavailable,
7548 RequestForInstrumentDataNotSupported,
7550 Unrecognized(i64),
7552}
7553
7554impl SecurityRequestResult {
7555 pub fn from_value(value: i64) -> Self {
7556 match value {
7557 0 => Self::ValidRequest,
7558 1 => Self::InvalidOrUnsupportedRequest,
7559 2 => Self::NoInstrumentsFound,
7560 3 => Self::NotAuthorizedToRetrieveInstrumentData,
7561 4 => Self::InstrumentDataTemporarilyUnavailable,
7562 5 => Self::RequestForInstrumentDataNotSupported,
7563 unrecognized => Self::Unrecognized(unrecognized),
7564 }
7565 }
7566
7567 pub fn value(self) -> i64 {
7568 match self {
7569 Self::ValidRequest => 0,
7570 Self::InvalidOrUnsupportedRequest => 1,
7571 Self::NoInstrumentsFound => 2,
7572 Self::NotAuthorizedToRetrieveInstrumentData => 3,
7573 Self::InstrumentDataTemporarilyUnavailable => 4,
7574 Self::RequestForInstrumentDataNotSupported => 5,
7575 Self::Unrecognized(value) => value,
7576 }
7577 }
7578}
7579
7580#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
7582pub enum MultiLegRptTypeReq {
7583 ReportByMulitlegSecurityOnly,
7585 ReportByMultilegSecurityAndInstrumentLegs,
7587 ReportByInstrumentLegsOnly,
7589 Unrecognized(i64),
7591}
7592
7593impl MultiLegRptTypeReq {
7594 pub fn from_value(value: i64) -> Self {
7595 match value {
7596 0 => Self::ReportByMulitlegSecurityOnly,
7597 1 => Self::ReportByMultilegSecurityAndInstrumentLegs,
7598 2 => Self::ReportByInstrumentLegsOnly,
7599 unrecognized => Self::Unrecognized(unrecognized),
7600 }
7601 }
7602
7603 pub fn value(self) -> i64 {
7604 match self {
7605 Self::ReportByMulitlegSecurityOnly => 0,
7606 Self::ReportByMultilegSecurityAndInstrumentLegs => 1,
7607 Self::ReportByInstrumentLegsOnly => 2,
7608 Self::Unrecognized(value) => value,
7609 }
7610 }
7611}
7612
7613#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
7615pub enum TradSesStatusRejReason {
7616 UnknownOrInvalidTradingSessionId,
7618 Other,
7620 Unrecognized(i64),
7622}
7623
7624impl TradSesStatusRejReason {
7625 pub fn from_value(value: i64) -> Self {
7626 match value {
7627 1 => Self::UnknownOrInvalidTradingSessionId,
7628 99 => Self::Other,
7629 unrecognized => Self::Unrecognized(unrecognized),
7630 }
7631 }
7632
7633 pub fn value(self) -> i64 {
7634 match self {
7635 Self::UnknownOrInvalidTradingSessionId => 1,
7636 Self::Other => 99,
7637 Self::Unrecognized(value) => value,
7638 }
7639 }
7640}
7641
7642#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
7644pub enum TradeRequestType {
7645 AllTrades,
7647 MatchedTradesMatchingCriteria,
7649 UnmatchedTradesThatMatchCriteria,
7651 UnreportedTradesThatMatchCriteria,
7653 AdvisoriesThatMatchCriteria,
7655 Unrecognized(i64),
7657}
7658
7659impl TradeRequestType {
7660 pub fn from_value(value: i64) -> Self {
7661 match value {
7662 0 => Self::AllTrades,
7663 1 => Self::MatchedTradesMatchingCriteria,
7664 2 => Self::UnmatchedTradesThatMatchCriteria,
7665 3 => Self::UnreportedTradesThatMatchCriteria,
7666 4 => Self::AdvisoriesThatMatchCriteria,
7667 unrecognized => Self::Unrecognized(unrecognized),
7668 }
7669 }
7670
7671 pub fn value(self) -> i64 {
7672 match self {
7673 Self::AllTrades => 0,
7674 Self::MatchedTradesMatchingCriteria => 1,
7675 Self::UnmatchedTradesThatMatchCriteria => 2,
7676 Self::UnreportedTradesThatMatchCriteria => 3,
7677 Self::AdvisoriesThatMatchCriteria => 4,
7678 Self::Unrecognized(value) => value,
7679 }
7680 }
7681}
7682
7683#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
7685pub enum MatchStatus<'a> {
7686 Compared,
7688 Uncompared,
7690 AdvisoryOrAlert,
7692 Unrecognized(&'a str),
7694}
7695
7696impl<'a> MatchStatus<'a> {
7697 pub fn from_value(value: &'a str) -> Self {
7698 match value {
7699 "0" => Self::Compared,
7700 "1" => Self::Uncompared,
7701 "2" => Self::AdvisoryOrAlert,
7702 unrecognized => Self::Unrecognized(unrecognized),
7703 }
7704 }
7705
7706 pub fn value(self) -> &'a str {
7707 match self {
7708 Self::Compared => "0",
7709 Self::Uncompared => "1",
7710 Self::AdvisoryOrAlert => "2",
7711 Self::Unrecognized(value) => value,
7712 }
7713 }
7714}
7715
7716impl<'a> From<&'a str> for MatchStatus<'a> {
7717 fn from(value: &'a str) -> Self {
7718 Self::from_value(value)
7719 }
7720}
7721
7722#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
7724pub enum MatchType<'a> {
7725 ExactMatchPlus4BadgesExecTime,
7727 ExactMatchPlus4Badges,
7729 ExactMatchPlus2BadgesExecTime,
7731 ExactMatchPlus2Badges,
7733 ExactMatchPlusExecTime,
7735 StampedAdvisoriesOrSpecialistAccepts,
7737 A1ExactMatchSummarizedQuantity,
7739 A2ExactMatchSummarizedQuantity,
7741 A3ExactMatchSummarizedQuantity,
7743 A4ExactMatchSummarizedQuantity,
7745 A5ExactMatchSummarizedQuantity,
7747 ExactMatchMinusBadgesTimes,
7749 SummarizedMatchMinusBadgesTimes,
7751 OcsLockedIn,
7753 ActAcceptedTrade,
7755 ActDefaultTrade,
7757 ActDefaultAfterM2,
7759 Actm6Match,
7761 Unrecognized(&'a str),
7763}
7764
7765impl<'a> MatchType<'a> {
7766 pub fn from_value(value: &'a str) -> Self {
7767 match value {
7768 "A1" => Self::ExactMatchPlus4BadgesExecTime,
7769 "A2" => Self::ExactMatchPlus4Badges,
7770 "A3" => Self::ExactMatchPlus2BadgesExecTime,
7771 "A4" => Self::ExactMatchPlus2Badges,
7772 "A5" => Self::ExactMatchPlusExecTime,
7773 "AQ" => Self::StampedAdvisoriesOrSpecialistAccepts,
7774 "S1" => Self::A1ExactMatchSummarizedQuantity,
7775 "S2" => Self::A2ExactMatchSummarizedQuantity,
7776 "S3" => Self::A3ExactMatchSummarizedQuantity,
7777 "S4" => Self::A4ExactMatchSummarizedQuantity,
7778 "S5" => Self::A5ExactMatchSummarizedQuantity,
7779 "M1" => Self::ExactMatchMinusBadgesTimes,
7780 "M2" => Self::SummarizedMatchMinusBadgesTimes,
7781 "MT" => Self::OcsLockedIn,
7782 "M3" => Self::ActAcceptedTrade,
7783 "M4" => Self::ActDefaultTrade,
7784 "M5" => Self::ActDefaultAfterM2,
7785 "M6" => Self::Actm6Match,
7786 unrecognized => Self::Unrecognized(unrecognized),
7787 }
7788 }
7789
7790 pub fn value(self) -> &'a str {
7791 match self {
7792 Self::ExactMatchPlus4BadgesExecTime => "A1",
7793 Self::ExactMatchPlus4Badges => "A2",
7794 Self::ExactMatchPlus2BadgesExecTime => "A3",
7795 Self::ExactMatchPlus2Badges => "A4",
7796 Self::ExactMatchPlusExecTime => "A5",
7797 Self::StampedAdvisoriesOrSpecialistAccepts => "AQ",
7798 Self::A1ExactMatchSummarizedQuantity => "S1",
7799 Self::A2ExactMatchSummarizedQuantity => "S2",
7800 Self::A3ExactMatchSummarizedQuantity => "S3",
7801 Self::A4ExactMatchSummarizedQuantity => "S4",
7802 Self::A5ExactMatchSummarizedQuantity => "S5",
7803 Self::ExactMatchMinusBadgesTimes => "M1",
7804 Self::SummarizedMatchMinusBadgesTimes => "M2",
7805 Self::OcsLockedIn => "MT",
7806 Self::ActAcceptedTrade => "M3",
7807 Self::ActDefaultTrade => "M4",
7808 Self::ActDefaultAfterM2 => "M5",
7809 Self::Actm6Match => "M6",
7810 Self::Unrecognized(value) => value,
7811 }
7812 }
7813}
7814
7815impl<'a> From<&'a str> for MatchType<'a> {
7816 fn from(value: &'a str) -> Self {
7817 Self::from_value(value)
7818 }
7819}
7820
7821#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
7823pub enum ClearingInstruction {
7824 ProcessNormally,
7826 ExcludeFromAllNetting,
7828 BilateralNettingOnly,
7830 ExClearing,
7832 SpecialTrade,
7834 MultilateralNetting,
7836 ClearAgainstCentralCounterparty,
7838 ExcludeFromCentralCounterparty,
7840 ManualMode,
7842 AutomaticPostingMode,
7844 AutomaticGiveUpMode,
7846 QualifiedServiceRepresentativeQsr,
7848 CustomerTrade,
7850 SelfClearing,
7852 Unrecognized(i64),
7854}
7855
7856impl ClearingInstruction {
7857 pub fn from_value(value: i64) -> Self {
7858 match value {
7859 0 => Self::ProcessNormally,
7860 1 => Self::ExcludeFromAllNetting,
7861 2 => Self::BilateralNettingOnly,
7862 3 => Self::ExClearing,
7863 4 => Self::SpecialTrade,
7864 5 => Self::MultilateralNetting,
7865 6 => Self::ClearAgainstCentralCounterparty,
7866 7 => Self::ExcludeFromCentralCounterparty,
7867 8 => Self::ManualMode,
7868 9 => Self::AutomaticPostingMode,
7869 10 => Self::AutomaticGiveUpMode,
7870 11 => Self::QualifiedServiceRepresentativeQsr,
7871 12 => Self::CustomerTrade,
7872 13 => Self::SelfClearing,
7873 unrecognized => Self::Unrecognized(unrecognized),
7874 }
7875 }
7876
7877 pub fn value(self) -> i64 {
7878 match self {
7879 Self::ProcessNormally => 0,
7880 Self::ExcludeFromAllNetting => 1,
7881 Self::BilateralNettingOnly => 2,
7882 Self::ExClearing => 3,
7883 Self::SpecialTrade => 4,
7884 Self::MultilateralNetting => 5,
7885 Self::ClearAgainstCentralCounterparty => 6,
7886 Self::ExcludeFromCentralCounterparty => 7,
7887 Self::ManualMode => 8,
7888 Self::AutomaticPostingMode => 9,
7889 Self::AutomaticGiveUpMode => 10,
7890 Self::QualifiedServiceRepresentativeQsr => 11,
7891 Self::CustomerTrade => 12,
7892 Self::SelfClearing => 13,
7893 Self::Unrecognized(value) => value,
7894 }
7895 }
7896}
7897
7898#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
7900pub enum AccountType {
7901 CarriedCustomerSide,
7903 CarriedNonCustomerSide,
7905 HouseTrader,
7907 FloorTrader,
7909 CarriedNonCustomerSideCrossMargined,
7911 HouseTraderCrossMargined,
7913 JointBackOfficeAccount,
7915 Unrecognized(i64),
7917}
7918
7919impl AccountType {
7920 pub fn from_value(value: i64) -> Self {
7921 match value {
7922 1 => Self::CarriedCustomerSide,
7923 2 => Self::CarriedNonCustomerSide,
7924 3 => Self::HouseTrader,
7925 4 => Self::FloorTrader,
7926 6 => Self::CarriedNonCustomerSideCrossMargined,
7927 7 => Self::HouseTraderCrossMargined,
7928 8 => Self::JointBackOfficeAccount,
7929 unrecognized => Self::Unrecognized(unrecognized),
7930 }
7931 }
7932
7933 pub fn value(self) -> i64 {
7934 match self {
7935 Self::CarriedCustomerSide => 1,
7936 Self::CarriedNonCustomerSide => 2,
7937 Self::HouseTrader => 3,
7938 Self::FloorTrader => 4,
7939 Self::CarriedNonCustomerSideCrossMargined => 6,
7940 Self::HouseTraderCrossMargined => 7,
7941 Self::JointBackOfficeAccount => 8,
7942 Self::Unrecognized(value) => value,
7943 }
7944 }
7945}
7946
7947#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
7949pub enum CustOrderCapacity {
7950 MemberTradingForTheirOwnAccount,
7952 ClearingFirmTradingForItsProprietaryAccount,
7954 MemberTradingForAnotherMember,
7956 AllOther,
7958 Unrecognized(i64),
7960}
7961
7962impl CustOrderCapacity {
7963 pub fn from_value(value: i64) -> Self {
7964 match value {
7965 1 => Self::MemberTradingForTheirOwnAccount,
7966 2 => Self::ClearingFirmTradingForItsProprietaryAccount,
7967 3 => Self::MemberTradingForAnotherMember,
7968 4 => Self::AllOther,
7969 unrecognized => Self::Unrecognized(unrecognized),
7970 }
7971 }
7972
7973 pub fn value(self) -> i64 {
7974 match self {
7975 Self::MemberTradingForTheirOwnAccount => 1,
7976 Self::ClearingFirmTradingForItsProprietaryAccount => 2,
7977 Self::MemberTradingForAnotherMember => 3,
7978 Self::AllOther => 4,
7979 Self::Unrecognized(value) => value,
7980 }
7981 }
7982}
7983
7984#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
7986pub enum MassStatusReqType {
7987 StatusForOrdersForASecurity,
7989 StatusForOrdersForAnUnderlyingSecurity,
7991 StatusForOrdersForAProduct,
7993 StatusForOrdersForAcfiCode,
7995 StatusForOrdersForASecurityType,
7997 StatusForOrdersForATradingSession,
7999 StatusForAllOrders,
8001 StatusForOrdersForAPartyId,
8003 Unrecognized(i64),
8005}
8006
8007impl MassStatusReqType {
8008 pub fn from_value(value: i64) -> Self {
8009 match value {
8010 1 => Self::StatusForOrdersForASecurity,
8011 2 => Self::StatusForOrdersForAnUnderlyingSecurity,
8012 3 => Self::StatusForOrdersForAProduct,
8013 4 => Self::StatusForOrdersForAcfiCode,
8014 5 => Self::StatusForOrdersForASecurityType,
8015 6 => Self::StatusForOrdersForATradingSession,
8016 7 => Self::StatusForAllOrders,
8017 8 => Self::StatusForOrdersForAPartyId,
8018 unrecognized => Self::Unrecognized(unrecognized),
8019 }
8020 }
8021
8022 pub fn value(self) -> i64 {
8023 match self {
8024 Self::StatusForOrdersForASecurity => 1,
8025 Self::StatusForOrdersForAnUnderlyingSecurity => 2,
8026 Self::StatusForOrdersForAProduct => 3,
8027 Self::StatusForOrdersForAcfiCode => 4,
8028 Self::StatusForOrdersForASecurityType => 5,
8029 Self::StatusForOrdersForATradingSession => 6,
8030 Self::StatusForAllOrders => 7,
8031 Self::StatusForOrdersForAPartyId => 8,
8032 Self::Unrecognized(value) => value,
8033 }
8034 }
8035}
8036
8037#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
8039pub enum DayBookingInst<'a> {
8040 Auto,
8042 SpeakWithOrderInitiatorBeforeBooking,
8044 Accumulate,
8046 Unrecognized(&'a str),
8048}
8049
8050impl<'a> DayBookingInst<'a> {
8051 pub fn from_value(value: &'a str) -> Self {
8052 match value {
8053 "0" => Self::Auto,
8054 "1" => Self::SpeakWithOrderInitiatorBeforeBooking,
8055 "2" => Self::Accumulate,
8056 unrecognized => Self::Unrecognized(unrecognized),
8057 }
8058 }
8059
8060 pub fn value(self) -> &'a str {
8061 match self {
8062 Self::Auto => "0",
8063 Self::SpeakWithOrderInitiatorBeforeBooking => "1",
8064 Self::Accumulate => "2",
8065 Self::Unrecognized(value) => value,
8066 }
8067 }
8068}
8069
8070impl<'a> From<&'a str> for DayBookingInst<'a> {
8071 fn from(value: &'a str) -> Self {
8072 Self::from_value(value)
8073 }
8074}
8075
8076#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
8078pub enum BookingUnit<'a> {
8079 EachPartialExecutionIsABookableUnit,
8081 AggregatePartialExecutionsOnThisOrder,
8083 AggregateExecutionsForThisSymbol,
8085 Unrecognized(&'a str),
8087}
8088
8089impl<'a> BookingUnit<'a> {
8090 pub fn from_value(value: &'a str) -> Self {
8091 match value {
8092 "0" => Self::EachPartialExecutionIsABookableUnit,
8093 "1" => Self::AggregatePartialExecutionsOnThisOrder,
8094 "2" => Self::AggregateExecutionsForThisSymbol,
8095 unrecognized => Self::Unrecognized(unrecognized),
8096 }
8097 }
8098
8099 pub fn value(self) -> &'a str {
8100 match self {
8101 Self::EachPartialExecutionIsABookableUnit => "0",
8102 Self::AggregatePartialExecutionsOnThisOrder => "1",
8103 Self::AggregateExecutionsForThisSymbol => "2",
8104 Self::Unrecognized(value) => value,
8105 }
8106 }
8107}
8108
8109impl<'a> From<&'a str> for BookingUnit<'a> {
8110 fn from(value: &'a str) -> Self {
8111 Self::from_value(value)
8112 }
8113}
8114
8115#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
8117pub enum PreallocMethod<'a> {
8118 ProRata,
8120 DoNotProRata,
8122 Unrecognized(&'a str),
8124}
8125
8126impl<'a> PreallocMethod<'a> {
8127 pub fn from_value(value: &'a str) -> Self {
8128 match value {
8129 "0" => Self::ProRata,
8130 "1" => Self::DoNotProRata,
8131 unrecognized => Self::Unrecognized(unrecognized),
8132 }
8133 }
8134
8135 pub fn value(self) -> &'a str {
8136 match self {
8137 Self::ProRata => "0",
8138 Self::DoNotProRata => "1",
8139 Self::Unrecognized(value) => value,
8140 }
8141 }
8142}
8143
8144impl<'a> From<&'a str> for PreallocMethod<'a> {
8145 fn from(value: &'a str) -> Self {
8146 Self::from_value(value)
8147 }
8148}
8149
8150#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
8152pub enum AllocType {
8153 Calculated,
8155 Preliminary,
8157 ReadyToBook,
8159 WarehouseInstruction,
8161 RequestToIntermediary,
8163 Unrecognized(i64),
8165}
8166
8167impl AllocType {
8168 pub fn from_value(value: i64) -> Self {
8169 match value {
8170 1 => Self::Calculated,
8171 2 => Self::Preliminary,
8172 5 => Self::ReadyToBook,
8173 7 => Self::WarehouseInstruction,
8174 8 => Self::RequestToIntermediary,
8175 unrecognized => Self::Unrecognized(unrecognized),
8176 }
8177 }
8178
8179 pub fn value(self) -> i64 {
8180 match self {
8181 Self::Calculated => 1,
8182 Self::Preliminary => 2,
8183 Self::ReadyToBook => 5,
8184 Self::WarehouseInstruction => 7,
8185 Self::RequestToIntermediary => 8,
8186 Self::Unrecognized(value) => value,
8187 }
8188 }
8189}
8190
8191#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
8193pub enum ClearingFeeIndicator<'a> {
8194 CboeMember,
8196 NonMemberAndCustomer,
8198 EquityMemberAndClearingMember,
8200 FullAndAssociateMember,
8202 Firms106HAnd106J,
8204 Gim,
8206 Lessee106FEmployees,
8208 AllOtherOwnershipTypes,
8210 FirstYearDelegate,
8212 SecondYearDelegate,
8214 ThirdYearDelegate,
8216 FourthYearDelegate,
8218 FifthYearDelegate,
8220 SixthYearDelegate,
8222 Unrecognized(&'a str),
8224}
8225
8226impl<'a> ClearingFeeIndicator<'a> {
8227 pub fn from_value(value: &'a str) -> Self {
8228 match value {
8229 "B" => Self::CboeMember,
8230 "C" => Self::NonMemberAndCustomer,
8231 "E" => Self::EquityMemberAndClearingMember,
8232 "F" => Self::FullAndAssociateMember,
8233 "H" => Self::Firms106HAnd106J,
8234 "I" => Self::Gim,
8235 "L" => Self::Lessee106FEmployees,
8236 "M" => Self::AllOtherOwnershipTypes,
8237 "1" => Self::FirstYearDelegate,
8238 "2" => Self::SecondYearDelegate,
8239 "3" => Self::ThirdYearDelegate,
8240 "4" => Self::FourthYearDelegate,
8241 "5" => Self::FifthYearDelegate,
8242 "9" => Self::SixthYearDelegate,
8243 unrecognized => Self::Unrecognized(unrecognized),
8244 }
8245 }
8246
8247 pub fn value(self) -> &'a str {
8248 match self {
8249 Self::CboeMember => "B",
8250 Self::NonMemberAndCustomer => "C",
8251 Self::EquityMemberAndClearingMember => "E",
8252 Self::FullAndAssociateMember => "F",
8253 Self::Firms106HAnd106J => "H",
8254 Self::Gim => "I",
8255 Self::Lessee106FEmployees => "L",
8256 Self::AllOtherOwnershipTypes => "M",
8257 Self::FirstYearDelegate => "1",
8258 Self::SecondYearDelegate => "2",
8259 Self::ThirdYearDelegate => "3",
8260 Self::FourthYearDelegate => "4",
8261 Self::FifthYearDelegate => "5",
8262 Self::SixthYearDelegate => "9",
8263 Self::Unrecognized(value) => value,
8264 }
8265 }
8266}
8267
8268impl<'a> From<&'a str> for ClearingFeeIndicator<'a> {
8269 fn from(value: &'a str) -> Self {
8270 Self::from_value(value)
8271 }
8272}
8273
8274#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
8276pub enum PriorityIndicator {
8277 PriorityUnchanged,
8279 LostPriorityAsResultOfOrderChange,
8281 Unrecognized(i64),
8283}
8284
8285impl PriorityIndicator {
8286 pub fn from_value(value: i64) -> Self {
8287 match value {
8288 0 => Self::PriorityUnchanged,
8289 1 => Self::LostPriorityAsResultOfOrderChange,
8290 unrecognized => Self::Unrecognized(unrecognized),
8291 }
8292 }
8293
8294 pub fn value(self) -> i64 {
8295 match self {
8296 Self::PriorityUnchanged => 0,
8297 Self::LostPriorityAsResultOfOrderChange => 1,
8298 Self::Unrecognized(value) => value,
8299 }
8300 }
8301}
8302
8303#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
8305pub enum QuoteRequestRejectReason {
8306 UnknownSymbol,
8308 Exchange,
8310 QuoteRequestExceedsLimit,
8312 TooLateToEnter,
8314 InvalidPrice,
8316 NotAuthorizedToRequestQuote,
8318 NoMatchForInquiry,
8320 NoMarketForInstrument,
8322 NoInventory,
8324 Pass,
8326 Other,
8328 Unrecognized(i64),
8330}
8331
8332impl QuoteRequestRejectReason {
8333 pub fn from_value(value: i64) -> Self {
8334 match value {
8335 1 => Self::UnknownSymbol,
8336 2 => Self::Exchange,
8337 3 => Self::QuoteRequestExceedsLimit,
8338 4 => Self::TooLateToEnter,
8339 5 => Self::InvalidPrice,
8340 6 => Self::NotAuthorizedToRequestQuote,
8341 7 => Self::NoMatchForInquiry,
8342 8 => Self::NoMarketForInstrument,
8343 9 => Self::NoInventory,
8344 10 => Self::Pass,
8345 99 => Self::Other,
8346 unrecognized => Self::Unrecognized(unrecognized),
8347 }
8348 }
8349
8350 pub fn value(self) -> i64 {
8351 match self {
8352 Self::UnknownSymbol => 1,
8353 Self::Exchange => 2,
8354 Self::QuoteRequestExceedsLimit => 3,
8355 Self::TooLateToEnter => 4,
8356 Self::InvalidPrice => 5,
8357 Self::NotAuthorizedToRequestQuote => 6,
8358 Self::NoMatchForInquiry => 7,
8359 Self::NoMarketForInstrument => 8,
8360 Self::NoInventory => 9,
8361 Self::Pass => 10,
8362 Self::Other => 99,
8363 Self::Unrecognized(value) => value,
8364 }
8365 }
8366}
8367
8368#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
8370pub enum AcctIDSource {
8371 Bic,
8373 SidCode,
8375 Tfm,
8377 Omgeo,
8379 DtccCode,
8381 Other,
8383 Unrecognized(i64),
8385}
8386
8387impl AcctIDSource {
8388 pub fn from_value(value: i64) -> Self {
8389 match value {
8390 1 => Self::Bic,
8391 2 => Self::SidCode,
8392 3 => Self::Tfm,
8393 4 => Self::Omgeo,
8394 5 => Self::DtccCode,
8395 99 => Self::Other,
8396 unrecognized => Self::Unrecognized(unrecognized),
8397 }
8398 }
8399
8400 pub fn value(self) -> i64 {
8401 match self {
8402 Self::Bic => 1,
8403 Self::SidCode => 2,
8404 Self::Tfm => 3,
8405 Self::Omgeo => 4,
8406 Self::DtccCode => 5,
8407 Self::Other => 99,
8408 Self::Unrecognized(value) => value,
8409 }
8410 }
8411}
8412
8413#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
8415pub enum ConfirmStatus {
8416 Received,
8418 MismatchedAccount,
8420 MissingSettlementInstructions,
8422 Confirmed,
8424 RequestRejected,
8426 Unrecognized(i64),
8428}
8429
8430impl ConfirmStatus {
8431 pub fn from_value(value: i64) -> Self {
8432 match value {
8433 1 => Self::Received,
8434 2 => Self::MismatchedAccount,
8435 3 => Self::MissingSettlementInstructions,
8436 4 => Self::Confirmed,
8437 5 => Self::RequestRejected,
8438 unrecognized => Self::Unrecognized(unrecognized),
8439 }
8440 }
8441
8442 pub fn value(self) -> i64 {
8443 match self {
8444 Self::Received => 1,
8445 Self::MismatchedAccount => 2,
8446 Self::MissingSettlementInstructions => 3,
8447 Self::Confirmed => 4,
8448 Self::RequestRejected => 5,
8449 Self::Unrecognized(value) => value,
8450 }
8451 }
8452}
8453
8454#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
8456pub enum ConfirmTransType {
8457 New,
8459 Replace,
8461 Cancel,
8463 Unrecognized(i64),
8465}
8466
8467impl ConfirmTransType {
8468 pub fn from_value(value: i64) -> Self {
8469 match value {
8470 0 => Self::New,
8471 1 => Self::Replace,
8472 2 => Self::Cancel,
8473 unrecognized => Self::Unrecognized(unrecognized),
8474 }
8475 }
8476
8477 pub fn value(self) -> i64 {
8478 match self {
8479 Self::New => 0,
8480 Self::Replace => 1,
8481 Self::Cancel => 2,
8482 Self::Unrecognized(value) => value,
8483 }
8484 }
8485}
8486
8487#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
8489pub enum DeliveryForm {
8490 BookEntry,
8492 Bearer,
8494 Unrecognized(i64),
8496}
8497
8498impl DeliveryForm {
8499 pub fn from_value(value: i64) -> Self {
8500 match value {
8501 1 => Self::BookEntry,
8502 2 => Self::Bearer,
8503 unrecognized => Self::Unrecognized(unrecognized),
8504 }
8505 }
8506
8507 pub fn value(self) -> i64 {
8508 match self {
8509 Self::BookEntry => 1,
8510 Self::Bearer => 2,
8511 Self::Unrecognized(value) => value,
8512 }
8513 }
8514}
8515
8516#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
8518pub enum LegSwapType {
8519 ParForPar,
8521 ModifiedDuration,
8523 Risk,
8525 Proceeds,
8527 Unrecognized(i64),
8529}
8530
8531impl LegSwapType {
8532 pub fn from_value(value: i64) -> Self {
8533 match value {
8534 1 => Self::ParForPar,
8535 2 => Self::ModifiedDuration,
8536 4 => Self::Risk,
8537 5 => Self::Proceeds,
8538 unrecognized => Self::Unrecognized(unrecognized),
8539 }
8540 }
8541
8542 pub fn value(self) -> i64 {
8543 match self {
8544 Self::ParForPar => 1,
8545 Self::ModifiedDuration => 2,
8546 Self::Risk => 4,
8547 Self::Proceeds => 5,
8548 Self::Unrecognized(value) => value,
8549 }
8550 }
8551}
8552
8553#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
8555pub enum QuotePriceType {
8556 Percent,
8558 PerShare,
8560 FixedAmount,
8562 Discount,
8564 Premium,
8566 Spread,
8568 TedPrice,
8570 TedYield,
8572 YieldSpread,
8574 Yield,
8576 Unrecognized(i64),
8578}
8579
8580impl QuotePriceType {
8581 pub fn from_value(value: i64) -> Self {
8582 match value {
8583 1 => Self::Percent,
8584 2 => Self::PerShare,
8585 3 => Self::FixedAmount,
8586 4 => Self::Discount,
8587 5 => Self::Premium,
8588 6 => Self::Spread,
8589 7 => Self::TedPrice,
8590 8 => Self::TedYield,
8591 9 => Self::YieldSpread,
8592 10 => Self::Yield,
8593 unrecognized => Self::Unrecognized(unrecognized),
8594 }
8595 }
8596
8597 pub fn value(self) -> i64 {
8598 match self {
8599 Self::Percent => 1,
8600 Self::PerShare => 2,
8601 Self::FixedAmount => 3,
8602 Self::Discount => 4,
8603 Self::Premium => 5,
8604 Self::Spread => 6,
8605 Self::TedPrice => 7,
8606 Self::TedYield => 8,
8607 Self::YieldSpread => 9,
8608 Self::Yield => 10,
8609 Self::Unrecognized(value) => value,
8610 }
8611 }
8612}
8613
8614#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
8616pub enum QuoteRespType {
8617 Hit,
8619 Counter,
8621 Expired,
8623 Cover,
8625 DoneAway,
8627 Pass,
8629 Unrecognized(i64),
8631}
8632
8633impl QuoteRespType {
8634 pub fn from_value(value: i64) -> Self {
8635 match value {
8636 1 => Self::Hit,
8637 2 => Self::Counter,
8638 3 => Self::Expired,
8639 4 => Self::Cover,
8640 5 => Self::DoneAway,
8641 6 => Self::Pass,
8642 unrecognized => Self::Unrecognized(unrecognized),
8643 }
8644 }
8645
8646 pub fn value(self) -> i64 {
8647 match self {
8648 Self::Hit => 1,
8649 Self::Counter => 2,
8650 Self::Expired => 3,
8651 Self::Cover => 4,
8652 Self::DoneAway => 5,
8653 Self::Pass => 6,
8654 Self::Unrecognized(value) => value,
8655 }
8656 }
8657}
8658
8659#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
8661pub enum PosType<'a> {
8662 TransactionQuantity,
8664 IntraSpreadQty,
8666 InterSpreadQty,
8668 EndOfDayQty,
8670 StartOfDayQty,
8672 OptionExerciseQty,
8674 OptionAssignment,
8676 TransactionFromExercise,
8678 TransactionFromAssignment,
8680 PitTradeQty,
8682 TransferTradeQty,
8684 ElectronicTradeQty,
8686 AllocationTradeQty,
8688 AdjustmentQty,
8690 AsOfTradeQty,
8692 DeliveryQty,
8694 TotalTransactionQty,
8696 CrossMarginQty,
8698 IntegralSplit,
8700 Unrecognized(&'a str),
8702}
8703
8704impl<'a> PosType<'a> {
8705 pub fn from_value(value: &'a str) -> Self {
8706 match value {
8707 "TQ" => Self::TransactionQuantity,
8708 "IAS" => Self::IntraSpreadQty,
8709 "IES" => Self::InterSpreadQty,
8710 "FIN" => Self::EndOfDayQty,
8711 "SOD" => Self::StartOfDayQty,
8712 "EX" => Self::OptionExerciseQty,
8713 "AS" => Self::OptionAssignment,
8714 "TX" => Self::TransactionFromExercise,
8715 "TA" => Self::TransactionFromAssignment,
8716 "PIT" => Self::PitTradeQty,
8717 "TRF" => Self::TransferTradeQty,
8718 "ETR" => Self::ElectronicTradeQty,
8719 "ALC" => Self::AllocationTradeQty,
8720 "PA" => Self::AdjustmentQty,
8721 "ASF" => Self::AsOfTradeQty,
8722 "DLV" => Self::DeliveryQty,
8723 "TOT" => Self::TotalTransactionQty,
8724 "XM" => Self::CrossMarginQty,
8725 "SPL" => Self::IntegralSplit,
8726 unrecognized => Self::Unrecognized(unrecognized),
8727 }
8728 }
8729
8730 pub fn value(self) -> &'a str {
8731 match self {
8732 Self::TransactionQuantity => "TQ",
8733 Self::IntraSpreadQty => "IAS",
8734 Self::InterSpreadQty => "IES",
8735 Self::EndOfDayQty => "FIN",
8736 Self::StartOfDayQty => "SOD",
8737 Self::OptionExerciseQty => "EX",
8738 Self::OptionAssignment => "AS",
8739 Self::TransactionFromExercise => "TX",
8740 Self::TransactionFromAssignment => "TA",
8741 Self::PitTradeQty => "PIT",
8742 Self::TransferTradeQty => "TRF",
8743 Self::ElectronicTradeQty => "ETR",
8744 Self::AllocationTradeQty => "ALC",
8745 Self::AdjustmentQty => "PA",
8746 Self::AsOfTradeQty => "ASF",
8747 Self::DeliveryQty => "DLV",
8748 Self::TotalTransactionQty => "TOT",
8749 Self::CrossMarginQty => "XM",
8750 Self::IntegralSplit => "SPL",
8751 Self::Unrecognized(value) => value,
8752 }
8753 }
8754}
8755
8756impl<'a> From<&'a str> for PosType<'a> {
8757 fn from(value: &'a str) -> Self {
8758 Self::from_value(value)
8759 }
8760}
8761
8762#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
8764pub enum PosQtyStatus {
8765 Submitted,
8767 Accepted,
8769 Rejected,
8771 Unrecognized(i64),
8773}
8774
8775impl PosQtyStatus {
8776 pub fn from_value(value: i64) -> Self {
8777 match value {
8778 0 => Self::Submitted,
8779 1 => Self::Accepted,
8780 2 => Self::Rejected,
8781 unrecognized => Self::Unrecognized(unrecognized),
8782 }
8783 }
8784
8785 pub fn value(self) -> i64 {
8786 match self {
8787 Self::Submitted => 0,
8788 Self::Accepted => 1,
8789 Self::Rejected => 2,
8790 Self::Unrecognized(value) => value,
8791 }
8792 }
8793}
8794
8795#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
8797pub enum PosAmtType<'a> {
8798 FinalMarkToMarketAmount,
8800 IncrementalMarkToMarketAmount,
8802 TradeVariationAmount,
8804 StartOfDayMarkToMarketAmount,
8806 PremiumAmount,
8808 CashResidualAmount,
8810 CashAmount,
8812 ValueAdjustedAmount,
8814 Unrecognized(&'a str),
8816}
8817
8818impl<'a> PosAmtType<'a> {
8819 pub fn from_value(value: &'a str) -> Self {
8820 match value {
8821 "FMTM" => Self::FinalMarkToMarketAmount,
8822 "IMTM" => Self::IncrementalMarkToMarketAmount,
8823 "TVAR" => Self::TradeVariationAmount,
8824 "SMTM" => Self::StartOfDayMarkToMarketAmount,
8825 "PREM" => Self::PremiumAmount,
8826 "CRES" => Self::CashResidualAmount,
8827 "CASH" => Self::CashAmount,
8828 "VADJ" => Self::ValueAdjustedAmount,
8829 unrecognized => Self::Unrecognized(unrecognized),
8830 }
8831 }
8832
8833 pub fn value(self) -> &'a str {
8834 match self {
8835 Self::FinalMarkToMarketAmount => "FMTM",
8836 Self::IncrementalMarkToMarketAmount => "IMTM",
8837 Self::TradeVariationAmount => "TVAR",
8838 Self::StartOfDayMarkToMarketAmount => "SMTM",
8839 Self::PremiumAmount => "PREM",
8840 Self::CashResidualAmount => "CRES",
8841 Self::CashAmount => "CASH",
8842 Self::ValueAdjustedAmount => "VADJ",
8843 Self::Unrecognized(value) => value,
8844 }
8845 }
8846}
8847
8848impl<'a> From<&'a str> for PosAmtType<'a> {
8849 fn from(value: &'a str) -> Self {
8850 Self::from_value(value)
8851 }
8852}
8853
8854#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
8856pub enum PosTransType {
8857 Exercise,
8859 DoNotExercise,
8861 PositionAdjustment,
8863 PositionChangeSubmission,
8865 Pledge,
8867 Unrecognized(i64),
8869}
8870
8871impl PosTransType {
8872 pub fn from_value(value: i64) -> Self {
8873 match value {
8874 1 => Self::Exercise,
8875 2 => Self::DoNotExercise,
8876 3 => Self::PositionAdjustment,
8877 4 => Self::PositionChangeSubmission,
8878 5 => Self::Pledge,
8879 unrecognized => Self::Unrecognized(unrecognized),
8880 }
8881 }
8882
8883 pub fn value(self) -> i64 {
8884 match self {
8885 Self::Exercise => 1,
8886 Self::DoNotExercise => 2,
8887 Self::PositionAdjustment => 3,
8888 Self::PositionChangeSubmission => 4,
8889 Self::Pledge => 5,
8890 Self::Unrecognized(value) => value,
8891 }
8892 }
8893}
8894
8895#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
8897pub enum PosMaintAction {
8898 New,
8900 Replace,
8902 Cancel,
8904 Unrecognized(i64),
8906}
8907
8908impl PosMaintAction {
8909 pub fn from_value(value: i64) -> Self {
8910 match value {
8911 1 => Self::New,
8912 2 => Self::Replace,
8913 3 => Self::Cancel,
8914 unrecognized => Self::Unrecognized(unrecognized),
8915 }
8916 }
8917
8918 pub fn value(self) -> i64 {
8919 match self {
8920 Self::New => 1,
8921 Self::Replace => 2,
8922 Self::Cancel => 3,
8923 Self::Unrecognized(value) => value,
8924 }
8925 }
8926}
8927
8928#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
8930pub enum SettlSessID<'a> {
8931 Intraday,
8933 RegularTradingHours,
8935 ElectronicTradingHours,
8937 Unrecognized(&'a str),
8939}
8940
8941impl<'a> SettlSessID<'a> {
8942 pub fn from_value(value: &'a str) -> Self {
8943 match value {
8944 "ITD" => Self::Intraday,
8945 "RTH" => Self::RegularTradingHours,
8946 "ETH" => Self::ElectronicTradingHours,
8947 unrecognized => Self::Unrecognized(unrecognized),
8948 }
8949 }
8950
8951 pub fn value(self) -> &'a str {
8952 match self {
8953 Self::Intraday => "ITD",
8954 Self::RegularTradingHours => "RTH",
8955 Self::ElectronicTradingHours => "ETH",
8956 Self::Unrecognized(value) => value,
8957 }
8958 }
8959}
8960
8961impl<'a> From<&'a str> for SettlSessID<'a> {
8962 fn from(value: &'a str) -> Self {
8963 Self::from_value(value)
8964 }
8965}
8966
8967#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
8969pub enum AdjustmentType {
8970 ProcessRequestAsMarginDisposition,
8972 DeltaPlus,
8974 DeltaMinus,
8976 Final,
8978 Unrecognized(i64),
8980}
8981
8982impl AdjustmentType {
8983 pub fn from_value(value: i64) -> Self {
8984 match value {
8985 0 => Self::ProcessRequestAsMarginDisposition,
8986 1 => Self::DeltaPlus,
8987 2 => Self::DeltaMinus,
8988 3 => Self::Final,
8989 unrecognized => Self::Unrecognized(unrecognized),
8990 }
8991 }
8992
8993 pub fn value(self) -> i64 {
8994 match self {
8995 Self::ProcessRequestAsMarginDisposition => 0,
8996 Self::DeltaPlus => 1,
8997 Self::DeltaMinus => 2,
8998 Self::Final => 3,
8999 Self::Unrecognized(value) => value,
9000 }
9001 }
9002}
9003
9004#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
9006pub enum PosMaintStatus {
9007 Accepted,
9009 AcceptedWithWarnings,
9011 Rejected,
9013 Completed,
9015 CompletedWithWarnings,
9017 Unrecognized(i64),
9019}
9020
9021impl PosMaintStatus {
9022 pub fn from_value(value: i64) -> Self {
9023 match value {
9024 0 => Self::Accepted,
9025 1 => Self::AcceptedWithWarnings,
9026 2 => Self::Rejected,
9027 3 => Self::Completed,
9028 4 => Self::CompletedWithWarnings,
9029 unrecognized => Self::Unrecognized(unrecognized),
9030 }
9031 }
9032
9033 pub fn value(self) -> i64 {
9034 match self {
9035 Self::Accepted => 0,
9036 Self::AcceptedWithWarnings => 1,
9037 Self::Rejected => 2,
9038 Self::Completed => 3,
9039 Self::CompletedWithWarnings => 4,
9040 Self::Unrecognized(value) => value,
9041 }
9042 }
9043}
9044
9045#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
9047pub enum PosMaintResult {
9048 SuccessfulCompletion,
9050 Rejected,
9052 Other,
9054 Unrecognized(i64),
9056}
9057
9058impl PosMaintResult {
9059 pub fn from_value(value: i64) -> Self {
9060 match value {
9061 0 => Self::SuccessfulCompletion,
9062 1 => Self::Rejected,
9063 99 => Self::Other,
9064 unrecognized => Self::Unrecognized(unrecognized),
9065 }
9066 }
9067
9068 pub fn value(self) -> i64 {
9069 match self {
9070 Self::SuccessfulCompletion => 0,
9071 Self::Rejected => 1,
9072 Self::Other => 99,
9073 Self::Unrecognized(value) => value,
9074 }
9075 }
9076}
9077
9078#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
9080pub enum PosReqType {
9081 Positions,
9083 Trades,
9085 Exercises,
9087 Assignments,
9089 Unrecognized(i64),
9091}
9092
9093impl PosReqType {
9094 pub fn from_value(value: i64) -> Self {
9095 match value {
9096 0 => Self::Positions,
9097 1 => Self::Trades,
9098 2 => Self::Exercises,
9099 3 => Self::Assignments,
9100 unrecognized => Self::Unrecognized(unrecognized),
9101 }
9102 }
9103
9104 pub fn value(self) -> i64 {
9105 match self {
9106 Self::Positions => 0,
9107 Self::Trades => 1,
9108 Self::Exercises => 2,
9109 Self::Assignments => 3,
9110 Self::Unrecognized(value) => value,
9111 }
9112 }
9113}
9114
9115#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
9117pub enum ResponseTransportType {
9118 Inband,
9120 OutOfBand,
9122 Unrecognized(i64),
9124}
9125
9126impl ResponseTransportType {
9127 pub fn from_value(value: i64) -> Self {
9128 match value {
9129 0 => Self::Inband,
9130 1 => Self::OutOfBand,
9131 unrecognized => Self::Unrecognized(unrecognized),
9132 }
9133 }
9134
9135 pub fn value(self) -> i64 {
9136 match self {
9137 Self::Inband => 0,
9138 Self::OutOfBand => 1,
9139 Self::Unrecognized(value) => value,
9140 }
9141 }
9142}
9143
9144#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
9146pub enum PosReqResult {
9147 ValidRequest,
9149 InvalidOrUnsupportedRequest,
9151 NoPositionsFoundThatMatchCriteria,
9153 NotAuthorizedToRequestPositions,
9155 RequestForPositionNotSupported,
9157 Other,
9159 Unrecognized(i64),
9161}
9162
9163impl PosReqResult {
9164 pub fn from_value(value: i64) -> Self {
9165 match value {
9166 0 => Self::ValidRequest,
9167 1 => Self::InvalidOrUnsupportedRequest,
9168 2 => Self::NoPositionsFoundThatMatchCriteria,
9169 3 => Self::NotAuthorizedToRequestPositions,
9170 4 => Self::RequestForPositionNotSupported,
9171 99 => Self::Other,
9172 unrecognized => Self::Unrecognized(unrecognized),
9173 }
9174 }
9175
9176 pub fn value(self) -> i64 {
9177 match self {
9178 Self::ValidRequest => 0,
9179 Self::InvalidOrUnsupportedRequest => 1,
9180 Self::NoPositionsFoundThatMatchCriteria => 2,
9181 Self::NotAuthorizedToRequestPositions => 3,
9182 Self::RequestForPositionNotSupported => 4,
9183 Self::Other => 99,
9184 Self::Unrecognized(value) => value,
9185 }
9186 }
9187}
9188
9189#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
9191pub enum PosReqStatus {
9192 Completed,
9194 CompletedWithWarnings,
9196 Rejected,
9198 Unrecognized(i64),
9200}
9201
9202impl PosReqStatus {
9203 pub fn from_value(value: i64) -> Self {
9204 match value {
9205 0 => Self::Completed,
9206 1 => Self::CompletedWithWarnings,
9207 2 => Self::Rejected,
9208 unrecognized => Self::Unrecognized(unrecognized),
9209 }
9210 }
9211
9212 pub fn value(self) -> i64 {
9213 match self {
9214 Self::Completed => 0,
9215 Self::CompletedWithWarnings => 1,
9216 Self::Rejected => 2,
9217 Self::Unrecognized(value) => value,
9218 }
9219 }
9220}
9221
9222#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
9224pub enum SettlPriceType {
9225 Final,
9227 Theoretical,
9229 Unrecognized(i64),
9231}
9232
9233impl SettlPriceType {
9234 pub fn from_value(value: i64) -> Self {
9235 match value {
9236 1 => Self::Final,
9237 2 => Self::Theoretical,
9238 unrecognized => Self::Unrecognized(unrecognized),
9239 }
9240 }
9241
9242 pub fn value(self) -> i64 {
9243 match self {
9244 Self::Final => 1,
9245 Self::Theoretical => 2,
9246 Self::Unrecognized(value) => value,
9247 }
9248 }
9249}
9250
9251#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
9253pub enum AssignmentMethod<'a> {
9254 Random,
9256 ProRata,
9258 Unrecognized(&'a str),
9260}
9261
9262impl<'a> AssignmentMethod<'a> {
9263 pub fn from_value(value: &'a str) -> Self {
9264 match value {
9265 "R" => Self::Random,
9266 "P" => Self::ProRata,
9267 unrecognized => Self::Unrecognized(unrecognized),
9268 }
9269 }
9270
9271 pub fn value(self) -> &'a str {
9272 match self {
9273 Self::Random => "R",
9274 Self::ProRata => "P",
9275 Self::Unrecognized(value) => value,
9276 }
9277 }
9278}
9279
9280impl<'a> From<&'a str> for AssignmentMethod<'a> {
9281 fn from(value: &'a str) -> Self {
9282 Self::from_value(value)
9283 }
9284}
9285
9286#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
9288pub enum ExerciseMethod<'a> {
9289 Automatic,
9291 Manual,
9293 Unrecognized(&'a str),
9295}
9296
9297impl<'a> ExerciseMethod<'a> {
9298 pub fn from_value(value: &'a str) -> Self {
9299 match value {
9300 "A" => Self::Automatic,
9301 "M" => Self::Manual,
9302 unrecognized => Self::Unrecognized(unrecognized),
9303 }
9304 }
9305
9306 pub fn value(self) -> &'a str {
9307 match self {
9308 Self::Automatic => "A",
9309 Self::Manual => "M",
9310 Self::Unrecognized(value) => value,
9311 }
9312 }
9313}
9314
9315impl<'a> From<&'a str> for ExerciseMethod<'a> {
9316 fn from(value: &'a str) -> Self {
9317 Self::from_value(value)
9318 }
9319}
9320
9321#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
9323pub enum TradeRequestResult {
9324 Successful,
9326 InvalidOrUnknownInstrument,
9328 InvalidTypeOfTradeRequested,
9330 InvalidParties,
9332 InvalidTransportTypeRequested,
9334 InvalidDestinationRequested,
9336 TradeRequestTypeNotSupported,
9338 NotAuthorized,
9340 Other,
9342 Unrecognized(i64),
9344}
9345
9346impl TradeRequestResult {
9347 pub fn from_value(value: i64) -> Self {
9348 match value {
9349 0 => Self::Successful,
9350 1 => Self::InvalidOrUnknownInstrument,
9351 2 => Self::InvalidTypeOfTradeRequested,
9352 3 => Self::InvalidParties,
9353 4 => Self::InvalidTransportTypeRequested,
9354 5 => Self::InvalidDestinationRequested,
9355 8 => Self::TradeRequestTypeNotSupported,
9356 9 => Self::NotAuthorized,
9357 99 => Self::Other,
9358 unrecognized => Self::Unrecognized(unrecognized),
9359 }
9360 }
9361
9362 pub fn value(self) -> i64 {
9363 match self {
9364 Self::Successful => 0,
9365 Self::InvalidOrUnknownInstrument => 1,
9366 Self::InvalidTypeOfTradeRequested => 2,
9367 Self::InvalidParties => 3,
9368 Self::InvalidTransportTypeRequested => 4,
9369 Self::InvalidDestinationRequested => 5,
9370 Self::TradeRequestTypeNotSupported => 8,
9371 Self::NotAuthorized => 9,
9372 Self::Other => 99,
9373 Self::Unrecognized(value) => value,
9374 }
9375 }
9376}
9377
9378#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
9380pub enum TradeRequestStatus {
9381 Accepted,
9383 Completed,
9385 Rejected,
9387 Unrecognized(i64),
9389}
9390
9391impl TradeRequestStatus {
9392 pub fn from_value(value: i64) -> Self {
9393 match value {
9394 0 => Self::Accepted,
9395 1 => Self::Completed,
9396 2 => Self::Rejected,
9397 unrecognized => Self::Unrecognized(unrecognized),
9398 }
9399 }
9400
9401 pub fn value(self) -> i64 {
9402 match self {
9403 Self::Accepted => 0,
9404 Self::Completed => 1,
9405 Self::Rejected => 2,
9406 Self::Unrecognized(value) => value,
9407 }
9408 }
9409}
9410
9411#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
9413pub enum TradeReportRejectReason {
9414 Successful,
9416 InvalidPartyOnformation,
9418 UnknownInstrument,
9420 UnauthorizedToReportTrades,
9422 InvalidTradeType,
9424 Other,
9426 Unrecognized(i64),
9428}
9429
9430impl TradeReportRejectReason {
9431 pub fn from_value(value: i64) -> Self {
9432 match value {
9433 0 => Self::Successful,
9434 1 => Self::InvalidPartyOnformation,
9435 2 => Self::UnknownInstrument,
9436 3 => Self::UnauthorizedToReportTrades,
9437 4 => Self::InvalidTradeType,
9438 99 => Self::Other,
9439 unrecognized => Self::Unrecognized(unrecognized),
9440 }
9441 }
9442
9443 pub fn value(self) -> i64 {
9444 match self {
9445 Self::Successful => 0,
9446 Self::InvalidPartyOnformation => 1,
9447 Self::UnknownInstrument => 2,
9448 Self::UnauthorizedToReportTrades => 3,
9449 Self::InvalidTradeType => 4,
9450 Self::Other => 99,
9451 Self::Unrecognized(value) => value,
9452 }
9453 }
9454}
9455
9456#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
9458pub enum SideMultiLegReportingType {
9459 SingleSecurity,
9461 IndividualLegOfAMultilegSecurity,
9463 MultilegSecurity,
9465 Unrecognized(i64),
9467}
9468
9469impl SideMultiLegReportingType {
9470 pub fn from_value(value: i64) -> Self {
9471 match value {
9472 1 => Self::SingleSecurity,
9473 2 => Self::IndividualLegOfAMultilegSecurity,
9474 3 => Self::MultilegSecurity,
9475 unrecognized => Self::Unrecognized(unrecognized),
9476 }
9477 }
9478
9479 pub fn value(self) -> i64 {
9480 match self {
9481 Self::SingleSecurity => 1,
9482 Self::IndividualLegOfAMultilegSecurity => 2,
9483 Self::MultilegSecurity => 3,
9484 Self::Unrecognized(value) => value,
9485 }
9486 }
9487}
9488
9489#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
9491pub enum TrdRegTimestampType {
9492 ExecutionTime,
9494 TimeIn,
9496 TimeOut,
9498 BrokerReceipt,
9500 BrokerExecution,
9502 Unrecognized(i64),
9504}
9505
9506impl TrdRegTimestampType {
9507 pub fn from_value(value: i64) -> Self {
9508 match value {
9509 1 => Self::ExecutionTime,
9510 2 => Self::TimeIn,
9511 3 => Self::TimeOut,
9512 4 => Self::BrokerReceipt,
9513 5 => Self::BrokerExecution,
9514 unrecognized => Self::Unrecognized(unrecognized),
9515 }
9516 }
9517
9518 pub fn value(self) -> i64 {
9519 match self {
9520 Self::ExecutionTime => 1,
9521 Self::TimeIn => 2,
9522 Self::TimeOut => 3,
9523 Self::BrokerReceipt => 4,
9524 Self::BrokerExecution => 5,
9525 Self::Unrecognized(value) => value,
9526 }
9527 }
9528}
9529
9530#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
9532pub enum ConfirmType {
9533 Status,
9535 Confirmation,
9537 ConfirmationRequestRejected,
9539 Unrecognized(i64),
9541}
9542
9543impl ConfirmType {
9544 pub fn from_value(value: i64) -> Self {
9545 match value {
9546 1 => Self::Status,
9547 2 => Self::Confirmation,
9548 3 => Self::ConfirmationRequestRejected,
9549 unrecognized => Self::Unrecognized(unrecognized),
9550 }
9551 }
9552
9553 pub fn value(self) -> i64 {
9554 match self {
9555 Self::Status => 1,
9556 Self::Confirmation => 2,
9557 Self::ConfirmationRequestRejected => 3,
9558 Self::Unrecognized(value) => value,
9559 }
9560 }
9561}
9562
9563#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
9565pub enum ConfirmRejReason {
9566 MismatchedAccount,
9568 MissingSettlementInstructions,
9570 Other,
9572 Unrecognized(i64),
9574}
9575
9576impl ConfirmRejReason {
9577 pub fn from_value(value: i64) -> Self {
9578 match value {
9579 1 => Self::MismatchedAccount,
9580 2 => Self::MissingSettlementInstructions,
9581 99 => Self::Other,
9582 unrecognized => Self::Unrecognized(unrecognized),
9583 }
9584 }
9585
9586 pub fn value(self) -> i64 {
9587 match self {
9588 Self::MismatchedAccount => 1,
9589 Self::MissingSettlementInstructions => 2,
9590 Self::Other => 99,
9591 Self::Unrecognized(value) => value,
9592 }
9593 }
9594}
9595
9596#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
9598pub enum BookingType {
9599 RegularBooking,
9601 Cfd,
9603 TotalReturnSwap,
9605 Unrecognized(i64),
9607}
9608
9609impl BookingType {
9610 pub fn from_value(value: i64) -> Self {
9611 match value {
9612 0 => Self::RegularBooking,
9613 1 => Self::Cfd,
9614 2 => Self::TotalReturnSwap,
9615 unrecognized => Self::Unrecognized(unrecognized),
9616 }
9617 }
9618
9619 pub fn value(self) -> i64 {
9620 match self {
9621 Self::RegularBooking => 0,
9622 Self::Cfd => 1,
9623 Self::TotalReturnSwap => 2,
9624 Self::Unrecognized(value) => value,
9625 }
9626 }
9627}
9628
9629#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
9631pub enum AllocSettlInstType {
9632 UseDefaultInstructions,
9634 DeriveFromParametersProvided,
9636 FullDetailsProvided,
9638 SsidbiDsProvided,
9640 PhoneForInstructions,
9642 Unrecognized(i64),
9644}
9645
9646impl AllocSettlInstType {
9647 pub fn from_value(value: i64) -> Self {
9648 match value {
9649 0 => Self::UseDefaultInstructions,
9650 1 => Self::DeriveFromParametersProvided,
9651 2 => Self::FullDetailsProvided,
9652 3 => Self::SsidbiDsProvided,
9653 4 => Self::PhoneForInstructions,
9654 unrecognized => Self::Unrecognized(unrecognized),
9655 }
9656 }
9657
9658 pub fn value(self) -> i64 {
9659 match self {
9660 Self::UseDefaultInstructions => 0,
9661 Self::DeriveFromParametersProvided => 1,
9662 Self::FullDetailsProvided => 2,
9663 Self::SsidbiDsProvided => 3,
9664 Self::PhoneForInstructions => 4,
9665 Self::Unrecognized(value) => value,
9666 }
9667 }
9668}
9669
9670#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
9672pub enum DlvyInstType<'a> {
9673 Securities,
9675 Cash,
9677 Unrecognized(&'a str),
9679}
9680
9681impl<'a> DlvyInstType<'a> {
9682 pub fn from_value(value: &'a str) -> Self {
9683 match value {
9684 "S" => Self::Securities,
9685 "C" => Self::Cash,
9686 unrecognized => Self::Unrecognized(unrecognized),
9687 }
9688 }
9689
9690 pub fn value(self) -> &'a str {
9691 match self {
9692 Self::Securities => "S",
9693 Self::Cash => "C",
9694 Self::Unrecognized(value) => value,
9695 }
9696 }
9697}
9698
9699impl<'a> From<&'a str> for DlvyInstType<'a> {
9700 fn from(value: &'a str) -> Self {
9701 Self::from_value(value)
9702 }
9703}
9704
9705#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
9707pub enum TerminationType {
9708 Overnight,
9710 Term,
9712 Flexible,
9714 Open,
9716 Unrecognized(i64),
9718}
9719
9720impl TerminationType {
9721 pub fn from_value(value: i64) -> Self {
9722 match value {
9723 1 => Self::Overnight,
9724 2 => Self::Term,
9725 3 => Self::Flexible,
9726 4 => Self::Open,
9727 unrecognized => Self::Unrecognized(unrecognized),
9728 }
9729 }
9730
9731 pub fn value(self) -> i64 {
9732 match self {
9733 Self::Overnight => 1,
9734 Self::Term => 2,
9735 Self::Flexible => 3,
9736 Self::Open => 4,
9737 Self::Unrecognized(value) => value,
9738 }
9739 }
9740}
9741
9742#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
9744pub enum SettlInstReqRejCode {
9745 UnableToProcessRequest,
9747 UnknownAccount,
9749 NoMatchingSettlementInstructionsFound,
9751 Other,
9753 Unrecognized(i64),
9755}
9756
9757impl SettlInstReqRejCode {
9758 pub fn from_value(value: i64) -> Self {
9759 match value {
9760 0 => Self::UnableToProcessRequest,
9761 1 => Self::UnknownAccount,
9762 2 => Self::NoMatchingSettlementInstructionsFound,
9763 99 => Self::Other,
9764 unrecognized => Self::Unrecognized(unrecognized),
9765 }
9766 }
9767
9768 pub fn value(self) -> i64 {
9769 match self {
9770 Self::UnableToProcessRequest => 0,
9771 Self::UnknownAccount => 1,
9772 Self::NoMatchingSettlementInstructionsFound => 2,
9773 Self::Other => 99,
9774 Self::Unrecognized(value) => value,
9775 }
9776 }
9777}
9778
9779#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
9781pub enum AllocReportType {
9782 SellsideCalculatedUsingPreliminary,
9784 SellsideCalculatedWithoutPreliminary,
9786 WarehouseRecap,
9788 RequestToIntermediary,
9790 Unrecognized(i64),
9792}
9793
9794impl AllocReportType {
9795 pub fn from_value(value: i64) -> Self {
9796 match value {
9797 3 => Self::SellsideCalculatedUsingPreliminary,
9798 4 => Self::SellsideCalculatedWithoutPreliminary,
9799 5 => Self::WarehouseRecap,
9800 8 => Self::RequestToIntermediary,
9801 unrecognized => Self::Unrecognized(unrecognized),
9802 }
9803 }
9804
9805 pub fn value(self) -> i64 {
9806 match self {
9807 Self::SellsideCalculatedUsingPreliminary => 3,
9808 Self::SellsideCalculatedWithoutPreliminary => 4,
9809 Self::WarehouseRecap => 5,
9810 Self::RequestToIntermediary => 8,
9811 Self::Unrecognized(value) => value,
9812 }
9813 }
9814}
9815
9816#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
9818pub enum AllocCancReplaceReason {
9819 OriginalDetailsIncomplete,
9821 ChangeInUnderlyingOrderDetails,
9823 Other,
9825 Unrecognized(i64),
9827}
9828
9829impl AllocCancReplaceReason {
9830 pub fn from_value(value: i64) -> Self {
9831 match value {
9832 1 => Self::OriginalDetailsIncomplete,
9833 2 => Self::ChangeInUnderlyingOrderDetails,
9834 99 => Self::Other,
9835 unrecognized => Self::Unrecognized(unrecognized),
9836 }
9837 }
9838
9839 pub fn value(self) -> i64 {
9840 match self {
9841 Self::OriginalDetailsIncomplete => 1,
9842 Self::ChangeInUnderlyingOrderDetails => 2,
9843 Self::Other => 99,
9844 Self::Unrecognized(value) => value,
9845 }
9846 }
9847}
9848
9849#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
9851pub enum AllocAccountType {
9852 CarriedCustomerSide,
9854 CarriedNonCustomerSide,
9856 HouseTrader,
9858 FloorTrader,
9860 CarriedNonCustomerSideCrossMargined,
9862 HouseTraderCrossMargined,
9864 JointBackOfficeAccount,
9866 Unrecognized(i64),
9868}
9869
9870impl AllocAccountType {
9871 pub fn from_value(value: i64) -> Self {
9872 match value {
9873 1 => Self::CarriedCustomerSide,
9874 2 => Self::CarriedNonCustomerSide,
9875 3 => Self::HouseTrader,
9876 4 => Self::FloorTrader,
9877 6 => Self::CarriedNonCustomerSideCrossMargined,
9878 7 => Self::HouseTraderCrossMargined,
9879 8 => Self::JointBackOfficeAccount,
9880 unrecognized => Self::Unrecognized(unrecognized),
9881 }
9882 }
9883
9884 pub fn value(self) -> i64 {
9885 match self {
9886 Self::CarriedCustomerSide => 1,
9887 Self::CarriedNonCustomerSide => 2,
9888 Self::HouseTrader => 3,
9889 Self::FloorTrader => 4,
9890 Self::CarriedNonCustomerSideCrossMargined => 6,
9891 Self::HouseTraderCrossMargined => 7,
9892 Self::JointBackOfficeAccount => 8,
9893 Self::Unrecognized(value) => value,
9894 }
9895 }
9896}
9897
9898#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
9900pub enum PartySubIDType {
9901 Firm,
9903 Person,
9905 System,
9907 Application,
9909 FullLegalNameOfFirm,
9911 PostalAddress,
9913 PhoneNumber,
9915 EmailAddress,
9917 ContactName,
9919 SecuritiesAccountNumber,
9921 RegistrationNumber,
9923 RegisteredAddressForConfirmation,
9925 RegulatoryStatus,
9927 RegistrationName,
9929 CashAccountNumber,
9931 Bic,
9933 CsdParticipantMemberCode,
9935 RegisteredAddress,
9937 FundAccountName,
9939 TelexNumber,
9941 FaxNumber,
9943 SecuritiesAccountName,
9945 CashAccountName,
9947 Department,
9949 LocationDesk,
9951 PositionAccountType,
9953 Unrecognized(i64),
9955}
9956
9957impl PartySubIDType {
9958 pub fn from_value(value: i64) -> Self {
9959 match value {
9960 1 => Self::Firm,
9961 2 => Self::Person,
9962 3 => Self::System,
9963 4 => Self::Application,
9964 5 => Self::FullLegalNameOfFirm,
9965 6 => Self::PostalAddress,
9966 7 => Self::PhoneNumber,
9967 8 => Self::EmailAddress,
9968 9 => Self::ContactName,
9969 10 => Self::SecuritiesAccountNumber,
9970 11 => Self::RegistrationNumber,
9971 12 => Self::RegisteredAddressForConfirmation,
9972 13 => Self::RegulatoryStatus,
9973 14 => Self::RegistrationName,
9974 15 => Self::CashAccountNumber,
9975 16 => Self::Bic,
9976 17 => Self::CsdParticipantMemberCode,
9977 18 => Self::RegisteredAddress,
9978 19 => Self::FundAccountName,
9979 20 => Self::TelexNumber,
9980 21 => Self::FaxNumber,
9981 22 => Self::SecuritiesAccountName,
9982 23 => Self::CashAccountName,
9983 24 => Self::Department,
9984 25 => Self::LocationDesk,
9985 26 => Self::PositionAccountType,
9986 unrecognized => Self::Unrecognized(unrecognized),
9987 }
9988 }
9989
9990 pub fn value(self) -> i64 {
9991 match self {
9992 Self::Firm => 1,
9993 Self::Person => 2,
9994 Self::System => 3,
9995 Self::Application => 4,
9996 Self::FullLegalNameOfFirm => 5,
9997 Self::PostalAddress => 6,
9998 Self::PhoneNumber => 7,
9999 Self::EmailAddress => 8,
10000 Self::ContactName => 9,
10001 Self::SecuritiesAccountNumber => 10,
10002 Self::RegistrationNumber => 11,
10003 Self::RegisteredAddressForConfirmation => 12,
10004 Self::RegulatoryStatus => 13,
10005 Self::RegistrationName => 14,
10006 Self::CashAccountNumber => 15,
10007 Self::Bic => 16,
10008 Self::CsdParticipantMemberCode => 17,
10009 Self::RegisteredAddress => 18,
10010 Self::FundAccountName => 19,
10011 Self::TelexNumber => 20,
10012 Self::FaxNumber => 21,
10013 Self::SecuritiesAccountName => 22,
10014 Self::CashAccountName => 23,
10015 Self::Department => 24,
10016 Self::LocationDesk => 25,
10017 Self::PositionAccountType => 26,
10018 Self::Unrecognized(value) => value,
10019 }
10020 }
10021}
10022
10023#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
10025pub enum AllocIntermedReqType {
10026 PendingAccept,
10028 PendingRelease,
10030 PendingReversal,
10032 Accept,
10034 BlockLevelReject,
10036 AccountLevelReject,
10038 Unrecognized(i64),
10040}
10041
10042impl AllocIntermedReqType {
10043 pub fn from_value(value: i64) -> Self {
10044 match value {
10045 1 => Self::PendingAccept,
10046 2 => Self::PendingRelease,
10047 3 => Self::PendingReversal,
10048 4 => Self::Accept,
10049 5 => Self::BlockLevelReject,
10050 6 => Self::AccountLevelReject,
10051 unrecognized => Self::Unrecognized(unrecognized),
10052 }
10053 }
10054
10055 pub fn value(self) -> i64 {
10056 match self {
10057 Self::PendingAccept => 1,
10058 Self::PendingRelease => 2,
10059 Self::PendingReversal => 3,
10060 Self::Accept => 4,
10061 Self::BlockLevelReject => 5,
10062 Self::AccountLevelReject => 6,
10063 Self::Unrecognized(value) => value,
10064 }
10065 }
10066}
10067
10068#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
10070pub enum ApplQueueResolution {
10071 NoActionTaken,
10073 QueueFlushed,
10075 OverlayLast,
10077 EndSession,
10079 Unrecognized(i64),
10081}
10082
10083impl ApplQueueResolution {
10084 pub fn from_value(value: i64) -> Self {
10085 match value {
10086 0 => Self::NoActionTaken,
10087 1 => Self::QueueFlushed,
10088 2 => Self::OverlayLast,
10089 3 => Self::EndSession,
10090 unrecognized => Self::Unrecognized(unrecognized),
10091 }
10092 }
10093
10094 pub fn value(self) -> i64 {
10095 match self {
10096 Self::NoActionTaken => 0,
10097 Self::QueueFlushed => 1,
10098 Self::OverlayLast => 2,
10099 Self::EndSession => 3,
10100 Self::Unrecognized(value) => value,
10101 }
10102 }
10103}
10104
10105#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
10107pub enum ApplQueueAction {
10108 NoActionTaken,
10110 QueueFlushed,
10112 OverlayLast,
10114 EndSession,
10116 Unrecognized(i64),
10118}
10119
10120impl ApplQueueAction {
10121 pub fn from_value(value: i64) -> Self {
10122 match value {
10123 0 => Self::NoActionTaken,
10124 1 => Self::QueueFlushed,
10125 2 => Self::OverlayLast,
10126 3 => Self::EndSession,
10127 unrecognized => Self::Unrecognized(unrecognized),
10128 }
10129 }
10130
10131 pub fn value(self) -> i64 {
10132 match self {
10133 Self::NoActionTaken => 0,
10134 Self::QueueFlushed => 1,
10135 Self::OverlayLast => 2,
10136 Self::EndSession => 3,
10137 Self::Unrecognized(value) => value,
10138 }
10139 }
10140}
10141
10142#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
10144pub enum AvgPxIndicator {
10145 NoAveragePricing,
10147 Trade,
10149 LastTrade,
10151 Unrecognized(i64),
10153}
10154
10155impl AvgPxIndicator {
10156 pub fn from_value(value: i64) -> Self {
10157 match value {
10158 0 => Self::NoAveragePricing,
10159 1 => Self::Trade,
10160 2 => Self::LastTrade,
10161 unrecognized => Self::Unrecognized(unrecognized),
10162 }
10163 }
10164
10165 pub fn value(self) -> i64 {
10166 match self {
10167 Self::NoAveragePricing => 0,
10168 Self::Trade => 1,
10169 Self::LastTrade => 2,
10170 Self::Unrecognized(value) => value,
10171 }
10172 }
10173}
10174
10175#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
10177pub enum TradeAllocIndicator {
10178 AllocationNotRequired,
10180 AllocationRequired,
10182 UseAllocationProvidedWithTheTrade,
10184 Unrecognized(i64),
10186}
10187
10188impl TradeAllocIndicator {
10189 pub fn from_value(value: i64) -> Self {
10190 match value {
10191 0 => Self::AllocationNotRequired,
10192 1 => Self::AllocationRequired,
10193 2 => Self::UseAllocationProvidedWithTheTrade,
10194 unrecognized => Self::Unrecognized(unrecognized),
10195 }
10196 }
10197
10198 pub fn value(self) -> i64 {
10199 match self {
10200 Self::AllocationNotRequired => 0,
10201 Self::AllocationRequired => 1,
10202 Self::UseAllocationProvidedWithTheTrade => 2,
10203 Self::Unrecognized(value) => value,
10204 }
10205 }
10206}
10207
10208#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
10210pub enum ExpirationCycle {
10211 ExpireOnTradingSessionClose,
10213 ExpireOnTradingSessionOpen,
10215 Unrecognized(i64),
10217}
10218
10219impl ExpirationCycle {
10220 pub fn from_value(value: i64) -> Self {
10221 match value {
10222 0 => Self::ExpireOnTradingSessionClose,
10223 1 => Self::ExpireOnTradingSessionOpen,
10224 unrecognized => Self::Unrecognized(unrecognized),
10225 }
10226 }
10227
10228 pub fn value(self) -> i64 {
10229 match self {
10230 Self::ExpireOnTradingSessionClose => 0,
10231 Self::ExpireOnTradingSessionOpen => 1,
10232 Self::Unrecognized(value) => value,
10233 }
10234 }
10235}
10236
10237#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
10239pub enum TrdType {
10240 RegularTrade,
10242 BlockTrade,
10244 Efp,
10246 Transfer,
10248 LateTrade,
10250 TTrade,
10252 WeightedAveragePriceTrade,
10254 BunchedTrade,
10256 LateBunchedTrade,
10258 PriorReferencePriceTrade,
10260 AfterHoursTrade,
10262 Unrecognized(i64),
10264}
10265
10266impl TrdType {
10267 pub fn from_value(value: i64) -> Self {
10268 match value {
10269 0 => Self::RegularTrade,
10270 1 => Self::BlockTrade,
10271 2 => Self::Efp,
10272 3 => Self::Transfer,
10273 4 => Self::LateTrade,
10274 5 => Self::TTrade,
10275 6 => Self::WeightedAveragePriceTrade,
10276 7 => Self::BunchedTrade,
10277 8 => Self::LateBunchedTrade,
10278 9 => Self::PriorReferencePriceTrade,
10279 10 => Self::AfterHoursTrade,
10280 unrecognized => Self::Unrecognized(unrecognized),
10281 }
10282 }
10283
10284 pub fn value(self) -> i64 {
10285 match self {
10286 Self::RegularTrade => 0,
10287 Self::BlockTrade => 1,
10288 Self::Efp => 2,
10289 Self::Transfer => 3,
10290 Self::LateTrade => 4,
10291 Self::TTrade => 5,
10292 Self::WeightedAveragePriceTrade => 6,
10293 Self::BunchedTrade => 7,
10294 Self::LateBunchedTrade => 8,
10295 Self::PriorReferencePriceTrade => 9,
10296 Self::AfterHoursTrade => 10,
10297 Self::Unrecognized(value) => value,
10298 }
10299 }
10300}
10301
10302#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
10304pub enum PegMoveType {
10305 Floating,
10307 Fixed,
10309 Unrecognized(i64),
10311}
10312
10313impl PegMoveType {
10314 pub fn from_value(value: i64) -> Self {
10315 match value {
10316 0 => Self::Floating,
10317 1 => Self::Fixed,
10318 unrecognized => Self::Unrecognized(unrecognized),
10319 }
10320 }
10321
10322 pub fn value(self) -> i64 {
10323 match self {
10324 Self::Floating => 0,
10325 Self::Fixed => 1,
10326 Self::Unrecognized(value) => value,
10327 }
10328 }
10329}
10330
10331#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
10333pub enum PegOffsetType {
10334 Price,
10336 BasisPoints,
10338 Ticks,
10340 PriceTier,
10342 Unrecognized(i64),
10344}
10345
10346impl PegOffsetType {
10347 pub fn from_value(value: i64) -> Self {
10348 match value {
10349 0 => Self::Price,
10350 1 => Self::BasisPoints,
10351 2 => Self::Ticks,
10352 3 => Self::PriceTier,
10353 unrecognized => Self::Unrecognized(unrecognized),
10354 }
10355 }
10356
10357 pub fn value(self) -> i64 {
10358 match self {
10359 Self::Price => 0,
10360 Self::BasisPoints => 1,
10361 Self::Ticks => 2,
10362 Self::PriceTier => 3,
10363 Self::Unrecognized(value) => value,
10364 }
10365 }
10366}
10367
10368#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
10370pub enum PegLimitType {
10371 OrBetter,
10373 Strict,
10375 OrWorse,
10377 Unrecognized(i64),
10379}
10380
10381impl PegLimitType {
10382 pub fn from_value(value: i64) -> Self {
10383 match value {
10384 0 => Self::OrBetter,
10385 1 => Self::Strict,
10386 2 => Self::OrWorse,
10387 unrecognized => Self::Unrecognized(unrecognized),
10388 }
10389 }
10390
10391 pub fn value(self) -> i64 {
10392 match self {
10393 Self::OrBetter => 0,
10394 Self::Strict => 1,
10395 Self::OrWorse => 2,
10396 Self::Unrecognized(value) => value,
10397 }
10398 }
10399}
10400
10401#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
10403pub enum PegRoundDirection {
10404 MoreAggressive,
10406 MorePassive,
10408 Unrecognized(i64),
10410}
10411
10412impl PegRoundDirection {
10413 pub fn from_value(value: i64) -> Self {
10414 match value {
10415 1 => Self::MoreAggressive,
10416 2 => Self::MorePassive,
10417 unrecognized => Self::Unrecognized(unrecognized),
10418 }
10419 }
10420
10421 pub fn value(self) -> i64 {
10422 match self {
10423 Self::MoreAggressive => 1,
10424 Self::MorePassive => 2,
10425 Self::Unrecognized(value) => value,
10426 }
10427 }
10428}
10429
10430#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
10432pub enum PegScope {
10433 Local,
10435 National,
10437 Global,
10439 NationalExcludingLocal,
10441 Unrecognized(i64),
10443}
10444
10445impl PegScope {
10446 pub fn from_value(value: i64) -> Self {
10447 match value {
10448 1 => Self::Local,
10449 2 => Self::National,
10450 3 => Self::Global,
10451 4 => Self::NationalExcludingLocal,
10452 unrecognized => Self::Unrecognized(unrecognized),
10453 }
10454 }
10455
10456 pub fn value(self) -> i64 {
10457 match self {
10458 Self::Local => 1,
10459 Self::National => 2,
10460 Self::Global => 3,
10461 Self::NationalExcludingLocal => 4,
10462 Self::Unrecognized(value) => value,
10463 }
10464 }
10465}
10466
10467#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
10469pub enum DiscretionMoveType {
10470 Floating,
10472 Fixed,
10474 Unrecognized(i64),
10476}
10477
10478impl DiscretionMoveType {
10479 pub fn from_value(value: i64) -> Self {
10480 match value {
10481 0 => Self::Floating,
10482 1 => Self::Fixed,
10483 unrecognized => Self::Unrecognized(unrecognized),
10484 }
10485 }
10486
10487 pub fn value(self) -> i64 {
10488 match self {
10489 Self::Floating => 0,
10490 Self::Fixed => 1,
10491 Self::Unrecognized(value) => value,
10492 }
10493 }
10494}
10495
10496#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
10498pub enum DiscretionOffsetType {
10499 Price,
10501 BasisPoints,
10503 Ticks,
10505 PriceTier,
10507 Unrecognized(i64),
10509}
10510
10511impl DiscretionOffsetType {
10512 pub fn from_value(value: i64) -> Self {
10513 match value {
10514 0 => Self::Price,
10515 1 => Self::BasisPoints,
10516 2 => Self::Ticks,
10517 3 => Self::PriceTier,
10518 unrecognized => Self::Unrecognized(unrecognized),
10519 }
10520 }
10521
10522 pub fn value(self) -> i64 {
10523 match self {
10524 Self::Price => 0,
10525 Self::BasisPoints => 1,
10526 Self::Ticks => 2,
10527 Self::PriceTier => 3,
10528 Self::Unrecognized(value) => value,
10529 }
10530 }
10531}
10532
10533#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
10535pub enum DiscretionLimitType {
10536 OrBetter,
10538 Strict,
10540 OrWorse,
10542 Unrecognized(i64),
10544}
10545
10546impl DiscretionLimitType {
10547 pub fn from_value(value: i64) -> Self {
10548 match value {
10549 0 => Self::OrBetter,
10550 1 => Self::Strict,
10551 2 => Self::OrWorse,
10552 unrecognized => Self::Unrecognized(unrecognized),
10553 }
10554 }
10555
10556 pub fn value(self) -> i64 {
10557 match self {
10558 Self::OrBetter => 0,
10559 Self::Strict => 1,
10560 Self::OrWorse => 2,
10561 Self::Unrecognized(value) => value,
10562 }
10563 }
10564}
10565
10566#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
10568pub enum DiscretionRoundDirection {
10569 MoreAggressive,
10571 MorePassive,
10573 Unrecognized(i64),
10575}
10576
10577impl DiscretionRoundDirection {
10578 pub fn from_value(value: i64) -> Self {
10579 match value {
10580 1 => Self::MoreAggressive,
10581 2 => Self::MorePassive,
10582 unrecognized => Self::Unrecognized(unrecognized),
10583 }
10584 }
10585
10586 pub fn value(self) -> i64 {
10587 match self {
10588 Self::MoreAggressive => 1,
10589 Self::MorePassive => 2,
10590 Self::Unrecognized(value) => value,
10591 }
10592 }
10593}
10594
10595#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
10597pub enum DiscretionScope {
10598 Local,
10600 National,
10602 Global,
10604 NationalExcludingLocal,
10606 Unrecognized(i64),
10608}
10609
10610impl DiscretionScope {
10611 pub fn from_value(value: i64) -> Self {
10612 match value {
10613 1 => Self::Local,
10614 2 => Self::National,
10615 3 => Self::Global,
10616 4 => Self::NationalExcludingLocal,
10617 unrecognized => Self::Unrecognized(unrecognized),
10618 }
10619 }
10620
10621 pub fn value(self) -> i64 {
10622 match self {
10623 Self::Local => 1,
10624 Self::National => 2,
10625 Self::Global => 3,
10626 Self::NationalExcludingLocal => 4,
10627 Self::Unrecognized(value) => value,
10628 }
10629 }
10630}
10631
10632#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
10634pub enum TargetStrategy {
10635 Vwap,
10637 Participate,
10639 MininizeMarketImpact,
10641 Unrecognized(i64),
10643}
10644
10645impl TargetStrategy {
10646 pub fn from_value(value: i64) -> Self {
10647 match value {
10648 1 => Self::Vwap,
10649 2 => Self::Participate,
10650 3 => Self::MininizeMarketImpact,
10651 unrecognized => Self::Unrecognized(unrecognized),
10652 }
10653 }
10654
10655 pub fn value(self) -> i64 {
10656 match self {
10657 Self::Vwap => 1,
10658 Self::Participate => 2,
10659 Self::MininizeMarketImpact => 3,
10660 Self::Unrecognized(value) => value,
10661 }
10662 }
10663}
10664
10665#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
10667pub enum LastLiquidityInd {
10668 AddedLiquidity,
10670 RemovedLiquidity,
10672 LiquidityRoutedOut,
10674 Unrecognized(i64),
10676}
10677
10678impl LastLiquidityInd {
10679 pub fn from_value(value: i64) -> Self {
10680 match value {
10681 1 => Self::AddedLiquidity,
10682 2 => Self::RemovedLiquidity,
10683 3 => Self::LiquidityRoutedOut,
10684 unrecognized => Self::Unrecognized(unrecognized),
10685 }
10686 }
10687
10688 pub fn value(self) -> i64 {
10689 match self {
10690 Self::AddedLiquidity => 1,
10691 Self::RemovedLiquidity => 2,
10692 Self::LiquidityRoutedOut => 3,
10693 Self::Unrecognized(value) => value,
10694 }
10695 }
10696}
10697
10698#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
10700pub enum ShortSaleReason {
10701 DealerSoldShort,
10703 DealerSoldShortExempt,
10705 SellingCustomerSoldShort,
10707 SellingCustomerSoldShortExempt,
10709 QualifiedServiceRepresentative,
10711 QsrOrAguContraSideSoldShortExempt,
10713 Unrecognized(i64),
10715}
10716
10717impl ShortSaleReason {
10718 pub fn from_value(value: i64) -> Self {
10719 match value {
10720 0 => Self::DealerSoldShort,
10721 1 => Self::DealerSoldShortExempt,
10722 2 => Self::SellingCustomerSoldShort,
10723 3 => Self::SellingCustomerSoldShortExempt,
10724 4 => Self::QualifiedServiceRepresentative,
10725 5 => Self::QsrOrAguContraSideSoldShortExempt,
10726 unrecognized => Self::Unrecognized(unrecognized),
10727 }
10728 }
10729
10730 pub fn value(self) -> i64 {
10731 match self {
10732 Self::DealerSoldShort => 0,
10733 Self::DealerSoldShortExempt => 1,
10734 Self::SellingCustomerSoldShort => 2,
10735 Self::SellingCustomerSoldShortExempt => 3,
10736 Self::QualifiedServiceRepresentative => 4,
10737 Self::QsrOrAguContraSideSoldShortExempt => 5,
10738 Self::Unrecognized(value) => value,
10739 }
10740 }
10741}
10742
10743#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
10745pub enum QtyType {
10746 Units,
10748 Contracts,
10750 Unrecognized(i64),
10752}
10753
10754impl QtyType {
10755 pub fn from_value(value: i64) -> Self {
10756 match value {
10757 0 => Self::Units,
10758 1 => Self::Contracts,
10759 unrecognized => Self::Unrecognized(unrecognized),
10760 }
10761 }
10762
10763 pub fn value(self) -> i64 {
10764 match self {
10765 Self::Units => 0,
10766 Self::Contracts => 1,
10767 Self::Unrecognized(value) => value,
10768 }
10769 }
10770}
10771
10772#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
10774pub enum TradeReportType {
10775 Submit,
10777 Alleged,
10779 Accept,
10781 Decline,
10783 Addendum,
10785 No,
10787 TradeReportCancel,
10789 LockedIn,
10791 Unrecognized(i64),
10793}
10794
10795impl TradeReportType {
10796 pub fn from_value(value: i64) -> Self {
10797 match value {
10798 0 => Self::Submit,
10799 1 => Self::Alleged,
10800 2 => Self::Accept,
10801 3 => Self::Decline,
10802 4 => Self::Addendum,
10803 5 => Self::No,
10804 6 => Self::TradeReportCancel,
10805 7 => Self::LockedIn,
10806 unrecognized => Self::Unrecognized(unrecognized),
10807 }
10808 }
10809
10810 pub fn value(self) -> i64 {
10811 match self {
10812 Self::Submit => 0,
10813 Self::Alleged => 1,
10814 Self::Accept => 2,
10815 Self::Decline => 3,
10816 Self::Addendum => 4,
10817 Self::No => 5,
10818 Self::TradeReportCancel => 6,
10819 Self::LockedIn => 7,
10820 Self::Unrecognized(value) => value,
10821 }
10822 }
10823}
10824
10825#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
10827pub enum AllocNoOrdersType {
10828 NotSpecified,
10830 ExplicitListProvided,
10832 Unrecognized(i64),
10834}
10835
10836impl AllocNoOrdersType {
10837 pub fn from_value(value: i64) -> Self {
10838 match value {
10839 0 => Self::NotSpecified,
10840 1 => Self::ExplicitListProvided,
10841 unrecognized => Self::Unrecognized(unrecognized),
10842 }
10843 }
10844
10845 pub fn value(self) -> i64 {
10846 match self {
10847 Self::NotSpecified => 0,
10848 Self::ExplicitListProvided => 1,
10849 Self::Unrecognized(value) => value,
10850 }
10851 }
10852}
10853
10854#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
10856pub enum EventType {
10857 Put,
10859 Call,
10861 Tender,
10863 SinkingFundCall,
10865 Other,
10867 Unrecognized(i64),
10869}
10870
10871impl EventType {
10872 pub fn from_value(value: i64) -> Self {
10873 match value {
10874 1 => Self::Put,
10875 2 => Self::Call,
10876 3 => Self::Tender,
10877 4 => Self::SinkingFundCall,
10878 99 => Self::Other,
10879 unrecognized => Self::Unrecognized(unrecognized),
10880 }
10881 }
10882
10883 pub fn value(self) -> i64 {
10884 match self {
10885 Self::Put => 1,
10886 Self::Call => 2,
10887 Self::Tender => 3,
10888 Self::SinkingFundCall => 4,
10889 Self::Other => 99,
10890 Self::Unrecognized(value) => value,
10891 }
10892 }
10893}
10894
10895#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
10897pub enum InstrAttribType {
10898 Flat,
10900 ZeroCoupon,
10902 InterestBearing,
10904 NoPeriodicPayments,
10906 VariableRate,
10908 LessFeeForPut,
10910 SteppedCoupon,
10912 CouponPeriod,
10914 When,
10916 OriginalIssueDiscount,
10918 Callable,
10920 EscrowedToMaturity,
10922 EscrowedToRedemptionDate,
10924 PreRefunded,
10926 InDefault,
10928 Unrated,
10930 Taxable,
10932 Indexed,
10934 SubjectToAlternativeMinimumTax,
10936 OriginalIssueDiscountPrice,
10938 CallableBelowMaturityValue,
10940 CallableWithoutNotice,
10942 Text,
10944 Unrecognized(i64),
10946}
10947
10948impl InstrAttribType {
10949 pub fn from_value(value: i64) -> Self {
10950 match value {
10951 1 => Self::Flat,
10952 2 => Self::ZeroCoupon,
10953 3 => Self::InterestBearing,
10954 4 => Self::NoPeriodicPayments,
10955 5 => Self::VariableRate,
10956 6 => Self::LessFeeForPut,
10957 7 => Self::SteppedCoupon,
10958 8 => Self::CouponPeriod,
10959 9 => Self::When,
10960 10 => Self::OriginalIssueDiscount,
10961 11 => Self::Callable,
10962 12 => Self::EscrowedToMaturity,
10963 13 => Self::EscrowedToRedemptionDate,
10964 14 => Self::PreRefunded,
10965 15 => Self::InDefault,
10966 16 => Self::Unrated,
10967 17 => Self::Taxable,
10968 18 => Self::Indexed,
10969 19 => Self::SubjectToAlternativeMinimumTax,
10970 20 => Self::OriginalIssueDiscountPrice,
10971 21 => Self::CallableBelowMaturityValue,
10972 22 => Self::CallableWithoutNotice,
10973 99 => Self::Text,
10974 unrecognized => Self::Unrecognized(unrecognized),
10975 }
10976 }
10977
10978 pub fn value(self) -> i64 {
10979 match self {
10980 Self::Flat => 1,
10981 Self::ZeroCoupon => 2,
10982 Self::InterestBearing => 3,
10983 Self::NoPeriodicPayments => 4,
10984 Self::VariableRate => 5,
10985 Self::LessFeeForPut => 6,
10986 Self::SteppedCoupon => 7,
10987 Self::CouponPeriod => 8,
10988 Self::When => 9,
10989 Self::OriginalIssueDiscount => 10,
10990 Self::Callable => 11,
10991 Self::EscrowedToMaturity => 12,
10992 Self::EscrowedToRedemptionDate => 13,
10993 Self::PreRefunded => 14,
10994 Self::InDefault => 15,
10995 Self::Unrated => 16,
10996 Self::Taxable => 17,
10997 Self::Indexed => 18,
10998 Self::SubjectToAlternativeMinimumTax => 19,
10999 Self::OriginalIssueDiscountPrice => 20,
11000 Self::CallableBelowMaturityValue => 21,
11001 Self::CallableWithoutNotice => 22,
11002 Self::Text => 99,
11003 Self::Unrecognized(value) => value,
11004 }
11005 }
11006}
11007
11008#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
11010pub enum CPProgram {
11011 Program3a3,
11013 Program42,
11015 Other,
11017 Unrecognized(i64),
11019}
11020
11021impl CPProgram {
11022 pub fn from_value(value: i64) -> Self {
11023 match value {
11024 1 => Self::Program3a3,
11025 2 => Self::Program42,
11026 99 => Self::Other,
11027 unrecognized => Self::Unrecognized(unrecognized),
11028 }
11029 }
11030
11031 pub fn value(self) -> i64 {
11032 match self {
11033 Self::Program3a3 => 1,
11034 Self::Program42 => 2,
11035 Self::Other => 99,
11036 Self::Unrecognized(value) => value,
11037 }
11038 }
11039}
11040
11041#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
11043pub enum MiscFeeBasis {
11044 Absolute,
11046 PerUnit,
11048 Percentage,
11050 Unrecognized(i64),
11052}
11053
11054impl MiscFeeBasis {
11055 pub fn from_value(value: i64) -> Self {
11056 match value {
11057 0 => Self::Absolute,
11058 1 => Self::PerUnit,
11059 2 => Self::Percentage,
11060 unrecognized => Self::Unrecognized(unrecognized),
11061 }
11062 }
11063
11064 pub fn value(self) -> i64 {
11065 match self {
11066 Self::Absolute => 0,
11067 Self::PerUnit => 1,
11068 Self::Percentage => 2,
11069 Self::Unrecognized(value) => value,
11070 }
11071 }
11072}
11073
11074#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
11076pub enum CollAsgnReason {
11077 Initial,
11079 Scheduled,
11081 TimeWarning,
11083 MarginDeficiency,
11085 MarginExcess,
11087 ForwardCollateralDemand,
11089 EventOfDefault,
11091 AdverseTaxEvent,
11093 Unrecognized(i64),
11095}
11096
11097impl CollAsgnReason {
11098 pub fn from_value(value: i64) -> Self {
11099 match value {
11100 0 => Self::Initial,
11101 1 => Self::Scheduled,
11102 2 => Self::TimeWarning,
11103 3 => Self::MarginDeficiency,
11104 4 => Self::MarginExcess,
11105 5 => Self::ForwardCollateralDemand,
11106 6 => Self::EventOfDefault,
11107 7 => Self::AdverseTaxEvent,
11108 unrecognized => Self::Unrecognized(unrecognized),
11109 }
11110 }
11111
11112 pub fn value(self) -> i64 {
11113 match self {
11114 Self::Initial => 0,
11115 Self::Scheduled => 1,
11116 Self::TimeWarning => 2,
11117 Self::MarginDeficiency => 3,
11118 Self::MarginExcess => 4,
11119 Self::ForwardCollateralDemand => 5,
11120 Self::EventOfDefault => 6,
11121 Self::AdverseTaxEvent => 7,
11122 Self::Unrecognized(value) => value,
11123 }
11124 }
11125}
11126
11127#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
11129pub enum CollInquiryQualifier {
11130 TradeDate,
11132 GcInstrument,
11134 CollateralInstrument,
11136 SubstitutionEligible,
11138 NotAssigned,
11140 PartiallyAssigned,
11142 FullyAssigned,
11144 OutstandingTrades,
11146 Unrecognized(i64),
11148}
11149
11150impl CollInquiryQualifier {
11151 pub fn from_value(value: i64) -> Self {
11152 match value {
11153 0 => Self::TradeDate,
11154 1 => Self::GcInstrument,
11155 2 => Self::CollateralInstrument,
11156 3 => Self::SubstitutionEligible,
11157 4 => Self::NotAssigned,
11158 5 => Self::PartiallyAssigned,
11159 6 => Self::FullyAssigned,
11160 7 => Self::OutstandingTrades,
11161 unrecognized => Self::Unrecognized(unrecognized),
11162 }
11163 }
11164
11165 pub fn value(self) -> i64 {
11166 match self {
11167 Self::TradeDate => 0,
11168 Self::GcInstrument => 1,
11169 Self::CollateralInstrument => 2,
11170 Self::SubstitutionEligible => 3,
11171 Self::NotAssigned => 4,
11172 Self::PartiallyAssigned => 5,
11173 Self::FullyAssigned => 6,
11174 Self::OutstandingTrades => 7,
11175 Self::Unrecognized(value) => value,
11176 }
11177 }
11178}
11179
11180#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
11182pub enum CollAsgnTransType {
11183 New,
11185 Replace,
11187 Cancel,
11189 Release,
11191 Reverse,
11193 Unrecognized(i64),
11195}
11196
11197impl CollAsgnTransType {
11198 pub fn from_value(value: i64) -> Self {
11199 match value {
11200 0 => Self::New,
11201 1 => Self::Replace,
11202 2 => Self::Cancel,
11203 3 => Self::Release,
11204 4 => Self::Reverse,
11205 unrecognized => Self::Unrecognized(unrecognized),
11206 }
11207 }
11208
11209 pub fn value(self) -> i64 {
11210 match self {
11211 Self::New => 0,
11212 Self::Replace => 1,
11213 Self::Cancel => 2,
11214 Self::Release => 3,
11215 Self::Reverse => 4,
11216 Self::Unrecognized(value) => value,
11217 }
11218 }
11219}
11220
11221#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
11223pub enum CollAsgnRespType {
11224 Received,
11226 Accepted,
11228 Declined,
11230 Rejected,
11232 Unrecognized(i64),
11234}
11235
11236impl CollAsgnRespType {
11237 pub fn from_value(value: i64) -> Self {
11238 match value {
11239 0 => Self::Received,
11240 1 => Self::Accepted,
11241 2 => Self::Declined,
11242 3 => Self::Rejected,
11243 unrecognized => Self::Unrecognized(unrecognized),
11244 }
11245 }
11246
11247 pub fn value(self) -> i64 {
11248 match self {
11249 Self::Received => 0,
11250 Self::Accepted => 1,
11251 Self::Declined => 2,
11252 Self::Rejected => 3,
11253 Self::Unrecognized(value) => value,
11254 }
11255 }
11256}
11257
11258#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
11260pub enum CollAsgnRejectReason {
11261 UnknownDeal,
11263 UnknownOrInvalidInstrument,
11265 UnauthorizedTransaction,
11267 InsufficientCollateral,
11269 InvalidTypeOfCollateral,
11271 ExcessiveSubstitution,
11273 Other,
11275 Unrecognized(i64),
11277}
11278
11279impl CollAsgnRejectReason {
11280 pub fn from_value(value: i64) -> Self {
11281 match value {
11282 0 => Self::UnknownDeal,
11283 1 => Self::UnknownOrInvalidInstrument,
11284 2 => Self::UnauthorizedTransaction,
11285 3 => Self::InsufficientCollateral,
11286 4 => Self::InvalidTypeOfCollateral,
11287 5 => Self::ExcessiveSubstitution,
11288 99 => Self::Other,
11289 unrecognized => Self::Unrecognized(unrecognized),
11290 }
11291 }
11292
11293 pub fn value(self) -> i64 {
11294 match self {
11295 Self::UnknownDeal => 0,
11296 Self::UnknownOrInvalidInstrument => 1,
11297 Self::UnauthorizedTransaction => 2,
11298 Self::InsufficientCollateral => 3,
11299 Self::InvalidTypeOfCollateral => 4,
11300 Self::ExcessiveSubstitution => 5,
11301 Self::Other => 99,
11302 Self::Unrecognized(value) => value,
11303 }
11304 }
11305}
11306
11307#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
11309pub enum CollStatus {
11310 Unassigned,
11312 PartiallyAssigned,
11314 AssignmentProposed,
11316 Assigned,
11318 Challenged,
11320 Unrecognized(i64),
11322}
11323
11324impl CollStatus {
11325 pub fn from_value(value: i64) -> Self {
11326 match value {
11327 0 => Self::Unassigned,
11328 1 => Self::PartiallyAssigned,
11329 2 => Self::AssignmentProposed,
11330 3 => Self::Assigned,
11331 4 => Self::Challenged,
11332 unrecognized => Self::Unrecognized(unrecognized),
11333 }
11334 }
11335
11336 pub fn value(self) -> i64 {
11337 match self {
11338 Self::Unassigned => 0,
11339 Self::PartiallyAssigned => 1,
11340 Self::AssignmentProposed => 2,
11341 Self::Assigned => 3,
11342 Self::Challenged => 4,
11343 Self::Unrecognized(value) => value,
11344 }
11345 }
11346}
11347
11348#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
11350pub enum DeliveryType {
11351 VersusPayment,
11353 Free,
11355 TriParty,
11357 HoldInCustody,
11359 Unrecognized(i64),
11361}
11362
11363impl DeliveryType {
11364 pub fn from_value(value: i64) -> Self {
11365 match value {
11366 0 => Self::VersusPayment,
11367 1 => Self::Free,
11368 2 => Self::TriParty,
11369 3 => Self::HoldInCustody,
11370 unrecognized => Self::Unrecognized(unrecognized),
11371 }
11372 }
11373
11374 pub fn value(self) -> i64 {
11375 match self {
11376 Self::VersusPayment => 0,
11377 Self::Free => 1,
11378 Self::TriParty => 2,
11379 Self::HoldInCustody => 3,
11380 Self::Unrecognized(value) => value,
11381 }
11382 }
11383}
11384
11385#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
11387pub enum UserRequestType {
11388 LogOnUser,
11390 LogOffUser,
11392 ChangePasswordForUser,
11394 RequestIndividualUserStatus,
11396 Unrecognized(i64),
11398}
11399
11400impl UserRequestType {
11401 pub fn from_value(value: i64) -> Self {
11402 match value {
11403 1 => Self::LogOnUser,
11404 2 => Self::LogOffUser,
11405 3 => Self::ChangePasswordForUser,
11406 4 => Self::RequestIndividualUserStatus,
11407 unrecognized => Self::Unrecognized(unrecognized),
11408 }
11409 }
11410
11411 pub fn value(self) -> i64 {
11412 match self {
11413 Self::LogOnUser => 1,
11414 Self::LogOffUser => 2,
11415 Self::ChangePasswordForUser => 3,
11416 Self::RequestIndividualUserStatus => 4,
11417 Self::Unrecognized(value) => value,
11418 }
11419 }
11420}
11421
11422#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
11424pub enum UserStatus {
11425 LoggedIn,
11427 NotLoggedIn,
11429 UserNotRecognised,
11431 PasswordIncorrect,
11433 PasswordChanged,
11435 Other,
11437 Unrecognized(i64),
11439}
11440
11441impl UserStatus {
11442 pub fn from_value(value: i64) -> Self {
11443 match value {
11444 1 => Self::LoggedIn,
11445 2 => Self::NotLoggedIn,
11446 3 => Self::UserNotRecognised,
11447 4 => Self::PasswordIncorrect,
11448 5 => Self::PasswordChanged,
11449 6 => Self::Other,
11450 unrecognized => Self::Unrecognized(unrecognized),
11451 }
11452 }
11453
11454 pub fn value(self) -> i64 {
11455 match self {
11456 Self::LoggedIn => 1,
11457 Self::NotLoggedIn => 2,
11458 Self::UserNotRecognised => 3,
11459 Self::PasswordIncorrect => 4,
11460 Self::PasswordChanged => 5,
11461 Self::Other => 6,
11462 Self::Unrecognized(value) => value,
11463 }
11464 }
11465}
11466
11467#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
11469pub enum StatusValue {
11470 Connected,
11472 NotConnectedUnexpected,
11474 NotConnectedExpected,
11476 InProcess,
11478 Unrecognized(i64),
11480}
11481
11482impl StatusValue {
11483 pub fn from_value(value: i64) -> Self {
11484 match value {
11485 1 => Self::Connected,
11486 2 => Self::NotConnectedUnexpected,
11487 3 => Self::NotConnectedExpected,
11488 4 => Self::InProcess,
11489 unrecognized => Self::Unrecognized(unrecognized),
11490 }
11491 }
11492
11493 pub fn value(self) -> i64 {
11494 match self {
11495 Self::Connected => 1,
11496 Self::NotConnectedUnexpected => 2,
11497 Self::NotConnectedExpected => 3,
11498 Self::InProcess => 4,
11499 Self::Unrecognized(value) => value,
11500 }
11501 }
11502}
11503
11504#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
11506pub enum NetworkRequestType {
11507 Snapshot,
11509 Subscribe,
11511 StopSubscribing,
11513 LevelOfDetail,
11515 Unrecognized(i64),
11517}
11518
11519impl NetworkRequestType {
11520 pub fn from_value(value: i64) -> Self {
11521 match value {
11522 1 => Self::Snapshot,
11523 2 => Self::Subscribe,
11524 4 => Self::StopSubscribing,
11525 8 => Self::LevelOfDetail,
11526 unrecognized => Self::Unrecognized(unrecognized),
11527 }
11528 }
11529
11530 pub fn value(self) -> i64 {
11531 match self {
11532 Self::Snapshot => 1,
11533 Self::Subscribe => 2,
11534 Self::StopSubscribing => 4,
11535 Self::LevelOfDetail => 8,
11536 Self::Unrecognized(value) => value,
11537 }
11538 }
11539}
11540
11541#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
11543pub enum NetworkStatusResponseType {
11544 Full,
11546 IncrementalUpdate,
11548 Unrecognized(i64),
11550}
11551
11552impl NetworkStatusResponseType {
11553 pub fn from_value(value: i64) -> Self {
11554 match value {
11555 1 => Self::Full,
11556 2 => Self::IncrementalUpdate,
11557 unrecognized => Self::Unrecognized(unrecognized),
11558 }
11559 }
11560
11561 pub fn value(self) -> i64 {
11562 match self {
11563 Self::Full => 1,
11564 Self::IncrementalUpdate => 2,
11565 Self::Unrecognized(value) => value,
11566 }
11567 }
11568}
11569
11570#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
11572pub enum TrdRptStatus {
11573 Accepted,
11575 Rejected,
11577 Unrecognized(i64),
11579}
11580
11581impl TrdRptStatus {
11582 pub fn from_value(value: i64) -> Self {
11583 match value {
11584 0 => Self::Accepted,
11585 1 => Self::Rejected,
11586 unrecognized => Self::Unrecognized(unrecognized),
11587 }
11588 }
11589
11590 pub fn value(self) -> i64 {
11591 match self {
11592 Self::Accepted => 0,
11593 Self::Rejected => 1,
11594 Self::Unrecognized(value) => value,
11595 }
11596 }
11597}
11598
11599#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
11601pub enum AffirmStatus {
11602 Received,
11604 ConfirmRejected,
11606 Affirmed,
11608 Unrecognized(i64),
11610}
11611
11612impl AffirmStatus {
11613 pub fn from_value(value: i64) -> Self {
11614 match value {
11615 1 => Self::Received,
11616 2 => Self::ConfirmRejected,
11617 3 => Self::Affirmed,
11618 unrecognized => Self::Unrecognized(unrecognized),
11619 }
11620 }
11621
11622 pub fn value(self) -> i64 {
11623 match self {
11624 Self::Received => 1,
11625 Self::ConfirmRejected => 2,
11626 Self::Affirmed => 3,
11627 Self::Unrecognized(value) => value,
11628 }
11629 }
11630}
11631
11632#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
11634pub enum CollAction {
11635 Retain,
11637 Add,
11639 Remove,
11641 Unrecognized(i64),
11643}
11644
11645impl CollAction {
11646 pub fn from_value(value: i64) -> Self {
11647 match value {
11648 0 => Self::Retain,
11649 1 => Self::Add,
11650 2 => Self::Remove,
11651 unrecognized => Self::Unrecognized(unrecognized),
11652 }
11653 }
11654
11655 pub fn value(self) -> i64 {
11656 match self {
11657 Self::Retain => 0,
11658 Self::Add => 1,
11659 Self::Remove => 2,
11660 Self::Unrecognized(value) => value,
11661 }
11662 }
11663}
11664
11665#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
11667pub enum CollInquiryStatus {
11668 Accepted,
11670 AcceptedWithWarnings,
11672 Completed,
11674 CompletedWithWarnings,
11676 Rejected,
11678 Unrecognized(i64),
11680}
11681
11682impl CollInquiryStatus {
11683 pub fn from_value(value: i64) -> Self {
11684 match value {
11685 0 => Self::Accepted,
11686 1 => Self::AcceptedWithWarnings,
11687 2 => Self::Completed,
11688 3 => Self::CompletedWithWarnings,
11689 4 => Self::Rejected,
11690 unrecognized => Self::Unrecognized(unrecognized),
11691 }
11692 }
11693
11694 pub fn value(self) -> i64 {
11695 match self {
11696 Self::Accepted => 0,
11697 Self::AcceptedWithWarnings => 1,
11698 Self::Completed => 2,
11699 Self::CompletedWithWarnings => 3,
11700 Self::Rejected => 4,
11701 Self::Unrecognized(value) => value,
11702 }
11703 }
11704}
11705
11706#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
11708pub enum CollInquiryResult {
11709 Successful,
11711 InvalidOrUnknownInstrument,
11713 InvalidOrUnknownCollateralType,
11715 InvalidParties,
11717 InvalidTransportTypeRequested,
11719 InvalidDestinationRequested,
11721 NoCollateralFoundForTheTradeSpecified,
11723 NoCollateralFoundForTheOrderSpecified,
11725 CollateralInquiryTypeNotSupported,
11727 UnauthorizedForCollateralInquiry,
11729 Other,
11731 Unrecognized(i64),
11733}
11734
11735impl CollInquiryResult {
11736 pub fn from_value(value: i64) -> Self {
11737 match value {
11738 0 => Self::Successful,
11739 1 => Self::InvalidOrUnknownInstrument,
11740 2 => Self::InvalidOrUnknownCollateralType,
11741 3 => Self::InvalidParties,
11742 4 => Self::InvalidTransportTypeRequested,
11743 5 => Self::InvalidDestinationRequested,
11744 6 => Self::NoCollateralFoundForTheTradeSpecified,
11745 7 => Self::NoCollateralFoundForTheOrderSpecified,
11746 8 => Self::CollateralInquiryTypeNotSupported,
11747 9 => Self::UnauthorizedForCollateralInquiry,
11748 99 => Self::Other,
11749 unrecognized => Self::Unrecognized(unrecognized),
11750 }
11751 }
11752
11753 pub fn value(self) -> i64 {
11754 match self {
11755 Self::Successful => 0,
11756 Self::InvalidOrUnknownInstrument => 1,
11757 Self::InvalidOrUnknownCollateralType => 2,
11758 Self::InvalidParties => 3,
11759 Self::InvalidTransportTypeRequested => 4,
11760 Self::InvalidDestinationRequested => 5,
11761 Self::NoCollateralFoundForTheTradeSpecified => 6,
11762 Self::NoCollateralFoundForTheOrderSpecified => 7,
11763 Self::CollateralInquiryTypeNotSupported => 8,
11764 Self::UnauthorizedForCollateralInquiry => 9,
11765 Self::Other => 99,
11766 Self::Unrecognized(value) => value,
11767 }
11768 }
11769}