HIP-3 Protocol

HIP-3 is Hyperliquid's protocol for deploying custom perpetual contracts with external oracle prices. This page explains how Rubicon uses HIP-3.

What is HIP-3?

HIP-3 allows anyone to deploy perpetual futures on Hyperliquid with custom oracle feeds.

Native Perps vs HIP-3 Perps

Aspect
Native Perps (BTC, ETH)
HIP-3 Perps (Rubicon)

Oracle

Validator consensus

Deployer-provided

Price source

CEX weighted median

Custom (we use Polygon/Yahoo)

Deployment

Hyperliquid team

Anyone

Trust model

Decentralized validators

Deployer reputation

How It Works

1. Asset Registration

Deploy a new perpetual via registerAsset2():

const registerAction = {
  type: "registerAsset2",
  asset: {
    name: "SOXX",
    szDecimals: 2,
    maxLeverage: 10,
    // ... other parameters
  }
};

This creates a new tradeable market on Hyperliquid.

2. Oracle Submission

Publish prices every 3 seconds via setOracle():

3. Price Processing

Hyperliquid processes our submission:

Oracle Submission Format

Every 3 seconds, we submit:

Field Descriptions

Field
Description
Used For

dex

Identifier for our deployment

Routing

oraclePxs

Authoritative ETF prices

Liquidations, funding

markPxs

EMA-smoothed suggestions

Mark price input

externalPerpPxs

Circuit breaker reference

Price band validation

Price Types Explained

Oracle Price (oraclePxs)

The authoritative price from our data source.

Mark Price Suggestion (markPxs)

Our EMA-smoothed price suggestion.

External Perp Price (externalPerpPxs)

Reference price for circuit breakers.

Signing Requirements

Oracle submissions must be signed by the deployer wallet:

Oracle Loop Implementation

Error Handling

Submission Errors

Error
Cause
Response

Invalid signature

Wrong key

Check wallet

Rate limited

Too many requests

Slow down

Price too stale

Old timestamp

Use current time

Price out of bounds

Too different from last

Validate before submit

Recovery

Trust Model

Who to Trust

Traders trust that:

  1. Our oracle publishes accurate ETF prices

  2. We don't manipulate prices for profit

  3. Our infrastructure is reliable

How We Build Trust

  1. Transparency — Open documentation of methodology

  2. Verifiability — Prices match public ETF data

  3. Reliability — Consistent uptime and updates

  4. Reputation — Track record over time

Comparison with Other Oracles

Oracle
Trust Model
Speed
Coverage

Rubicon HIP-3

Deployer

3s

ETFs

Chainlink

Decentralized nodes

~1min

Crypto, some equities

Pyth

First-party publishers

~400ms

Crypto, FX, equities

HL Validators

Validator consensus

3s

Major crypto

Resources

Last updated