pub struct DeriveOrder {Show 29 fields
pub amount: Decimal,
pub average_price: Decimal,
pub cancel_reason: DeriveOrderCancelReason,
pub creation_timestamp: i64,
pub direction: DeriveOrderSide,
pub filled_amount: Decimal,
pub instrument_name: Ustr,
pub is_transfer: bool,
pub label: Ustr,
pub last_update_timestamp: i64,
pub limit_price: Decimal,
pub max_fee: Decimal,
pub mmp: bool,
pub nonce: i64,
pub order_fee: Decimal,
pub order_id: String,
pub order_status: DeriveOrderStatus,
pub order_type: DeriveOrderType,
pub quote_id: Option<String>,
pub replaced_order_id: Option<String>,
pub signature: String,
pub signature_expiry_sec: i64,
pub signer: Ustr,
pub subaccount_id: i64,
pub time_in_force: DeriveTimeInForce,
pub trigger_price: Option<Decimal>,
pub trigger_price_type: Option<DeriveTriggerPriceType>,
pub trigger_reject_message: Option<String>,
pub trigger_type: Option<DeriveTriggerType>,
}Expand description
Order record returned by private/order, private/get_orders,
private/get_order_history, and the {subaccount_id}.orders WS channel.
Fields§
§amount: DecimalOrder amount in base units.
average_price: DecimalAverage fill price.
cancel_reason: DeriveOrderCancelReasonCancel reason; DeriveOrderCancelReason::Empty when not cancelled.
creation_timestamp: i64Creation timestamp (UNIX ms).
direction: DeriveOrderSideOrder side.
filled_amount: DecimalCumulative filled amount.
instrument_name: UstrInstrument identifier.
is_transfer: boolWhether this order was generated via private/transfer_position.
label: UstrFree-form user label.
last_update_timestamp: i64Last update timestamp (UNIX ms).
limit_price: DecimalLimit price in quote currency.
max_fee: DecimalMax fee in quote currency signed into the order.
mmp: boolWhether MMP tags this order.
nonce: i64Order nonce.
order_fee: DecimalTotal fees paid against this order.
order_id: StringVenue-assigned order ID (UUID-shaped).
order_status: DeriveOrderStatusOrder status.
order_type: DeriveOrderTypeOrder type.
quote_id: Option<String>RFQ quote ID when the order is an RFQ execution.
replaced_order_id: Option<String>Replaced order ID when this order resulted from a replace.
signature: String65-byte order signature, 0x-prefixed hex.
signature_expiry_sec: i64Signature expiry (UNIX seconds).
signer: UstrSession-key signer address.
subaccount_id: i64Owning subaccount.
time_in_force: DeriveTimeInForceTime-in-force.
trigger_price: Option<Decimal>Trigger price for trigger orders.
trigger_price_type: Option<DeriveTriggerPriceType>Trigger price source for trigger orders.
trigger_reject_message: Option<String>Trigger rejection text when the trigger worker cannot submit.
trigger_type: Option<DeriveTriggerType>Stop-loss or take-profit trigger flag.
Trait Implementations§
Source§impl Clone for DeriveOrder
impl Clone for DeriveOrder
Source§fn clone(&self) -> DeriveOrder
fn clone(&self) -> DeriveOrder
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DeriveOrder
impl Debug for DeriveOrder
Source§impl<'de> Deserialize<'de> for DeriveOrder
impl<'de> Deserialize<'de> for DeriveOrder
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for DeriveOrder
impl RefUnwindSafe for DeriveOrder
impl Send for DeriveOrder
impl Sync for DeriveOrder
impl Unpin for DeriveOrder
impl UnsafeUnpin for DeriveOrder
impl UnwindSafe for DeriveOrder
Blanket Implementations§
impl<T> Allocation for T
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
impl<'de, T> BorrowedRpcObject<'de> for T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more