pub async fn collect_snapshot(
http: &KalshiHttpClient,
account: &AccountQuery,
lookback_start: Option<UnixNanos>,
max_pages: u32,
) -> Result<KalshiExecutionSnapshot, KalshiHttpError>Expand description
Collects execution evidence without inventing missing command metadata.
Open orders and current positions have no history bound. Closed orders include every collected fill’s order, including orders updated before the requested window. Live reads precede archive reads to cover forward handoffs. Each source must exhaust pagination; conflicts fail collection. The original initialization timestamp precedes all requests and survives collection unchanged.
§Errors
Returns an error if bounds or timestamps are invalid, pagination is incomplete, records conflict or lack scope, fills lack order evidence, or any source fails.