pub struct Order {Show 24 fields
pub id: String,
pub subaccount_id: String,
pub client_id: String,
pub clob_pair_id: u32,
pub side: OrderSide,
pub size: Decimal,
pub remaining_size: Decimal,
pub price: Decimal,
pub status: DydxOrderStatus,
pub order_type: String,
pub time_in_force: DydxTimeInForce,
pub reduce_only: bool,
pub post_only: bool,
pub order_flags: u32,
pub good_til_block: Option<u64>,
pub good_til_block_time: Option<DateTime<Utc>>,
pub created_at_height: u64,
pub client_metadata: u32,
pub trigger_price: Option<Decimal>,
pub condition_type: Option<DydxConditionType>,
pub conditional_order_trigger_subticks: Option<u64>,
pub execution: Option<DydxOrderExecution>,
pub updated_at: DateTime<Utc>,
pub updated_at_height: u64,
}Expand description
Order information.
Fields§
§id: StringUnique order ID.
subaccount_id: StringSubaccount ID.
client_id: StringClient-provided order ID.
clob_pair_id: u32CLOB pair ID.
side: OrderSideOrder side.
size: DecimalOrder size.
remaining_size: DecimalRemaining size to be filled.
price: DecimalLimit price.
status: DydxOrderStatusOrder status.
order_type: StringOrder type (LIMIT, MARKET, etc.).
time_in_force: DydxTimeInForceTime-in-force.
reduce_only: boolReduce-only flag.
post_only: boolPost-only flag.
order_flags: u32Order flags (bitfield).
good_til_block: Option<u64>Good-til-block (for short-term orders).
good_til_block_time: Option<DateTime<Utc>>Good-til-time (ISO8601).
created_at_height: u64Creation height.
client_metadata: u32Client metadata.
trigger_price: Option<Decimal>Trigger price (for conditional orders).
condition_type: Option<DydxConditionType>Condition type (STOP_LOSS, TAKE_PROFIT, UNSPECIFIED).
conditional_order_trigger_subticks: Option<u64>Conditional order trigger in subticks.
execution: Option<DydxOrderExecution>Order execution type.
updated_at: DateTime<Utc>Updated timestamp.
updated_at_height: u64Updated height.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Order
impl<'de> Deserialize<'de> for Order
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Order
impl RefUnwindSafe for Order
impl Send for Order
impl Sync for Order
impl Unpin for Order
impl UnwindSafe for Order
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
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>
Converts
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>
Converts
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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].