0xArchive Examples

August 6, 2026 ยท View on GitHub

Notebook projects that turn 0xArchive market data into working analysis.

0xArchive is granular market data infrastructure for Hyperliquid and Lighter.xyz. Hyperliquid includes core perps, HIP-3 builder perps, HIP-4 outcome markets, and Hyperliquid Spot; Lighter.xyz is the second top-level venue API. Use these examples when you want to verify before wiring an SDK, building an API loop, or exporting Parquet from the Data Catalog.

Start Here

  1. Create an account at 0xArchive signup.
  2. Copy an API key from the dashboard.
  3. Choose the notebook that matches the dataset you want to inspect.
  4. Run the notebook once before adapting it into a pipeline.
cp .env.example .env
# Add OXARCHIVE_API_KEY=0xa_your_api_key to .env

Projects

ProjectDatasetVenue scopeTierFirst output
Liquidation HeatmapLiquidation events and price contextHyperliquidFree key for supported BTC workflowsHeatmap and scatter views of BTC liquidation clusters
Funding Rate ScannerFunding rates and spread calculationsHyperliquid and Lighter.xyzFree key for supported BTC workflowsCross-venue funding chart, spread bands, and carry view
HIP-3 Asset DashboardFunding, open interest, trades, candlesHyperliquid HIP-3Free key for HIP-3 workflowsDashboard for builder-perp price, flow, and derivatives context

Liquidation Heatmap

cd liquidation-heatmap
pip install -r requirements.txt
cp .env.example .env
jupyter notebook liquidation_heatmap.ipynb

Outputs:

  • Price-vs-time liquidation heatmap
  • Long/short liquidation scatter plot
  • Time-of-day and day-of-week views
  • Size distribution and P99 cascade detection

Funding Rate Scanner

cd funding-rate-scanner
pip install -r requirements.txt
cp .env.example .env
jupyter notebook funding_rate_scanner.ipynb

Outputs:

  • Hyperliquid vs Lighter funding comparison
  • Funding spread with two-standard-deviation bands
  • Annualized carry view
  • Opportunity window and distribution summaries

HIP-3 Asset Dashboard

cd hip3-asset-dashboard
pip install -r requirements.txt
cp .env.example .env
jupyter notebook hip3_asset_dashboard.ipynb

Outputs:

  • Hyperliquid HIP-3 funding, open interest, and trade-flow views
  • Funding distribution and annualized APR view
  • Volume, fill-count, and trade-size summaries
  • Price, volume, and open-interest overlays

Choose Your Next Path

If you want...Go here
A recurring API loopSDK docs
A shell or agent workflowCLI docs
Claude Code, ChatGPT Codex, or other coding-agent contextAI Clients
File-based historical pullsData Catalog
Route, schema, and auth detailsQuick Start, OpenAPI, llms.txt

Requirements

  • Python 3.10+
  • Jupyter Notebook
  • An 0xArchive API key

No notebook should require secrets in source control. Keep API keys in local .env files only.