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
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
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)
oraclePxs)The authoritative price from our data source.
Mark Price Suggestion (markPxs)
markPxs)Our EMA-smoothed price suggestion.
External Perp Price (externalPerpPxs)
externalPerpPxs)Reference price for circuit breakers.
Signing Requirements
Oracle submissions must be signed by the deployer wallet:
Oracle Loop Implementation
Error Handling
Submission Errors
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:
Our oracle publishes accurate ETF prices
We don't manipulate prices for profit
Our infrastructure is reliable
How We Build Trust
Transparency — Open documentation of methodology
Verifiability — Prices match public ETF data
Reliability — Consistent uptime and updates
Reputation — Track record over time
Comparison with Other Oracles
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
Our Oracle Code — Implementation details
Last updated