pub struct TradableAssetPair {Show 24 fields
pub alt_name: String,
pub ws_name: String,
pub asset_class_base: String,
pub base: String,
pub asset_class_quote: String,
pub quote: String,
pub lot: String,
pub cost_decimals: i64,
pub pair_decimals: i64,
pub lot_decimals: i64,
pub lot_multiplier: i64,
pub leverage_buy: Vec<i64>,
pub leverage_sell: Vec<i64>,
pub fees: Vec<FeeByVolume>,
pub fees_maker: Vec<FeeByVolume>,
pub fee_volume_currency: String,
pub margin_call: i64,
pub margin_stop: i64,
pub order_min: Decimal,
pub cost_min: Decimal,
pub tick_size: Decimal,
pub status: TradableAssetStatus,
pub long_position_limit: Option<i64>,
pub short_position_limit: Option<i64>,
}
Expand description
Trading pair details, including all necessary details for formatting orders
Fields§
§alt_name: String
§ws_name: String
§asset_class_base: String
§base: String
§asset_class_quote: String
§quote: String
§lot: String
§cost_decimals: i64
§pair_decimals: i64
§lot_decimals: i64
§lot_multiplier: i64
§leverage_buy: Vec<i64>
§leverage_sell: Vec<i64>
§fees: Vec<FeeByVolume>
§fees_maker: Vec<FeeByVolume>
§fee_volume_currency: String
§margin_call: i64
§margin_stop: i64
§order_min: Decimal
§cost_min: Decimal
§tick_size: Decimal
§status: TradableAssetStatus
§long_position_limit: Option<i64>
§short_position_limit: Option<i64>
Trait Implementations§
Source§impl Clone for TradableAssetPair
impl Clone for TradableAssetPair
Source§fn clone(&self) -> TradableAssetPair
fn clone(&self) -> TradableAssetPair
Returns a copy of the value. Read more
1.0.0 · 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 TradableAssetPair
impl Debug for TradableAssetPair
Source§impl<'de> Deserialize<'de> for TradableAssetPair
impl<'de> Deserialize<'de> for TradableAssetPair
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 TradableAssetPair
impl PartialEq for TradableAssetPair
impl StructuralPartialEq for TradableAssetPair
Auto Trait Implementations§
impl Freeze for TradableAssetPair
impl RefUnwindSafe for TradableAssetPair
impl Send for TradableAssetPair
impl Sync for TradableAssetPair
impl Unpin for TradableAssetPair
impl UnwindSafe for TradableAssetPair
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