refix-fix44 0.12.0

Typed FIX 4.4 protocol messages for the ReFIX engine
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
// @generated by refix codegen from FIX44.xml. Do not edit.
#![cfg_attr(rustfmt, rustfmt::skip)]

use refix_message::{Dialect, RawMessage, Tag};

mod components;
mod enums;
mod messages;

#[allow(unused_imports)]
pub use self::{components::*, enums::*, messages::*};

/// The dialect of this dictionary.
pub const DIALECT: Dialect<'static> = Dialect::new().with_extra_length_tags(&[
    Tag(90), Tag(93), Tag(95), Tag(212), Tag(348), Tag(350), Tag(352), Tag(354), Tag(356), Tag(358),
    Tag(360), Tag(362), Tag(364), Tag(445), Tag(618), Tag(621),
]);

/// A message read as the type its MsgType names.
pub enum Message {
    Heartbeat(Heartbeat),
    TestRequest(TestRequest),
    ResendRequest(ResendRequest),
    Reject(Reject),
    SequenceReset(SequenceReset),
    Logout(Logout),
    IOI(IOI),
    Advertisement(Advertisement),
    ExecutionReport(ExecutionReport),
    OrderCancelReject(OrderCancelReject),
    Logon(Logon),
    News(News),
    Email(Email),
    NewOrderSingle(NewOrderSingle),
    NewOrderList(NewOrderList),
    OrderCancelRequest(OrderCancelRequest),
    OrderCancelReplaceRequest(OrderCancelReplaceRequest),
    OrderStatusRequest(OrderStatusRequest),
    AllocationInstruction(AllocationInstruction),
    ListCancelRequest(ListCancelRequest),
    ListExecute(ListExecute),
    ListStatusRequest(ListStatusRequest),
    ListStatus(ListStatus),
    AllocationInstructionAck(AllocationInstructionAck),
    DontKnowTrade(DontKnowTrade),
    QuoteRequest(QuoteRequest),
    Quote(Quote),
    SettlementInstructions(SettlementInstructions),
    MarketDataRequest(MarketDataRequest),
    MarketDataSnapshotFullRefresh(MarketDataSnapshotFullRefresh),
    MarketDataIncrementalRefresh(MarketDataIncrementalRefresh),
    MarketDataRequestReject(MarketDataRequestReject),
    QuoteCancel(QuoteCancel),
    QuoteStatusRequest(QuoteStatusRequest),
    MassQuoteAcknowledgement(MassQuoteAcknowledgement),
    SecurityDefinitionRequest(SecurityDefinitionRequest),
    SecurityDefinition(SecurityDefinition),
    SecurityStatusRequest(SecurityStatusRequest),
    SecurityStatus(SecurityStatus),
    TradingSessionStatusRequest(TradingSessionStatusRequest),
    TradingSessionStatus(TradingSessionStatus),
    MassQuote(MassQuote),
    BusinessMessageReject(BusinessMessageReject),
    BidRequest(BidRequest),
    BidResponse(BidResponse),
    ListStrikePrice(ListStrikePrice),
    XMLnonFIX(XMLnonFIX),
    RegistrationInstructions(RegistrationInstructions),
    RegistrationInstructionsResponse(RegistrationInstructionsResponse),
    OrderMassCancelRequest(OrderMassCancelRequest),
    OrderMassCancelReport(OrderMassCancelReport),
    NewOrderCross(NewOrderCross),
    CrossOrderCancelReplaceRequest(CrossOrderCancelReplaceRequest),
    CrossOrderCancelRequest(CrossOrderCancelRequest),
    SecurityTypeRequest(SecurityTypeRequest),
    SecurityTypes(SecurityTypes),
    SecurityListRequest(SecurityListRequest),
    SecurityList(SecurityList),
    DerivativeSecurityListRequest(DerivativeSecurityListRequest),
    DerivativeSecurityList(DerivativeSecurityList),
    NewOrderMultileg(NewOrderMultileg),
    MultilegOrderCancelReplace(MultilegOrderCancelReplace),
    TradeCaptureReportRequest(TradeCaptureReportRequest),
    TradeCaptureReport(TradeCaptureReport),
    OrderMassStatusRequest(OrderMassStatusRequest),
    QuoteRequestReject(QuoteRequestReject),
    RFQRequest(RFQRequest),
    QuoteStatusReport(QuoteStatusReport),
    QuoteResponse(QuoteResponse),
    Confirmation(Confirmation),
    PositionMaintenanceRequest(PositionMaintenanceRequest),
    PositionMaintenanceReport(PositionMaintenanceReport),
    RequestForPositions(RequestForPositions),
    RequestForPositionsAck(RequestForPositionsAck),
    PositionReport(PositionReport),
    TradeCaptureReportRequestAck(TradeCaptureReportRequestAck),
    TradeCaptureReportAck(TradeCaptureReportAck),
    AllocationReport(AllocationReport),
    AllocationReportAck(AllocationReportAck),
    ConfirmationAck(ConfirmationAck),
    SettlementInstructionRequest(SettlementInstructionRequest),
    AssignmentReport(AssignmentReport),
    CollateralRequest(CollateralRequest),
    CollateralAssignment(CollateralAssignment),
    CollateralResponse(CollateralResponse),
    CollateralReport(CollateralReport),
    CollateralInquiry(CollateralInquiry),
    NetworkCounterpartySystemStatusRequest(NetworkCounterpartySystemStatusRequest),
    NetworkCounterpartySystemStatusResponse(NetworkCounterpartySystemStatusResponse),
    UserRequest(UserRequest),
    UserResponse(UserResponse),
    CollateralInquiryAck(CollateralInquiryAck),
    ConfirmationRequest(ConfirmationRequest),
    Unrecognized(RawMessage),
}

