LedgerEvent

Documentation for eth_defi.hyperliquid.trade_history_db.LedgerEvent Python class.

class LedgerEvent

Bases: object

A deposit, withdrawal, or other non-funding ledger event from DuckDB storage.

Represents a row from the ledger table. The event_type field contains the raw API type string (e.g. "vaultDeposit", "vaultWithdraw", "deposit", "withdraw").

Attributes summary

timestamp

timestamp_ms

event_type

usdc

vault

Methods summary

__init__(timestamp, timestamp_ms, ...)

__init__(timestamp, timestamp_ms, event_type, usdc, vault)
Parameters
Return type

None