Enum binance::rest_model::OrderType [−][src]
pub enum OrderType {
Limit,
Market,
StopLoss,
StopLossLimit,
TakeProfit,
TakeProfitLimit,
LimitMaker,
Other,
}
Expand description
Order types, the following restrictions apply LIMIT_MAKER are LIMIT orders that will be rejected if they would immediately match and trade as a taker. STOP_LOSS and TAKE_PROFIT will execute a MARKET order when the stopPrice is reached. Any LIMIT or LIMIT_MAKER type order can be made an iceberg order by sending an icebergQty. Any order with an icebergQty MUST have timeInForce set to GTC. MARKET orders using quantity specifies how much a user wants to buy or sell based on the market price. MARKET orders using quoteOrderQty specifies the amount the user wants to spend (when buying) or receive (when selling) of the quote asset; the correct quantity will be determined based on the market liquidity and quoteOrderQty. MARKET orders using quoteOrderQty will not break LOT_SIZE filter rules; the order will execute a quantity that will have the notional value as close as possible to quoteOrderQty.
Variants
Limit
Market
StopLoss
StopLossLimit
TakeProfit
TakeProfitLimit
LimitMaker
Other
Trait Implementations
By default, use market orders
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
Auto Trait Implementations
impl RefUnwindSafe for OrderType
impl UnwindSafe for OrderType
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more