HyperliquidCandle
Documentation for eth_defi.hyperliquid.api.HyperliquidCandle Python class.
- class HyperliquidCandle
Bases:
objectA single OHLCV candle from the
candleSnapshotInfo endpoint.Prices and volume are stored as
floatfor direct pandas/numpy compatibility in backtesting notebooks. Callers needing arbitrage-level precision should consume the raw API response instead.Attributes summary
Open time, naive UTC datetime.
Close time, naive UTC datetime.
Base symbol, e.g.
Candle interval, one of
"1m","5m","15m","1h","4h","1d"…openhighlowcloseBase-asset volume.
Number of trades that formed this candle.
Methods summary
__init__(open_time, close_time, coin, ...)- open_time: datetime.datetime
Open time, naive UTC datetime.
- close_time: datetime.datetime
Close time, naive UTC datetime.
- coin: str
Base symbol, e.g.
"BTC".
- interval: str
Candle interval, one of
"1m","5m","15m","1h","4h","1d"…
- volume: float
Base-asset volume. Zero for pre-launch (backfilled) candles.
- trades: int
Number of trades that formed this candle.
- __init__(open_time, close_time, coin, interval, open, high, low, close, volume, trades)
- Parameters
open_time (datetime.datetime) –
close_time (datetime.datetime) –
coin (str) –
interval (str) –
open (float) –
high (float) –
low (float) –
close (float) –
volume (float) –
trades (int) –
- Return type
None