# Femtos | Hyperliquid data API

> Hyperliquid data API across HyperCore, HyperEVM and Elysium: markets, balances, prices, tokens, wallets and launches over REST, WebSocket, webhooks, a hosted MCP server for agents and a Hyperliquid-compatible /info, with the latency of every call measured live.

Femtos serves Hyperliquid data on **HyperCore** (the exchange: order book, perps, spot, HIP-3 and outcome markets,
liquidations, positions, stop-loss / take-profit orders, TWAPs, builders, wallets) and **Elysium** (Kinetiq's Orbit L2:
launches of every launchpad, pools, swaps, tokens, holders, MEV sandwiches), over REST, WebSocket, webhooks and MCP,
plus a Hyperliquid-compatible `POST /info` and `/ws`. On both: balances, USD prices and price history, token
metadata. On Elysium also: token overviews, honeypot checks (`/v1/tokens/{address}/security`), every new token and
pool, a wallet's swaps and transfers, one pool, one transaction, and a free JSON-RPC (`POST /v1/elysium/rpc`).
HyperEVM data is no longer served: its routes, channels and MCP tools answer `503 source_unavailable`, and so do the
bridges through HyperEVM.

- 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://dashboard.femtos.xyz/signup (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

## Layers

- [Elysium](https://femtos.xyz/elysium.md): Kinetiq's Hyperliquid L2 (Arbitrum Orbit on HyperEVM, chain 99901): launches of every launchpad (Ascend, Montra and 20+ more, new ones found on chain with no integration), bonding curves, PancakeSwap Infinity pools, holders, NFTs, every new token and pool, balances, token prices and security, wallet history, transactions (105 endpoints)
- [HyperCore](https://femtos.xyz/hypercore.md): the Hyperliquid exchange: order book, perps, spot, HIP-3 markets, liquidations, positions, stop-loss / take-profit orders, price-level maps, balances, token prices (106 endpoints)

## Pages

- [API reference](https://femtos.xyz/reference.md): The Femtos API reference: 175 REST calls, WebSocket channels and Hyperliquid-compatible endpoints by group, each with its parameters, response fields and a live call on HyperCore and Elysium.
- [WebSocket replay | API reference](https://femtos.xyz/reference/ws/replay.md): WebSocket replay on the Femtos API: a past window of HyperCore and Elysium streamed again over /v1/ws in exactly the live frames, for backtests. The URL, the controls, the replayed channels, the limits of each tier and a Python example.
- [Elysium launchpad API: Ascend, Montra, every bonding curve](https://femtos.xyz/elysium/launchpads.md): Launch data API for Elysium, Kinetiq's Hyperliquid L2 (chain 99901): Ascend, Montra, Boxa, Kleos and 75 more launchpads, plus every bonding curve and pool launch found on chain. Curve progress, graduation, REST, WebSocket, webhooks, MCP.
- [Elysium token price and OHLCV API](https://femtos.xyz/elysium/price-api.md): Token price API for Elysium, Kinetiq's Hyperliquid L2 (chain 99901): USD prices of up to 100 tokens a call, price history, OHLCV candles in USD and market cap, token overview and screener, pushed per block over WebSocket, and MCP tools.
- [MCP server for agents](https://femtos.xyz/mcp.md): Femtos as a hosted MCP server (Streamable HTTP): Claude, Cursor, OpenAI agents and any MCP client query HyperCore and Elysium data with no code.
- [Documentation](https://femtos.xyz/docs.md): Femtos documentation: get started, the layers (HyperCore, Elysium), real-time streams and webhooks, the Hyperliquid-compatible API, MCP and files for agents.
- [Quickstart](https://femtos.xyz/docs/quickstart.md): Femtos quickstart: get a free API key with your email, make your first call to the Hyperliquid data API, then pick REST, WebSocket or MCP.
- [Plans and limits](https://femtos.xyz/docs/plans.md): Femtos plans and limits: the free key, what each call costs in credits, pay as you go, plans, rate limits, what 429 and 402 mean and how to check your usage.
- [API error codes](https://femtos.xyz/errors.md): Every error code of the Femtos API (REST, WebSocket, MCP, x402): its HTTP status, what it means and what the caller should do to fix its call.
- [Webhooks](https://femtos.xyz/webhooks.md): Femtos webhooks: a wallet’s activity, liquidations, large positions and launches pushed to your HTTPS URL, signed (Standard Webhooks), retried, with a delivery log and replay.
- [Terms of Service](https://femtos.xyz/terms.md): Femtos terms of service and of sale: accounts and API keys, credits and prices, USDC and x402 payments, plans, refunds, acceptable use and liability.
- [Privacy Policy](https://femtos.xyz/privacy.md): What personal data Femtos processes, why and for how long, who receives it, the wallet registry notice, and how to exercise your GDPR rights.
- [Legal Notice](https://femtos.xyz/legal.md): Who publishes Femtos: FEMTOS SAS, its registration, registered office and contact, the publication director, hosting providers and payment provider.
- [Agent guide](https://femtos.xyz/agents.md): every endpoint in one file
- [OpenAPI](https://api.femtos.xyz/v1/openapi.json): the REST contract

## Hyperliquid SDKs, drop-in

`POST https://api.femtos.xyz/info` and `wss://api.femtos.xyz/ws` answer like `api.hyperliquid.xyz`: an existing Hyperliquid client only changes its base URL and sends the key.

TypeScript, @nktkas/hyperliquid:

```ts
import { HttpTransport, InfoClient, SubscriptionClient, WebSocketTransport } from '@nktkas/hyperliquid';

const KEY = process.env.FEMTOS_KEY!;
const info = new InfoClient({
  transport: new HttpTransport({ apiUrl: 'https://api.femtos.xyz', fetchOptions: { headers: { Authorization: `Bearer ${KEY}` } } }),
});
console.log(await info.l2Book({ coin: 'BTC' }));
// the WebSocket transport takes no headers: the key goes in the URL
const subs = new SubscriptionClient({ transport: new WebSocketTransport({ url: `wss://api.femtos.xyz/ws?token=${KEY}` }) });
await subs.allMids((d) => console.log(d));
```

Python, hyperliquid-python-sdk:

```python
import os, requests
from hyperliquid.info import Info
from hyperliquid.websocket_manager import WebsocketManager

KEY = os.environ["FEMTOS_KEY"]; BASE = "https://api.femtos.xyz"; AUTH = {"Authorization": f"Bearer {KEY}"}
# Info() fetches meta / spotMeta in its constructor, before headers can be set: pass them in
post = lambda body: requests.post(f"{BASE}/info", json=body, headers=AUTH, timeout=10).json()
info = Info(BASE, skip_ws=True, meta=post({"type": "meta"}), spot_meta=post({"type": "spotMeta"}))
info.session.headers.update(AUTH)
ws = WebsocketManager(BASE)   # wss://api.femtos.xyz/ws
ws.ws.header = AUTH           # sent on the upgrade
info.ws_manager = ws; ws.start()
print(info.all_mids())
info.subscribe({"type": "allMids"}, print)
```

ccxt (JavaScript; Python takes the same options):

```js
import ccxt from 'ccxt';

const KEY = process.env.FEMTOS_KEY;
// read-only: hostname moves every REST URL to api.femtos.xyz (/info); never send these headers to api.hyperliquid.xyz
const ex = new ccxt.pro.hyperliquid({
  hostname: 'femtos.xyz',
  headers: { Authorization: `Bearer ${KEY}` },
  urls: { api: { ws: { public: `wss://api.femtos.xyz/ws?token=${KEY}` } } },
});
await ex.loadMarkets();
console.log(await ex.fetchOrderBook('BTC/USDC:USDC'));
console.log(await ex.watchTrades('BTC/USDC:USDC'));
```
