Skip to content

The API Layer Lighter Doesn't Ship

Lighter's native API gives you one account at a time. Hyperlight gives you batch queries, enriched WebSocket streams, and a historical data lake — all from a single API key.

Lighter API

1

account / req

Hyperlight

1,000

accounts / req

0+

Accounts per query

0

REST endpoints

0s

Orderbook snapshots

0/7

Real-time streaming

Batch Account Queries

Query positions, fills, and liquidations across 1,000+ accounts in a single call.

Instead of looping through accounts one by one, send a single POST with up to 1,000 account indices. The response includes positions, open orders, and recent fills for every account — perfect for portfolio dashboards and risk monitoring.

~/batch-query
POST /api/v1/accounts/batch
{ "accounts": [0, 1, 2, …, 999], "by": "index" }

→ 1000 accounts in a single request

Enriched WebSocket Streams

See who is placing orders, not just what orders exist. Every stream message includes account attribution and whale flags.

Standard Lighter streams show anonymous orders. Hyperlight enriches every message with the submitting account index, flags large orders above configurable thresholds, and offers depth-aggregated views at custom tick sizes.

~/websocket
wss://api.hyperlightapi.xyz/stream
subscribe: { "channel": "order_book/0" }

→ { "account": 42, "side": "bid", "whale": true }

Drop-In, Not Rip-and-Replace

Swap your base URL. Existing Lighter queries keep working. Enhanced endpoints are additive — nothing breaks.

Backtesting Replay

Replay historical market data via WebSocket at 0.1x–100x speed with pause and scrub.

Point your bot at a replay WebSocket endpoint. Specify a time range and playback speed. Messages arrive in the exact sequence they originally occurred — so your strategy code runs identically to how it would have in production.

~/replay
wss://api.hyperlightapi.xyz/ws/replay
→ { "type": "replay", "market_id": 0,
    "start": "2025-01-01", "speed": 10 }

→ streams historical data at 10x speed

Who Uses Hyperlight

Backtest strategies with historical orderbook snapshots, trade data, and funding rate history at variable replay speeds.

Download Parquet exports of 1-second orderbook snapshots for backtesting spread strategies.

The Full Toolkit

Historical Data Lake

Parquet exports of trades, orderbook snapshots, candles, and funding rates for backtesting.

Time-Range Queries

Fetch trades, funding rates, and candles for arbitrary time ranges with flexible pagination.

Production Infra

Tiered rate limiting, SHA-256 key storage, Prometheus metrics, and low-latency Rust performance.

Four Steps to Launch

01

Sign Up

Create a free account in seconds. Your API key (prefixed hlt_) is generated instantly with 75K credits/month included.

02

Swap Your Base URL

Replace your Lighter API base URL with api.hyperlightapi.xyz. Existing queries still work — no code rewrite needed.

03

Use Enhanced Endpoints

Access batch queries, enriched streams, historical exports, and backtesting replay — capabilities beyond Lighter’s native API.

04

Scale as You Grow

Upgrade your plan for higher rate limits, larger batch sizes, more WebSocket connections, and Parquet data lake access.

Under the Hood

Built in Rust

Axum + Tokio async runtime for low-latency, high-throughput performance.

PostgreSQL + Redis

Time-partitioned tables for history, Redis for caching and pubsub.

Parquet Exports

Columnar format for Python, DuckDB, Spark, and modern analytics tools.

1s Snapshots

Orderbook snapshots every second for high-resolution backtesting.

SHA-256 Keys

Keys hashed before storage. Plaintext shown once, never retained.

Production Monitoring

Prometheus metrics, health monitoring, and automated alerting.

$ curl api.hyperlightapi.xyz/health

Start Building with Lighter Data

Free tier includes 75K credits/month and batch queries. No credit card. Upgrade anytime.

Get Free API Key