LighterPoolDetail

Documentation for eth_defi.lighter.vault.LighterPoolDetail Python class.

class LighterPoolDetail

Bases: object

Detailed pool information from the /api/v1/account endpoint.

Includes share price history and daily returns from pool_info.

Attributes summary

account_index

Pool account index

name

Pool display name

description

Pool description text

total_asset_value

Total asset value in the deployment's collateral currency

operator_fee

Operator fee percentage (e.g.

annual_percentage_yield

Annual percentage yield

sharpe_ratio

Sharpe ratio

share_prices

Historical share prices as (timestamp_seconds, share_price) tuples

daily_returns

Historical daily returns as (timestamp_seconds, daily_return) tuples

total_shares

Total shares outstanding

operator_shares

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)
Parameters
Return type

None