LedgerEvent
Documentation for eth_defi.hyperliquid.trade_history_db.LedgerEvent Python class.
- class LedgerEvent
Bases:
objectA deposit, withdrawal, or other non-funding ledger event from DuckDB storage.
Represents a row from the
ledgertable. Theevent_typefield contains the raw API type string (e.g."vaultDeposit","vaultWithdraw","deposit","withdraw").Attributes summary
Event timestamp
Timestamp in milliseconds (for storage and sorting)
Raw API event type (e.g.
USDC amount
Associated vault address (if any)
Methods summary
__init__(timestamp, timestamp_ms, ...)- timestamp: datetime.datetime
Event timestamp
- timestamp_ms: int
Timestamp in milliseconds (for storage and sorting)
- event_type: str
Raw API event type (e.g. “vaultDeposit”, “withdraw”, “deposit”)
- usdc: float
USDC amount
- __init__(timestamp, timestamp_ms, event_type, usdc, vault)
- Parameters
timestamp (datetime.datetime) –
timestamp_ms (int) –
event_type (str) –
usdc (float) –
vault (str | None) –
- Return type
None