RawLedgerUpdate
Documentation for eth_defi.hyperliquid.deposit.RawLedgerUpdate Python class.
- class RawLedgerUpdate
Bases:
objectParsed ledger update data from Hyperliquid API.
This is an intermediate representation of raw API ledger data with proper typing.
Attributes summary
Timestamp in milliseconds
Transaction hash
Delta type and data
Convert millisecond timestamp to datetime.
Methods summary
__init__(timestamp_ms, hash, delta)from_api_response(data)Parse a ledger update from API response data.
- timestamp_ms: int
Timestamp in milliseconds
- delta: dict
Delta type and data
- classmethod from_api_response(data)
Parse a ledger update from API response data.
- Parameters
data (dict) – Raw ledger update dict from API
- Returns
Parsed RawLedgerUpdate object
- Return type
- property timestamp: datetime.datetime
Convert millisecond timestamp to datetime.