impl Message {
    pub fn from_raw(raw: RawMessage) -> Self {
        match raw.get(Tag(35)) {
            Some(Heartbeat::MSG_TYPE) => Self::Heartbeat(Heartbeat::from_raw(raw)),
            Some(TestRequest::MSG_TYPE) => Self::TestRequest(TestRequest::from_raw(raw)),
            Some(ResendRequest::MSG_TYPE) => Self::ResendRequest(ResendRequest::from_raw(raw)),
            Some(Reject::MSG_TYPE) => Self::Reject(Reject::from_raw(raw)),
            Some(SequenceReset::MSG_TYPE) => Self::SequenceReset(SequenceReset::from_raw(raw)),
            Some(Logout::MSG_TYPE) => Self::Logout(Logout::from_raw(raw)),
            Some(IOI::MSG_TYPE) => Self::IOI(IOI::from_raw(raw)),
            Some(Advertisement::MSG_TYPE) => Self::Advertisement(Advertisement::from_raw(raw)),
            Some(ExecutionReport::MSG_TYPE) => Self::ExecutionReport(ExecutionReport::from_raw(raw)),
            Some(OrderCancelReject::MSG_TYPE) => Self::OrderCancelReject(OrderCancelReject::from_raw(raw)),
            Some(Logon::MSG_TYPE) => Self::Logon(Logon::from_raw(raw)),
            Some(News::MSG_TYPE) => Self::News(News::from_raw(raw)),
            Some(Email::MSG_TYPE) => Self::Email(Email::from_raw(raw)),
            Some(NewOrderSingle::MSG_TYPE) => Self::NewOrderSingle(NewOrderSingle::from_raw(raw)),
            Some(NewOrderList::MSG_TYPE) => Self::NewOrderList(NewOrderList::from_raw(raw)),
            Some(OrderCancelRequest::MSG_TYPE) => Self::OrderCancelRequest(OrderCancelRequest::from_raw(raw)),
            Some(OrderCancelReplaceRequest::MSG_TYPE) => Self::OrderCancelReplaceRequest(OrderCancelReplaceRequest::from_raw(raw)),
            Some(OrderStatusRequest::MSG_TYPE) => Self::OrderStatusRequest(OrderStatusRequest::from_raw(raw)),
            Some(AllocationInstruction::MSG_TYPE) => Self::AllocationInstruction(AllocationInstruction::from_raw(raw)),
            Some(ListCancelRequest::MSG_TYPE) => Self::ListCancelRequest(ListCancelRequest::from_raw(raw)),
            Some(ListExecute::MSG_TYPE) => Self::ListExecute(ListExecute::from_raw(raw)),
            Some(ListStatusRequest::MSG_TYPE) => Self::ListStatusRequest(ListStatusRequest::from_raw(raw)),
            Some(ListStatus::MSG_TYPE) => Self::ListStatus(ListStatus::from_raw(raw)),
            Some(AllocationInstructionAck::MSG_TYPE) => Self::AllocationInstructionAck(AllocationInstructionAck::from_raw(raw)),
            Some(DontKnowTrade::MSG_TYPE) => Self::DontKnowTrade(DontKnowTrade::from_raw(raw)),
            Some(QuoteRequest::MSG_TYPE) => Self::QuoteRequest(QuoteRequest::from_raw(raw)),
            Some(Quote::MSG_TYPE) => Self::Quote(Quote::from_raw(raw)),
            Some(SettlementInstructions::MSG_TYPE) => Self::SettlementInstructions(SettlementInstructions::from_raw(raw)),
            Some(MarketDataRequest::MSG_TYPE) => Self::MarketDataRequest(MarketDataRequest::from_raw(raw)),
            Some(MarketDataSnapshotFullRefresh::MSG_TYPE) => Self::MarketDataSnapshotFullRefresh(MarketDataSnapshotFullRefresh::from_raw(raw)),
            Some(MarketDataIncrementalRefresh::MSG_TYPE) => Self::MarketDataIncrementalRefresh(MarketDataIncrementalRefresh::from_raw(raw)),
            Some(MarketDataRequestReject::MSG_TYPE) => Self::MarketDataRequestReject(MarketDataRequestReject::from_raw(raw)),
            Some(QuoteCancel::MSG_TYPE) => Self::QuoteCancel(QuoteCancel::from_raw(raw)),
            Some(QuoteStatusRequest::MSG_TYPE) => Self::QuoteStatusRequest(QuoteStatusRequest::from_raw(raw)),
            Some(MassQuoteAcknowledgement::MSG_TYPE) => Self::MassQuoteAcknowledgement(MassQuoteAcknowledgement::from_raw(raw)),
            Some(SecurityDefinitionRequest::MSG_TYPE) => Self::SecurityDefinitionRequest(SecurityDefinitionRequest::from_raw(raw)),
            Some(SecurityDefinition::MSG_TYPE) => Self::SecurityDefinition(SecurityDefinition::from_raw(raw)),
            Some(SecurityStatusRequest::MSG_TYPE) => Self::SecurityStatusRequest(SecurityStatusRequest::from_raw(raw)),
            Some(SecurityStatus::MSG_TYPE) => Self::SecurityStatus(SecurityStatus::from_raw(raw)),
            Some(TradingSessionStatusRequest::MSG_TYPE) => Self::TradingSessionStatusRequest(TradingSessionStatusRequest::from_raw(raw)),
            Some(TradingSessionStatus::MSG_TYPE) => Self::TradingSessionStatus(TradingSessionStatus::from_raw(raw)),
            Some(MassQuote::MSG_TYPE) => Self::MassQuote(MassQuote::from_raw(raw)),
            Some(BusinessMessageReject::MSG_TYPE) => Self::BusinessMessageReject(BusinessMessageReject::from_raw(raw)),
            Some(BidRequest::MSG_TYPE) => Self::BidRequest(BidRequest::from_raw(raw)),
            Some(BidResponse::MSG_TYPE) => Self::BidResponse(BidResponse::from_raw(raw)),
            Some(ListStrikePrice::MSG_TYPE) => Self::ListStrikePrice(ListStrikePrice::from_raw(raw)),
            Some(XMLnonFIX::MSG_TYPE) => Self::XMLnonFIX(XMLnonFIX::from_raw(raw)),
            Some(RegistrationInstructions::MSG_TYPE) => Self::RegistrationInstructions(RegistrationInstructions::from_raw(raw)),
            Some(RegistrationInstructionsResponse::MSG_TYPE) => Self::RegistrationInstructionsResponse(RegistrationInstructionsResponse::from_raw(raw)),
            Some(OrderMassCancelRequest::MSG_TYPE) => Self::OrderMassCancelRequest(OrderMassCancelRequest::from_raw(raw)),
            Some(OrderMassCancelReport::MSG_TYPE) => Self::OrderMassCancelReport(OrderMassCancelReport::from_raw(raw)),
            Some(NewOrderCross::MSG_TYPE) => Self::NewOrderCross(NewOrderCross::from_raw(raw)),
            Some(CrossOrderCancelReplaceRequest::MSG_TYPE) => Self::CrossOrderCancelReplaceRequest(CrossOrderCancelReplaceRequest::from_raw(raw)),
            Some(CrossOrderCancelRequest::MSG_TYPE) => Self::CrossOrderCancelRequest(CrossOrderCancelRequest::from_raw(raw)),
            Some(SecurityTypeRequest::MSG_TYPE) => Self::SecurityTypeRequest(SecurityTypeRequest::from_raw(raw)),
            Some(SecurityTypes::MSG_TYPE) => Self::SecurityTypes(SecurityTypes::from_raw(raw)),
            Some(SecurityListRequest::MSG_TYPE) => Self::SecurityListRequest(SecurityListRequest::from_raw(raw)),
            Some(SecurityList::MSG_TYPE) => Self::SecurityList(SecurityList::from_raw(raw)),
            Some(DerivativeSecurityListRequest::MSG_TYPE) => Self::DerivativeSecurityListRequest(DerivativeSecurityListRequest::from_raw(raw)),
            Some(DerivativeSecurityList::MSG_TYPE) => Self::DerivativeSecurityList(DerivativeSecurityList::from_raw(raw)),
            Some(NewOrderMultileg::MSG_TYPE) => Self::NewOrderMultileg(NewOrderMultileg::from_raw(raw)),
            Some(MultilegOrderCancelReplace::MSG_TYPE) => Self::MultilegOrderCancelReplace(MultilegOrderCancelReplace::from_raw(raw)),
            Some(TradeCaptureReportRequest::MSG_TYPE) => Self::TradeCaptureReportRequest(TradeCaptureReportRequest::from_raw(raw)),
            Some(TradeCaptureReport::MSG_TYPE) => Self::TradeCaptureReport(TradeCaptureReport::from_raw(raw)),
            Some(OrderMassStatusRequest::MSG_TYPE) => Self::OrderMassStatusRequest(OrderMassStatusRequest::from_raw(raw)),
            Some(QuoteRequestReject::MSG_TYPE) => Self::QuoteRequestReject(QuoteRequestReject::from_raw(raw)),
            Some(RFQRequest::MSG_TYPE) => Self::RFQRequest(RFQRequest::from_raw(raw)),
            Some(QuoteStatusReport::MSG_TYPE) => Self::QuoteStatusReport(QuoteStatusReport::from_raw(raw)),
            Some(QuoteResponse::MSG_TYPE) => Self::QuoteResponse(QuoteResponse::from_raw(raw)),
            Some(Confirmation::MSG_TYPE) => Self::Confirmation(Confirmation::from_raw(raw)),
            Some(PositionMaintenanceRequest::MSG_TYPE) => Self::PositionMaintenanceRequest(PositionMaintenanceRequest::from_raw(raw)),
            Some(PositionMaintenanceReport::MSG_TYPE) => Self::PositionMaintenanceReport(PositionMaintenanceReport::from_raw(raw)),
            Some(RequestForPositions::MSG_TYPE) => Self::RequestForPositions(RequestForPositions::from_raw(raw)),
            Some(RequestForPositionsAck::MSG_TYPE) => Self::RequestForPositionsAck(RequestForPositionsAck::from_raw(raw)),
            Some(PositionReport::MSG_TYPE) => Self::PositionReport(PositionReport::from_raw(raw)),
            Some(TradeCaptureReportRequestAck::MSG_TYPE) => Self::TradeCaptureReportRequestAck(TradeCaptureReportRequestAck::from_raw(raw)),
            Some(TradeCaptureReportAck::MSG_TYPE) => Self::TradeCaptureReportAck(TradeCaptureReportAck::from_raw(raw)),
            Some(AllocationReport::MSG_TYPE) => Self::AllocationReport(AllocationReport::from_raw(raw)),
            Some(AllocationReportAck::MSG_TYPE) => Self::AllocationReportAck(AllocationReportAck::from_raw(raw)),
            Some(ConfirmationAck::MSG_TYPE) => Self::ConfirmationAck(ConfirmationAck::from_raw(raw)),
            Some(SettlementInstructionRequest::MSG_TYPE) => Self::SettlementInstructionRequest(SettlementInstructionRequest::from_raw(raw)),
            Some(AssignmentReport::MSG_TYPE) => Self::AssignmentReport(AssignmentReport::from_raw(raw)),
            Some(CollateralRequest::MSG_TYPE) => Self::CollateralRequest(CollateralRequest::from_raw(raw)),
            Some(CollateralAssignment::MSG_TYPE) => Self::CollateralAssignment(CollateralAssignment::from_raw(raw)),
            Some(CollateralResponse::MSG_TYPE) => Self::CollateralResponse(CollateralResponse::from_raw(raw)),
            Some(CollateralReport::MSG_TYPE) => Self::CollateralReport(CollateralReport::from_raw(raw)),
            Some(CollateralInquiry::MSG_TYPE) => Self::CollateralInquiry(CollateralInquiry::from_raw(raw)),
            Some(NetworkCounterpartySystemStatusRequest::MSG_TYPE) => Self::NetworkCounterpartySystemStatusRequest(NetworkCounterpartySystemStatusRequest::from_raw(raw)),
            Some(NetworkCounterpartySystemStatusResponse::MSG_TYPE) => Self::NetworkCounterpartySystemStatusResponse(NetworkCounterpartySystemStatusResponse::from_raw(raw)),
            Some(UserRequest::MSG_TYPE) => Self::UserRequest(UserRequest::from_raw(raw)),
            Some(UserResponse::MSG_TYPE) => Self::UserResponse(UserResponse::from_raw(raw)),
            Some(CollateralInquiryAck::MSG_TYPE) => Self::CollateralInquiryAck(CollateralInquiryAck::from_raw(raw)),
            Some(ConfirmationRequest::MSG_TYPE) => Self::ConfirmationRequest(ConfirmationRequest::from_raw(raw)),
            _ => Self::Unrecognized(raw),
        }
    }
}

