pub struct PreviewOrderParams {
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 subaccount_id: Option<u64>,
pub post_only: Option<bool>,
pub market_client_ref_price: Option<Price>,
pub fee_asset: Option<FeeAsset>,
pub market_max_slippage: Option<MaxSlippage>,
}Expand description
Order inputs accepted by crate::services::OrdersService::preview.
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>§subaccount_id: Option<u64>§post_only: Option<bool>§market_client_ref_price: Option<Price>§fee_asset: Option<FeeAsset>§market_max_slippage: Option<MaxSlippage>Trait Implementations§
Source§impl Clone for PreviewOrderParams
impl Clone for PreviewOrderParams
Source§fn clone(&self) -> PreviewOrderParams
fn clone(&self) -> PreviewOrderParams
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 PreviewOrderParams
impl RefUnwindSafe for PreviewOrderParams
impl Send for PreviewOrderParams
impl Sync for PreviewOrderParams
impl Unpin for PreviewOrderParams
impl UnsafeUnpin for PreviewOrderParams
impl UnwindSafe for PreviewOrderParams
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