fetch_pool_detail
Documentation for eth_defi.lighter.vault.fetch_pool_detail function.
- fetch_pool_detail(session, account_index, timeout=30.0)
Fetch detailed pool data including share price history.
Uses
/api/v1/account?by=index&value={account_index}. The response includespool_infowithshare_pricesanddaily_returnsarrays for pool accounts. See the Lighter account API reference.- Parameters
session (eth_defi.lighter.session.LighterSession) – HTTP session.
account_index (int) – Pool account index.
timeout (float) – HTTP request timeout.
- Returns
LighterPoolDetailwith share-price history and the current point-in-time account/pool snapshot.- Return type