impl std::fmt::Debug for Message {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        match self {
            Self::Heartbeat(message) => std::fmt::Debug::fmt(message, f),
            Self::TestRequest(message) => std::fmt::Debug::fmt(message, f),
            Self::ResendRequest(message) => std::fmt::Debug::fmt(message, f),
            Self::Reject(message) => std::fmt::Debug::fmt(message, f),
            Self::SequenceReset(message) => std::fmt::Debug::fmt(message, f),
            Self::Logout(message) => std::fmt::Debug::fmt(message, f),
            Self::IOI(message) => std::fmt::Debug::fmt(message, f),
            Self::Advertisement(message) => std::fmt::Debug::fmt(message, f),
            Self::ExecutionReport(message) => std::fmt::Debug::fmt(message, f),
            Self::OrderCancelReject(message) => std::fmt::Debug::fmt(message, f),
            Self::Logon(message) => std::fmt::Debug::fmt(message, f),
            Self::News(message) => std::fmt::Debug::fmt(message, f),
            Self::Email(message) => std::fmt::Debug::fmt(message, f),
            Self::NewOrderSingle(message) => std::fmt::Debug::fmt(message, f),
            Self::NewOrderList(message) => std::fmt::Debug::fmt(message, f),
            Self::OrderCancelRequest(message) => std::fmt::Debug::fmt(message, f),
            Self::OrderCancelReplaceRequest(message) => std::fmt::Debug::fmt(message, f),
            Self::OrderStatusRequest(message) => std::fmt::Debug::fmt(message, f),
            Self::AllocationInstruction(message) => std::fmt::Debug::fmt(message, f),
            Self::ListCancelRequest(message) => std::fmt::Debug::fmt(message, f),
            Self::ListExecute(message) => std::fmt::Debug::fmt(message, f),
            Self::ListStatusRequest(message) => std::fmt::Debug::fmt(message, f),
            Self::ListStatus(message) => std::fmt::Debug::fmt(message, f),
            Self::AllocationInstructionAck(message) => std::fmt::Debug::fmt(message, f),
            Self::DontKnowTrade(message) => std::fmt::Debug::fmt(message, f),
            Self::QuoteRequest(message) => std::fmt::Debug::fmt(message, f),
            Self::Quote(message) => std::fmt::Debug::fmt(message, f),
            Self::SettlementInstructions(message) => std::fmt::Debug::fmt(message, f),
            Self::MarketDataRequest(message) => std::fmt::Debug::fmt(message, f),
            Self::MarketDataSnapshotFullRefresh(message) => std::fmt::Debug::fmt(message, f),
            Self::MarketDataIncrementalRefresh(message) => std::fmt::Debug::fmt(message, f),
            Self::MarketDataRequestReject(message) => std::fmt::Debug::fmt(message, f),
            Self::QuoteCancel(message) => std::fmt::Debug::fmt(message, f),
            Self::QuoteStatusRequest(message) => std::fmt::Debug::fmt(message, f),
            Self::MassQuoteAcknowledgement(message) => std::fmt::Debug::fmt(message, f),
            Self::SecurityDefinitionRequest(message) => std::fmt::Debug::fmt(message, f),
            Self::SecurityDefinition(message) => std::fmt::Debug::fmt(message, f),
            Self::SecurityStatusRequest(message) => std::fmt::Debug::fmt(message, f),
            Self::SecurityStatus(message) => std::fmt::Debug::fmt(message, f),
            Self::TradingSessionStatusRequest(message) => std::fmt::Debug::fmt(message, f),
            Self::TradingSessionStatus(message) => std::fmt::Debug::fmt(message, f),
            Self::MassQuote(message) => std::fmt::Debug::fmt(message, f),
            Self::BusinessMessageReject(message) => std::fmt::Debug::fmt(message, f),
            Self::BidRequest(message) => std::fmt::Debug::fmt(message, f),
            Self::BidResponse(message) => std::fmt::Debug::fmt(message, f),
            Self::ListStrikePrice(message) => std::fmt::Debug::fmt(message, f),
            Self::XMLnonFIX(message) => std::fmt::Debug::fmt(message, f),
            Self::RegistrationInstructions(message) => std::fmt::Debug::fmt(message, f),
            Self::RegistrationInstructionsResponse(message) => std::fmt::Debug::fmt(message, f),
            Self::OrderMassCancelRequest(message) => std::fmt::Debug::fmt(message, f),
            Self::OrderMassCancelReport(message) => std::fmt::Debug::fmt(message, f),
            Self::NewOrderCross(message) => std::fmt::Debug::fmt(message, f),
            Self::CrossOrderCancelReplaceRequest(message) => std::fmt::Debug::fmt(message, f),
            Self::CrossOrderCancelRequest(message) => std::fmt::Debug::fmt(message, f),
            Self::SecurityTypeRequest(message) => std::fmt::Debug::fmt(message, f),
            Self::SecurityTypes(message) => std::fmt::Debug::fmt(message, f),
            Self::SecurityListRequest(message) => std::fmt::Debug::fmt(message, f),
            Self::SecurityList(message) => std::fmt::Debug::fmt(message, f),
            Self::DerivativeSecurityListRequest(message) => std::fmt::Debug::fmt(message, f),
            Self::DerivativeSecurityList(message) => std::fmt::Debug::fmt(message, f),
            Self::NewOrderMultileg(message) => std::fmt::Debug::fmt(message, f),
            Self::MultilegOrderCancelReplace(message) => std::fmt::Debug::fmt(message, f),
            Self::TradeCaptureReportRequest(message) => std::fmt::Debug::fmt(message, f),
            Self::TradeCaptureReport(message) => std::fmt::Debug::fmt(message, f),
            Self::OrderMassStatusRequest(message) => std::fmt::Debug::fmt(message, f),
            Self::QuoteRequestReject(message) => std::fmt::Debug::fmt(message, f),
            Self::RFQRequest(message) => std::fmt::Debug::fmt(message, f),
            Self::QuoteStatusReport(message) => std::fmt::Debug::fmt(message, f),
            Self::QuoteResponse(message) => std::fmt::Debug::fmt(message, f),
            Self::Confirmation(message) => std::fmt::Debug::fmt(message, f),
            Self::PositionMaintenanceRequest(message) => std::fmt::Debug::fmt(message, f),
            Self::PositionMaintenanceReport(message) => std::fmt::Debug::fmt(message, f),
            Self::RequestForPositions(message) => std::fmt::Debug::fmt(message, f),
            Self::RequestForPositionsAck(message) => std::fmt::Debug::fmt(message, f),
            Self::PositionReport(message) => std::fmt::Debug::fmt(message, f),
            Self::TradeCaptureReportRequestAck(message) => std::fmt::Debug::fmt(message, f),
            Self::TradeCaptureReportAck(message) => std::fmt::Debug::fmt(message, f),
            Self::AllocationReport(message) => std::fmt::Debug::fmt(message, f),
            Self::AllocationReportAck(message) => std::fmt::Debug::fmt(message, f),
            Self::ConfirmationAck(message) => std::fmt::Debug::fmt(message, f),
            Self::SettlementInstructionRequest(message) => std::fmt::Debug::fmt(message, f),
            Self::AssignmentReport(message) => std::fmt::Debug::fmt(message, f),
            Self::CollateralRequest(message) => std::fmt::Debug::fmt(message, f),
            Self::CollateralAssignment(message) => std::fmt::Debug::fmt(message, f),
            Self::CollateralResponse(message) => std::fmt::Debug::fmt(message, f),
            Self::CollateralReport(message) => std::fmt::Debug::fmt(message, f),
            Self::CollateralInquiry(message) => std::fmt::Debug::fmt(message, f),
            Self::NetworkCounterpartySystemStatusRequest(message) => std::fmt::Debug::fmt(message, f),
            Self::NetworkCounterpartySystemStatusResponse(message) => std::fmt::Debug::fmt(message, f),
            Self::UserRequest(message) => std::fmt::Debug::fmt(message, f),
            Self::UserResponse(message) => std::fmt::Debug::fmt(message, f),
            Self::CollateralInquiryAck(message) => std::fmt::Debug::fmt(message, f),
            Self::ConfirmationRequest(message) => std::fmt::Debug::fmt(message, f),
            Self::Unrecognized(raw) => write!(f, "Unrecognized({raw})"),
        }
    }
}

