API reference · Market data

Token candles

  • Elysium, HyperEVM: OHLCV of a token in USD through its reference pool, the most liquid one.
  • HyperCore: OHLCV of a token through its USDC market (a perp coin: the perp).

GET https://api.femtos.xyz/v1/candles

Parameters

ParamInExample or valuesMeaning
layerqueryelysium (Elysium); hypercore (HyperCore); hyperevm (HyperEVM)Layer (default: hypercore; token form: hypercore for a name, hyperevm for an address)
tokenquery<token> (Elysium); HYPE (HyperCore); <evmToken> (HyperEVM)Instead of market: the candles of a token. EVM layers: its side of its reference pool, o/h/l/c in USD (unit: usd), v in the token, vq in the other token, buys / sells, mcap; the answer names the pool (`market`, `reference`). HyperCore: the candles of the token's USDC spot market (a perp coin: the perp). The reference pool of a token: among its active pools whose USD price is known (pools of a spam token left out, unless the token itself is spam), the one with the largest liquidityUsd of at least $1,000 (twice the smaller side of what the pool contract holds at the indexed head, valued at USD prices: HyperCore for HYPE, WHYPE and the Core-linked tokens); when none reaches it, the most 24 h USD volume, then the most trades, then the oldest pool. Uniswap V4 / PancakeSwap Infinity / Balancer pools keep their tokens in a shared vault: their liquidity is not measured (null), they rank by volume.
tfquery1s, 15s, 1m, 5m, 15m, 1h, 4h, 1dCandle unit
limitquery48Candles

Example

Elysium

curl -H "Authorization: Bearer $FEMTOS_KEY" "https://api.femtos.xyz/v1/candles?layer=elysium&token=<token>&tf=1h&limit=48"

HyperCore

curl -H "Authorization: Bearer $FEMTOS_KEY" "https://api.femtos.xyz/v1/candles?layer=hypercore&token=HYPE&tf=1h&limit=48"

HyperEVM

curl -H "Authorization: Bearer $FEMTOS_KEY" "https://api.femtos.xyz/v1/candles?layer=hyperevm&token=<evmToken>&tf=1h&limit=48"

Key: Authorization: Bearer $FEMTOS_KEY. Get a free key, or with no browser through agent onboarding.

Response fields

FieldTypeMeaning
marketstringMarket (token form: the reference pool / USDC market)
referenceobjecttoken form, EVM: the reference pool (PoolRef) and its rule (Elysium, HyperEVM)
unitusd | usdctoken form: what o/h/l/c are in
candles[]objectAscending: {t, o, h, l, c, v, vq, n, vUsd, mcUsd, usd, mcap, …}
candles[].odecimalOpen, in the quote (HyperCore: USDC; EVM pools: the quote token; token form: USD)
candles[].buysinttoken form (EVM): swaps buying the token (Elysium, HyperEVM)
candles[].mcapobjectSame candle as market cap in USD {o,h,l,c} (Elysium, HyperEVM): {o, h, l, c} (Elysium, HyperEVM)
asOfmsTime of `height` (HyperCore: ingested head; EVM: indexed head, committed with the candles) (Elysium, HyperEVM)
heightintHead block of the layer the answer is cut at: every event up to it is counted (HyperCore: ingested head; EVM: indexed head, committed with the candles) (Elysium, HyperEVM)
billingheavyheavy over 30 days
candles[].nintTrades (HyperCore)

Related: Market data

  • Markets GET /v1/markets Elysium, HyperCore, HyperEVM
    Every tradable perp, spot, HIP-3 and outcome market with 24 h stats.
  • Candles GET /v1/candles Elysium, HyperCore, HyperEVM
    OHLCV of any HyperCore market down to 1 s, ascending, UTC-aligned.
  • Forming candle WS elysium.candles · hc.candles · hyperevm.candles Elysium, HyperCore, HyperEVM
    The forming candle, pushed once per block where it changes.
  • Trades GET /v1/trades Elysium, HyperCore, HyperEVM
    Latest fills of one market, newest first.
  • Trades stream WS elysium.trades · hc.trades · hyperevm.trades Elysium, HyperCore, HyperEVM
    All trades of one market as they happen: raced between our node and Hyperliquid's public feed, first copy sent, the other dropped.
  • Order book GET /v1/book HyperCore
    L2 book of one market with order counts, from our node.
  • Book stream WS hc.book HyperCore
    Full-depth book, then the levels each block changes.
  • Best bid / offer WS hc.bbo HyperCore
    Top of book of one market each block: raced between Hyperliquid's public feed and our node (newest block wins, our node corrects the same block).
  • Order updates WS hc.orders HyperCore
    Every order status change, filterable by coin, user and status.
  • Token prices GET /v1/prices Elysium, HyperCore, HyperEVM
    USD price of up to 100 tokens in one call, each with its source and provenance.
  • Price history GET /v1/prices/history Elysium, HyperCore, HyperEVM
    USD closes per unit of up to 25 tokens over a window, or the price of 100 tokens at one time (at=).
  • HYPE price WS prices.hype HyperCore
    HYPE from the Hyperliquid oracle, perp mark and exchanges.
  • Pool detail GET /v1/pools/{address} Elysium, HyperEVM
    One pool: dex, fee, tokens, liquidity in USD, depth, 5m to 24h activity, top LPs.
  • Liquidity events GET /v1/liquidity Elysium, HyperEVM
    Liquidity added to and removed from one pool, newest first.
  • Daily token volume GET /v1/volume Elysium, HyperEVM
    USD swap volume of a token per UTC day, both sides of every priced swap.

More

Agent guide (agents.md)llms.txtOpenAPIMCP serverGet an API keyChangelog