pub enum OrderFlag {
Post,
FeesInBase,
FeesInQuote,
NoMarketPriceProtection,
OrderVolumeInQuote,
}
Expand description
Flags that can be applied to order requests.
Variants§
Post
Post only order will be rejected if it would pay maker fees
FeesInBase
Fees should be taken in the base currency (default for sell)
FeesInQuote
Fees should be taken in the quote currency (default for buy)
NoMarketPriceProtection
Disable extreme slippage protection for this order
OrderVolumeInQuote
For market orders, give order volume in quote currency
Trait Implementations§
Source§impl<'de> Deserialize<'de> for OrderFlag
impl<'de> Deserialize<'de> for OrderFlag
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 From<OrderFlag> for OrderFlags
impl From<OrderFlag> for OrderFlags
impl Copy for OrderFlag
impl Eq for OrderFlag
impl StructuralPartialEq for OrderFlag
Auto Trait Implementations§
impl Freeze for OrderFlag
impl RefUnwindSafe for OrderFlag
impl Send for OrderFlag
impl Sync for OrderFlag
impl Unpin for OrderFlag
impl UnwindSafe for OrderFlag
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,
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.