Oracle

📡 Oracle Price Publishing on Rocketfi

Validators on Rocketfi play a critical role in maintaining accurate pricing for perpetual futures. Every 3 seconds, they publish spot oracle prices for each perp asset. These prices are essential for:

  • Calculating funding rates

  • Determining mark prices used in margining, liquidations, and triggering take-profit/stop-loss (TP/SL) orders

🧮 How Oracle Prices Are Computed

Each validator calculates the spot oracle price using a weighted median of spot prices from the following exchanges:

  • Binance (weight: 3)

  • OKX (2)

  • Bybit (2)

  • Kraken (1)

  • KuCoin (1)

  • Gate.io (1)

  • MEXC (1)

  • Hyperliquid (1)

For assets with primary spot liquidity outside of Rocketfi (e.g., BTC), Rocketfi’s own spot prices are excluded from the oracle calculation to ensure accuracy.

🏛️ Final Oracle Price Selection

The final price used by the clearinghouse is determined by aggregating the oracle prices submitted by all validators. This aggregation is also a weighted median, where each validator’s submission is weighted by their stake in the network.

Last updated