Skip to main content

NewOrderSingle

Struct NewOrderSingle 

Source
pub struct NewOrderSingle(/* private fields */);
Expand description

The NewOrderSingle (35=D) message.

Implementations§

Source§

impl NewOrderSingle

Source

pub const MSG_TYPE: &[u8] = b"D"

Source

pub const KNOWN_TAGS: KnownTags<'static>

Source

pub fn from_raw(raw: RawMessage) -> Self

Source

pub fn raw(&self) -> &RawMessage

Source

pub fn header(&self) -> Header<'_>

Source

pub fn trailer(&self) -> Trailer<'_>

Source

pub fn cl_ord_id(&self) -> Result<Option<&str>, InvalidValue>

The ClOrdID (11) field.

Source

pub fn secondary_cl_ord_id(&self) -> Result<Option<&str>, InvalidValue>

The SecondaryClOrdID (526) field.

The ClOrdLinkID (583) field.

Source

pub fn party_ids(&self) -> Result<Instances<'_, Instance<'_>>, InvalidValue>

The instances of the NoPartyIDs (453) group.

Source

pub fn trade_origination_date(&self) -> Result<Option<Date>, InvalidValue>

The TradeOriginationDate (229) field.

Source

pub fn trade_date(&self) -> Result<Option<Date>, InvalidValue>

The TradeDate (75) field.

Source

pub fn account(&self) -> Result<Option<&str>, InvalidValue>

The Account (1) field.

Source

pub fn acct_id_source(&self) -> Result<Option<AcctIDSource>, InvalidValue>

The AcctIDSource (660) field.

Source

pub fn account_type(&self) -> Result<Option<AccountType>, InvalidValue>

The AccountType (581) field.

Source

pub fn day_booking_inst( &self, ) -> Result<Option<DayBookingInst<'_>>, InvalidValue>

The DayBookingInst (589) field.

Source

pub fn booking_unit(&self) -> Result<Option<BookingUnit<'_>>, InvalidValue>

The BookingUnit (590) field.

Source

pub fn prealloc_method( &self, ) -> Result<Option<PreallocMethod<'_>>, InvalidValue>

The PreallocMethod (591) field.

Source

pub fn alloc_id(&self) -> Result<Option<&str>, InvalidValue>

The AllocID (70) field.

Source

pub fn allocs(&self) -> Result<Instances<'_, Instance<'_>>, InvalidValue>

The instances of the NoAllocs (78) group.

Source

pub fn settl_type(&self) -> Result<Option<SettlType<'_>>, InvalidValue>

The SettlType (63) field.

Source

pub fn settl_date(&self) -> Result<Option<Date>, InvalidValue>

The SettlDate (64) field.

Source

pub fn cash_margin(&self) -> Result<Option<CashMargin<'_>>, InvalidValue>

The CashMargin (544) field.

Source

pub fn clearing_fee_indicator( &self, ) -> Result<Option<ClearingFeeIndicator<'_>>, InvalidValue>

The ClearingFeeIndicator (635) field.

Source

pub fn handl_inst(&self) -> Result<Option<HandlInst<'_>>, InvalidValue>

The HandlInst (21) field.

Source

pub fn exec_inst( &self, ) -> Result<Option<MultipleValues<'_, ExecInst<'_>>>, InvalidValue>

The ExecInst (18) field.

Source

pub fn min_qty(&self) -> Result<Option<Decimal>, InvalidValue>

The MinQty (110) field.

Source

pub fn max_floor(&self) -> Result<Option<Decimal>, InvalidValue>

The MaxFloor (111) field.

Source

pub fn ex_destination(&self) -> Result<Option<&str>, InvalidValue>

The ExDestination (100) field.

Source

pub fn trading_sessions( &self, ) -> Result<Instances<'_, Instance<'_>>, InvalidValue>

The instances of the NoTradingSessions (386) group.

Source

pub fn process_code(&self) -> Result<Option<ProcessCode<'_>>, InvalidValue>

The ProcessCode (81) field.

Source

pub fn symbol(&self) -> Result<Option<&str>, InvalidValue>

The Symbol (55) field.

Source

pub fn symbol_sfx(&self) -> Result<Option<&str>, InvalidValue>

The SymbolSfx (65) field.

Source

pub fn security_id(&self) -> Result<Option<&str>, InvalidValue>

