parse_lighter_pool_snapshot

Documentation for eth_defi.lighter.vault.parse_lighter_pool_snapshot function.

parse_lighter_pool_snapshot(account, pool_info, snapshot_timestamp)

Build a point-in-time pool snapshot from one account response.

Captures every current account/pool collection exposed by the public API while deriving queryable exposure aggregates from positions. Historical share-price and return arrays are excluded because the daily-history pipeline handles them separately.

Parameters
  • account (dict[str, Any]) – Raw account object from /api/v1/account.

  • pool_info (dict[str, Any]) – Raw account["pool_info"] object.

  • snapshot_timestamp (datetime.datetime) – Naive UTC observation timestamp.

Returns

Parsed point-in-time snapshot.

Return type

eth_defi.lighter.vault.LighterPoolSnapshot