pub struct AddOrderRequest {Show 20 fields
pub pair: String,
pub side: BuySell,
pub ordertype: OrderType,
pub volume: Decimal,
pub displayvol: Option<Decimal>,
pub price: Option<Decimal>,
pub price2: Option<Decimal>,
pub trigger: Option<String>,
pub leverage: Option<String>,
pub reduce_only: Option<bool>,
pub stptype: Option<String>,
pub oflags: Option<String>,
pub timeinforce: Option<String>,
pub starttm: Option<String>,
pub expiretm: Option<String>,
pub userref: Option<i64>,
pub validate: Option<bool>,
pub close_ordertype: Option<OrderType>,
pub close_price: Option<Decimal>,
pub close_price2: Option<Decimal>,
}Expand description
Request to add an order.
Fields§
§pair: StringAsset pair.
side: BuySellOrder side (buy/sell).
ordertype: OrderTypeOrder type.
volume: DecimalOrder volume.
displayvol: Option<Decimal>Display volume for iceberg orders.
price: Option<Decimal>Price (limit price for limit orders, trigger price for stop orders).
price2: Option<Decimal>Secondary price (limit price for stop-limit orders).
trigger: Option<String>Price type for triggered orders.
leverage: Option<String>Leverage.
reduce_only: Option<bool>Reduce only flag.
stptype: Option<String>Self trade prevention.
oflags: Option<String>Order flags (comma-separated).
timeinforce: Option<String>Time in force.
starttm: Option<String>Scheduled start time.
expiretm: Option<String>Expiration time.
userref: Option<i64>User reference ID.
validate: Option<bool>Validate only (don’t submit).
close_ordertype: Option<OrderType>Close order type.
close_price: Option<Decimal>Close order price.
close_price2: Option<Decimal>Close order secondary price.
Implementations§
Trait Implementations§
Source§impl Clone for AddOrderRequest
impl Clone for AddOrderRequest
Source§fn clone(&self) -> AddOrderRequest
fn clone(&self) -> AddOrderRequest
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 AddOrderRequest
impl Debug for AddOrderRequest
Auto Trait Implementations§
impl Freeze for AddOrderRequest
impl RefUnwindSafe for AddOrderRequest
impl Send for AddOrderRequest
impl Sync for AddOrderRequest
impl Unpin for AddOrderRequest
impl UnwindSafe for AddOrderRequest
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