The SecurityID (48) field.

Source

pub fn security_id_source( &self, ) -> Result<Option<SecurityIDSource<'_>>, InvalidValue>

The SecurityIDSource (22) field.

Source

pub fn security_alt_id( &self, ) -> Result<Instances<'_, Instance<'_>>, InvalidValue>

The instances of the NoSecurityAltID (454) group.

Source

pub fn product(&self) -> Result<Option<Product>, InvalidValue>

The Product (460) field.

Source

pub fn cfi_code(&self) -> Result<Option<&str>, InvalidValue>

The CFICode (461) field.

Source

pub fn security_type(&self) -> Result<Option<SecurityType<'_>>, InvalidValue>

The SecurityType (167) field.

Source

pub fn security_sub_type(&self) -> Result<Option<&str>, InvalidValue>

The SecuritySubType (762) field.

Source

pub fn maturity_month_year(&self) -> Result<Option<MonthYear>, InvalidValue>

The MaturityMonthYear (200) field.

Source

pub fn maturity_date(&self) -> Result<Option<Date>, InvalidValue>

The MaturityDate (541) field.

Source

pub fn put_or_call(&self) -> Result<Option<PutOrCall>, InvalidValue>

The PutOrCall (201) field.

Source

pub fn coupon_payment_date(&self) -> Result<Option<Date>, InvalidValue>

The CouponPaymentDate (224) field.

Source

pub fn issue_date(&self) -> Result<Option<Date>, InvalidValue>

The IssueDate (225) field.

Source

pub fn repo_collateral_security_type( &self, ) -> Result<Option<&str>, InvalidValue>

The RepoCollateralSecurityType (239) field.

Source

pub fn repurchase_term(&self) -> Result<Option<i64>, InvalidValue>

The RepurchaseTerm (226) field.

Source

pub fn repurchase_rate(&self) -> Result<Option<Decimal>, InvalidValue>

The RepurchaseRate (227) field.

Source

pub fn factor(&self) -> Result<Option<Decimal>, InvalidValue>

The Factor (228) field.

Source

pub fn credit_rating(&self) -> Result<Option<&str>, InvalidValue>

The CreditRating (255) field.

Source

pub fn instr_registry(&self) -> Result<Option<&str>, InvalidValue>

The InstrRegistry (543) field.

Source

pub fn country_of_issue(&self) -> Result<Option<&str>, InvalidValue>

The CountryOfIssue (470) field.

Source

pub fn state_or_province_of_issue(&self) -> Result<Option<&str>, InvalidValue>

The StateOrProvinceOfIssue (471) field.

Source

pub fn locale_of_issue(&self) -> Result<Option<&str>, InvalidValue>

The LocaleOfIssue (472) field.

Source

pub fn redemption_date(&self) -> Result<Option<Date>, InvalidValue>

The RedemptionDate (240) field.

Source

pub fn strike_price(&self) -> Result<Option<Decimal>, InvalidValue>

The StrikePrice (202) field.

Source

pub fn strike_currency(&self) -> Result<Option<&str>, InvalidValue>

The StrikeCurrency (947) field.

Source

pub fn opt_attribute(&self) -> Result<Option<&str>, InvalidValue>

The OptAttribute (206) field.

Source

pub fn contract_multiplier(&self) -> Result<Option<Decimal>, InvalidValue>

The ContractMultiplier (231) field.

Source

pub fn coupon_rate(&self) -> Result<Option<Decimal>, InvalidValue>

The CouponRate (223) field.

Source

pub fn security_exchange(&self) -> Result<Option<&str>, InvalidValue>

The SecurityExchange (207) field.

Source

pub fn issuer(&self) -> Result<Option<&str>, InvalidValue>

The Issuer (106) field.

Source

pub fn encoded_issuer_len(&self) -> Result<Option<i64>, InvalidValue>

The EncodedIssuerLen (348) field.

Source

pub fn encoded_issuer(&self) -> Option<&[u8]>

The EncodedIssuer (349) field.

Source

pub fn security_desc(&self) -> Result<Option<&str>, InvalidValue>

The SecurityDesc (107) field.

Source

pub fn encoded_security_desc_len(&self) -> Result<Option<i64>, InvalidValue>

The EncodedSecurityDescLen (350) field.

