Short answer
Spot markets on Hyperliquid are named @{index}, where the index is the pair's position in spotMeta's universe; PURR/USDC is the one exception that keeps its name. HYPE/USDC is @107. Send that name as coin to candleSnapshot for the last 5,000 candles, or to TikTape's GET /api/v1/ohlcv for spot history at every interval from 2025-03-23 (daily candles back to the pair's first Hyperliquid candle).
What the official docs say
- "For Spot, coin should be
PURR/USDCfor PURR, and@{index}e.g.@1for all other spot tokens", where the index is the pair's index inspotMeta's universe. - The docs' own example: the spot index for HYPE on mainnet is
@107. BTC/USDCin the Hyperliquid app isUBTC/USDCon HyperCore.
Sources: Hyperliquid info endpoint, spot info endpoint.
Find a pair's @index with Python
import requests
meta = requests.post("https://api.hyperliquid.xyz/info", json={"type": "spotMeta"}, timeout=30).json()
token = {t["index"]: t["name"] for t in meta["tokens"]}
for pair in meta["universe"]:
base, quote = (token[i] for i in pair["tokens"])
if base in ("HYPE", "UBTC", "UETH"):
print(pair["name"], f"{base}/{quote}")
On 2026-12-03 this printed, among others, @107 HYPE/USDC, @142 UBTC/USDC and @151 UETH/USDC, plus HYPE pairs quoted in USDT0, USDH and USDE. spotMeta listed 359 spot pairs. Prices are in the quote token and volume in the base token.
Spot history from TikTape
curl -H "X-API-Key: $TIKTAPE_API_KEY" \
"https://tiktape.xyz/api/v1/ohlcv?coin=@107&interval=1m&startTime=1742688000000&limit=10000"
That returns HYPE/USDC 1m candles from 2025-03-23 00:00 UTC, the start of TikTape's trade-built history, which is far beyond the 3.5 days that 5,000 one-minute candles cover. Daily candles go back further: @107 from 2024-11-29. TikTape also accepts PURR/USDC by name.
Pitfalls
- The perp
HYPEand the spot pair@107are different markets with different prices and volume. Don't mix them in one series. - Look the index up from
spotMetainstead of hard-coding it for new pairs; the name, not the index, is what the API wants.