---
title: "Hyperliquid and Lighter REST API"
description: "Query current markets and retained Hyperliquid and Lighter history from your own code. Build with books, trades and public account data."
canonical_url: "https://0xarchive.io/rest-api"
markdown_url: "https://0xarchive.io/rest-api.md"
route: "/rest-api"
robots: "index, follow"
generated_from: "prerendered_html"
---

# Market history, beyond the price chart.

Get current and historical Hyperliquid and Lighter data through REST. Bring executions, book depth and public positioning into the tools you already use.

[Start free](https://0xarchive.io/signup)

Free includes rolling 30-day history. Build and above access the retained archive.

![BTC](https://0xarchive.io/markets/hyperliquid/BTC.svg)

## BTC market structure

Hyperliquid

10 Aug 2026 00:00:00.443 UTC

Mid-price USD

**64,867.5**

Spread USD

**1**

### Bids

Price USD

Size BTC

Orders

**64,867**

**0.19944**

**2**

**64,866**

**0.00351**

**3**

**64,864**

**0.00236**

**2**

**64,857**

**0.00016**

**1**

**64,856**

**0.00423**

**2**

### Asks

Price USD

Size BTC

Orders

**64,868**

**27.3**

**75**

**64,869**

**4.619**

**11**

**64,870**

**4.462**

**13**

**64,871**

**2.011**

**13**

**64,872**

**3.897**

**14**

### Executions

Time UTC

Side

Price USD

Size BTC

00:00:00.511

Buy

Price USD

**64,866**

Size BTC

**0.00195**

Close Short

00:00:02.457

Sell

Price USD

**64,851**

Size BTC

**0.00304**

Open Short

00:00:02.457

Sell

Price USD

**64,856**

Size BTC

**0.00016**

Long > Short

00:00:03.728

Buy

Price USD

**64,852**

Size BTC

**0.00091**

Open Long

Book snapshot 10 Aug 2026 00:00:00.443 UTC Executions 10 Aug 2026 · 00:00:00.511 to 00:00:03.728 UTC

## Read beneath the best bid and ask.

Work with individual resting orders, not only price-level totals. Hyperliquid L4 includes wallet attribution. Lighter L3 exposes order and owner account indices.

![Hyperliquid](https://0xarchive.io/venues/hyperliquid-mark-white.svg)

### Wallet-attributed orders

8 Oct 2026 20:08:43.489 UTC

Wallet

**C**

Price USD

Size BTC

Order

Price USD

**81,821**

Size BTC

**0.08586**

Order

**A**

Price USD

**81,821**

Size BTC

**0.10903**

Order

**B**

Price USD

**81,819**

Size BTC

**0.10957**

Order

**C**

Price USD

**81,818**

Size BTC

**0.16497**

Order

**D**

![Lighter](https://0xarchive.io/venues/lighter-mark-white.svg)

### Individual resting orders

10 Aug 2026 00:03:07.089 UTC

Price USD

**64,870.8**

Remaining BTC

Owner index

Order index

Remaining BTC

**0.06093**

Owner index

**I**

Order index

**A**

Remaining BTC

**0.05**

Owner index

**C**

Order index

**B**

Remaining BTC

**0.069**

Owner index

**I**

Order index

**C**

Remaining BTC

**0.00057**

Owner index

**K**

Order index

**D**

## One interval. Your own analysis.

Query historical trades by time, then use their price, size and execution direction in your own models. The records stay available after the market moves on.

### Request

```
curl 'https://api.0xarchive.io/v1/hyperliquid/trades/BTC?start=2026-08-10T00%3A00%3A00Z&end=2026-08-10T00%3A01%3A00Z&limit=14' \
  -H "X-API-Key: $OXARCHIVE_API_KEY"
```

![BTC](https://0xarchive.io/markets/hyperliquid/BTC.svg)

BTC trades

| Time UTC | Side | Price USD | Size BTC | Direction |
| --- | --- | --- | --- | --- |
| 00:00:00.511 | Buy | 64,866 | 0.00195 | Close Short |
| 00:00:02.457 | Sell | 64,851 | 0.00304 | Open Short |
| 00:00:02.457 | Sell | 64,856 | 0.00016 | Long > Short |
| 00:00:03.728 | Buy | 64,852 | 0.00091 | Open Long |
| 00:00:08.205 | Sell | 64,834 | 0.00018 | Close Long |
| 00:00:10.082 | Buy | 64,837 | 0.00019 | Open Long |
| 00:00:10.690 | Buy | 64,838 | 0.06862 | Open Long |
| 00:00:10.690 | Buy | 64,837 | 0.00031 | Open Long |
| 00:00:14.524 | Sell | 64,839 | 0.03068 | Open Short |
| 00:00:14.524 | Sell | 64,839 | 0.01 | Open Short |
| 00:00:14.524 | Sell | 64,839 | 0.01 | Open Short |
| 00:00:14.524 | Sell | 64,839 | 0.08072 | Open Short |
| 00:00:14.524 | Sell | 64,839 | 0.01 | Open Short |
| 00:00:14.524 | Sell | 64,839 | 0.01 | Open Short |

00:00:00.511

- **Side:** Buy
- **Price USD:** 64,866
- **Size BTC:** 0.00195
- **Direction:** Close Short

00:00:02.457

- **Side:** Sell
- **Price USD:** 64,851
- **Size BTC:** 0.00304
- **Direction:** Open Short

00:00:02.457

- **Side:** Sell
- **Price USD:** 64,856
- **Size BTC:** 0.00016
- **Direction:** Long > Short

00:00:03.728

- **Side:** Buy
- **Price USD:** 64,852
- **Size BTC:** 0.00091
- **Direction:** Open Long

00:00:08.205

- **Side:** Sell
- **Price USD:** 64,834
- **Size BTC:** 0.00018
- **Direction:** Close Long

00:00:10.082

- **Side:** Buy
- **Price USD:** 64,837
- **Size BTC:** 0.00019
- **Direction:** Open Long

00:00:10.690

- **Side:** Buy
- **Price USD:** 64,838
- **Size BTC:** 0.06862
- **Direction:** Open Long

00:00:10.690

- **Side:** Buy
- **Price USD:** 64,837
- **Size BTC:** 0.00031
- **Direction:** Open Long

00:00:14.524

- **Side:** Sell
- **Price USD:** 64,839
- **Size BTC:** 0.03068
- **Direction:** Open Short

00:00:14.524

- **Side:** Sell
- **Price USD:** 64,839
- **Size BTC:** 0.01
- **Direction:** Open Short

00:00:14.524

- **Side:** Sell
- **Price USD:** 64,839
- **Size BTC:** 0.01
- **Direction:** Open Short

00:00:14.524

- **Side:** Sell
- **Price USD:** 64,839
- **Size BTC:** 0.08072
- **Direction:** Open Short

00:00:14.524

- **Side:** Sell
- **Price USD:** 64,839
- **Size BTC:** 0.01
- **Direction:** Open Short

00:00:14.524

- **Side:** Sell
- **Price USD:** 64,839
- **Size BTC:** 0.01
- **Direction:** Open Short

10 Aug 2026 · 00:00:00.511 to 00:00:14.524 UTC

## Keep the research. Leave the collection to us.

Connect the archive to backtests, market views and portfolio research. Python, TypeScript and Rust clients fit the data into your existing code.

### Backtests

Bring market records into your strategy research.

### Market views

Use trades, depth and public positioning in your own tools.

### Portfolio research

Put historical account exposure alongside your signals.

## Start with 30 days of history.

Free includes rolling 30-day history. Build and above open the retained archive.

[Start free](https://0xarchive.io/signup)

[REST API docs](https://docs.0xarchive.io/rest-api)

[Stream and replay market data](https://0xarchive.io/websocket) [Download Parquet history](https://0xarchive.io/exports) [Use market data with agents](https://0xarchive.io/mcp) [Browse the Data Catalog](https://0xarchive.io/data/catalog) [Hyperliquid and Lighter market data](https://0xarchive.io/data-types) [Where to get Hyperliquid historical data](https://0xarchive.io/resources/market-data-guides/hyperliquid-historical-data) [Hyperliquid market data](https://0xarchive.io/hyperliquid) [Lighter market data](https://0xarchive.io/lighter)
