pub struct BinanceNewAlgoOrderParams {Show 18 fields
pub symbol: String,
pub side: BinanceSide,
pub order_type: BinanceFuturesOrderType,
pub algo_type: BinanceAlgoType,
pub position_side: Option<BinancePositionSide>,
pub quantity: Option<String>,
pub price: Option<String>,
pub trigger_price: Option<String>,
pub time_in_force: Option<BinanceTimeInForce>,
pub working_type: Option<BinanceWorkingType>,
pub close_position: Option<bool>,
pub price_protect: Option<bool>,
pub reduce_only: Option<bool>,
pub activation_price: Option<String>,
pub callback_rate: Option<String>,
pub client_algo_id: Option<String>,
pub good_till_date: Option<i64>,
pub recv_window: Option<u64>,
}Expand description
Query parameters for POST /fapi/v1/algoOrder (new algo order).
§References
Fields§
§symbol: StringTrading symbol (required).
side: BinanceSideOrder side (required).
order_type: BinanceFuturesOrderTypeOrder type (required): STOP_MARKET, STOP, TAKE_PROFIT, TAKE_PROFIT_MARKET, TRAILING_STOP_MARKET.
algo_type: BinanceAlgoTypeAlgo type (required). Currently only Conditional is supported.
position_side: Option<BinancePositionSide>Position side (required for hedge mode).
quantity: Option<String>Order quantity.
price: Option<String>Limit price (for STOP/TAKE_PROFIT limit orders).
trigger_price: Option<String>Trigger price for conditional order (required).
time_in_force: Option<BinanceTimeInForce>Time in force.
working_type: Option<BinanceWorkingType>Working type for trigger price calculation (MARK_PRICE or CONTRACT_PRICE).
close_position: Option<bool>Close all position flag.
price_protect: Option<bool>Price protection flag.
reduce_only: Option<bool>Reduce-only flag.
activation_price: Option<String>Activation price for TRAILING_STOP_MARKET orders.
callback_rate: Option<String>Callback rate for TRAILING_STOP_MARKET orders (0.1 to 10, where 1 = 1%).
client_algo_id: Option<String>Client algo order ID for idempotency.
good_till_date: Option<i64>Good till date for GTD orders (milliseconds).
recv_window: Option<u64>Recv window override (ms).
Trait Implementations§
Source§impl Clone for BinanceNewAlgoOrderParams
impl Clone for BinanceNewAlgoOrderParams
Source§fn clone(&self) -> BinanceNewAlgoOrderParams
fn clone(&self) -> BinanceNewAlgoOrderParams
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BinanceNewAlgoOrderParams
impl Debug for BinanceNewAlgoOrderParams
Auto Trait Implementations§
impl Freeze for BinanceNewAlgoOrderParams
impl RefUnwindSafe for BinanceNewAlgoOrderParams
impl Send for BinanceNewAlgoOrderParams
impl Sync for BinanceNewAlgoOrderParams
impl Unpin for BinanceNewAlgoOrderParams
impl UnsafeUnpin for BinanceNewAlgoOrderParams
impl UnwindSafe for BinanceNewAlgoOrderParams
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
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>
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>
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