pub struct NewOrderSingle {
pub message: Message,
}Expand description
NewOrderSingle is the fix40 NewOrderSingle type, MsgType = D.
Fields§
§message: MessageImplementations§
Source§impl NewOrderSingle
impl NewOrderSingle
Sourcepub fn new(
cl_ord_id: ClOrdIDField,
handl_inst: HandlInstField,
symbol: SymbolField,
side: SideField,
order_qty: OrderQtyField,
ord_type: OrdTypeField,
) -> Self
pub fn new( cl_ord_id: ClOrdIDField, handl_inst: HandlInstField, symbol: SymbolField, side: SideField, order_qty: OrderQtyField, ord_type: OrdTypeField, ) -> Self
Creates a new NewOrderSingle with required fields.
Sourcepub fn from_message(msg: Message) -> Self
pub fn from_message(msg: Message) -> Self
Creates a NewOrderSingle from an existing Message.
Sourcepub fn to_message(self) -> Message
pub fn to_message(self) -> Message
Returns the underlying Message.
Sourcepub fn set_account(&mut self, v: String)
pub fn set_account(&mut self, v: String)
Sets Account, Tag 1.
Sourcepub fn get_account(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_account(&self) -> Result<String, MessageRejectErrorEnum>
Gets Account, Tag 1.
Sourcepub fn has_account(&self) -> bool
pub fn has_account(&self) -> bool
Returns true if Account is present, Tag 1.
Sourcepub fn set_cl_ord_id(&mut self, v: String)
pub fn set_cl_ord_id(&mut self, v: String)
Sets ClOrdID, Tag 11.
Sourcepub fn get_cl_ord_id(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_cl_ord_id(&self) -> Result<String, MessageRejectErrorEnum>
Gets ClOrdID, Tag 11.
Sourcepub fn has_cl_ord_id(&self) -> bool
pub fn has_cl_ord_id(&self) -> bool
Returns true if ClOrdID is present, Tag 11.
Sourcepub fn set_client_id(&mut self, v: String)
pub fn set_client_id(&mut self, v: String)
Sets ClientID, Tag 109.
Sourcepub fn get_client_id(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_client_id(&self) -> Result<String, MessageRejectErrorEnum>
Gets ClientID, Tag 109.
Sourcepub fn has_client_id(&self) -> bool
pub fn has_client_id(&self) -> bool
Returns true if ClientID is present, Tag 109.
Sourcepub fn set_comm_type(&mut self, v: String)
pub fn set_comm_type(&mut self, v: String)
Sets CommType, Tag 13.
Sourcepub fn get_comm_type(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_comm_type(&self) -> Result<String, MessageRejectErrorEnum>
Gets CommType, Tag 13.
Sourcepub fn has_comm_type(&self) -> bool
pub fn has_comm_type(&self) -> bool
Returns true if CommType is present, Tag 13.
Sourcepub fn set_commission(&mut self, val: Decimal, scale: i32)
pub fn set_commission(&mut self, val: Decimal, scale: i32)
Sets Commission, Tag 12.
Sourcepub fn get_commission(&self) -> Result<Decimal, MessageRejectErrorEnum>
pub fn get_commission(&self) -> Result<Decimal, MessageRejectErrorEnum>
Gets Commission, Tag 12.
Sourcepub fn has_commission(&self) -> bool
pub fn has_commission(&self) -> bool
Returns true if Commission is present, Tag 12.
Sourcepub fn set_currency(&mut self, v: String)
pub fn set_currency(&mut self, v: String)
Sets Currency, Tag 15.
Sourcepub fn get_currency(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_currency(&self) -> Result<String, MessageRejectErrorEnum>
Gets Currency, Tag 15.
Sourcepub fn has_currency(&self) -> bool
pub fn has_currency(&self) -> bool
Returns true if Currency is present, Tag 15.
Sourcepub fn set_ex_destination(&mut self, v: String)
pub fn set_ex_destination(&mut self, v: String)
Sets ExDestination, Tag 100.
Sourcepub fn get_ex_destination(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_ex_destination(&self) -> Result<String, MessageRejectErrorEnum>
Gets ExDestination, Tag 100.
Sourcepub fn has_ex_destination(&self) -> bool
pub fn has_ex_destination(&self) -> bool
Returns true if ExDestination is present, Tag 100.
Sourcepub fn set_exec_broker(&mut self, v: String)
pub fn set_exec_broker(&mut self, v: String)
Sets ExecBroker, Tag 76.
Sourcepub fn get_exec_broker(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_exec_broker(&self) -> Result<String, MessageRejectErrorEnum>
Gets ExecBroker, Tag 76.
Sourcepub fn has_exec_broker(&self) -> bool
pub fn has_exec_broker(&self) -> bool
Returns true if ExecBroker is present, Tag 76.
Sourcepub fn set_exec_inst(&mut self, v: String)
pub fn set_exec_inst(&mut self, v: String)
Sets ExecInst, Tag 18.
Sourcepub fn get_exec_inst(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_exec_inst(&self) -> Result<String, MessageRejectErrorEnum>
Gets ExecInst, Tag 18.
Sourcepub fn has_exec_inst(&self) -> bool
pub fn has_exec_inst(&self) -> bool
Returns true if ExecInst is present, Tag 18.
Sourcepub fn set_expire_time(&mut self, v: Timestamp)
pub fn set_expire_time(&mut self, v: Timestamp)
Sets ExpireTime, Tag 126.
Sourcepub fn get_expire_time(&self) -> Result<Timestamp, MessageRejectErrorEnum>
pub fn get_expire_time(&self) -> Result<Timestamp, MessageRejectErrorEnum>
Gets ExpireTime, Tag 126.
Sourcepub fn has_expire_time(&self) -> bool
pub fn has_expire_time(&self) -> bool
Returns true if ExpireTime is present, Tag 126.
Sourcepub fn set_forex_req(&mut self, v: bool)
pub fn set_forex_req(&mut self, v: bool)
Sets ForexReq, Tag 121.
Sourcepub fn get_forex_req(&self) -> Result<bool, MessageRejectErrorEnum>
pub fn get_forex_req(&self) -> Result<bool, MessageRejectErrorEnum>
Gets ForexReq, Tag 121.
Sourcepub fn has_forex_req(&self) -> bool
pub fn has_forex_req(&self) -> bool
Returns true if ForexReq is present, Tag 121.
Sourcepub fn set_fut_sett_date(&mut self, v: String)
pub fn set_fut_sett_date(&mut self, v: String)
Sets FutSettDate, Tag 64.
Sourcepub fn get_fut_sett_date(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_fut_sett_date(&self) -> Result<String, MessageRejectErrorEnum>
Gets FutSettDate, Tag 64.
Sourcepub fn has_fut_sett_date(&self) -> bool
pub fn has_fut_sett_date(&self) -> bool
Returns true if FutSettDate is present, Tag 64.
Sourcepub fn set_handl_inst(&mut self, v: String)
pub fn set_handl_inst(&mut self, v: String)
Sets HandlInst, Tag 21.
Sourcepub fn get_handl_inst(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_handl_inst(&self) -> Result<String, MessageRejectErrorEnum>
Gets HandlInst, Tag 21.
Sourcepub fn has_handl_inst(&self) -> bool
pub fn has_handl_inst(&self) -> bool
Returns true if HandlInst is present, Tag 21.
Sourcepub fn set_id_source(&mut self, v: String)
pub fn set_id_source(&mut self, v: String)
Sets IDSource, Tag 22.
Sourcepub fn get_id_source(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_id_source(&self) -> Result<String, MessageRejectErrorEnum>
Gets IDSource, Tag 22.
Sourcepub fn has_id_source(&self) -> bool
pub fn has_id_source(&self) -> bool
Returns true if IDSource is present, Tag 22.
Sourcepub fn set_io_iid(&mut self, v: String)
pub fn set_io_iid(&mut self, v: String)
Sets IOIid, Tag 23.
Sourcepub fn get_io_iid(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_io_iid(&self) -> Result<String, MessageRejectErrorEnum>
Gets IOIid, Tag 23.
Sourcepub fn has_io_iid(&self) -> bool
pub fn has_io_iid(&self) -> bool
Returns true if IOIid is present, Tag 23.
Sourcepub fn set_issuer(&mut self, v: String)
pub fn set_issuer(&mut self, v: String)
Sets Issuer, Tag 106.
Sourcepub fn get_issuer(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_issuer(&self) -> Result<String, MessageRejectErrorEnum>
Gets Issuer, Tag 106.
Sourcepub fn has_issuer(&self) -> bool
pub fn has_issuer(&self) -> bool
Returns true if Issuer is present, Tag 106.
Sourcepub fn set_locate_reqd(&mut self, v: bool)
pub fn set_locate_reqd(&mut self, v: bool)
Sets LocateReqd, Tag 114.
Sourcepub fn get_locate_reqd(&self) -> Result<bool, MessageRejectErrorEnum>
pub fn get_locate_reqd(&self) -> Result<bool, MessageRejectErrorEnum>
Gets LocateReqd, Tag 114.
Sourcepub fn has_locate_reqd(&self) -> bool
pub fn has_locate_reqd(&self) -> bool
Returns true if LocateReqd is present, Tag 114.
Sourcepub fn set_max_floor(&mut self, val: Decimal, scale: i32)
pub fn set_max_floor(&mut self, val: Decimal, scale: i32)
Sets MaxFloor, Tag 111.
Sourcepub fn get_max_floor(&self) -> Result<Decimal, MessageRejectErrorEnum>
pub fn get_max_floor(&self) -> Result<Decimal, MessageRejectErrorEnum>
Gets MaxFloor, Tag 111.
Sourcepub fn has_max_floor(&self) -> bool
pub fn has_max_floor(&self) -> bool
Returns true if MaxFloor is present, Tag 111.
Sourcepub fn set_min_qty(&mut self, val: Decimal, scale: i32)
pub fn set_min_qty(&mut self, val: Decimal, scale: i32)
Sets MinQty, Tag 110.
Sourcepub fn get_min_qty(&self) -> Result<Decimal, MessageRejectErrorEnum>
pub fn get_min_qty(&self) -> Result<Decimal, MessageRejectErrorEnum>
Gets MinQty, Tag 110.
Sourcepub fn has_min_qty(&self) -> bool
pub fn has_min_qty(&self) -> bool
Returns true if MinQty is present, Tag 110.
Sourcepub fn set_ord_type(&mut self, v: String)
pub fn set_ord_type(&mut self, v: String)
Sets OrdType, Tag 40.
Sourcepub fn get_ord_type(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_ord_type(&self) -> Result<String, MessageRejectErrorEnum>
Gets OrdType, Tag 40.
Sourcepub fn has_ord_type(&self) -> bool
pub fn has_ord_type(&self) -> bool
Returns true if OrdType is present, Tag 40.
Sourcepub fn set_order_qty(&mut self, val: Decimal, scale: i32)
pub fn set_order_qty(&mut self, val: Decimal, scale: i32)
Sets OrderQty, Tag 38.
Sourcepub fn get_order_qty(&self) -> Result<Decimal, MessageRejectErrorEnum>
pub fn get_order_qty(&self) -> Result<Decimal, MessageRejectErrorEnum>
Gets OrderQty, Tag 38.
Sourcepub fn has_order_qty(&self) -> bool
pub fn has_order_qty(&self) -> bool
Returns true if OrderQty is present, Tag 38.
Sourcepub fn set_prev_close_px(&mut self, val: Decimal, scale: i32)
pub fn set_prev_close_px(&mut self, val: Decimal, scale: i32)
Sets PrevClosePx, Tag 140.
Sourcepub fn get_prev_close_px(&self) -> Result<Decimal, MessageRejectErrorEnum>
pub fn get_prev_close_px(&self) -> Result<Decimal, MessageRejectErrorEnum>
Gets PrevClosePx, Tag 140.
Sourcepub fn has_prev_close_px(&self) -> bool
pub fn has_prev_close_px(&self) -> bool
Returns true if PrevClosePx is present, Tag 140.
Sourcepub fn get_price(&self) -> Result<Decimal, MessageRejectErrorEnum>
pub fn get_price(&self) -> Result<Decimal, MessageRejectErrorEnum>
Gets Price, Tag 44.
Sourcepub fn set_process_code(&mut self, v: String)
pub fn set_process_code(&mut self, v: String)
Sets ProcessCode, Tag 81.
Sourcepub fn get_process_code(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_process_code(&self) -> Result<String, MessageRejectErrorEnum>
Gets ProcessCode, Tag 81.
Sourcepub fn has_process_code(&self) -> bool
pub fn has_process_code(&self) -> bool
Returns true if ProcessCode is present, Tag 81.
Sourcepub fn set_quote_id(&mut self, v: String)
pub fn set_quote_id(&mut self, v: String)
Sets QuoteID, Tag 117.
Sourcepub fn get_quote_id(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_quote_id(&self) -> Result<String, MessageRejectErrorEnum>
Gets QuoteID, Tag 117.
Sourcepub fn has_quote_id(&self) -> bool
pub fn has_quote_id(&self) -> bool
Returns true if QuoteID is present, Tag 117.
Sourcepub fn set_rule80_a(&mut self, v: String)
pub fn set_rule80_a(&mut self, v: String)
Sets Rule80A, Tag 47.
Sourcepub fn get_rule80_a(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_rule80_a(&self) -> Result<String, MessageRejectErrorEnum>
Gets Rule80A, Tag 47.
Sourcepub fn has_rule80_a(&self) -> bool
pub fn has_rule80_a(&self) -> bool
Returns true if Rule80A is present, Tag 47.
Sourcepub fn set_security_desc(&mut self, v: String)
pub fn set_security_desc(&mut self, v: String)
Sets SecurityDesc, Tag 107.
Sourcepub fn get_security_desc(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_security_desc(&self) -> Result<String, MessageRejectErrorEnum>
Gets SecurityDesc, Tag 107.
Sourcepub fn has_security_desc(&self) -> bool
pub fn has_security_desc(&self) -> bool
Returns true if SecurityDesc is present, Tag 107.
Sourcepub fn set_security_id(&mut self, v: String)
pub fn set_security_id(&mut self, v: String)
Sets SecurityID, Tag 48.
Sourcepub fn get_security_id(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_security_id(&self) -> Result<String, MessageRejectErrorEnum>
Gets SecurityID, Tag 48.
Sourcepub fn has_security_id(&self) -> bool
pub fn has_security_id(&self) -> bool
Returns true if SecurityID is present, Tag 48.
Sourcepub fn set_settl_currency(&mut self, v: String)
pub fn set_settl_currency(&mut self, v: String)
Sets SettlCurrency, Tag 120.
Sourcepub fn get_settl_currency(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_settl_currency(&self) -> Result<String, MessageRejectErrorEnum>
Gets SettlCurrency, Tag 120.
Sourcepub fn has_settl_currency(&self) -> bool
pub fn has_settl_currency(&self) -> bool
Returns true if SettlCurrency is present, Tag 120.
Sourcepub fn set_settlmnt_typ(&mut self, v: String)
pub fn set_settlmnt_typ(&mut self, v: String)
Sets SettlmntTyp, Tag 63.
Sourcepub fn get_settlmnt_typ(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_settlmnt_typ(&self) -> Result<String, MessageRejectErrorEnum>
Gets SettlmntTyp, Tag 63.
Sourcepub fn has_settlmnt_typ(&self) -> bool
pub fn has_settlmnt_typ(&self) -> bool
Returns true if SettlmntTyp is present, Tag 63.
Sourcepub fn get_side(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_side(&self) -> Result<String, MessageRejectErrorEnum>
Gets Side, Tag 54.
Sourcepub fn set_stop_px(&mut self, val: Decimal, scale: i32)
pub fn set_stop_px(&mut self, val: Decimal, scale: i32)
Sets StopPx, Tag 99.
Sourcepub fn get_stop_px(&self) -> Result<Decimal, MessageRejectErrorEnum>
pub fn get_stop_px(&self) -> Result<Decimal, MessageRejectErrorEnum>
Gets StopPx, Tag 99.
Sourcepub fn has_stop_px(&self) -> bool
pub fn has_stop_px(&self) -> bool
Returns true if StopPx is present, Tag 99.
Sourcepub fn set_symbol(&mut self, v: String)
pub fn set_symbol(&mut self, v: String)
Sets Symbol, Tag 55.
Sourcepub fn get_symbol(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_symbol(&self) -> Result<String, MessageRejectErrorEnum>
Gets Symbol, Tag 55.
Sourcepub fn has_symbol(&self) -> bool
pub fn has_symbol(&self) -> bool
Returns true if Symbol is present, Tag 55.
Sourcepub fn set_symbol_sfx(&mut self, v: String)
pub fn set_symbol_sfx(&mut self, v: String)
Sets SymbolSfx, Tag 65.
Sourcepub fn get_symbol_sfx(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_symbol_sfx(&self) -> Result<String, MessageRejectErrorEnum>
Gets SymbolSfx, Tag 65.
Sourcepub fn has_symbol_sfx(&self) -> bool
pub fn has_symbol_sfx(&self) -> bool
Returns true if SymbolSfx is present, Tag 65.
Sourcepub fn get_text(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_text(&self) -> Result<String, MessageRejectErrorEnum>
Gets Text, Tag 58.
Sourcepub fn set_time_in_force(&mut self, v: String)
pub fn set_time_in_force(&mut self, v: String)
Sets TimeInForce, Tag 59.
Sourcepub fn get_time_in_force(&self) -> Result<String, MessageRejectErrorEnum>
pub fn get_time_in_force(&self) -> Result<String, MessageRejectErrorEnum>
Gets TimeInForce, Tag 59.
Sourcepub fn has_time_in_force(&self) -> bool
pub fn has_time_in_force(&self) -> bool
Returns true if TimeInForce is present, Tag 59.