pub struct LimitOrderParams {
pub instrument_id: InstrumentId,
pub client_order_id: u32,
pub client_metadata: u32,
pub side: OrderSide,
pub price: Price,
pub quantity: Quantity,
pub time_in_force: TimeInForce,
pub post_only: bool,
pub reduce_only: bool,
pub expire_time_ns: Option<UnixNanos>,
}Expand description
Parameters for a limit order in batch submission.
Fields§
§instrument_id: InstrumentIdInstrument to trade.
client_order_id: u32Client-assigned order ID (u32 for dYdX protocol).
client_metadata: u32Client metadata for bidirectional ClientOrderId encoding. Used to store identity bits (trader/strategy/count) for deterministic decoding.
side: OrderSideOrder side (Buy or Sell).
price: PriceLimit price.
quantity: QuantityOrder quantity.
time_in_force: TimeInForceTime in force.
post_only: boolWhether this is a post-only order.
reduce_only: boolWhether this is a reduce-only order.
expire_time_ns: Option<UnixNanos>Optional expiration timestamp (nanoseconds since epoch). The builder will convert this to seconds and apply default_short_term_expiry if configured.
Trait Implementations§
Source§impl Clone for LimitOrderParams
impl Clone for LimitOrderParams
Source§fn clone(&self) -> LimitOrderParams
fn clone(&self) -> LimitOrderParams
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 LimitOrderParams
impl RefUnwindSafe for LimitOrderParams
impl Send for LimitOrderParams
impl Sync for LimitOrderParams
impl Unpin for LimitOrderParams
impl UnsafeUnpin for LimitOrderParams
impl UnwindSafe for LimitOrderParams
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<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].