LeaderboardEntry

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

class LeaderboardEntry

Bases: object

A single trader from the Hyperliquid public leaderboard.

The leaderboard contains 32K+ traders who have opted in. Fetched in bulk by fetch_leaderboard().

Attributes summary

address

Ethereum address (lowercased)

display_name

Display name chosen by the trader (None if not set)

account_value

Account value in USD at time of leaderboard snapshot

all_time_pnl

All-time PnL in USD

all_time_roi

All-time ROI as a ratio (e.g.

all_time_volume

All-time trading volume in USD

Methods summary

__init__(address, display_name, ...)

address: eth_typing.evm.HexAddress

Ethereum address (lowercased)

display_name: str | None

Display name chosen by the trader (None if not set)

account_value: decimal.Decimal

Account value in USD at time of leaderboard snapshot

all_time_pnl: decimal.Decimal

All-time PnL in USD

all_time_roi: decimal.Decimal

All-time ROI as a ratio (e.g. 0.25 = 25%)

all_time_volume: decimal.Decimal

All-time trading volume in USD

__init__(address, display_name, account_value, all_time_pnl, all_time_roi, all_time_volume)
Parameters
Return type

None