pub struct NewOcoOrderParams {Show 14 fields
pub symbol: String,
pub side: BinanceSide,
pub quantity: String,
pub price: String,
pub stop_price: String,
pub stop_limit_price: Option<String>,
pub list_client_order_id: Option<String>,
pub limit_client_order_id: Option<String>,
pub stop_client_order_id: Option<String>,
pub limit_iceberg_qty: Option<String>,
pub stop_iceberg_qty: Option<String>,
pub stop_limit_time_in_force: Option<BinanceTimeInForce>,
pub new_order_resp_type: Option<BinanceOrderResponseType>,
pub self_trade_prevention_mode: Option<BinanceSelfTradePreventionMode>,
}Expand description
Query parameters for new OCO order.
Fields§
§symbol: StringTrading pair symbol.
side: BinanceSideOrder side.
quantity: StringOrder quantity.
price: StringLimit price (above-market for sell, below-market for buy).
stop_price: StringStop price trigger.
stop_limit_price: Option<String>Stop limit price (optional, creates stop-limit if provided).
list_client_order_id: Option<String>Client order ID for the entire list.
limit_client_order_id: Option<String>Client order ID for the limit order.
stop_client_order_id: Option<String>Client order ID for the stop order.
limit_iceberg_qty: Option<String>Iceberg quantity for the limit leg.
stop_iceberg_qty: Option<String>Iceberg quantity for the stop leg.
stop_limit_time_in_force: Option<BinanceTimeInForce>Time in force for the stop-limit leg.
new_order_resp_type: Option<BinanceOrderResponseType>Response type.
self_trade_prevention_mode: Option<BinanceSelfTradePreventionMode>Self-trade prevention mode.
Implementations§
Source§impl NewOcoOrderParams
impl NewOcoOrderParams
Sourcepub fn new(
symbol: impl Into<String>,
side: BinanceSide,
quantity: impl Into<String>,
price: impl Into<String>,
stop_price: impl Into<String>,
) -> Self
pub fn new( symbol: impl Into<String>, side: BinanceSide, quantity: impl Into<String>, price: impl Into<String>, stop_price: impl Into<String>, ) -> Self
Create new OCO order params.
Sourcepub fn with_stop_limit_price(self, price: impl Into<String>) -> Self
pub fn with_stop_limit_price(self, price: impl Into<String>) -> Self
Set stop limit price (makes stop leg a stop-limit order).
Trait Implementations§
Source§impl Clone for NewOcoOrderParams
impl Clone for NewOcoOrderParams
Source§fn clone(&self) -> NewOcoOrderParams
fn clone(&self) -> NewOcoOrderParams
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 NewOcoOrderParams
impl Debug for NewOcoOrderParams
Auto Trait Implementations§
impl Freeze for NewOcoOrderParams
impl RefUnwindSafe for NewOcoOrderParams
impl Send for NewOcoOrderParams
impl Sync for NewOcoOrderParams
impl Unpin for NewOcoOrderParams
impl UnwindSafe for NewOcoOrderParams
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