candle
Stream real-time OHLCV candle updates for a specific coin and interval.
Every live data message includes both routing identifiers with the same value:
{"type": "candle", "channel": "candle"}Other payload fields are omitted above. Existing clients may continue routing on either field.
Hydromancer offers 1s, 15s, and 30s candlesticks that are unavailable on Hyperliquid natively. The Hydromancer candlesticks endpoint also returns more than 5,000 candles, compared with the native Hyperliquid API.
Streams real-time candle updates as trades happen. Each message contains the latest state of the current candle for the subscribed coin and interval. When a candle closes and a new one opens, both events are sent.
Subscribe
{
"method": "subscribe",
"subscription": {
"type": "candle",
"coin": "BTC",
"interval": "1m"
}
}coin
string
Yes
Coin name (e.g. "BTC", "ETH", "hyna:ETH")
interval
string
Yes
Candle interval: 1s, 15s, 30s, 1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h, 8h, 12h, 1d, 3d, 1w, 1M
Unsubscribe
Update data format
Each message contains a full candle snapshot. The x field indicates whether the candle is finalized (true) or still accumulating trades (false).
Field definitions
Envelope fields:
type
string
Always "candle"
seq
number
Per-subscription sequence number (starts at 1, increments per message)
cursor
string
Candle open time as millisecond timestamp string (for session replay)
Candle fields (data):
s
string
Coin name
i
string
Interval string
t
number
Candle open time (milliseconds, interval start)
T
number
Candle close time (milliseconds, interval end)
o
string
Open price
h
string
High price
l
string
Low price
c
string
Close (latest) price
v
string
Volume in base asset
q
string
Quote volume (notional value)
n
number
Number of trades
x
boolean
true if the candle is closed/finalized, false if still open
Examples
Common errors
Invalid interval
Interval string not in the valid list
Invalid coin
Coin contains invalid characters or exceeds max length
Connection timeout
Not responding to ping messages — reply with {"type": "pong"}
Last updated