Source

pub fn encoded_security_desc(&self) -> Option<&[u8]>

The EncodedSecurityDesc (351) field.

Source

pub fn pool(&self) -> Result<Option<&str>, InvalidValue>

The Pool (691) field.

Source

pub fn contract_settl_month(&self) -> Result<Option<MonthYear>, InvalidValue>

The ContractSettlMonth (667) field.

Source

pub fn cp_program(&self) -> Result<Option<CPProgram>, InvalidValue>

The CPProgram (875) field.

Source

pub fn cp_reg_type(&self) -> Result<Option<&str>, InvalidValue>

The CPRegType (876) field.

Source

pub fn events(&self) -> Result<Instances<'_, Instance<'_>>, InvalidValue>

The instances of the NoEvents (864) group.

Source

pub fn dated_date(&self) -> Result<Option<Date>, InvalidValue>

The DatedDate (873) field.

Source

pub fn interest_accrual_date(&self) -> Result<Option<Date>, InvalidValue>

The InterestAccrualDate (874) field.

Source

pub fn agreement_desc(&self) -> Result<Option<&str>, InvalidValue>

The AgreementDesc (913) field.

Source

pub fn agreement_id(&self) -> Result<Option<&str>, InvalidValue>

The AgreementID (914) field.

Source

pub fn agreement_date(&self) -> Result<Option<Date>, InvalidValue>

The AgreementDate (915) field.

Source

pub fn agreement_currency(&self) -> Result<Option<&str>, InvalidValue>

The AgreementCurrency (918) field.

Source

pub fn termination_type(&self) -> Result<Option<TerminationType>, InvalidValue>

The TerminationType (788) field.

Source

pub fn start_date(&self) -> Result<Option<Date>, InvalidValue>

The StartDate (916) field.

Source

pub fn end_date(&self) -> Result<Option<Date>, InvalidValue>

The EndDate (917) field.

Source

pub fn delivery_type(&self) -> Result<Option<DeliveryType>, InvalidValue>

The DeliveryType (919) field.

Source

pub fn margin_ratio(&self) -> Result<Option<Decimal>, InvalidValue>

The MarginRatio (898) field.

Source

pub fn underlyings(&self) -> Result<Instances<'_, Instance<'_>>, InvalidValue>

The instances of the NoUnderlyings (711) group.

Source

pub fn prev_close_px(&self) -> Result<Option<Decimal>, InvalidValue>

The PrevClosePx (140) field.

Source

pub fn side(&self) -> Result<Option<Side<'_>>, InvalidValue>

The Side (54) field.

Source

pub fn locate_reqd(&self) -> Result<Option<bool>, InvalidValue>

The LocateReqd (114) field.

Source

pub fn transact_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue>

The TransactTime (60) field.

Source

pub fn stipulations(&self) -> Result<Instances<'_, Instance<'_>>, InvalidValue>

The instances of the NoStipulations (232) group.

Source

pub fn qty_type(&self) -> Result<Option<QtyType>, InvalidValue>

The QtyType (854) field.

Source

pub fn order_qty(&self) -> Result<Option<Decimal>, InvalidValue>

The OrderQty (38) field.

Source

pub fn cash_order_qty(&self) -> Result<Option<Decimal>, InvalidValue>

The CashOrderQty (152) field.

Source

pub fn order_percent(&self) -> Result<Option<Decimal>, InvalidValue>

The OrderPercent (516) field.

Source

pub fn rounding_direction( &self, ) -> Result<Option<RoundingDirection<'_>>, InvalidValue>

The RoundingDirection (468) field.

Source

pub fn rounding_modulus(&self) -> Result<Option<Decimal>, InvalidValue>

The RoundingModulus (469) field.

Source

pub fn ord_type(&self) -> Result<Option<OrdType<'_>>, InvalidValue>

The OrdType (40) field.

Source

pub fn price_type(&self) -> Result<Option<PriceType>, InvalidValue>

The PriceType (423) field.

Source

pub fn price(&self) -> Result<Option<Decimal>, InvalidValue>

The Price (44) field.

Source

pub fn stop_px(&self) -> Result<Option<Decimal>, InvalidValue>

The StopPx (99) field.

Source

pub fn spread(&self) -> Result<Option<Decimal>, InvalidValue>

