Skip to main content

MarketDataRequest

Struct MarketDataRequest 

Source
pub struct MarketDataRequest {
    pub message: Message,
}
Expand description

MarketDataRequest is the fix44 MarketDataRequest type, MsgType = V.

Fields§

§message: Message

Implementations§

Source§

impl MarketDataRequest

Source

pub fn new( md_req_id: MDReqIDField, subscription_request_type: SubscriptionRequestTypeField, market_depth: MarketDepthField, no_md_entry_types: NoMDEntryTypesField, no_related_sym: NoRelatedSymField, ) -> Self

Creates a new MarketDataRequest with required fields.

Source

pub fn from_message(msg: Message) -> Self

Creates a MarketDataRequest from an existing Message.

Source

pub fn to_message(self) -> Message

Returns the underlying Message.

Source

pub fn set_aggregated_book(&mut self, v: bool)

Sets AggregatedBook, Tag 266.

Source

pub fn get_aggregated_book(&self) -> Result<bool, MessageRejectErrorEnum>

Gets AggregatedBook, Tag 266.

Source

pub fn has_aggregated_book(&self) -> bool

Returns true if AggregatedBook is present, Tag 266.

Source

pub fn set_md_implicit_delete(&mut self, v: bool)

Sets MDImplicitDelete, Tag 547.

Source

pub fn get_md_implicit_delete(&self) -> Result<bool, MessageRejectErrorEnum>

Gets MDImplicitDelete, Tag 547.

Source

pub fn has_md_implicit_delete(&self) -> bool

Returns true if MDImplicitDelete is present, Tag 547.

Source

pub fn set_md_req_id(&mut self, v: String)

Sets MDReqID, Tag 262.

Source

pub fn get_md_req_id(&self) -> Result<String, MessageRejectErrorEnum>

Gets MDReqID, Tag 262.

Source

pub fn has_md_req_id(&self) -> bool

Returns true if MDReqID is present, Tag 262.

Source

pub fn set_md_update_type(&mut self, v: isize)

Sets MDUpdateType, Tag 265.

Source

pub fn get_md_update_type(&self) -> Result<isize, MessageRejectErrorEnum>

Gets MDUpdateType, Tag 265.

Source

pub fn has_md_update_type(&self) -> bool

Returns true if MDUpdateType is present, Tag 265.

Source

pub fn set_market_depth(&mut self, v: isize)

Sets MarketDepth, Tag 264.

Source

pub fn get_market_depth(&self) -> Result<isize, MessageRejectErrorEnum>

Gets MarketDepth, Tag 264.

Source

pub fn has_market_depth(&self) -> bool

Returns true if MarketDepth is present, Tag 264.

Source

pub fn set_no_md_entry_types(&mut self, v: isize)

Sets NoMDEntryTypes, Tag 267.

Source

pub fn get_no_md_entry_types(&self) -> Result<isize, MessageRejectErrorEnum>

Gets NoMDEntryTypes, Tag 267.

Source

pub fn has_no_md_entry_types(&self) -> bool

Returns true if NoMDEntryTypes is present, Tag 267.

Sets NoRelatedSym, Tag 146.

Gets NoRelatedSym, Tag 146.

Returns true if NoRelatedSym is present, Tag 146.

Source

pub fn set_open_close_settl_flag(&mut self, v: String)

Sets OpenCloseSettlFlag, Tag 286.

Source

pub fn get_open_close_settl_flag( &self, ) -> Result<String, MessageRejectErrorEnum>

Gets OpenCloseSettlFlag, Tag 286.

Source

pub fn has_open_close_settl_flag(&self) -> bool

Returns true if OpenCloseSettlFlag is present, Tag 286.

Source

pub fn set_scope(&mut self, v: String)

Sets Scope, Tag 546.

Source

pub fn get_scope(&self) -> Result<String, MessageRejectErrorEnum>

Gets Scope, Tag 546.

Source

pub fn has_scope(&self) -> bool

Returns true if Scope is present, Tag 546.

Source

pub fn set_subscription_request_type(&mut self, v: String)

Sets SubscriptionRequestType, Tag 263.

Source

pub fn get_subscription_request_type( &self, ) -> Result<String, MessageRejectErrorEnum>

Gets SubscriptionRequestType, Tag 263.

Source

pub fn has_subscription_request_type(&self) -> bool

Returns true if SubscriptionRequestType is present, Tag 263.

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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.