pub struct DeribitOrderMsg {Show 22 fields
pub order_id: String,
pub label: Option<String>,
pub instrument_name: Ustr,
pub direction: String,
pub order_type: String,
pub order_state: String,
pub price: Option<Decimal>,
pub amount: Decimal,
pub filled_amount: Decimal,
pub average_price: Option<Decimal>,
pub creation_timestamp: u64,
pub last_update_timestamp: u64,
pub time_in_force: String,
pub commission: Decimal,
pub post_only: bool,
pub reduce_only: bool,
pub trigger_price: Option<Decimal>,
pub trigger: Option<String>,
pub max_show: Option<Decimal>,
pub api: bool,
pub reject_reason: Option<String>,
pub cancel_reason: Option<String>,
}Expand description
Order message structure from Deribit.
Received from order responses and user.orders subscription.
Fields§
§order_id: StringUnique order ID assigned by Deribit.
label: Option<String>User-defined label (client order ID).
instrument_name: UstrInstrument name.
direction: StringOrder direction: “buy” or “sell”.
order_type: StringOrder type: “limit”, “market”, “stop_limit”, “stop_market”, “take_limit”, “take_market”.
order_state: StringOrder state: “open”, “filled”, “rejected”, “cancelled”, “untriggered”.
price: Option<Decimal>Limit price (None for market orders).
amount: DecimalOriginal order amount in contracts.
filled_amount: DecimalAmount filled so far.
average_price: Option<Decimal>Average fill price.
creation_timestamp: u64Order creation timestamp in milliseconds.
last_update_timestamp: u64Last update timestamp in milliseconds.
time_in_force: StringTime in force setting.
commission: DecimalCommission paid in base currency.
post_only: boolPost-only flag.
reduce_only: boolReduce-only flag.
trigger_price: Option<Decimal>Trigger price for stop/take orders.
trigger: Option<String>Trigger type: “last_price”, “index_price”, “mark_price”.
max_show: Option<Decimal>Max show quantity for iceberg orders.
api: boolAPI request flag.
reject_reason: Option<String>Reject reason if order was rejected.
cancel_reason: Option<String>Cancel reason if order was cancelled.
Trait Implementations§
Source§impl Clone for DeribitOrderMsg
impl Clone for DeribitOrderMsg
Source§fn clone(&self) -> DeribitOrderMsg
fn clone(&self) -> DeribitOrderMsg
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DeribitOrderMsg
impl Debug for DeribitOrderMsg
Source§impl<'de> Deserialize<'de> for DeribitOrderMsg
impl<'de> Deserialize<'de> for DeribitOrderMsg
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 DeribitOrderMsg
impl RefUnwindSafe for DeribitOrderMsg
impl Send for DeribitOrderMsg
impl Sync for DeribitOrderMsg
impl Unpin for DeribitOrderMsg
impl UnsafeUnpin for DeribitOrderMsg
impl UnwindSafe for DeribitOrderMsg
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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