fetch_lighter_account_by_index

Documentation for eth_defi.lighter.valuation.fetch_lighter_account_by_index function.

fetch_lighter_account_by_index(session, account_index, timeout=30.0)

Fetch a raw Lighter account dict by account index.

Parameters
Returns

Raw account dict from the first accounts response item.

Raises

ValueError – If the response contains no accounts.

Return type

dict[str, Any]