pub enum BinanceOrderType {
Limit,
Market,
StopLoss,
StopLossLimit,
TakeProfit,
TakeProfitLimit,
LimitMaker,
}Expand description
Order types supported by Binance Spot
Variants§
Limit
Limit order (price required)
Market
Market order (quantity required)
StopLoss
Stop loss order (stop price required)
StopLossLimit
Stop loss limit order (price and stop price required)
TakeProfit
Take profit order (stop price required)
TakeProfitLimit
Take profit limit order (price and stop price required)
LimitMaker
Limit maker order (price required, rejected if it would be a taker)
Implementations§
Source§impl BinanceOrderType
impl BinanceOrderType
Sourcepub fn to_smartstring(&self) -> String
pub fn to_smartstring(&self) -> String
Converts order type to smartstring format
Trait Implementations§
Source§impl Clone for BinanceOrderType
impl Clone for BinanceOrderType
Source§fn clone(&self) -> BinanceOrderType
fn clone(&self) -> BinanceOrderType
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BinanceOrderType
impl Debug for BinanceOrderType
Source§impl PartialEq for BinanceOrderType
impl PartialEq for BinanceOrderType
impl Copy for BinanceOrderType
impl Eq for BinanceOrderType
impl StructuralPartialEq for BinanceOrderType
Auto Trait Implementations§
impl Freeze for BinanceOrderType
impl RefUnwindSafe for BinanceOrderType
impl Send for BinanceOrderType
impl Sync for BinanceOrderType
impl Unpin for BinanceOrderType
impl UnwindSafe for BinanceOrderType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more