femtos

HyperCore · Market data

Price history

USD closes per unit of up to 25 tokens over a window, or the price of 100 tokens at one time (at=).

GET https://api.femtos.xyz/v1/prices/history

Parameters

ParamInExample or values
layerqueryhypercore
tokensqueryHYPE,PURR,BTC
fromquery1792368000000
toquery1792454400000
intervalquery1m, 5m, 15m, 1h, 4h, 1d
atquery(optional)

Example

curl -H "Authorization: Bearer $FEMTOS_KEY" "https://api.femtos.xyz/v1/prices/history?layer=hypercore&tokens=HYPE%2CPURR%2CBTC&from=1792368000000&to=1792454400000&interval=1h"

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

Response fields

FieldTypeMeaning
series[]object{token, symbol, source, pool, market, points, reason, spam, spamReason}
atmsThe time asked
prices[]object{token, symbol, priceUsd, source, t, block, tx, logIndex, pool, market, reason, spam, …}
intervalstringUnit
frommsFirst unit
tomsEnd (exclusive)
billingheavyheavy over 30 days

Related: Market data

  • Markets GET /v1/markets
    Every tradable perp, spot, HIP-3 and outcome market with 24 h stats.
  • Candles GET /v1/candles
    OHLCV of any HyperCore market down to 1 s, ascending, UTC-aligned.
  • Forming candle WS hc.candles
    The forming candle, pushed once per block where it changes.
  • Trades GET /v1/trades
    Latest fills of one market, newest first.
  • Trades stream WS hc.trades
    All trades of one market as they happen: raced between our node and Hyperliquid's public feed, first copy sent, the other dropped.
  • Best bid / offer WS hc.bbo
    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 book GET /v1/book
    L2 book of one market with order counts, from our node.
  • Book stream WS hc.book
    Full-depth book, then the levels each block changes.
  • Order updates WS hc.orders
    Every order status change, filterable by coin, user and status.
  • HYPE price WS prices.hype
    HYPE from the Hyperliquid oracle, perp mark and exchanges.
  • Token prices GET /v1/prices
    USD price of up to 100 tokens in one call, each with its source and provenance.
  • Token candles GET /v1/candles
    OHLCV of a token through its USDC market (a perp coin: the perp).
  • Token metadata GET /v1/tokens
    Metadata of up to 100 tokens: supply, creator, logo and socials when indexed, family, spam. Also POST with a JSON body.

More