SharePriceEvent
Documentation for eth_defi.hyperliquid.trade_history.SharePriceEvent Python class.
- class SharePriceEvent
Bases:
objectA single event in the share price time series.
Each event represents a state change that affects the vault’s share price: a deposit, withdrawal, trading PnL, or funding payment.
Attributes summary
Event timestamp
Type of event: "deposit", "withdraw", "fill_pnl", "funding"
Total assets (NAV) after this event
Total supply of shares after this event
Share price after this event
Change in assets from this event
Whether an epoch reset occurred
Coin involved (for fill_pnl and funding events)
Methods summary
__init__(timestamp, event_type, ...[, ...])- timestamp: datetime.datetime
Event timestamp
- event_type: str
Type of event: “deposit”, “withdraw”, “fill_pnl”, “funding”
- total_assets: float
Total assets (NAV) after this event
- total_supply: float
Total supply of shares after this event
- share_price: float
Share price after this event
- delta: float
Change in assets from this event
- epoch_reset: bool
Whether an epoch reset occurred
- __init__(timestamp, event_type, total_assets, total_supply, share_price, delta, epoch_reset=False, coin=None)