pub struct KalshiExecutionSnapshot {
pub orders: Vec<Order>,
pub fills: Vec<Fill>,
pub positions: Vec<MarketPosition>,
pub positions_settled: Vec<MarketPosition>,
pub cutoff: HistoricalCutoff,
pub lookback_start: Option<UnixNanos>,
pub ts_init: UnixNanos,
}Expand description
Complete REST source collection for one subaccount and shard.
Records retain the venue’s values and omissions. Separate requests are not an atomic account snapshot. Settled positions are historical evidence, not current exposure or synthetic fills. For nonzero subaccounts, orders and fills require explicit matching subaccount identity.
Fields§
§orders: Vec<Order>Orders retained for the shard, including resting orders, orders inside the lookback, and orders linked to retained fills.
fills: Vec<Fill>Fills for the shard within the optional lookback and no later than ts_init.
positions: Vec<MarketPosition>Current positions for the shard from the live positions endpoint.
positions_settled: Vec<MarketPosition>Settled-position evidence for the shard from live and historical sources, not current exposure.
cutoff: HistoricalCutoffVenue cutoffs used to route live and historical collection.
lookback_start: Option<UnixNanos>Inclusive start of the order and fill lookback, or None for unbounded history.
ts_init: UnixNanosTimestamp captured before any source requests and preserved unchanged.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KalshiExecutionSnapshot
impl RefUnwindSafe for KalshiExecutionSnapshot
impl Send for KalshiExecutionSnapshot
impl Sync for KalshiExecutionSnapshot
impl Unpin for KalshiExecutionSnapshot
impl UnsafeUnpin for KalshiExecutionSnapshot
impl UnwindSafe for KalshiExecutionSnapshot
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
§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