Struct binance_client::OrderPostQuery [−][src]
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<ResponseType>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
impl Query[src]
pub fn market(
symbol: &str,
side: OrderSide,
quantity: Decimal,
use_base_quantity: bool
) -> Self[src]
symbol: &str,
side: OrderSide,
quantity: Decimal,
use_base_quantity: bool
) -> Self
Creates a market order request.
pub fn limit(
symbol: &str,
side: OrderSide,
quantity: Decimal,
price: Decimal
) -> Self[src]
symbol: &str,
side: OrderSide,
quantity: Decimal,
price: Decimal
) -> Self
Creates a limit order request.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Query[src]
impl Send for Query[src]
impl Sync for Query[src]
impl Unpin for Query[src]
impl UnwindSafe for Query[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,
impl<T> Typeable for T where
T: Any,
T: Any,