Struct OrderRules
pub struct OrderRules {Show 17 fields
pub market: Market,
pub market_name: String,
pub status: MarketStatus,
pub buy_fee_rate: Decimal,
pub sell_fee_rate: Decimal,
pub maker_buy_fee_rate: Decimal,
pub maker_sell_fee_rate: Decimal,
pub sides: Vec<Side>,
pub buy_options: Vec<OrderOption>,
pub sell_options: Vec<OrderOption>,
pub buy_price_unit: Option<Decimal>,
pub sell_price_unit: Option<Decimal>,
pub minimum_buy_total: Decimal,
pub minimum_sell_total: Decimal,
pub maximum_total: Decimal,
pub quote_account: OrderAccount,
pub base_account: OrderAccount,
}Expand description
Dynamic fees, limits, supported orders, and balances for one market.
Fields§
§market: MarketMarket these rules apply to.
market_name: StringExchange-provided market name.
status: MarketStatusCurrent market operation status.
buy_fee_rate: DecimalFee rate applied to ordinary buy orders.
sell_fee_rate: DecimalFee rate applied to ordinary sell orders.
maker_buy_fee_rate: DecimalFee rate applied to maker buy orders.
maker_sell_fee_rate: DecimalFee rate applied to maker sell orders.
sides: Vec<Side>Sides currently accepted by the market.
buy_options: Vec<OrderOption>Supported buy order combinations.
sell_options: Vec<OrderOption>Supported sell order combinations.
buy_price_unit: Option<Decimal>Price unit published for buy orders, when available.
sell_price_unit: Option<Decimal>Price unit published for sell orders, when available.
minimum_buy_total: DecimalMinimum buy value in the quote asset.
minimum_sell_total: DecimalMinimum sell value in the quote asset.
maximum_total: DecimalMaximum order value in the quote asset.
quote_account: OrderAccountQuote-asset account used to buy.
base_account: OrderAccountBase-asset account used to sell.
Trait Implementations§
§impl Clone for OrderRules
impl Clone for OrderRules
§impl Debug for OrderRules
impl Debug for OrderRules
impl Eq for OrderRules
§impl PartialEq for OrderRules
impl PartialEq for OrderRules
impl StructuralPartialEq for OrderRules
Auto Trait Implementations§
impl Freeze for OrderRules
impl RefUnwindSafe for OrderRules
impl Send for OrderRules
impl Sync for OrderRules
impl Unpin for OrderRules
impl UnsafeUnpin for OrderRules
impl UnwindSafe for OrderRules
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.