The Spread (218) field.

Source

pub fn benchmark_curve_currency(&self) -> Result<Option<&str>, InvalidValue>

The BenchmarkCurveCurrency (220) field.

Source

pub fn benchmark_curve_name(&self) -> Result<Option<&str>, InvalidValue>

The BenchmarkCurveName (221) field.

Source

pub fn benchmark_curve_point(&self) -> Result<Option<&str>, InvalidValue>

The BenchmarkCurvePoint (222) field.

Source

pub fn benchmark_price(&self) -> Result<Option<Decimal>, InvalidValue>

The BenchmarkPrice (662) field.

Source

pub fn benchmark_price_type(&self) -> Result<Option<i64>, InvalidValue>

The BenchmarkPriceType (663) field.

Source

pub fn benchmark_security_id(&self) -> Result<Option<&str>, InvalidValue>

The BenchmarkSecurityID (699) field.

Source

pub fn benchmark_security_id_source(&self) -> Result<Option<&str>, InvalidValue>

The BenchmarkSecurityIDSource (761) field.

Source

pub fn yield_type(&self) -> Result<Option<YieldType<'_>>, InvalidValue>

The YieldType (235) field.

Source

pub fn yield(&self) -> Result<Option<Decimal>, InvalidValue>

The Yield (236) field.

Source

pub fn yield_calc_date(&self) -> Result<Option<Date>, InvalidValue>

The YieldCalcDate (701) field.

Source

pub fn yield_redemption_date(&self) -> Result<Option<Date>, InvalidValue>

The YieldRedemptionDate (696) field.

Source

pub fn yield_redemption_price(&self) -> Result<Option<Decimal>, InvalidValue>

The YieldRedemptionPrice (697) field.

Source

pub fn yield_redemption_price_type(&self) -> Result<Option<i64>, InvalidValue>

The YieldRedemptionPriceType (698) field.

Source

pub fn currency(&self) -> Result<Option<&str>, InvalidValue>

The Currency (15) field.

Source

pub fn compliance_id(&self) -> Result<Option<&str>, InvalidValue>

The ComplianceID (376) field.

Source

pub fn solicited_flag(&self) -> Result<Option<bool>, InvalidValue>

The SolicitedFlag (377) field.

Source

pub fn ioiid(&self) -> Result<Option<&str>, InvalidValue>

The IOIID (23) field.

Source

pub fn quote_id(&self) -> Result<Option<&str>, InvalidValue>

The QuoteID (117) field.

Source

pub fn time_in_force(&self) -> Result<Option<TimeInForce<'_>>, InvalidValue>

The TimeInForce (59) field.

Source

pub fn effective_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue>

The EffectiveTime (168) field.

Source

pub fn expire_date(&self) -> Result<Option<Date>, InvalidValue>

The ExpireDate (432) field.

Source

pub fn expire_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue>

The ExpireTime (126) field.

Source

pub fn gt_booking_inst(&self) -> Result<Option<GTBookingInst>, InvalidValue>

The GTBookingInst (427) field.

Source

pub fn commission(&self) -> Result<Option<Decimal>, InvalidValue>

The Commission (12) field.

Source

pub fn comm_type(&self) -> Result<Option<CommType<'_>>, InvalidValue>

The CommType (13) field.

Source

pub fn comm_currency(&self) -> Result<Option<&str>, InvalidValue>

The CommCurrency (479) field.

Source

pub fn fund_renew_waiv(&self) -> Result<Option<FundRenewWaiv<'_>>, InvalidValue>

The FundRenewWaiv (497) field.

Source

pub fn order_capacity(&self) -> Result<Option<OrderCapacity<'_>>, InvalidValue>

The OrderCapacity (528) field.

Source

pub fn order_restrictions( &self, ) -> Result<Option<MultipleValues<'_, OrderRestrictions<'_>>>, InvalidValue>

The OrderRestrictions (529) field.

Source

pub fn cust_order_capacity( &self, ) -> Result<Option<CustOrderCapacity>, InvalidValue>

The CustOrderCapacity (582) field.

Source

pub fn forex_req(&self) -> Result<Option<bool>, InvalidValue>

The ForexReq (121) field.

Source

pub fn settl_currency(&self) -> Result<Option<&str>, InvalidValue>

The SettlCurrency (120) field.

