PortfolioAllTimeData

Documentation for eth_defi.hyperliquid.api.PortfolioAllTimeData Python class.

class PortfolioAllTimeData

Bases: object

All-time PnL and trading volume for a Hyperliquid address.

Fetched from the portfolio info endpoint, which works for any address — not just leaderboard participants.

The pnlHistory array in the API response is aggregated data that covers the account’s full lifetime, unlike fills which are capped at ~10K entries per account. The first entry’s timestamp therefore gives a reliable account creation / first activity date.

Returned by fetch_portfolio().

Attributes summary

all_time_pnl

all_time_volume

first_activity_at

Methods summary

__init__(all_time_pnl, all_time_volume, ...)

__init__(all_time_pnl, all_time_volume, first_activity_at)
Parameters
Return type

None