Skip to main content

refix_fix44/generated/messages/
execution_report.rs

1// @generated by refix codegen from FIX44.xml. Do not edit.
2#![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
23/// The `ExecutionReport` (35=8) message.
24pub 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    /// The `OrderID` (37) field.
80    #[doc(alias = "OrderID")]
81    pub fn order_id(&self) -> Result<Option<&str>, InvalidValue> {
82        self.0.get_str(Tag(37))
83    }
84
85    /// The `SecondaryOrderID` (198) field.
86    #[doc(alias = "SecondaryOrderID")]
87    pub fn secondary_order_id(&self) -> Result<Option<&str>, InvalidValue> {
88        self.0.get_str(Tag(198))
89    }
90
91    /// The `SecondaryClOrdID` (526) field.
92    #[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    /// The `SecondaryExecID` (527) field.
98    #[doc(alias = "SecondaryExecID")]
99    pub fn secondary_exec_id(&self) -> Result<Option<&str>, InvalidValue> {
100        self.0.get_str(Tag(527))
101    }
102
103    /// The `ClOrdID` (11) field.
104    #[doc(alias = "ClOrdID")]
105    pub fn cl_ord_id(&self) -> Result<Option<&str>, InvalidValue> {
106        self.0.get_str(Tag(11))
107    }
108
109    /// The `OrigClOrdID` (41) field.
110    #[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    /// The `ClOrdLinkID` (583) field.
116    #[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    /// The `QuoteRespID` (693) field.
122    #[doc(alias = "QuoteRespID")]
123    pub fn quote_resp_id(&self) -> Result<Option<&str>, InvalidValue> {
124        self.0.get_str(Tag(693))
125    }
126
127    /// The `OrdStatusReqID` (790) field.
128    #[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    /// The `MassStatusReqID` (584) field.
134    #[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    /// The `TotNumReports` (911) field.
140    #[doc(alias = "TotNumReports")]
141    pub fn tot_num_reports(&self) -> Result<Option<i64>, InvalidValue> {
142        self.0.get_int(Tag(911))
143    }
144
145    /// The `LastRptRequested` (912) field.
146    #[doc(alias = "LastRptRequested")]
147    pub fn last_rpt_requested(&self) -> Result<Option<bool>, InvalidValue> {
148        self.0.get_bool(Tag(912))
149    }
150
151    /// The instances of the `NoPartyIDs` (453) group.
152    #[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    /// The `TradeOriginationDate` (229) field.
158    #[doc(alias = "TradeOriginationDate")]
159    pub fn trade_origination_date(&self) -> Result<Option<Date>, InvalidValue> {
160        self.0.get_date(Tag(229))
161    }
162
163    /// The instances of the `NoContraBrokers` (382) group.
164    #[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    /// The `ListID` (66) field.
170    #[doc(alias = "ListID")]
171    pub fn list_id(&self) -> Result<Option<&str>, InvalidValue> {
172        self.0.get_str(Tag(66))
173    }
174
175    /// The `CrossID` (548) field.
176    #[doc(alias = "CrossID")]
177    pub fn cross_id(&self) -> Result<Option<&str>, InvalidValue> {
178        self.0.get_str(Tag(548))
179    }
180
181    /// The `OrigCrossID` (551) field.
182    #[doc(alias = "OrigCrossID")]
183    pub fn orig_cross_id(&self) -> Result<Option<&str>, InvalidValue> {
184        self.0.get_str(Tag(551))
185    }
186
187    /// The `CrossType` (549) field.
188    #[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    /// The `ExecID` (17) field.
194    #[doc(alias = "ExecID")]
195    pub fn exec_id(&self) -> Result<Option<&str>, InvalidValue> {
196        self.0.get_str(Tag(17))
197    }
198
199    /// The `ExecRefID` (19) field.
200    #[doc(alias = "ExecRefID")]
201    pub fn exec_ref_id(&self) -> Result<Option<&str>, InvalidValue> {
202        self.0.get_str(Tag(19))
203    }
204
205    /// The `ExecType` (150) field.
206    #[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    /// The `OrdStatus` (39) field.
212    #[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    /// The `WorkingIndicator` (636) field.
218    #[doc(alias = "WorkingIndicator")]
219    pub fn working_indicator(&self) -> Result<Option<bool>, InvalidValue> {
220        self.0.get_bool(Tag(636))
221    }
222
223    /// The `OrdRejReason` (103) field.
224    #[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    /// The `ExecRestatementReason` (378) field.
230    #[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    /// The `Account` (1) field.
236    #[doc(alias = "Account")]
237    pub fn account(&self) -> Result<Option<&str>, InvalidValue> {
238        self.0.get_str(Tag(1))
239    }
240
241    /// The `AcctIDSource` (660) field.
242    #[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    /// The `AccountType` (581) field.
248    #[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    /// The `DayBookingInst` (589) field.
254    #[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    /// The `BookingUnit` (590) field.
260    #[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    /// The `PreallocMethod` (591) field.
266    #[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    /// The `SettlType` (63) field.
272    #[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    /// The `SettlDate` (64) field.
278    #[doc(alias = "SettlDate")]
279    pub fn settl_date(&self) -> Result<Option<Date>, InvalidValue> {
280        self.0.get_date(Tag(64))
281    }
282
283    /// The `CashMargin` (544) field.
284    #[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    /// The `ClearingFeeIndicator` (635) field.
290    #[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    /// The `Instrument` component.
296    pub fn instrument(&self) -> Instrument<'_> {
297        Instrument(self.0.scope(), Self::known_tags().get())
298    }
299
300    /// The `FinancingDetails` component.
301    pub fn financing_details(&self) -> FinancingDetails<'_> {
302        FinancingDetails(self.0.scope())
303    }
304
305    /// The instances of the `NoUnderlyings` (711) group.
306    #[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    /// The `Side` (54) field.
312    #[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    /// The instances of the `NoStipulations` (232) group.
318    #[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    /// The `QtyType` (854) field.
324    #[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    /// The `OrderQtyData` component.
330    pub fn order_qty_data(&self) -> OrderQtyData<'_> {
331        OrderQtyData(self.0.scope())
332    }
333
334    /// The `OrdType` (40) field.
335    #[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    /// The `PriceType` (423) field.
341    #[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    /// The `Price` (44) field.
347    #[doc(alias = "Price")]
348    pub fn price(&self) -> Result<Option<Decimal>, InvalidValue> {
349        self.0.get_decimal(Tag(44))
350    }
351
352    /// The `StopPx` (99) field.
353    #[doc(alias = "StopPx")]
354    pub fn stop_px(&self) -> Result<Option<Decimal>, InvalidValue> {
355        self.0.get_decimal(Tag(99))
356    }
357
358    /// The `PegInstructions` component.
359    pub fn peg_instructions(&self) -> PegInstructions<'_> {
360        PegInstructions(self.0.scope())
361    }
362
363    /// The `DiscretionInstructions` component.
364    pub fn discretion_instructions(&self) -> DiscretionInstructions<'_> {
365        DiscretionInstructions(self.0.scope())
366    }
367
368    /// The `PeggedPrice` (839) field.
369    #[doc(alias = "PeggedPrice")]
370    pub fn pegged_price(&self) -> Result<Option<Decimal>, InvalidValue> {
371        self.0.get_decimal(Tag(839))
372    }
373
374    /// The `DiscretionPrice` (845) field.
375    #[doc(alias = "DiscretionPrice")]
376    pub fn discretion_price(&self) -> Result<Option<Decimal>, InvalidValue> {
377        self.0.get_decimal(Tag(845))
378    }
379
380    /// The `TargetStrategy` (847) field.
381    #[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    /// The `TargetStrategyParameters` (848) field.
387    #[doc(alias = "TargetStrategyParameters")]
388    pub fn target_strategy_parameters(&self) -> Result<Option<&str>, InvalidValue> {
389        self.0.get_str(Tag(848))
390    }
391
392    /// The `ParticipationRate` (849) field.
393    #[doc(alias = "ParticipationRate")]
394    pub fn participation_rate(&self) -> Result<Option<Decimal>, InvalidValue> {
395        self.0.get_decimal(Tag(849))
396    }
397
398    /// The `TargetStrategyPerformance` (850) field.
399    #[doc(alias = "TargetStrategyPerformance")]
400    pub fn target_strategy_performance(&self) -> Result<Option<Decimal>, InvalidValue> {
401        self.0.get_decimal(Tag(850))
402    }
403
404    /// The `Currency` (15) field.
405    #[doc(alias = "Currency")]
406    pub fn currency(&self) -> Result<Option<&str>, InvalidValue> {
407        self.0.get_str(Tag(15))
408    }
409
410    /// The `ComplianceID` (376) field.
411    #[doc(alias = "ComplianceID")]
412    pub fn compliance_id(&self) -> Result<Option<&str>, InvalidValue> {
413        self.0.get_str(Tag(376))
414    }
415
416    /// The `SolicitedFlag` (377) field.
417    #[doc(alias = "SolicitedFlag")]
418    pub fn solicited_flag(&self) -> Result<Option<bool>, InvalidValue> {
419        self.0.get_bool(Tag(377))
420    }
421
422    /// The `TimeInForce` (59) field.
423    #[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    /// The `EffectiveTime` (168) field.
429    #[doc(alias = "EffectiveTime")]
430    pub fn effective_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
431        self.0.get_utc_timestamp(Tag(168))
432    }
433
434    /// The `ExpireDate` (432) field.
435    #[doc(alias = "ExpireDate")]
436    pub fn expire_date(&self) -> Result<Option<Date>, InvalidValue> {
437        self.0.get_date(Tag(432))
438    }
439
440    /// The `ExpireTime` (126) field.
441    #[doc(alias = "ExpireTime")]
442    pub fn expire_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
443        self.0.get_utc_timestamp(Tag(126))
444    }
445
446    /// The `ExecInst` (18) field.
447    #[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    /// The `OrderCapacity` (528) field.
453    #[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    /// The `OrderRestrictions` (529) field.
459    #[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    /// The `CustOrderCapacity` (582) field.
465    #[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    /// The `LastQty` (32) field.
471    #[doc(alias = "LastQty")]
472    pub fn last_qty(&self) -> Result<Option<Decimal>, InvalidValue> {
473        self.0.get_decimal(Tag(32))
474    }
475
476    /// The `UnderlyingLastQty` (652) field.
477    #[doc(alias = "UnderlyingLastQty")]
478    pub fn underlying_last_qty(&self) -> Result<Option<Decimal>, InvalidValue> {
479        self.0.get_decimal(Tag(652))
480    }
481
482    /// The `LastPx` (31) field.
483    #[doc(alias = "LastPx")]
484    pub fn last_px(&self) -> Result<Option<Decimal>, InvalidValue> {
485        self.0.get_decimal(Tag(31))
486    }
487
488    /// The `UnderlyingLastPx` (651) field.
489    #[doc(alias = "UnderlyingLastPx")]
490    pub fn underlying_last_px(&self) -> Result<Option<Decimal>, InvalidValue> {
491        self.0.get_decimal(Tag(651))
492    }
493
494    /// The `LastParPx` (669) field.
495    #[doc(alias = "LastParPx")]
496    pub fn last_par_px(&self) -> Result<Option<Decimal>, InvalidValue> {
497        self.0.get_decimal(Tag(669))
498    }
499
500    /// The `LastSpotRate` (194) field.
501    #[doc(alias = "LastSpotRate")]
502    pub fn last_spot_rate(&self) -> Result<Option<Decimal>, InvalidValue> {
503        self.0.get_decimal(Tag(194))
504    }
505
506    /// The `LastForwardPoints` (195) field.
507    #[doc(alias = "LastForwardPoints")]
508    pub fn last_forward_points(&self) -> Result<Option<Decimal>, InvalidValue> {
509        self.0.get_decimal(Tag(195))
510    }
511
512    /// The `LastMkt` (30) field.
513    #[doc(alias = "LastMkt")]
514    pub fn last_mkt(&self) -> Result<Option<&str>, InvalidValue> {
515        self.0.get_str(Tag(30))
516    }
517
518    /// The `TradingSessionID` (336) field.
519    #[doc(alias = "TradingSessionID")]
520    pub fn trading_session_id(&self) -> Result<Option<&str>, InvalidValue> {
521        self.0.get_str(Tag(336))
522    }
523
524    /// The `TradingSessionSubID` (625) field.
525    #[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    /// The `TimeBracket` (943) field.
531    #[doc(alias = "TimeBracket")]
532    pub fn time_bracket(&self) -> Result<Option<&str>, InvalidValue> {
533        self.0.get_str(Tag(943))
534    }
535
536    /// The `LastCapacity` (29) field.
537    #[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    /// The `LeavesQty` (151) field.
543    #[doc(alias = "LeavesQty")]
544    pub fn leaves_qty(&self) -> Result<Option<Decimal>, InvalidValue> {
545        self.0.get_decimal(Tag(151))
546    }
547
548    /// The `CumQty` (14) field.
549    #[doc(alias = "CumQty")]
550    pub fn cum_qty(&self) -> Result<Option<Decimal>, InvalidValue> {
551        self.0.get_decimal(Tag(14))
552    }
553
554    /// The `AvgPx` (6) field.
555    #[doc(alias = "AvgPx")]
556    pub fn avg_px(&self) -> Result<Option<Decimal>, InvalidValue> {
557        self.0.get_decimal(Tag(6))
558    }
559
560    /// The `DayOrderQty` (424) field.
561    #[doc(alias = "DayOrderQty")]
562    pub fn day_order_qty(&self) -> Result<Option<Decimal>, InvalidValue> {
563        self.0.get_decimal(Tag(424))
564    }
565
566    /// The `DayCumQty` (425) field.
567    #[doc(alias = "DayCumQty")]
568    pub fn day_cum_qty(&self) -> Result<Option<Decimal>, InvalidValue> {
569        self.0.get_decimal(Tag(425))
570    }
571
572    /// The `DayAvgPx` (426) field.
573    #[doc(alias = "DayAvgPx")]
574    pub fn day_avg_px(&self) -> Result<Option<Decimal>, InvalidValue> {
575        self.0.get_decimal(Tag(426))
576    }
577
578    /// The `GTBookingInst` (427) field.
579    #[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    /// The `TradeDate` (75) field.
585    #[doc(alias = "TradeDate")]
586    pub fn trade_date(&self) -> Result<Option<Date>, InvalidValue> {
587        self.0.get_date(Tag(75))
588    }
589
590    /// The `TransactTime` (60) field.
591    #[doc(alias = "TransactTime")]
592    pub fn transact_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
593        self.0.get_utc_timestamp(Tag(60))
594    }
595
596    /// The `ReportToExch` (113) field.
597    #[doc(alias = "ReportToExch")]
598    pub fn report_to_exch(&self) -> Result<Option<bool>, InvalidValue> {
599        self.0.get_bool(Tag(113))
600    }
601
602    /// The `CommissionData` component.
603    pub fn commission_data(&self) -> CommissionData<'_> {
604        CommissionData(self.0.scope())
605    }
606
607    /// The `SpreadOrBenchmarkCurveData` component.
608    pub fn spread_or_benchmark_curve_data(&self) -> SpreadOrBenchmarkCurveData<'_> {
609        SpreadOrBenchmarkCurveData(self.0.scope())
610    }
611
612    /// The `YieldData` component.
613    pub fn yield_data(&self) -> YieldData<'_> {
614        YieldData(self.0.scope())
615    }
616
617    /// The `GrossTradeAmt` (381) field.
618    #[doc(alias = "GrossTradeAmt")]
619    pub fn gross_trade_amt(&self) -> Result<Option<Decimal>, InvalidValue> {
620        self.0.get_decimal(Tag(381))
621    }
622
623    /// The `NumDaysInterest` (157) field.
624    #[doc(alias = "NumDaysInterest")]
625    pub fn num_days_interest(&self) -> Result<Option<i64>, InvalidValue> {
626        self.0.get_int(Tag(157))
627    }
628
629    /// The `ExDate` (230) field.
630    #[doc(alias = "ExDate")]
631    pub fn ex_date(&self) -> Result<Option<Date>, InvalidValue> {
632        self.0.get_date(Tag(230))
633    }
634
635    /// The `AccruedInterestRate` (158) field.
636    #[doc(alias = "AccruedInterestRate")]
637    pub fn accrued_interest_rate(&self) -> Result<Option<Decimal>, InvalidValue> {
638        self.0.get_decimal(Tag(158))
639    }
640
641    /// The `AccruedInterestAmt` (159) field.
642    #[doc(alias = "AccruedInterestAmt")]
643    pub fn accrued_interest_amt(&self) -> Result<Option<Decimal>, InvalidValue> {
644        self.0.get_decimal(Tag(159))
645    }
646
647    /// The `InterestAtMaturity` (738) field.
648    #[doc(alias = "InterestAtMaturity")]
649    pub fn interest_at_maturity(&self) -> Result<Option<Decimal>, InvalidValue> {
650        self.0.get_decimal(Tag(738))
651    }
652
653    /// The `EndAccruedInterestAmt` (920) field.
654    #[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    /// The `StartCash` (921) field.
660    #[doc(alias = "StartCash")]
661    pub fn start_cash(&self) -> Result<Option<Decimal>, InvalidValue> {
662        self.0.get_decimal(Tag(921))
663    }
664
665    /// The `EndCash` (922) field.
666    #[doc(alias = "EndCash")]
667    pub fn end_cash(&self) -> Result<Option<Decimal>, InvalidValue> {
668        self.0.get_decimal(Tag(922))
669    }
670
671    /// The `TradedFlatSwitch` (258) field.
672    #[doc(alias = "TradedFlatSwitch")]
673    pub fn traded_flat_switch(&self) -> Result<Option<bool>, InvalidValue> {
674        self.0.get_bool(Tag(258))
675    }
676
677    /// The `BasisFeatureDate` (259) field.
678    #[doc(alias = "BasisFeatureDate")]
679    pub fn basis_feature_date(&self) -> Result<Option<Date>, InvalidValue> {
680        self.0.get_date(Tag(259))
681    }
682
683    /// The `BasisFeaturePrice` (260) field.
684    #[doc(alias = "BasisFeaturePrice")]
685    pub fn basis_feature_price(&self) -> Result<Option<Decimal>, InvalidValue> {
686        self.0.get_decimal(Tag(260))
687    }
688
689    /// The `Concession` (238) field.
690    #[doc(alias = "Concession")]
691    pub fn concession(&self) -> Result<Option<Decimal>, InvalidValue> {
692        self.0.get_decimal(Tag(238))
693    }
694
695    /// The `TotalTakedown` (237) field.
696    #[doc(alias = "TotalTakedown")]
697    pub fn total_takedown(&self) -> Result<Option<Decimal>, InvalidValue> {
698        self.0.get_decimal(Tag(237))
699    }
700
701    /// The `NetMoney` (118) field.
702    #[doc(alias = "NetMoney")]
703    pub fn net_money(&self) -> Result<Option<Decimal>, InvalidValue> {
704        self.0.get_decimal(Tag(118))
705    }
706
707    /// The `SettlCurrAmt` (119) field.
708    #[doc(alias = "SettlCurrAmt")]
709    pub fn settl_curr_amt(&self) -> Result<Option<Decimal>, InvalidValue> {
710        self.0.get_decimal(Tag(119))
711    }
712
713    /// The `SettlCurrency` (120) field.
714    #[doc(alias = "SettlCurrency")]
715    pub fn settl_currency(&self) -> Result<Option<&str>, InvalidValue> {
716        self.0.get_str(Tag(120))
717    }
718
719    /// The `SettlCurrFxRate` (155) field.
720    #[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    /// The `SettlCurrFxRateCalc` (156) field.
726    #[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    /// The `HandlInst` (21) field.
732    #[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    /// The `MinQty` (110) field.
738    #[doc(alias = "MinQty")]
739    pub fn min_qty(&self) -> Result<Option<Decimal>, InvalidValue> {
740        self.0.get_decimal(Tag(110))
741    }
742
743    /// The `MaxFloor` (111) field.
744    #[doc(alias = "MaxFloor")]
745    pub fn max_floor(&self) -> Result<Option<Decimal>, InvalidValue> {
746        self.0.get_decimal(Tag(111))
747    }
748
749    /// The `PositionEffect` (77) field.
750    #[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    /// The `MaxShow` (210) field.
756    #[doc(alias = "MaxShow")]
757    pub fn max_show(&self) -> Result<Option<Decimal>, InvalidValue> {
758        self.0.get_decimal(Tag(210))
759    }
760
761    /// The `BookingType` (775) field.
762    #[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    /// The `Text` (58) field.
768    #[doc(alias = "Text")]
769    pub fn text(&self) -> Result<Option<&str>, InvalidValue> {
770        self.0.get_str(Tag(58))
771    }
772
773    /// The `EncodedTextLen` (354) field.
774    #[doc(alias = "EncodedTextLen")]
775    pub fn encoded_text_len(&self) -> Result<Option<i64>, InvalidValue> {
776        self.0.get_int(Tag(354))
777    }
778
779    /// The `EncodedText` (355) field.
780    #[doc(alias = "EncodedText")]
781    pub fn encoded_text(&self) -> Option<&[u8]> {
782        self.0.get(Tag(355))
783    }
784
785    /// The `SettlDate2` (193) field.
786    #[doc(alias = "SettlDate2")]
787    pub fn settl_date2(&self) -> Result<Option<Date>, InvalidValue> {
788        self.0.get_date(Tag(193))
789    }
790
791    /// The `OrderQty2` (192) field.
792    #[doc(alias = "OrderQty2")]
793    pub fn order_qty2(&self) -> Result<Option<Decimal>, InvalidValue> {
794        self.0.get_decimal(Tag(192))
795    }
796
797    /// The `LastForwardPoints2` (641) field.
798    #[doc(alias = "LastForwardPoints2")]
799    pub fn last_forward_points2(&self) -> Result<Option<Decimal>, InvalidValue> {
800        self.0.get_decimal(Tag(641))
801    }
802
803    /// The `MultiLegReportingType` (442) field.
804    #[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    /// The `CancellationRights` (480) field.
810    #[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    /// The `MoneyLaunderingStatus` (481) field.
816    #[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    /// The `RegistID` (513) field.
822    #[doc(alias = "RegistID")]
823    pub fn regist_id(&self) -> Result<Option<&str>, InvalidValue> {
824        self.0.get_str(Tag(513))
825    }
826
827    /// The `Designation` (494) field.
828    #[doc(alias = "Designation")]
829    pub fn designation(&self) -> Result<Option<&str>, InvalidValue> {
830        self.0.get_str(Tag(494))
831    }
832
833    /// The `TransBkdTime` (483) field.
834    #[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    /// The `ExecValuationPoint` (515) field.
840    #[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    /// The `ExecPriceType` (484) field.
846    #[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    /// The `ExecPriceAdjustment` (485) field.
852    #[doc(alias = "ExecPriceAdjustment")]
853    pub fn exec_price_adjustment(&self) -> Result<Option<Decimal>, InvalidValue> {
854        self.0.get_decimal(Tag(485))
855    }
856
857    /// The `PriorityIndicator` (638) field.
858    #[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    /// The `PriceImprovement` (639) field.
864    #[doc(alias = "PriceImprovement")]
865    pub fn price_improvement(&self) -> Result<Option<Decimal>, InvalidValue> {
866        self.0.get_decimal(Tag(639))
867    }
868
869    /// The `LastLiquidityInd` (851) field.
870    #[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    /// The instances of the `NoContAmts` (518) group.
876    #[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    /// The instances of the `NoLegs` (555) group.
882    #[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    /// The `CopyMsgIndicator` (797) field.
888    #[doc(alias = "CopyMsgIndicator")]
889    pub fn copy_msg_indicator(&self) -> Result<Option<bool>, InvalidValue> {
890        self.0.get_bool(Tag(797))
891    }
892
893    /// The instances of the `NoMiscFees` (136) group.
894    #[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}