Source

pub fn booking_type(&self) -> Result<Option<BookingType>, InvalidValue>

The BookingType (775) field.

Source

pub fn text(&self) -> Result<Option<&str>, InvalidValue>

The Text (58) field.

Source

pub fn encoded_text_len(&self) -> Result<Option<i64>, InvalidValue>

The EncodedTextLen (354) field.

Source

pub fn encoded_text(&self) -> Option<&[u8]>

The EncodedText (355) field.

Source

pub fn settl_date2(&self) -> Result<Option<Date>, InvalidValue>

The SettlDate2 (193) field.

Source

pub fn order_qty2(&self) -> Result<Option<Decimal>, InvalidValue>

The OrderQty2 (192) field.

Source

pub fn price2(&self) -> Result<Option<Decimal>, InvalidValue>

The Price2 (640) field.

Source

pub fn position_effect( &self, ) -> Result<Option<PositionEffect<'_>>, InvalidValue>

The PositionEffect (77) field.

Source

pub fn covered_or_uncovered( &self, ) -> Result<Option<CoveredOrUncovered>, InvalidValue>

The CoveredOrUncovered (203) field.

Source

pub fn max_show(&self) -> Result<Option<Decimal>, InvalidValue>

The MaxShow (210) field.

Source

pub fn peg_offset_value(&self) -> Result<Option<Decimal>, InvalidValue>

The PegOffsetValue (211) field.

Source

pub fn peg_move_type(&self) -> Result<Option<PegMoveType>, InvalidValue>

The PegMoveType (835) field.

Source

pub fn peg_offset_type(&self) -> Result<Option<PegOffsetType>, InvalidValue>

The PegOffsetType (836) field.

Source

pub fn peg_limit_type(&self) -> Result<Option<PegLimitType>, InvalidValue>

The PegLimitType (837) field.

Source

pub fn peg_round_direction( &self, ) -> Result<Option<PegRoundDirection>, InvalidValue>

The PegRoundDirection (838) field.

Source

pub fn peg_scope(&self) -> Result<Option<PegScope>, InvalidValue>

The PegScope (840) field.

Source

pub fn discretion_inst( &self, ) -> Result<Option<DiscretionInst<'_>>, InvalidValue>

The DiscretionInst (388) field.

Source

pub fn discretion_offset_value(&self) -> Result<Option<Decimal>, InvalidValue>

The DiscretionOffsetValue (389) field.

Source

pub fn discretion_move_type( &self, ) -> Result<Option<DiscretionMoveType>, InvalidValue>

The DiscretionMoveType (841) field.

Source

pub fn discretion_offset_type( &self, ) -> Result<Option<DiscretionOffsetType>, InvalidValue>

The DiscretionOffsetType (842) field.

Source

pub fn discretion_limit_type( &self, ) -> Result<Option<DiscretionLimitType>, InvalidValue>

The DiscretionLimitType (843) field.

Source

pub fn discretion_round_direction( &self, ) -> Result<Option<DiscretionRoundDirection>, InvalidValue>

The DiscretionRoundDirection (844) field.

Source

pub fn discretion_scope(&self) -> Result<Option<DiscretionScope>, InvalidValue>

The DiscretionScope (846) field.

Source

pub fn target_strategy(&self) -> Result<Option<TargetStrategy>, InvalidValue>

The TargetStrategy (847) field.

Source

pub fn target_strategy_parameters(&self) -> Result<Option<&str>, InvalidValue>

The TargetStrategyParameters (848) field.

Source

pub fn participation_rate(&self) -> Result<Option<Decimal>, InvalidValue>

The ParticipationRate (849) field.

Source

pub fn cancellation_rights( &self, ) -> Result<Option<CancellationRights<'_>>, InvalidValue>

The CancellationRights (480) field.

Source

pub fn money_laundering_status( &self, ) -> Result<Option<MoneyLaunderingStatus<'_>>, InvalidValue>

The MoneyLaunderingStatus (481) field.

Source

pub fn regist_id(&self) -> Result<Option<&str>, InvalidValue>

The RegistID (513) field.

Source

pub fn designation(&self) -> Result<Option<&str>, InvalidValue>

The Designation (494) field.

Trait Implementations§

Source§

impl Debug for NewOrderSingle

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for NewOrderSingle

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.