pub struct BinanceNewOrderParams {Show 20 fields
pub symbol: String,
pub side: BinanceSide,
pub order_type: BinanceFuturesOrderType,
pub position_side: Option<BinancePositionSide>,
pub time_in_force: Option<BinanceTimeInForce>,
pub quantity: Option<String>,
pub reduce_only: Option<bool>,
pub price: Option<String>,
pub new_client_order_id: Option<String>,
pub stop_price: Option<String>,
pub close_position: Option<bool>,
pub activation_price: Option<String>,
pub callback_rate: Option<String>,
pub working_type: Option<BinanceWorkingType>,
pub price_protect: Option<bool>,
pub new_order_resp_type: Option<String>,
pub good_till_date: Option<i64>,
pub recv_window: Option<u64>,
pub price_match: Option<BinancePriceMatch>,
pub self_trade_prevention_mode: Option<BinanceSelfTradePreventionMode>,
}Expand description
Query parameters for POST /fapi/v1/order (new order).
Fields§
§symbol: StringTrading symbol (required).
side: BinanceSideOrder side (required).
order_type: BinanceFuturesOrderTypeOrder type (required).
position_side: Option<BinancePositionSide>Position side (required for hedge mode).
time_in_force: Option<BinanceTimeInForce>Time in force.
quantity: Option<String>Order quantity.
reduce_only: Option<bool>Reduce only flag.
price: Option<String>Limit price.
new_client_order_id: Option<String>Client order ID.
stop_price: Option<String>Stop price.
close_position: Option<bool>Close position flag.
activation_price: Option<String>Activation price for trailing stop.
callback_rate: Option<String>Callback rate for trailing stop.
working_type: Option<BinanceWorkingType>Working type (MARK_PRICE or CONTRACT_PRICE).
price_protect: Option<bool>Price protect flag.
new_order_resp_type: Option<String>Response type (ACK, RESULT, FULL).
good_till_date: Option<i64>Good till date (for GTD orders).
recv_window: Option<u64>Recv window override (ms).
price_match: Option<BinancePriceMatch>Price match mode for algorithmic price matching.
self_trade_prevention_mode: Option<BinanceSelfTradePreventionMode>Self-trade prevention mode.
Trait Implementations§
Source§impl Clone for BinanceNewOrderParams
impl Clone for BinanceNewOrderParams
Source§fn clone(&self) -> BinanceNewOrderParams
fn clone(&self) -> BinanceNewOrderParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BinanceNewOrderParams
impl Debug for BinanceNewOrderParams
Source§impl<'de> Deserialize<'de> for BinanceNewOrderParams
impl<'de> Deserialize<'de> for BinanceNewOrderParams
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
Auto Trait Implementations§
impl Freeze for BinanceNewOrderParams
impl RefUnwindSafe for BinanceNewOrderParams
impl Send for BinanceNewOrderParams
impl Sync for BinanceNewOrderParams
impl Unpin for BinanceNewOrderParams
impl UnsafeUnpin for BinanceNewOrderParams
impl UnwindSafe for BinanceNewOrderParams
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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