pub struct OrderPostQuery {Show 13 fields
pub symbol: String,
pub side: OrderSide,
pub type: OrderType,
pub time_in_force: Option<OrderTimeInForce>,
pub quantity: Option<Decimal>,
pub quote_order_qty: Option<Decimal>,
pub price: Option<Decimal>,
pub new_client_order_id: Option<String>,
pub stop_price: Option<Decimal>,
pub iceberg_qty: Option<Decimal>,
pub new_order_resp_type: Option<Type>,
pub recv_window: Option<i64>,
pub timestamp: i64,
}Expand description
The https://www.binance.com/api/v3/order POST request query.
Fields§
§symbol: StringThe symbol name.
side: OrderSideThe order side.
type: OrderTypeThe order type.
time_in_force: Option<OrderTimeInForce>The order time-in-force.
quantity: Option<Decimal>The order quantity in the secondary asset.
quote_order_qty: Option<Decimal>The order quantity in the primary asset.
price: Option<Decimal>The order price. Required for limit orders.
new_client_order_id: Option<String>A unique id for the order. Automatically generated if not sent.
stop_price: Option<Decimal>Used with STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, and TAKE_PROFIT_LIMIT orders.
iceberg_qty: Option<Decimal>The iceberg order quantity.
new_order_resp_type: Option<Type>Set the response JSON. ACK, RESULT, or FULL; MARKET and LIMIT order types default to FULL, all other orders default to ACK.
recv_window: Option<i64>The allowed time window between the request and response in milliseconds.
timestamp: i64The request time in milliseconds.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Query
impl RefUnwindSafe for Query
impl Send for Query
impl Sync for Query
impl Unpin for Query
impl UnwindSafe for Query
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more