LighterPoolSummary
Documentation for eth_defi.lighter.vault.LighterPoolSummary Python class.
- class LighterPoolSummary
Bases:
objectSummary information for a Lighter pool from the bulk listing.
From
/api/v1/publicPoolsMetadata.Attributes summary
Pool account index (int64 primary identifier)
Pool display name (e.g.
Operator address from the API's legacy
l1_addressfieldAnnual percentage yield
Risk-adjusted return metric
Operator fee percentage (e.g.
Total asset value (TVL) in the deployment's collateral currency
Total shares outstanding
Pool status code (0 = active)
Account type code (2 = pool)
Master account index (operator's main account)
Creation timestamp
Whether this is the LLP (Lighter Liquidity Pool) protocol pool
Methods summary
__init__(account_index, name, l1_address, ...)- account_index: int
Pool account index (int64 primary identifier)
- name: str
Pool display name (e.g. “ETH 3x long”)
- l1_address: str
Operator address from the API’s legacy
l1_addressfield
- annual_percentage_yield: float
Annual percentage yield
- sharpe_ratio: Optional[float]
Risk-adjusted return metric
- operator_fee: float
Operator fee percentage (e.g. 10.0 = 10%)
- total_asset_value: float
Total asset value (TVL) in the deployment’s collateral currency
- total_shares: int
Total shares outstanding
- status: int
Pool status code (0 = active)
- account_type: int
Account type code (2 = pool)
- master_account_index: int
Master account index (operator’s main account)
- created_at: Optional[datetime.datetime]
Creation timestamp
- is_llp: bool
Whether this is the LLP (Lighter Liquidity Pool) protocol pool
- __init__(account_index, name, l1_address, annual_percentage_yield, sharpe_ratio, operator_fee, total_asset_value, total_shares, status, account_type, master_account_index, created_at, is_llp=False)
- Parameters
- Return type
None