pub struct Order {Show 27 fields
pub id: String,
pub subaccount_id: String,
pub client_id: String,
pub clob_pair_id: u32,
pub side: OrderSide,
pub size: Decimal,
pub total_filled: Decimal,
pub price: Decimal,
pub status: DydxOrderStatus,
pub order_type: DydxOrderType,
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: Option<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: Option<DateTime<Utc>>,
pub updated_at_height: Option<u64>,
pub ticker: Option<String>,
pub subaccount_number: u32,
pub order_router_address: Option<String>,
}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.
total_filled: DecimalTotal filled size.
price: DecimalLimit price.
status: DydxOrderStatusOrder status.
order_type: DydxOrderTypeOrder 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: Option<u64>Creation height (not present for BEST_EFFORT_OPENED orders).
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: Option<DateTime<Utc>>Updated timestamp (not present for BEST_EFFORT_OPENED orders).
updated_at_height: Option<u64>Updated height (not present for BEST_EFFORT_OPENED orders).
ticker: Option<String>Ticker symbol (e.g., “BTC-USD”).
subaccount_number: u32Subaccount number.
order_router_address: Option<String>Order router address (empty string treated as None).
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>,
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§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)§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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
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>,
Layered].