pub struct CreateOrderParams {Show 15 fields
pub symbol: String,
pub side: CreateSide,
pub order_type: CreateOrderType,
pub quantity: Option<Quantity>,
pub max_quote_debit_scaled: Option<i64>,
pub price: Option<Price>,
pub time_in_force: Option<CreateTimeInForce>,
pub client_order_id: Option<String>,
pub subaccount_id: Option<u64>,
pub post_only: Option<bool>,
pub market_client_ref_price: Option<Price>,
pub fee_asset: Option<FeeAsset>,
pub self_trade_prevention: Option<OrderSelfTradePrevention>,
pub market_max_slippage: Option<MaxSlippage>,
pub attached_risk: Option<AttachedRisk>,
}Fields§
§symbol: String§side: CreateSide§order_type: CreateOrderType§quantity: Option<Quantity>Base quantity. Set exactly one of this and max_quote_debit_scaled.
max_quote_debit_scaled: Option<i64>Hard all-in quote debit limit in the pair’s quote quantity scale. Set
exactly one of this and quantity.
price: Option<Price>§time_in_force: Option<CreateTimeInForce>§client_order_id: Option<String>Optional client order id (API-optional).
Set a stable non-empty value when you may retry after an ambiguous failure
(Error::mutation_outcome_unknown), and reuse that same value on retry.
Omit (None) for one-shot creates where you will not reconcile by client id.
subaccount_id: Option<u64>§post_only: Option<bool>§market_client_ref_price: Option<Price>Client reference price for MARKET order reservation (price ticks domain).
fee_asset: Option<FeeAsset>Fee asset. Base is valid only for BUY orders; SELL orders use Quote.
self_trade_prevention: Option<OrderSelfTradePrevention>Self-trade prevention policy for this order.
market_max_slippage: Option<MaxSlippage>Optional market-order slippage guard.
attached_risk: Option<AttachedRisk>Optional TP/SL/trailing controls that arm after the parent fills.
Trait Implementations§
Source§impl Clone for CreateOrderParams
impl Clone for CreateOrderParams
Source§fn clone(&self) -> CreateOrderParams
fn clone(&self) -> CreateOrderParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CreateOrderParams
impl RefUnwindSafe for CreateOrderParams
impl Send for CreateOrderParams
impl Sync for CreateOrderParams
impl Unpin for CreateOrderParams
impl UnsafeUnpin for CreateOrderParams
impl UnwindSafe for CreateOrderParams
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