SharePriceEvent

Documentation for eth_defi.hyperliquid.trade_history.SharePriceEvent Python class.

class SharePriceEvent

Bases: object

A 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

timestamp

Event timestamp

event_type

Type of event: "deposit", "withdraw", "fill_pnl", "funding"

total_assets

Total assets (NAV) after this event

total_supply

Total supply of shares after this event

share_price

Share price after this event

delta

Change in assets from this event

epoch_reset

Whether an epoch reset occurred

coin

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

coin: str | None

Coin involved (for fill_pnl and funding events)

__init__(timestamp, event_type, total_assets, total_supply, share_price, delta, epoch_reset=False, coin=None)
Parameters
Return type

None