pub struct ModifyOrderParams {
pub header: TrdHeader,
pub order_id: u64,
pub order_id_ex: Option<String>,
pub modify_order_op: ModifyOrderOp,
pub qty: Option<f64>,
pub price: Option<f64>,
pub for_all: Option<bool>,
pub idempotency_key: Option<String>,
}Expand description
改单参数
Fields§
§header: TrdHeader§order_id: u64§order_id_ex: Option<String>v1.4.110: backend/server order id string (orderIDEx).
C++ accepts this as an alternative to orderID and hashes it back to
orderID at APIServer entry.
modify_order_op: ModifyOrderOp§qty: Option<f64>§price: Option<f64>§for_all: Option<bool>§idempotency_key: Option<String>v1.4.39: 可选幂等键。同 PlaceOrderParams.idempotency_key。
Trait Implementations§
Source§impl Clone for ModifyOrderParams
impl Clone for ModifyOrderParams
Source§fn clone(&self) -> ModifyOrderParams
fn clone(&self) -> ModifyOrderParams
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 moreAuto Trait Implementations§
impl Freeze for ModifyOrderParams
impl RefUnwindSafe for ModifyOrderParams
impl Send for ModifyOrderParams
impl Sync for ModifyOrderParams
impl Unpin for ModifyOrderParams
impl UnsafeUnpin for ModifyOrderParams
impl UnwindSafe for ModifyOrderParams
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