Home / Market / vike-candles

vike-candles

Historical OHLCV candles for a Hyperliquid perp or spot market, or for one Polymarket outcome token. Use when the user asks for a price chart, candles, OHLCV, or price history of a Hyperliquid asset or a Polymarket outcome (its probability over time).

skill★ 00 dlclawhubMIT-0Install in CosmosUpstream Source

Documentation & Preview

--- name: vike-candles description: Historical OHLCV candles for a Hyperliquid perp or spot market, or for one Polymarket outcome token. Use when the user asks for a price chart, candles, OHLCV, or price history of a Hyperliquid asset or a Polymarket outcome (its probability over time). allowed-tools: Bash(vike-data:*)

---

vike-candles

Two candle sources, both from venues whose data is on-chain. There is no candle source for CEX tickers (BTCUSDT on Binance and the like) or for an arbitrary ERC-20 contract address; say so rather than guessing a venue.

Command

Hyperliquid (perp or spot), built from HL's own executed fills:

vike-data candles hl <symbol>
  [--interval 1m|5m|15m|30m|1h|4h|1d]   # default 1h
  [--market perp|spot]                  # default perp
  [--dex <name>]                        # HIP-3 builder DEX; default HL (the core venue)
  [--start <iso|epoch-ms>] [--end <iso|epoch-ms>]   # half-open [start, end)
  [--limit N]                           # default 500, max 5000
  [--view export]                       # the same, limit defaults to 5000
  [--json]

vike-data candles hl --view latest [--market perp|spot] [--dex <name>]   # the newest 1m bar of EVERY symbol
                                                                         # that traded in the last hour (may still be forming)

Live closed bars as they happen: vike-data stream hl --channel hl.candles --filter coin=BTC,ETH --filter interval=1m (also market=perp|spot, dex=HL; see vike-stream).

Polymarket, ONE outcome token (a probability, 0-1):

vike-data candles polymarket <token_id>
  [--interval 1m|5m|1h|1d]              # default 1h
  [--from <epoch-ms>] [--to <epoch-ms>] # both inclusive
  [--limit N]                           # default 500, max 1000
  [--json]

Common queries

| Question | Command | |---|---| | "Hourly BTC perp candles, last week" | vike-data candles hl BTC --interval 1h --limit 168 | | "HYPE spot daily candles" | vike-data candles hl HYPE --market spot --interval 1d | | "4h ETH, 200 bars" | vike-data candles hl ETH --interval 4h --limit 200 | | "Price history of the YES outcome of market X" | take the leg's token_id from outcomes[] in vike-data polymarket markets (or clob_token_ids in vike-data polymarket market <condition_id>), then vike-data candles polymarket <token_id> --interval 1h |

Output

HL: ts (epoch ms, UTC), open, high, low, close, volume, volume_usd, n_trades, ascending by ts, plus source. Polymarket: ts, open, high, low, close, volume, trades, oldest first.

Pitfalls

Pairs well with