> ## Documentation Index
> Fetch the complete documentation index at: https://docs.0xarchive.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Use 0xArchive data in Databricks

> Query Hyperliquid and Lighter order books, trades, funding, open interest and liquidations as Delta tables in your Databricks workspace, through Databricks Marketplace.

0xArchive has two listings on [Databricks Marketplace](https://marketplace.databricks.com/?searchKey=0xArchive). Both deliver Delta tables through OpenSharing (Delta Sharing): the tables appear as a read-only catalog in your Unity Catalog, and you query them in place from SQL warehouses, notebooks, jobs or anything else that reads Unity Catalog. There is no pipeline to build and nothing to download.

> [card] [Free Sample](https://marketplace.databricks.com/details/d93468c4-227a-489b-bb65-453694b12d47/0xArchive_Hyperliquid-and-Lighter-Market-Data-Free-Sample)
>
> One week of Hyperliquid and Lighter data: 32,201,157 rows in 14 tables, with a starter notebook. Instant access.

> [card] [Full History](https://marketplace.databricks.com/details/f0965e97-da0c-40f1-8702-6ca1c0a665c3/0xArchive_Hyperliquid-and-Lighter-Market-Data-Full-History)
>
> The full archive for the markets, datasets and dates you choose, licensed and shared to your workspace. By request.

## How it works

![0xArchive on Databricks. Hyperliquid and Lighter data flows into 0xArchive capture, the archive and Unity Catalog shares. The shares reach Unity Catalog in your Databricks workspace through OpenSharing, with Databricks Marketplace handling access, and your SQL, notebooks, jobs, ML training and AI agents read them there.](https://mintcdn.com/0xarchive-e895b8e7/X2HoRvV3mGZyqhzv/images/databricks/architecture-wide-light.webp?fit=max\&auto=format\&n=X2HoRvV3mGZyqhzv\&q=85\&s=ba8fc086a4cc96c17af09089126a4110)

![0xArchive on Databricks. Hyperliquid and Lighter data flows into 0xArchive capture, the archive and Unity Catalog shares. The shares reach Unity Catalog in your Databricks workspace through OpenSharing, with Databricks Marketplace handling access, and your SQL, notebooks, jobs, ML training and AI agents read them there.](https://mintcdn.com/0xarchive-e895b8e7/X2HoRvV3mGZyqhzv/images/databricks/architecture-tall-light.webp?fit=max\&auto=format\&n=X2HoRvV3mGZyqhzv\&q=85\&s=9c8c14b277de2fd494398db19b0551f5)

We publish the data as Unity Catalog shares. Marketplace handles discovery and access: the Free Sample share installs on request, and Full History shares are licensed per customer. Once a share is installed, its tables sit in your Unity Catalog under your own permissions, so you can join them with your own fills, positions and risk data.

## Get the free sample

**1. Open the listing**

Open the [Free Sample listing](https://marketplace.databricks.com/details/d93468c4-227a-489b-bb65-453694b12d47/0xArchive_Hyperliquid-and-Lighter-Market-Data-Free-Sample), or search for 0xArchive under **Marketplace** in your workspace, and click **Get instant access**. Your workspace needs Unity Catalog. If the button is unavailable, ask a workspace admin for the `USE MARKETPLACE ASSETS` privilege.

**2. Name the catalog**

Accept the terms. Under **More options**, set the catalog name to `oxarchive_hyperliquid_lighter_sample`, which the starter notebook and the queries on this page use. Click **Get instant access**, then **Open**.

**3. Run a query**

Open the SQL editor or a notebook and run:

```sql theme={"theme":"github-dark"}
USE CATALOG oxarchive_hyperliquid_lighter_sample;
USE SCHEMA market_data_week;

-- Daily trades and notional in USD, by venue and asset
SELECT date(`timestamp`) AS day,
       'hyperliquid' AS venue,
       symbol,
       count(*) AS trades,
       round(sum(price * size), 2) AS notional_usd
FROM hyperliquid_trades
WHERE crossed
GROUP BY ALL
UNION ALL
SELECT date(`timestamp`), 'lighter', symbol, count(*),
       round(sum(price * size), 2)
FROM lighter_trades
WHERE NOT is_maker
GROUP BY ALL
ORDER BY day, venue, symbol;
```

Times are UTC. `hyperliquid_trades` has one row per fill leg, buyer and seller, so `crossed` keeps the taker leg and counts each trade once. `lighter_trades` has one row per account side, so `NOT is_maker` does the same.

**4. Import the starter notebook**

On the listing page, under **Sample notebook**, click **Import notebook**. If you chose a different catalog name, set the notebook's **Catalog** widget to it. The notebook measures daily volume, BTC spread and top-10 depth within 10 bps of mid, the price gap between venues, hourly funding and open interest, and Hyperliquid liquidations. It then rebuilds the 15:00 UTC Hyperliquid BTC book from the 14:00 book and the order changes between them, matching all 60,922 orders.

## What's in the sample

One week, Monday 9 to Sunday 15 November 2026 UTC: BTC, ETH and HYPE perpetuals on Hyperliquid, and BTC and ETH perpetuals on Lighter. All 14 tables are in the `market_data_week` schema.

| Table | What it holds |
| - | - |
| `hyperliquid_trades` | Every fill leg, with the account address, fee, closed PnL, position before the fill and liquidation flags. 15,915,836 rows |
| `hyperliquid_liquidations` | Every liquidation fill, with the liquidated account, the liquidator and the mark price. 101,600 rows |
| `hyperliquid_orderbook_top10_10s` | Top 10 price levels a side every 10 seconds, with mid price and spread. 181,431 rows |
| `hyperliquid_l4_orderbook` | The full order-by-order (L4) BTC book at 14:00 and 15:00 UTC on 10 November, with the account address on every resting order. 121,095 rows |
| `hyperliquid_l4_order_changes` | Every BTC order change between those two books, in block order. 4,302,699 rows |
| `hyperliquid_candles_1m` | One-minute OHLCV candles. 30,226 rows |
| `hyperliquid_funding` | Funding rate and premium, about every minute. 30,231 rows |
| `hyperliquid_open_interest` | Open interest with mark, oracle, mid and impact prices, about every minute. 30,231 rows |
| `lighter_trades` | One row per account side of each trade, with position and margin state before and after. 11,346,016 rows |
| `lighter_orderbook_top10_10s` | Top 10 price levels a side every 10 seconds, with mid price and spread. 120,946 rows |
| `lighter_l3_orderbook` | Order-level (L3) BTC snapshots from 14:00 to 15:00 UTC on 10 November, up to 250 orders a side, with the owning account index on every order. 14 rows |
| `lighter_candles_1m` | One-minute OHLCV candles. 20,160 rows |
| `lighter_funding_1h` | Hourly funding rate. 336 rows |
| `lighter_open_interest_1h` | Hourly open interest in USD, with mark, oracle and index prices. 336 rows |

Order book levels are arrays of `{price, size, orders}`, best price first. Prices and sizes are decimals, and every table has a `symbol` column and a UTC timestamp.

## Get the full history

The Full History listing covers the whole archive:

* More than 1,100 perp and spot markets, including Hyperliquid HIP-3 markets on stocks, commodities and FX, plus HIP-4 outcome markets
* Hyperliquid core perp order books (L2) and trades from April 2023, and funding and open interest from May 2023
* Hyperliquid Spot trades from March 2025 and books from May 2026, HIP-3 trades from October 2025 and books from February 2026, and HIP-4 markets from May 2026
* Hyperliquid order-level (L4) books with the account address on every resting order, plus every order change, from March 2026
* Lighter trades from January 17, 2025, the earliest observed Lighter trade row (exact starts vary by market), order books from January 2026, and order-level (L3) books with the owning account index on every order from March 2026
* Liquidations and candles for both venues

To request it, open the [Full History listing](https://marketplace.databricks.com/details/f0965e97-da0c-40f1-8702-6ca1c0a665c3/0xArchive_Hyperliquid-and-Lighter-Market-Data-Full-History), click **Request access**, and list the markets, datasets and date range you need in the description of your intended use. We reply with a license and pricing, then share the tables to your workspace. [Venue coverage](https://docs.0xarchive.io/venue-coverage.md) has the start date of every dataset by market type.

## Data rights

Shared tables are 0xArchive Data under the [Data License](https://0xarchive.io/policies/data-license). Warehouse use, joins with your own data, model training and internal analytics are permitted. Re-sharing raw tables outside your organization, or using them to run a substitute data feed, needs written permission. [Data rights](https://docs.0xarchive.io/data-rights.md) has the full rule.

## Next step

> [card] [Venue coverage](https://docs.0xarchive.io/venue-coverage.md)
>
> Check how far back each dataset goes before you request a long window.

> [card] [Choose an interface](https://docs.0xarchive.io/tooling.md)
>
> Use the REST API, WebSocket or Parquet exports for the same data outside Databricks.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.