LighterPoolDetail
Documentation for eth_defi.lighter.vault.LighterPoolDetail Python class.
- class LighterPoolDetail
Bases:
objectDetailed pool information from the
/api/v1/accountendpoint.Includes share price history and daily returns from
pool_info.Attributes summary
Pool account index
Pool display name
Pool description text
Total asset value in the deployment's collateral currency
Operator fee percentage (e.g.
Annual percentage yield
Sharpe ratio
Historical share prices as (timestamp_seconds, share_price) tuples
Historical daily returns as (timestamp_seconds, daily_return) tuples
Total shares outstanding
Operator's shares
Methods summary
__init__(account_index, name, description, ...)- account_index: int
Pool account index
- name: str
Pool display name
- description: str
Pool description text
- total_asset_value: float
Total asset value in the deployment’s collateral currency
- operator_fee: float
Operator fee percentage (e.g. 10.0 = 10%)
- annual_percentage_yield: float
Annual percentage yield
- sharpe_ratio: Optional[float]
Sharpe ratio
- share_prices: list[tuple[int, float]]
Historical share prices as (timestamp_seconds, share_price) tuples
- daily_returns: list[tuple[int, float]]
Historical daily returns as (timestamp_seconds, daily_return) tuples
- total_shares: int
Total shares outstanding
- operator_shares: int
Operator’s shares
- __init__(account_index, name, description, total_asset_value, operator_fee, annual_percentage_yield, sharpe_ratio, share_prices, daily_returns, total_shares, operator_shares)