impl std::fmt::Display for Message {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        match self {
            Self::Heartbeat(message) => std::fmt::Display::fmt(message, f),
            Self::TestRequest(message) => std::fmt::Display::fmt(message, f),
            Self::ResendRequest(message) => std::fmt::Display::fmt(message, f),
            Self::Reject(message) => std::fmt::Display::fmt(message, f),
            Self::SequenceReset(message) => std::fmt::Display::fmt(message, f),
            Self::Logout(message) => std::fmt::Display::fmt(message, f),
            Self::IOI(message) => std::fmt::Display::fmt(message, f),
            Self::Advertisement(message) => std::fmt::Display::fmt(message, f),
            Self::ExecutionReport(message) => std::fmt::Display::fmt(message, f),
            Self::OrderCancelReject(message) => std::fmt::Display::fmt(message, f),
            Self::Logon(message) => std::fmt::Display::fmt(message, f),
            Self::News(message) => std::fmt::Display::fmt(message, f),
            Self::Email(message) => std::fmt::Display::fmt(message, f),
            Self::NewOrderSingle(message) => std::fmt::Display::fmt(message, f),
            Self::NewOrderList(message) => std::fmt::Display::fmt(message, f),
            Self::OrderCancelRequest(message) => std::fmt::Display::fmt(message, f),
            Self::OrderCancelReplaceRequest(message) => std::fmt::Display::fmt(message, f),
            Self::OrderStatusRequest(message) => std::fmt::Display::fmt(message, f),
            Self::AllocationInstruction(message) => std::fmt::Display::fmt(message, f),
            Self::ListCancelRequest(message) => std::fmt::Display::fmt(message, f),
            Self::ListExecute(message) => std::fmt::Display::fmt(message, f),
            Self::ListStatusRequest(message) => std::fmt::Display::fmt(message, f),
            Self::ListStatus(message) => std::fmt::Display::fmt(message, f),
            Self::AllocationInstructionAck(message) => std::fmt::Display::fmt(message, f),
            Self::DontKnowTrade(message) => std::fmt::Display::fmt(message, f),
            Self::QuoteRequest(message) => std::fmt::Display::fmt(message, f),
            Self::Quote(message) => std::fmt::Display::fmt(message, f),
            Self::SettlementInstructions(message) => std::fmt::Display::fmt(message, f),
            Self::MarketDataRequest(message) => std::fmt::Display::fmt(message, f),
            Self::MarketDataSnapshotFullRefresh(message) => std::fmt::Display::fmt(message, f),
            Self::MarketDataIncrementalRefresh(message) => std::fmt::Display::fmt(message, f),
            Self::MarketDataRequestReject(message) => std::fmt::Display::fmt(message, f),
            Self::QuoteCancel(message) => std::fmt::Display::fmt(message, f),
            Self::QuoteStatusRequest(message) => std::fmt::Display::fmt(message, f),
            Self::MassQuoteAcknowledgement(message) => std::fmt::Display::fmt(message, f),
            Self::SecurityDefinitionRequest(message) => std::fmt::Display::fmt(message, f),
            Self::SecurityDefinition(message) => std::fmt::Display::fmt(message, f),
            Self::SecurityStatusRequest(message) => std::fmt::Display::fmt(message, f),
            Self::SecurityStatus(message) => std::fmt::Display::fmt(message, f),
            Self::TradingSessionStatusRequest(message) => std::fmt::Display::fmt(message, f),
            Self::TradingSessionStatus(message) => std::fmt::Display::fmt(message, f),
            Self::MassQuote(message) => std::fmt::Display::fmt(message, f),
            Self::BusinessMessageReject(message) => std::fmt::Display::fmt(message, f),
            Self::BidRequest(message) => std::fmt::Display::fmt(message, f),
            Self::BidResponse(message) => std::fmt::Display::fmt(message, f),
            Self::ListStrikePrice(message) => std::fmt::Display::fmt(message, f),
            Self::XMLnonFIX(message) => std::fmt::Display::fmt(message, f),
            Self::RegistrationInstructions(message) => std::fmt::Display::fmt(message, f),
            Self::RegistrationInstructionsResponse(message) => std::fmt::Display::fmt(message, f),
            Self::OrderMassCancelRequest(message) => std::fmt::Display::fmt(message, f),
            Self::OrderMassCancelReport(message) => std::fmt::Display::fmt(message, f),
            Self::NewOrderCross(message) => std::fmt::Display::fmt(message, f),
            Self::CrossOrderCancelReplaceRequest(message) => std::fmt::Display::fmt(message, f),
            Self::CrossOrderCancelRequest(message) => std::fmt::Display::fmt(message, f),
            Self::SecurityTypeRequest(message) => std::fmt::Display::fmt(message, f),
            Self::SecurityTypes(message) => std::fmt::Display::fmt(message, f),
            Self::SecurityListRequest(message) => std::fmt::Display::fmt(message, f),
            Self::SecurityList(message) => std::fmt::Display::fmt(message, f),
            Self::DerivativeSecurityListRequest(message) => std::fmt::Display::fmt(message, f),
            Self::DerivativeSecurityList(message) => std::fmt::Display::fmt(message, f),
            Self::NewOrderMultileg(message) => std::fmt::Display::fmt(message, f),
            Self::MultilegOrderCancelReplace(message) => std::fmt::Display::fmt(message, f),
            Self::TradeCaptureReportRequest(message) => std::fmt::Display::fmt(message, f),
            Self::TradeCaptureReport(message) => std::fmt::Display::fmt(message, f),
            Self::OrderMassStatusRequest(message) => std::fmt::Display::fmt(message, f),
            Self::QuoteRequestReject(message) => std::fmt::Display::fmt(message, f),
            Self::RFQRequest(message) => std::fmt::Display::fmt(message, f),
            Self::QuoteStatusReport(message) => std::fmt::Display::fmt(message, f),
            Self::QuoteResponse(message) => std::fmt::Display::fmt(message, f),
            Self::Confirmation(message) => std::fmt::Display::fmt(message, f),
            Self::PositionMaintenanceRequest(message) => std::fmt::Display::fmt(message, f),
            Self::PositionMaintenanceReport(message) => std::fmt::Display::fmt(message, f),
            Self::RequestForPositions(message) => std::fmt::Display::fmt(message, f),
            Self::RequestForPositionsAck(message) => std::fmt::Display::fmt(message, f),
            Self::PositionReport(message) => std::fmt::Display::fmt(message, f),
            Self::TradeCaptureReportRequestAck(message) => std::fmt::Display::fmt(message, f),
            Self::TradeCaptureReportAck(message) => std::fmt::Display::fmt(message, f),
            Self::AllocationReport(message) => std::fmt::Display::fmt(message, f),
            Self::AllocationReportAck(message) => std::fmt::Display::fmt(message, f),
            Self::ConfirmationAck(message) => std::fmt::Display::fmt(message, f),
            Self::SettlementInstructionRequest(message) => std::fmt::Display::fmt(message, f),
            Self::AssignmentReport(message) => std::fmt::Display::fmt(message, f),
            Self::CollateralRequest(message) => std::fmt::Display::fmt(message, f),
            Self::CollateralAssignment(message) => std::fmt::Display::fmt(message, f),
            Self::CollateralResponse(message) => std::fmt::Display::fmt(message, f),
            Self::CollateralReport(message) => std::fmt::Display::fmt(message, f),
            Self::CollateralInquiry(message) => std::fmt::Display::fmt(message, f),
            Self::NetworkCounterpartySystemStatusRequest(message) => std::fmt::Display::fmt(message, f),
            Self::NetworkCounterpartySystemStatusResponse(message) => std::fmt::Display::fmt(message, f),
            Self::UserRequest(message) => std::fmt::Display::fmt(message, f),
            Self::UserResponse(message) => std::fmt::Display::fmt(message, f),
            Self::CollateralInquiryAck(message) => std::fmt::Display::fmt(message, f),
            Self::ConfirmationRequest(message) => std::fmt::Display::fmt(message, f),
            Self::Unrecognized(raw) => std::fmt::Display::fmt(raw, f),
        }
    }
}

