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<Quantity>,
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<Quantity>Hard all-in quote debit limit. The Quantity must use
crate::types::QuantityDomain::OrderQuote and carry the pair’s
catalog quote 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
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more