pub struct TradingParamsSnapshot {
pub ticker: String,
pub class_code: String,
pub lot_size: Decimal,
pub price_step: Decimal,
pub price_step_value: Decimal,
pub scale: u32,
pub currency: String,
}Expand description
Normalized trading parameters extracted from InstrumentInfo for domain mapping.
Fields§
§ticker: StringTicker.
class_code: StringClass code (board) the parameters are for.
lot_size: DecimalPieces in one lot. 1 if the broker sent none (a default, not data).
price_step: DecimalMinimum price step. 0.01 if the broker sent none (a default, not data).
price_step_value: DecimalCost of one price step. If the broker sent none it is the price step (a default).
scale: u32Decimal places of the price. 2 if the broker sent none (a default).
currency: StringTrading currency. RUB if the broker sent none (a default).
Trait Implementations§
Source§impl Clone for TradingParamsSnapshot
impl Clone for TradingParamsSnapshot
Source§fn clone(&self) -> TradingParamsSnapshot
fn clone(&self) -> TradingParamsSnapshot
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 TradingParamsSnapshot
impl Debug for TradingParamsSnapshot
Source§impl<'de> Deserialize<'de> for TradingParamsSnapshot
impl<'de> Deserialize<'de> for TradingParamsSnapshot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TradingParamsSnapshot
impl PartialEq for TradingParamsSnapshot
Source§fn eq(&self, other: &TradingParamsSnapshot) -> bool
fn eq(&self, other: &TradingParamsSnapshot) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TradingParamsSnapshot
impl Serialize for TradingParamsSnapshot
impl StructuralPartialEq for TradingParamsSnapshot
Auto Trait Implementations§
impl Freeze for TradingParamsSnapshot
impl RefUnwindSafe for TradingParamsSnapshot
impl Send for TradingParamsSnapshot
impl Sync for TradingParamsSnapshot
impl Unpin for TradingParamsSnapshot
impl UnsafeUnpin for TradingParamsSnapshot
impl UnwindSafe for TradingParamsSnapshot
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