# Token candles · HyperCore API · Femtos

> OHLCV of a token through its USDC market (a perp coin: the perp).

- Base URL: `https://api.femtos.xyz/v1` (REST) · `wss://api.femtos.xyz/v1/ws` (WebSocket) · MCP: `https://api.femtos.xyz/mcp`
- Auth: `Authorization: Bearer $FEMTOS_KEY`. Free key: https://femtos.xyz/accounts/ (browser), or with
  no browser: `GET https://femtos.xyz/accounts/agent/challenge`, solve its proof of work, then `POST https://femtos.xyz/accounts/agent/signup`
  (https://femtos.xyz/agents.md#agent-onboarding)
- Decimals are exact strings, times Unix milliseconds, addresses lowercase `0x`
- Whole API in one file: https://femtos.xyz/agents.md · OpenAPI: https://api.femtos.xyz/v1/openapi.json · Index: https://femtos.xyz/llms.txt
- Page with live calls: https://femtos.xyz/hypercore/token-candles

## Token candles — GET `/v1/candles`

OHLCV of a token through its USDC market (a perp coin: the perp).

| Param | In | Example or values | Meaning |
|---|---|---|---|
| `layer` | query | `hypercore` | Layer (default: hypercore; token form: hypercore for a name, hyperevm for an address) |
| `token` | query | `HYPE` | 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. |
| `tf` | query | `1s`, `15s`, `1m`, `5m`, `15m`, `1h`, `4h`, `1d` | Candle unit |
| `limit` | query | `48` | Candles |

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

| Field | Type | Meaning |
|---|---|---|
| `market` | string | Market (token form: the reference pool / USDC market) |
| `unit` | usd \| usdc | token form: what o/h/l/c are in |
| `candles[]` | object | Ascending: {t, o, h, l, c, v, vq, n, vUsd, mcUsd, usd, mcap, …} |
| `candles[].o` | decimal | Open, in the quote (HyperCore: USDC; EVM pools: the quote token; token form: USD) |
| `candles[].n` | int | Trades |
| `billing` | heavy | heavy over 30 days |

## Related (Market data)

- [Markets](https://femtos.xyz/hypercore/markets.md): Every tradable perp, spot, HIP-3 and outcome market with 24 h stats.
- [Candles](https://femtos.xyz/hypercore/candles.md): OHLCV of any HyperCore market down to 1 s, ascending, UTC-aligned.
- [Forming candle](https://femtos.xyz/hypercore/ws-candles.md): The forming candle, pushed once per block where it changes.
- [Trades](https://femtos.xyz/hypercore/trades.md): Latest fills of one market, newest first.
- [Trades stream](https://femtos.xyz/hypercore/ws-trades.md): 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](https://femtos.xyz/hypercore/ws-bbo.md): 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](https://femtos.xyz/hypercore/book.md): L2 book of one market with order counts, from our node.
- [Book stream](https://femtos.xyz/hypercore/ws-book.md): Full-depth book, then the levels each block changes.
- [Order updates](https://femtos.xyz/hypercore/ws-orders.md): Every order status change, filterable by coin, user and status.
- [HYPE price](https://femtos.xyz/hypercore/ws-prices.md): HYPE from the Hyperliquid oracle, perp mark and exchanges.
- [Token prices](https://femtos.xyz/hypercore/prices.md): USD price of up to 100 tokens in one call, each with its source and provenance.
- [Price history](https://femtos.xyz/hypercore/price-history.md): USD closes per unit of up to 25 tokens over a window, or the price of 100 tokens at one time (at=).
- [Token metadata](https://femtos.xyz/hypercore/tokens-batch.md): Metadata of up to 100 tokens: supply, creator, logo and socials when indexed, family, spam. Also POST with a JSON body.

All HyperCore endpoints: https://femtos.xyz/hypercore.md
