All projects
Crypto / HFT2025–2026In development

ORACLE Protocol

Institutional-grade prediction markets on Hyperliquid HIP-4

Overview

ORACLE is the first prediction market designed for institutional traders. Built on Hyperliquid's HIP-4 spec, it inherits sub-100ms order matching, zero-gas execution, and full composability with Hyperliquid's perp markets and portfolio margin system — meaning a hedge fund can run a prediction-market book alongside their perp positions in a single cross-margined account.

The architecture splits the system across three layers. A NestJS + GraphQL gateway exposes the order book, resolution feeds, and historical data over a unified API. A Redis-backed real-time layer pushes WebSocket updates with strict latency budgets. Solidity contracts on the resolution side handle market creation, liquidity provision, and oracle dispute resolution — these are intentionally minimal because Hyperliquid's CLOB handles the actual matching.

What's notable architecturally is the lazy-settlement model. Markets stay open on Hyperliquid's L1 until resolution; only the resolution result hits Ethereum, where contracts settle LP positions and pay out claims. This collapses gas costs by ~100x versus running the entire matching engine on-chain, while keeping the trust assumptions clean.

The TradingView integration is a deliberate choice — the team optimized the candle aggregation pipeline so 1-second resolution charts feel native, with no jank when you scrub through history. The order book ladder uses the same virtualized rendering approach as the perps front-end so it stays smooth at 60fps even at depth-of-book of 10k+ levels.

Key features
  • 01Sub-100ms order matching via Hyperliquid HIP-4 native infrastructure
  • 02Zero-gas execution with portfolio-margin composability across perps
  • 03Real-time WebSocket order book with virtualized 10k+ level depth rendering
  • 04TradingView-integrated 1-second candles with native scrub performance
  • 05Lazy-settlement model — only resolution hits L1, collapsing gas ~100x
Screenshots
[Screenshot 1]
Drop a PNG into /public
[Screenshot 2]
Drop a PNG into /public
[Screenshot 3]
Drop a PNG into /public
[Screenshot 4]
Drop a PNG into /public

More work

Seven other projects across crypto, AI, and games.

All projects