pub struct MarketDepthRequest {
pub req_id: TickerId,
pub contract: Contract,
pub num_rows: i32,
pub is_smart_depth: bool,
pub market_depth_options: Vec<TagValue>,
}Expand description
Market depth request.
Fields§
§req_id: TickerIdRequest id.
contract: ContractContract.
num_rows: i32Number of rows.
is_smart_depth: boolSmart depth.
market_depth_options: Vec<TagValue>Market depth options.
Trait Implementations§
Source§impl Clone for MarketDepthRequest
impl Clone for MarketDepthRequest
Source§fn clone(&self) -> MarketDepthRequest
fn clone(&self) -> MarketDepthRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MarketDepthRequest
impl Debug for MarketDepthRequest
Source§impl Default for MarketDepthRequest
impl Default for MarketDepthRequest
Source§fn default() -> MarketDepthRequest
fn default() -> MarketDepthRequest
Returns the “default value” for a type. Read more
Source§impl EncodableRequest for MarketDepthRequest
impl EncodableRequest for MarketDepthRequest
Source§fn encode_fields(&self, fields: &mut FieldSink) -> TwsApiResult<()>
fn encode_fields(&self, fields: &mut FieldSink) -> TwsApiResult<()>
Appends fields after the message id.
Source§fn encode_fields_for_server_version(
&self,
fields: &mut FieldSink,
server_version: i32,
) -> TwsApiResult<()>
fn encode_fields_for_server_version( &self, fields: &mut FieldSink, server_version: i32, ) -> TwsApiResult<()>
Appends fields for a negotiated server version.
Source§fn encode_protobuf(&self) -> TwsApiResult<Option<Vec<u8>>>
fn encode_protobuf(&self) -> TwsApiResult<Option<Vec<u8>>>
Encodes this request as protobuf when implemented for the request type.
Source§impl PartialEq for MarketDepthRequest
impl PartialEq for MarketDepthRequest
impl StructuralPartialEq for MarketDepthRequest
Auto Trait Implementations§
impl Freeze for MarketDepthRequest
impl RefUnwindSafe for MarketDepthRequest
impl Send for MarketDepthRequest
impl Sync for MarketDepthRequest
impl Unpin for MarketDepthRequest
impl UnsafeUnpin for MarketDepthRequest
impl UnwindSafe for MarketDepthRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more