/// Builds the tag lists that group reads share.
///
/// Each list is otherwise built by the first read that needs it. Call this
/// once at startup to keep that work out of the first messages.
pub fn warm_up() {
    Header::envelope_tags().get();
    Header::known_tags().get();
    Trailer::known_tags().get();
    Instrument::known_tags().get();
    FinancingDetails::known_tags().get();
    UnderlyingInstrument::known_tags().get();
    OrderQtyData::known_tags().get();
    InstrumentLeg::known_tags().get();
    SpreadOrBenchmarkCurveData::known_tags().get();
    YieldData::known_tags().get();
    PegInstructions::known_tags().get();
    DiscretionInstructions::known_tags().get();
    CommissionData::known_tags().get();
    InstrumentExtension::known_tags().get();
    SettlInstructionsData::known_tags().get();
    LegBenchmarkCurveData::known_tags().get();
    HeaderHops::known_tags().get();
    SecAltIDGrp::known_tags().get();
    EvntGrp::known_tags().get();
    UndInstrmtGrp::known_tags().get();
    UndSecAltIDGrp::known_tags().get();
    UnderlyingStipulations::known_tags().get();
    Stipulations::known_tags().get();
    InstrmtLegIOIGrp::known_tags().get();
    LegSecAltIDGrp::known_tags().get();
    LegStipulations::known_tags().get();
    IOIQualGrp::known_tags().get();
    RoutingGrp::known_tags().get();
    InstrmtLegGrp::known_tags().get();
    Parties::known_tags().get();
    PtysSubGrp::known_tags().get();
    ContraGrp::known_tags().get();
    ContAmtGrp::known_tags().get();
    InstrmtLegExecGrp::known_tags().get();
    NestedParties::known_tags().get();
    NstdPtysSubGrp::known_tags().get();
    MiscFeesGrp::known_tags().get();
    LogonMsgTypes::known_tags().get();
    InstrmtGrp::known_tags().get();
    LinesOfTextGrp::known_tags().get();
    PreAllocGrp::known_tags().get();
    TrdgSesGrp::known_tags().get();
    ListOrdGrp::known_tags().get();
    OrdAllocGrp::known_tags().get();
    NestedParties2::known_tags().get();
    NstdPtys2SubGrp::known_tags().get();
    ExecAllocGrp::known_tags().get();
    AttrbGrp::known_tags().get();
    AllocGrp::known_tags().get();
    ClrInstGrp::known_tags().get();
    DlvyInstGrp::known_tags().get();
    SettlParties::known_tags().get();
    SettlPtysSubGrp::known_tags().get();
    OrdListStatGrp::known_tags().get();
    AllocAckGrp::known_tags().get();
    QuotReqGrp::known_tags().get();
    QuotReqLegsGrp::known_tags().get();
    QuotQualGrp::known_tags().get();
    LegQuotGrp::known_tags().get();
    SettlInstGrp::known_tags().get();
    MDReqGrp::known_tags().get();
    InstrmtMDReqGrp::known_tags().get();
    MDFullGrp::known_tags().get();
    MDIncGrp::known_tags().get();
    MDRjctGrp::known_tags().get();
    QuotCxlEntriesGrp::known_tags().get();
    QuotSetAckGrp::known_tags().get();
    QuotEntryAckGrp::known_tags().get();
    QuotSetGrp::known_tags().get();
    QuotEntryGrp::known_tags().get();
    BidDescReqGrp::known_tags().get();
    BidCompReqGrp::known_tags().get();
    BidCompRspGrp::known_tags().get();
    InstrmtStrkPxGrp::known_tags().get();
    UndInstrmtStrkPxGrp::known_tags().get();
    RgstDtlsGrp::known_tags().get();
    RgstDistInstGrp::known_tags().get();
    AffectedOrdGrp::known_tags().get();
    SideCrossOrdModGrp::known_tags().get();
    SideCrossOrdCxlGrp::known_tags().get();
    SecTypesGrp::known_tags().get();
    SecListGrp::known_tags().get();
    InstrmtLegSecListGrp::known_tags().get();
    RelSymDerivSecGrp::known_tags().get();
    PreAllocMlegGrp::known_tags().get();
    NestedParties3::known_tags().get();
    NstdPtys3SubGrp::known_tags().get();
    LegOrdGrp::known_tags().get();
    LegPreAllocGrp::known_tags().get();
    TrdCapDtGrp::known_tags().get();
    PositionAmountData::known_tags().get();
    TrdInstrmtLegGrp::known_tags().get();
    TrdRegTimestamps::known_tags().get();
    TrdCapRptSideGrp::known_tags().get();
    TrdAllocGrp::known_tags().get();
    QuotReqRjctGrp::known_tags().get();
    RFQReqGrp::known_tags().get();
    LegQuotStatGrp::known_tags().get();
    CpctyConfGrp::known_tags().get();
    PositionQty::known_tags().get();
    PosUndInstrmtGrp::known_tags().get();
    ExecCollGrp::known_tags().get();
    TrdCollGrp::known_tags().get();
    UndInstrmtCollGrp::known_tags().get();
    CollInqQualGrp::known_tags().get();
    CompIDReqGrp::known_tags().get();
    CompIDStatGrp::known_tags().get();
    Heartbeat::known_tags().get();
    TestRequest::known_tags().get();
    ResendRequest::known_tags().get();
    Reject::known_tags().get();
    SequenceReset::known_tags().get();
    Logout::known_tags().get();
    IOI::known_tags().get();
    Advertisement::known_tags().get();
    ExecutionReport::known_tags().get();
    OrderCancelReject::known_tags().get();
    Logon::known_tags().get();
    News::known_tags().get();
    Email::known_tags().get();
    NewOrderSingle::known_tags().get();
    NewOrderList::known_tags().get();
    OrderCancelRequest::known_tags().get();
    OrderCancelReplaceRequest::known_tags().get();
    OrderStatusRequest::known_tags().get();
    AllocationInstruction::known_tags().get();
    ListCancelRequest::known_tags().get();
    ListExecute::known_tags().get();
    ListStatusRequest::known_tags().get();
    ListStatus::known_tags().get();
    AllocationInstructionAck::known_tags().get();
    DontKnowTrade::known_tags().get();
    QuoteRequest::known_tags().get();
    Quote::known_tags().get();
    SettlementInstructions::known_tags().get();
    MarketDataRequest::known_tags().get();
    MarketDataSnapshotFullRefresh::known_tags().get();
    MarketDataIncrementalRefresh::known_tags().get();
    MarketDataRequestReject::known_tags().get();
    QuoteCancel::known_tags().get();
    QuoteStatusRequest::known_tags().get();
    MassQuoteAcknowledgement::known_tags().get();
    SecurityDefinitionRequest::known_tags().get();
    SecurityDefinition::known_tags().get();
    SecurityStatusRequest::known_tags().get();
    SecurityStatus::known_tags().get();
    TradingSessionStatusRequest::known_tags().get();
    TradingSessionStatus::known_tags().get();
    MassQuote::known_tags().get();
    BusinessMessageReject::known_tags().get();
    BidRequest::known_tags().get();
    BidResponse::known_tags().get();
    ListStrikePrice::known_tags().get();
    XMLnonFIX::known_tags().get();
    RegistrationInstructions::known_tags().get();
    RegistrationInstructionsResponse::known_tags().get();
    OrderMassCancelRequest::known_tags().get();
    OrderMassCancelReport::known_tags().get();
    NewOrderCross::known_tags().get();
    CrossOrderCancelReplaceRequest::known_tags().get();
    CrossOrderCancelRequest::known_tags().get();
    SecurityTypeRequest::known_tags().get();
    SecurityTypes::known_tags().get();
    SecurityListRequest::known_tags().get();
    SecurityList::known_tags().get();
    DerivativeSecurityListRequest::known_tags().get();
    DerivativeSecurityList::known_tags().get();
    NewOrderMultileg::known_tags().get();
    MultilegOrderCancelReplace::known_tags().get();
    TradeCaptureReportRequest::known_tags().get();
    TradeCaptureReport::known_tags().get();
    OrderMassStatusRequest::known_tags().get();
    QuoteRequestReject::known_tags().get();
    RFQRequest::known_tags().get();
    QuoteStatusReport::known_tags().get();
    QuoteResponse::known_tags().get();
    Confirmation::known_tags().get();
    PositionMaintenanceRequest::known_tags().get();
    PositionMaintenanceReport::known_tags().get();
    RequestForPositions::known_tags().get();
    RequestForPositionsAck::known_tags().get();
    PositionReport::known_tags().get();
    TradeCaptureReportRequestAck::known_tags().get();
    TradeCaptureReportAck::known_tags().get();
    AllocationReport::known_tags().get();
    AllocationReportAck::known_tags().get();
    ConfirmationAck::known_tags().get();
    SettlementInstructionRequest::known_tags().get();
    AssignmentReport::known_tags().get();
    CollateralRequest::known_tags().get();
    CollateralAssignment::known_tags().get();
    CollateralResponse::known_tags().get();
    CollateralReport::known_tags().get();
    CollateralInquiry::known_tags().get();
    NetworkCounterpartySystemStatusRequest::known_tags().get();
    NetworkCounterpartySystemStatusResponse::known_tags().get();
    UserRequest::known_tags().get();
    UserResponse::known_tags().get();
    CollateralInquiryAck::known_tags().get();
    ConfirmationRequest::known_tags().get();
}