pub struct Market {Show 22 fields
pub id: String,
pub symbol: String,
pub base: String,
pub quote: String,
pub settle: Option<String>,
pub base_id: String,
pub quote_id: String,
pub market_type: String,
pub spot: bool,
pub margin: bool,
pub swap: bool,
pub future: bool,
pub option: bool,
pub active: bool,
pub contract: bool,
pub linear: Option<bool>,
pub inverse: Option<bool>,
pub taker: Option<f64>,
pub maker: Option<f64>,
pub limits: MarketLimits,
pub precision: MarketPrecision,
pub raw: Value,
}Expand description
A unified market / symbol descriptor.
Fields§
§id: String§symbol: String§base: String§quote: String§settle: Option<String>§base_id: String§quote_id: String§market_type: String§spot: bool§margin: bool§swap: bool§future: bool§option: bool§active: bool§contract: bool§linear: Option<bool>§inverse: Option<bool>§taker: Option<f64>§maker: Option<f64>§limits: MarketLimitsDeclared order bounds — amount / price / cost / leverage.
precision: MarketPrecisionDeclared tick and step sizes.
raw: ValueImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Market
impl RefUnwindSafe for Market
impl Send for Market
impl Sync for Market
impl Unpin for Market
impl UnsafeUnpin for Market
impl UnwindSafe for Market
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