1#![cfg_attr(rustfmt, rustfmt::skip)]
3
4use refix_message::{
5 Date, Decimal, Instances, InvalidValue, LazyKnownTags, MultipleValues, RawMessage, Tag,
6 UtcTimestamp,
7};
8
9use super::super::components::{
10 CommissionData, ContAmtGrp, ContraGrp, DiscretionInstructions, FinancingDetails, Header,
11 InstrmtLegExecGrp, Instrument, MiscFeesGrp, OrderQtyData, Parties, PegInstructions,
12 SpreadOrBenchmarkCurveData, Stipulations, Trailer, UndInstrmtGrp, YieldData,
13};
14use super::super::enums::{
15 AccountType, AcctIDSource, BookingType, BookingUnit, CancellationRights, CashMargin,
16 ClearingFeeIndicator, CrossType, CustOrderCapacity, DayBookingInst, ExecInst, ExecPriceType,
17 ExecRestatementReason, ExecType, GTBookingInst, HandlInst, LastCapacity, LastLiquidityInd,
18 MoneyLaunderingStatus, MultiLegReportingType, OrdRejReason, OrdStatus, OrdType, OrderCapacity,
19 OrderRestrictions, PositionEffect, PreallocMethod, PriceType, PriorityIndicator, QtyType,
20 SettlCurrFxRateCalc, SettlType, Side, TargetStrategy, TimeInForce,
21};
22
23pub struct ExecutionReport(RawMessage);
25
26impl ExecutionReport {
27 pub const MSG_TYPE: &[u8] = b"8";
28
29 pub(in super::super) const fn known_tags() -> &'static LazyKnownTags {
30 static TAGS: LazyKnownTags = LazyKnownTags::new(
31 &[
32 Tag(37), Tag(198), Tag(526), Tag(527), Tag(11), Tag(41), Tag(583), Tag(693),
33 Tag(790), Tag(584), Tag(911), Tag(912), Tag(453), Tag(229), Tag(382), Tag(66),
34 Tag(548), Tag(551), Tag(549), Tag(17), Tag(19), Tag(150), Tag(39), Tag(636),
35 Tag(103), Tag(378), Tag(1), Tag(660), Tag(581), Tag(589), Tag(590), Tag(591),
36 Tag(63), Tag(64), Tag(544), Tag(635), Tag(711), Tag(54), Tag(232), Tag(854),
37 Tag(40), Tag(423), Tag(44), Tag(99), Tag(839), Tag(845), Tag(847), Tag(848),
38 Tag(849), Tag(850), Tag(15), Tag(376), Tag(377), Tag(59), Tag(168), Tag(432),
39 Tag(126), Tag(18), Tag(528), Tag(529), Tag(582), Tag(32), Tag(652), Tag(31),
40 Tag(651), Tag(669), Tag(194), Tag(195), Tag(30), Tag(336), Tag(625), Tag(943),
41 Tag(29), Tag(151), Tag(14), Tag(6), Tag(424), Tag(425), Tag(426), Tag(427), Tag(75),
42 Tag(60), Tag(113), Tag(381), Tag(157), Tag(230), Tag(158), Tag(159), Tag(738),
43 Tag(920), Tag(921), Tag(922), Tag(258), Tag(259), Tag(260), Tag(238), Tag(237),
44 Tag(118), Tag(119), Tag(120), Tag(155), Tag(156), Tag(21), Tag(110), Tag(111),
45 Tag(77), Tag(210), Tag(775), Tag(58), Tag(354), Tag(355), Tag(193), Tag(192),
46 Tag(641), Tag(442), Tag(480), Tag(481), Tag(513), Tag(494), Tag(483), Tag(515),
47 Tag(484), Tag(485), Tag(638), Tag(639), Tag(851), Tag(518), Tag(555), Tag(797),
48 Tag(136),
49 ],
50 &[
51 Header::known_tags(), Trailer::known_tags(), Parties::known_tags(),
52 ContraGrp::known_tags(), Instrument::known_tags(), FinancingDetails::known_tags(),
53 UndInstrmtGrp::known_tags(), Stipulations::known_tags(), OrderQtyData::known_tags(),
54 PegInstructions::known_tags(), DiscretionInstructions::known_tags(),
55 CommissionData::known_tags(), SpreadOrBenchmarkCurveData::known_tags(),
56 YieldData::known_tags(), ContAmtGrp::known_tags(), InstrmtLegExecGrp::known_tags(),
57 MiscFeesGrp::known_tags(),
58 ],
59 );
60 &TAGS
61 }
62
63 pub fn from_raw(raw: RawMessage) -> Self {
64 Self(raw)
65 }
66
67 pub fn raw(&self) -> &RawMessage {
68 &self.0
69 }
70
71 pub fn header(&self) -> Header<'_> {
72 Header(self.0.scope(), Self::known_tags().get())
73 }
74
75 pub fn trailer(&self) -> Trailer<'_> {
76 Trailer(self.0.scope())
77 }
78
79 #[doc(alias = "OrderID")]
81 pub fn order_id(&self) -> Result<Option<&str>, InvalidValue> {
82 self.0.get_str(Tag(37))
83 }
84
85 #[doc(alias = "SecondaryOrderID")]
87 pub fn secondary_order_id(&self) -> Result<Option<&str>, InvalidValue> {
88 self.0.get_str(Tag(198))
89 }
90
91 #[doc(alias = "SecondaryClOrdID")]
93 pub fn secondary_cl_ord_id(&self) -> Result<Option<&str>, InvalidValue> {
94 self.0.get_str(Tag(526))
95 }
96
97 #[doc(alias = "SecondaryExecID")]
99 pub fn secondary_exec_id(&self) -> Result<Option<&str>, InvalidValue> {
100 self.0.get_str(Tag(527))
101 }
102
103 #[doc(alias = "ClOrdID")]
105 pub fn cl_ord_id(&self) -> Result<Option<&str>, InvalidValue> {
106 self.0.get_str(Tag(11))
107 }
108
109 #[doc(alias = "OrigClOrdID")]
111 pub fn orig_cl_ord_id(&self) -> Result<Option<&str>, InvalidValue> {
112 self.0.get_str(Tag(41))
113 }
114
115 #[doc(alias = "ClOrdLinkID")]
117 pub fn cl_ord_link_id(&self) -> Result<Option<&str>, InvalidValue> {
118 self.0.get_str(Tag(583))
119 }
120
121 #[doc(alias = "QuoteRespID")]
123 pub fn quote_resp_id(&self) -> Result<Option<&str>, InvalidValue> {
124 self.0.get_str(Tag(693))
125 }
126
127 #[doc(alias = "OrdStatusReqID")]
129 pub fn ord_status_req_id(&self) -> Result<Option<&str>, InvalidValue> {
130 self.0.get_str(Tag(790))
131 }
132
133 #[doc(alias = "MassStatusReqID")]
135 pub fn mass_status_req_id(&self) -> Result<Option<&str>, InvalidValue> {
136 self.0.get_str(Tag(584))
137 }
138
139 #[doc(alias = "TotNumReports")]
141 pub fn tot_num_reports(&self) -> Result<Option<i64>, InvalidValue> {
142 self.0.get_int(Tag(911))
143 }
144
145 #[doc(alias = "LastRptRequested")]
147 pub fn last_rpt_requested(&self) -> Result<Option<bool>, InvalidValue> {
148 self.0.get_bool(Tag(912))
149 }
150
151 #[doc(alias = "NoPartyIDs")]
153 pub fn party_ids(&self) -> Result<Instances<'_, Parties<'_>>, InvalidValue> {
154 self.0.get_group(&Parties::TABLE, &Self::known_tags().get()).map(Instances::from)
155 }
156
157 #[doc(alias = "TradeOriginationDate")]
159 pub fn trade_origination_date(&self) -> Result<Option<Date>, InvalidValue> {
160 self.0.get_date(Tag(229))
161 }
162
163 #[doc(alias = "NoContraBrokers")]
165 pub fn contra_brokers(&self) -> Result<Instances<'_, ContraGrp<'_>>, InvalidValue> {
166 self.0.get_group(&ContraGrp::TABLE, &Self::known_tags().get()).map(Instances::from)
167 }
168
169 #[doc(alias = "ListID")]
171 pub fn list_id(&self) -> Result<Option<&str>, InvalidValue> {
172 self.0.get_str(Tag(66))
173 }
174
175 #[doc(alias = "CrossID")]
177 pub fn cross_id(&self) -> Result<Option<&str>, InvalidValue> {
178 self.0.get_str(Tag(548))
179 }
180
181 #[doc(alias = "OrigCrossID")]
183 pub fn orig_cross_id(&self) -> Result<Option<&str>, InvalidValue> {
184 self.0.get_str(Tag(551))
185 }
186
187 #[doc(alias = "CrossType")]
189 pub fn cross_type(&self) -> Result<Option<CrossType>, InvalidValue> {
190 Ok(self.0.get_int(Tag(549))?.map(CrossType::from_value))
191 }
192
193 #[doc(alias = "ExecID")]
195 pub fn exec_id(&self) -> Result<Option<&str>, InvalidValue> {
196 self.0.get_str(Tag(17))
197 }
198
199 #[doc(alias = "ExecRefID")]
201 pub fn exec_ref_id(&self) -> Result<Option<&str>, InvalidValue> {
202 self.0.get_str(Tag(19))
203 }
204
205 #[doc(alias = "ExecType")]
207 pub fn exec_type(&self) -> Result<Option<ExecType<'_>>, InvalidValue> {
208 Ok(self.0.get_str(Tag(150))?.map(ExecType::from_value))
209 }
210
211 #[doc(alias = "OrdStatus")]
213 pub fn ord_status(&self) -> Result<Option<OrdStatus<'_>>, InvalidValue> {
214 Ok(self.0.get_str(Tag(39))?.map(OrdStatus::from_value))
215 }
216
217 #[doc(alias = "WorkingIndicator")]
219 pub fn working_indicator(&self) -> Result<Option<bool>, InvalidValue> {
220 self.0.get_bool(Tag(636))
221 }
222
223 #[doc(alias = "OrdRejReason")]
225 pub fn ord_rej_reason(&self) -> Result<Option<OrdRejReason>, InvalidValue> {
226 Ok(self.0.get_int(Tag(103))?.map(OrdRejReason::from_value))
227 }
228
229 #[doc(alias = "ExecRestatementReason")]
231 pub fn exec_restatement_reason(&self) -> Result<Option<ExecRestatementReason>, InvalidValue> {
232 Ok(self.0.get_int(Tag(378))?.map(ExecRestatementReason::from_value))
233 }
234
235 #[doc(alias = "Account")]
237 pub fn account(&self) -> Result<Option<&str>, InvalidValue> {
238 self.0.get_str(Tag(1))
239 }
240
241 #[doc(alias = "AcctIDSource")]
243 pub fn acct_id_source(&self) -> Result<Option<AcctIDSource>, InvalidValue> {
244 Ok(self.0.get_int(Tag(660))?.map(AcctIDSource::from_value))
245 }
246
247 #[doc(alias = "AccountType")]
249 pub fn account_type(&self) -> Result<Option<AccountType>, InvalidValue> {
250 Ok(self.0.get_int(Tag(581))?.map(AccountType::from_value))
251 }
252
253 #[doc(alias = "DayBookingInst")]
255 pub fn day_booking_inst(&self) -> Result<Option<DayBookingInst<'_>>, InvalidValue> {
256 Ok(self.0.get_str(Tag(589))?.map(DayBookingInst::from_value))
257 }
258
259 #[doc(alias = "BookingUnit")]
261 pub fn booking_unit(&self) -> Result<Option<BookingUnit<'_>>, InvalidValue> {
262 Ok(self.0.get_str(Tag(590))?.map(BookingUnit::from_value))
263 }
264
265 #[doc(alias = "PreallocMethod")]
267 pub fn prealloc_method(&self) -> Result<Option<PreallocMethod<'_>>, InvalidValue> {
268 Ok(self.0.get_str(Tag(591))?.map(PreallocMethod::from_value))
269 }
270
271 #[doc(alias = "SettlType")]
273 pub fn settl_type(&self) -> Result<Option<SettlType<'_>>, InvalidValue> {
274 Ok(self.0.get_str(Tag(63))?.map(SettlType::from_value))
275 }
276
277 #[doc(alias = "SettlDate")]
279 pub fn settl_date(&self) -> Result<Option<Date>, InvalidValue> {
280 self.0.get_date(Tag(64))
281 }
282
283 #[doc(alias = "CashMargin")]
285 pub fn cash_margin(&self) -> Result<Option<CashMargin<'_>>, InvalidValue> {
286 Ok(self.0.get_str(Tag(544))?.map(CashMargin::from_value))
287 }
288
289 #[doc(alias = "ClearingFeeIndicator")]
291 pub fn clearing_fee_indicator(&self) -> Result<Option<ClearingFeeIndicator<'_>>, InvalidValue> {
292 Ok(self.0.get_str(Tag(635))?.map(ClearingFeeIndicator::from_value))
293 }
294
295 pub fn instrument(&self) -> Instrument<'_> {
297 Instrument(self.0.scope(), Self::known_tags().get())
298 }
299
300 pub fn financing_details(&self) -> FinancingDetails<'_> {
302 FinancingDetails(self.0.scope())
303 }
304
305 #[doc(alias = "NoUnderlyings")]
307 pub fn underlyings(&self) -> Result<Instances<'_, UndInstrmtGrp<'_>>, InvalidValue> {
308 self.0.get_group(&UndInstrmtGrp::TABLE, &Self::known_tags().get()).map(Instances::from)
309 }
310
311 #[doc(alias = "Side")]
313 pub fn side(&self) -> Result<Option<Side<'_>>, InvalidValue> {
314 Ok(self.0.get_str(Tag(54))?.map(Side::from_value))
315 }
316
317 #[doc(alias = "NoStipulations")]
319 pub fn stipulations(&self) -> Result<Instances<'_, Stipulations<'_>>, InvalidValue> {
320 self.0.get_group(&Stipulations::TABLE, &Self::known_tags().get()).map(Instances::from)
321 }
322
323 #[doc(alias = "QtyType")]
325 pub fn qty_type(&self) -> Result<Option<QtyType>, InvalidValue> {
326 Ok(self.0.get_int(Tag(854))?.map(QtyType::from_value))
327 }
328
329 pub fn order_qty_data(&self) -> OrderQtyData<'_> {
331 OrderQtyData(self.0.scope())
332 }
333
334 #[doc(alias = "OrdType")]
336 pub fn ord_type(&self) -> Result<Option<OrdType<'_>>, InvalidValue> {
337 Ok(self.0.get_str(Tag(40))?.map(OrdType::from_value))
338 }
339
340 #[doc(alias = "PriceType")]
342 pub fn price_type(&self) -> Result<Option<PriceType>, InvalidValue> {
343 Ok(self.0.get_int(Tag(423))?.map(PriceType::from_value))
344 }
345
346 #[doc(alias = "Price")]
348 pub fn price(&self) -> Result<Option<Decimal>, InvalidValue> {
349 self.0.get_decimal(Tag(44))
350 }
351
352 #[doc(alias = "StopPx")]
354 pub fn stop_px(&self) -> Result<Option<Decimal>, InvalidValue> {
355 self.0.get_decimal(Tag(99))
356 }
357
358 pub fn peg_instructions(&self) -> PegInstructions<'_> {
360 PegInstructions(self.0.scope())
361 }
362
363 pub fn discretion_instructions(&self) -> DiscretionInstructions<'_> {
365 DiscretionInstructions(self.0.scope())
366 }
367
368 #[doc(alias = "PeggedPrice")]
370 pub fn pegged_price(&self) -> Result<Option<Decimal>, InvalidValue> {
371 self.0.get_decimal(Tag(839))
372 }
373
374 #[doc(alias = "DiscretionPrice")]
376 pub fn discretion_price(&self) -> Result<Option<Decimal>, InvalidValue> {
377 self.0.get_decimal(Tag(845))
378 }
379
380 #[doc(alias = "TargetStrategy")]
382 pub fn target_strategy(&self) -> Result<Option<TargetStrategy>, InvalidValue> {
383 Ok(self.0.get_int(Tag(847))?.map(TargetStrategy::from_value))
384 }
385
386 #[doc(alias = "TargetStrategyParameters")]
388 pub fn target_strategy_parameters(&self) -> Result<Option<&str>, InvalidValue> {
389 self.0.get_str(Tag(848))
390 }
391
392 #[doc(alias = "ParticipationRate")]
394 pub fn participation_rate(&self) -> Result<Option<Decimal>, InvalidValue> {
395 self.0.get_decimal(Tag(849))
396 }
397
398 #[doc(alias = "TargetStrategyPerformance")]
400 pub fn target_strategy_performance(&self) -> Result<Option<Decimal>, InvalidValue> {
401 self.0.get_decimal(Tag(850))
402 }
403
404 #[doc(alias = "Currency")]
406 pub fn currency(&self) -> Result<Option<&str>, InvalidValue> {
407 self.0.get_str(Tag(15))
408 }
409
410 #[doc(alias = "ComplianceID")]
412 pub fn compliance_id(&self) -> Result<Option<&str>, InvalidValue> {
413 self.0.get_str(Tag(376))
414 }
415
416 #[doc(alias = "SolicitedFlag")]
418 pub fn solicited_flag(&self) -> Result<Option<bool>, InvalidValue> {
419 self.0.get_bool(Tag(377))
420 }
421
422 #[doc(alias = "TimeInForce")]
424 pub fn time_in_force(&self) -> Result<Option<TimeInForce<'_>>, InvalidValue> {
425 Ok(self.0.get_str(Tag(59))?.map(TimeInForce::from_value))
426 }
427
428 #[doc(alias = "EffectiveTime")]
430 pub fn effective_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
431 self.0.get_utc_timestamp(Tag(168))
432 }
433
434 #[doc(alias = "ExpireDate")]
436 pub fn expire_date(&self) -> Result<Option<Date>, InvalidValue> {
437 self.0.get_date(Tag(432))
438 }
439
440 #[doc(alias = "ExpireTime")]
442 pub fn expire_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
443 self.0.get_utc_timestamp(Tag(126))
444 }
445
446 #[doc(alias = "ExecInst")]
448 pub fn exec_inst(&self) -> Result<Option<MultipleValues<'_, ExecInst<'_>>>, InvalidValue> {
449 self.0.get_multiple_values(Tag(18))
450 }
451
452 #[doc(alias = "OrderCapacity")]
454 pub fn order_capacity(&self) -> Result<Option<OrderCapacity<'_>>, InvalidValue> {
455 Ok(self.0.get_str(Tag(528))?.map(OrderCapacity::from_value))
456 }
457
458 #[doc(alias = "OrderRestrictions")]
460 pub fn order_restrictions(&self) -> Result<Option<MultipleValues<'_, OrderRestrictions<'_>>>, InvalidValue> {
461 self.0.get_multiple_values(Tag(529))
462 }
463
464 #[doc(alias = "CustOrderCapacity")]
466 pub fn cust_order_capacity(&self) -> Result<Option<CustOrderCapacity>, InvalidValue> {
467 Ok(self.0.get_int(Tag(582))?.map(CustOrderCapacity::from_value))
468 }
469
470 #[doc(alias = "LastQty")]
472 pub fn last_qty(&self) -> Result<Option<Decimal>, InvalidValue> {
473 self.0.get_decimal(Tag(32))
474 }
475
476 #[doc(alias = "UnderlyingLastQty")]
478 pub fn underlying_last_qty(&self) -> Result<Option<Decimal>, InvalidValue> {
479 self.0.get_decimal(Tag(652))
480 }
481
482 #[doc(alias = "LastPx")]
484 pub fn last_px(&self) -> Result<Option<Decimal>, InvalidValue> {
485 self.0.get_decimal(Tag(31))
486 }
487
488 #[doc(alias = "UnderlyingLastPx")]
490 pub fn underlying_last_px(&self) -> Result<Option<Decimal>, InvalidValue> {
491 self.0.get_decimal(Tag(651))
492 }
493
494 #[doc(alias = "LastParPx")]
496 pub fn last_par_px(&self) -> Result<Option<Decimal>, InvalidValue> {
497 self.0.get_decimal(Tag(669))
498 }
499
500 #[doc(alias = "LastSpotRate")]
502 pub fn last_spot_rate(&self) -> Result<Option<Decimal>, InvalidValue> {
503 self.0.get_decimal(Tag(194))
504 }
505
506 #[doc(alias = "LastForwardPoints")]
508 pub fn last_forward_points(&self) -> Result<Option<Decimal>, InvalidValue> {
509 self.0.get_decimal(Tag(195))
510 }
511
512 #[doc(alias = "LastMkt")]
514 pub fn last_mkt(&self) -> Result<Option<&str>, InvalidValue> {
515 self.0.get_str(Tag(30))
516 }
517
518 #[doc(alias = "TradingSessionID")]
520 pub fn trading_session_id(&self) -> Result<Option<&str>, InvalidValue> {
521 self.0.get_str(Tag(336))
522 }
523
524 #[doc(alias = "TradingSessionSubID")]
526 pub fn trading_session_sub_id(&self) -> Result<Option<&str>, InvalidValue> {
527 self.0.get_str(Tag(625))
528 }
529
530 #[doc(alias = "TimeBracket")]
532 pub fn time_bracket(&self) -> Result<Option<&str>, InvalidValue> {
533 self.0.get_str(Tag(943))
534 }
535
536 #[doc(alias = "LastCapacity")]
538 pub fn last_capacity(&self) -> Result<Option<LastCapacity<'_>>, InvalidValue> {
539 Ok(self.0.get_str(Tag(29))?.map(LastCapacity::from_value))
540 }
541
542 #[doc(alias = "LeavesQty")]
544 pub fn leaves_qty(&self) -> Result<Option<Decimal>, InvalidValue> {
545 self.0.get_decimal(Tag(151))
546 }
547
548 #[doc(alias = "CumQty")]
550 pub fn cum_qty(&self) -> Result<Option<Decimal>, InvalidValue> {
551 self.0.get_decimal(Tag(14))
552 }
553
554 #[doc(alias = "AvgPx")]
556 pub fn avg_px(&self) -> Result<Option<Decimal>, InvalidValue> {
557 self.0.get_decimal(Tag(6))
558 }
559
560 #[doc(alias = "DayOrderQty")]
562 pub fn day_order_qty(&self) -> Result<Option<Decimal>, InvalidValue> {
563 self.0.get_decimal(Tag(424))
564 }
565
566 #[doc(alias = "DayCumQty")]
568 pub fn day_cum_qty(&self) -> Result<Option<Decimal>, InvalidValue> {
569 self.0.get_decimal(Tag(425))
570 }
571
572 #[doc(alias = "DayAvgPx")]
574 pub fn day_avg_px(&self) -> Result<Option<Decimal>, InvalidValue> {
575 self.0.get_decimal(Tag(426))
576 }
577
578 #[doc(alias = "GTBookingInst")]
580 pub fn gt_booking_inst(&self) -> Result<Option<GTBookingInst>, InvalidValue> {
581 Ok(self.0.get_int(Tag(427))?.map(GTBookingInst::from_value))
582 }
583
584 #[doc(alias = "TradeDate")]
586 pub fn trade_date(&self) -> Result<Option<Date>, InvalidValue> {
587 self.0.get_date(Tag(75))
588 }
589
590 #[doc(alias = "TransactTime")]
592 pub fn transact_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
593 self.0.get_utc_timestamp(Tag(60))
594 }
595
596 #[doc(alias = "ReportToExch")]
598 pub fn report_to_exch(&self) -> Result<Option<bool>, InvalidValue> {
599 self.0.get_bool(Tag(113))
600 }
601
602 pub fn commission_data(&self) -> CommissionData<'_> {
604 CommissionData(self.0.scope())
605 }
606
607 pub fn spread_or_benchmark_curve_data(&self) -> SpreadOrBenchmarkCurveData<'_> {
609 SpreadOrBenchmarkCurveData(self.0.scope())
610 }
611
612 pub fn yield_data(&self) -> YieldData<'_> {
614 YieldData(self.0.scope())
615 }
616
617 #[doc(alias = "GrossTradeAmt")]
619 pub fn gross_trade_amt(&self) -> Result<Option<Decimal>, InvalidValue> {
620 self.0.get_decimal(Tag(381))
621 }
622
623 #[doc(alias = "NumDaysInterest")]
625 pub fn num_days_interest(&self) -> Result<Option<i64>, InvalidValue> {
626 self.0.get_int(Tag(157))
627 }
628
629 #[doc(alias = "ExDate")]
631 pub fn ex_date(&self) -> Result<Option<Date>, InvalidValue> {
632 self.0.get_date(Tag(230))
633 }
634
635 #[doc(alias = "AccruedInterestRate")]
637 pub fn accrued_interest_rate(&self) -> Result<Option<Decimal>, InvalidValue> {
638 self.0.get_decimal(Tag(158))
639 }
640
641 #[doc(alias = "AccruedInterestAmt")]
643 pub fn accrued_interest_amt(&self) -> Result<Option<Decimal>, InvalidValue> {
644 self.0.get_decimal(Tag(159))
645 }
646
647 #[doc(alias = "InterestAtMaturity")]
649 pub fn interest_at_maturity(&self) -> Result<Option<Decimal>, InvalidValue> {
650 self.0.get_decimal(Tag(738))
651 }
652
653 #[doc(alias = "EndAccruedInterestAmt")]
655 pub fn end_accrued_interest_amt(&self) -> Result<Option<Decimal>, InvalidValue> {
656 self.0.get_decimal(Tag(920))
657 }
658
659 #[doc(alias = "StartCash")]
661 pub fn start_cash(&self) -> Result<Option<Decimal>, InvalidValue> {
662 self.0.get_decimal(Tag(921))
663 }
664
665 #[doc(alias = "EndCash")]
667 pub fn end_cash(&self) -> Result<Option<Decimal>, InvalidValue> {
668 self.0.get_decimal(Tag(922))
669 }
670
671 #[doc(alias = "TradedFlatSwitch")]
673 pub fn traded_flat_switch(&self) -> Result<Option<bool>, InvalidValue> {
674 self.0.get_bool(Tag(258))
675 }
676
677 #[doc(alias = "BasisFeatureDate")]
679 pub fn basis_feature_date(&self) -> Result<Option<Date>, InvalidValue> {
680 self.0.get_date(Tag(259))
681 }
682
683 #[doc(alias = "BasisFeaturePrice")]
685 pub fn basis_feature_price(&self) -> Result<Option<Decimal>, InvalidValue> {
686 self.0.get_decimal(Tag(260))
687 }
688
689 #[doc(alias = "Concession")]
691 pub fn concession(&self) -> Result<Option<Decimal>, InvalidValue> {
692 self.0.get_decimal(Tag(238))
693 }
694
695 #[doc(alias = "TotalTakedown")]
697 pub fn total_takedown(&self) -> Result<Option<Decimal>, InvalidValue> {
698 self.0.get_decimal(Tag(237))
699 }
700
701 #[doc(alias = "NetMoney")]
703 pub fn net_money(&self) -> Result<Option<Decimal>, InvalidValue> {
704 self.0.get_decimal(Tag(118))
705 }
706
707 #[doc(alias = "SettlCurrAmt")]
709 pub fn settl_curr_amt(&self) -> Result<Option<Decimal>, InvalidValue> {
710 self.0.get_decimal(Tag(119))
711 }
712
713 #[doc(alias = "SettlCurrency")]
715 pub fn settl_currency(&self) -> Result<Option<&str>, InvalidValue> {
716 self.0.get_str(Tag(120))
717 }
718
719 #[doc(alias = "SettlCurrFxRate")]
721 pub fn settl_curr_fx_rate(&self) -> Result<Option<Decimal>, InvalidValue> {
722 self.0.get_decimal(Tag(155))
723 }
724
725 #[doc(alias = "SettlCurrFxRateCalc")]
727 pub fn settl_curr_fx_rate_calc(&self) -> Result<Option<SettlCurrFxRateCalc<'_>>, InvalidValue> {
728 Ok(self.0.get_str(Tag(156))?.map(SettlCurrFxRateCalc::from_value))
729 }
730
731 #[doc(alias = "HandlInst")]
733 pub fn handl_inst(&self) -> Result<Option<HandlInst<'_>>, InvalidValue> {
734 Ok(self.0.get_str(Tag(21))?.map(HandlInst::from_value))
735 }
736
737 #[doc(alias = "MinQty")]
739 pub fn min_qty(&self) -> Result<Option<Decimal>, InvalidValue> {
740 self.0.get_decimal(Tag(110))
741 }
742
743 #[doc(alias = "MaxFloor")]
745 pub fn max_floor(&self) -> Result<Option<Decimal>, InvalidValue> {
746 self.0.get_decimal(Tag(111))
747 }
748
749 #[doc(alias = "PositionEffect")]
751 pub fn position_effect(&self) -> Result<Option<PositionEffect<'_>>, InvalidValue> {
752 Ok(self.0.get_str(Tag(77))?.map(PositionEffect::from_value))
753 }
754
755 #[doc(alias = "MaxShow")]
757 pub fn max_show(&self) -> Result<Option<Decimal>, InvalidValue> {
758 self.0.get_decimal(Tag(210))
759 }
760
761 #[doc(alias = "BookingType")]
763 pub fn booking_type(&self) -> Result<Option<BookingType>, InvalidValue> {
764 Ok(self.0.get_int(Tag(775))?.map(BookingType::from_value))
765 }
766
767 #[doc(alias = "Text")]
769 pub fn text(&self) -> Result<Option<&str>, InvalidValue> {
770 self.0.get_str(Tag(58))
771 }
772
773 #[doc(alias = "EncodedTextLen")]
775 pub fn encoded_text_len(&self) -> Result<Option<i64>, InvalidValue> {
776 self.0.get_int(Tag(354))
777 }
778
779 #[doc(alias = "EncodedText")]
781 pub fn encoded_text(&self) -> Option<&[u8]> {
782 self.0.get(Tag(355))
783 }
784
785 #[doc(alias = "SettlDate2")]
787 pub fn settl_date2(&self) -> Result<Option<Date>, InvalidValue> {
788 self.0.get_date(Tag(193))
789 }
790
791 #[doc(alias = "OrderQty2")]
793 pub fn order_qty2(&self) -> Result<Option<Decimal>, InvalidValue> {
794 self.0.get_decimal(Tag(192))
795 }
796
797 #[doc(alias = "LastForwardPoints2")]
799 pub fn last_forward_points2(&self) -> Result<Option<Decimal>, InvalidValue> {
800 self.0.get_decimal(Tag(641))
801 }
802
803 #[doc(alias = "MultiLegReportingType")]
805 pub fn multi_leg_reporting_type(&self) -> Result<Option<MultiLegReportingType<'_>>, InvalidValue> {
806 Ok(self.0.get_str(Tag(442))?.map(MultiLegReportingType::from_value))
807 }
808
809 #[doc(alias = "CancellationRights")]
811 pub fn cancellation_rights(&self) -> Result<Option<CancellationRights<'_>>, InvalidValue> {
812 Ok(self.0.get_str(Tag(480))?.map(CancellationRights::from_value))
813 }
814
815 #[doc(alias = "MoneyLaunderingStatus")]
817 pub fn money_laundering_status(&self) -> Result<Option<MoneyLaunderingStatus<'_>>, InvalidValue> {
818 Ok(self.0.get_str(Tag(481))?.map(MoneyLaunderingStatus::from_value))
819 }
820
821 #[doc(alias = "RegistID")]
823 pub fn regist_id(&self) -> Result<Option<&str>, InvalidValue> {
824 self.0.get_str(Tag(513))
825 }
826
827 #[doc(alias = "Designation")]
829 pub fn designation(&self) -> Result<Option<&str>, InvalidValue> {
830 self.0.get_str(Tag(494))
831 }
832
833 #[doc(alias = "TransBkdTime")]
835 pub fn trans_bkd_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
836 self.0.get_utc_timestamp(Tag(483))
837 }
838
839 #[doc(alias = "ExecValuationPoint")]
841 pub fn exec_valuation_point(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
842 self.0.get_utc_timestamp(Tag(515))
843 }
844
845 #[doc(alias = "ExecPriceType")]
847 pub fn exec_price_type(&self) -> Result<Option<ExecPriceType<'_>>, InvalidValue> {
848 Ok(self.0.get_str(Tag(484))?.map(ExecPriceType::from_value))
849 }
850
851 #[doc(alias = "ExecPriceAdjustment")]
853 pub fn exec_price_adjustment(&self) -> Result<Option<Decimal>, InvalidValue> {
854 self.0.get_decimal(Tag(485))
855 }
856
857 #[doc(alias = "PriorityIndicator")]
859 pub fn priority_indicator(&self) -> Result<Option<PriorityIndicator>, InvalidValue> {
860 Ok(self.0.get_int(Tag(638))?.map(PriorityIndicator::from_value))
861 }
862
863 #[doc(alias = "PriceImprovement")]
865 pub fn price_improvement(&self) -> Result<Option<Decimal>, InvalidValue> {
866 self.0.get_decimal(Tag(639))
867 }
868
869 #[doc(alias = "LastLiquidityInd")]
871 pub fn last_liquidity_ind(&self) -> Result<Option<LastLiquidityInd>, InvalidValue> {
872 Ok(self.0.get_int(Tag(851))?.map(LastLiquidityInd::from_value))
873 }
874
875 #[doc(alias = "NoContAmts")]
877 pub fn cont_amts(&self) -> Result<Instances<'_, ContAmtGrp<'_>>, InvalidValue> {
878 self.0.get_group(&ContAmtGrp::TABLE, &Self::known_tags().get()).map(Instances::from)
879 }
880
881 #[doc(alias = "NoLegs")]
883 pub fn legs(&self) -> Result<Instances<'_, InstrmtLegExecGrp<'_>>, InvalidValue> {
884 self.0.get_group(&InstrmtLegExecGrp::TABLE, &Self::known_tags().get()).map(Instances::from)
885 }
886
887 #[doc(alias = "CopyMsgIndicator")]
889 pub fn copy_msg_indicator(&self) -> Result<Option<bool>, InvalidValue> {
890 self.0.get_bool(Tag(797))
891 }
892
893 #[doc(alias = "NoMiscFees")]
895 pub fn misc_fees(&self) -> Result<Instances<'_, MiscFeesGrp<'_>>, InvalidValue> {
896 self.0.get_group(&MiscFeesGrp::TABLE, &Self::known_tags().get()).map(Instances::from)
897 }
898}
899
900impl std::fmt::Debug for ExecutionReport {
901 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
902 write!(f, "ExecutionReport({})", self.0)
903 }
904}
905
906impl std::fmt::Display for ExecutionReport {
907 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
908 std::fmt::Display::fmt(&self.0, f)
909 }
910}