pub struct OrderInfo {
pub market_index: i64,
pub client_order_index: i64,
pub base_amount: i64,
pub price: u32,
pub is_ask: bool,
pub order_type: u8,
pub time_in_force: u8,
pub reduce_only: bool,
pub trigger_price: u32,
pub order_expiry: i64,
}Expand description
Common per-order body fields shared by CreateOrderTxInfo and the
not-yet-implemented CreateGroupedOrders variant.
Fields§
§market_index: i64Market identifier in the venue’s 64-bit allocation. Legacy markets keep
their range-partitioned ids (perps 0..=254, spot 2048..=4094);
markets listed after the September 2026 upgrade take the next free
index from 4095 for either product type.
client_order_index: i64Caller-supplied unique-per-account order index.
base_amount: i64Order size in base-asset ticks.
price: u32Limit / trigger price in quote-asset ticks.
is_ask: booltrue for a sell, false for a buy. Wire-encoded as 1 or 0.
order_type: u8Order type discriminant; see LighterOrderType for the mapping.
time_in_force: u8Time-in-force discriminant; see LighterTimeInForce for the mapping.
reduce_only: booltrue for a reduce-only order. Wire-encoded as 1 or 0.
trigger_price: u32Trigger price for stop / take-profit variants; 0 when unused.
order_expiry: i64Order expiry in milliseconds; 0 for IOC, -1 for the venue default.
Trait Implementations§
impl Copy for OrderInfo
impl Eq for OrderInfo
impl StructuralPartialEq for OrderInfo
Auto Trait Implementations§
impl Freeze for OrderInfo
impl RefUnwindSafe for OrderInfo
impl Send for OrderInfo
impl Sync for OrderInfo
impl Unpin for OrderInfo
impl UnsafeUnpin for OrderInfo
impl UnwindSafe for OrderInfo
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<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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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