Bluefin
  • Bluefin Exchange
    • Introduction
    • Roadmap
    • Getting Started
      • Onboarding
      • Depositing & Set Up
      • Tutorials
      • Perpetual Swaps
    • Trading
      • Order Types
        • TP/SL Orders
      • Orderbook Design
      • Isolated Margining
      • PnL Calculation
      • Oracle and Index Price
      • Risk Engine
        • Liquidation Process
        • Insurance Fund
        • ADL
      • Funding
      • Trading Fees
      • Gas Fees
      • Contract Specs
    • Perps API Docs
    • Pre-Launch Markets
  • Bluefin Spot CLMM
    • Introduction
    • Getting Started
    • Protocol Features
      • Swap
        • Limit Orders
      • Liquidity Pools
    • BluefinX
    • Tutorials
      • Exploring the Pools
      • Adding Liquidity (Creating a Position)
      • Managing a Position and Claiming Fees/Rewards
      • Auto-Rebalancing
      • Swapping
      • Placing Limit Orders
      • Switching from Spot to Perps Account
    • Spot API Docs
    • FAQs
  • Lending on Bluefin
    • Introduction
    • Protocol Features
    • Tutorials
      • Supply and Borrow Assets
  • Bluefin Airdrop
    • Bluefin Airdrop Explained
    • Bluefin Foundation Statement
    • Claiming and Rewards Post-TGE
    • FAQs
  • Users
    • Rewards
      • Trading Rewards
      • Bluefin Vaults
      • Leagues
      • Sui Wallet on Mobile Giveaway
      • Sui Wallet Campaign
        • List of Winners
      • Walrus Campaigns
        • Walrus LP & Trading Competition
        • Walrus Trade & Earn Campaign
  • Other
    • BLUE Token
    • On-Ramping directly to Bluefin
    • Security
      • Code Audits
      • Spot Audits
    • Governance
      • Bluefin DAO
    • Bluefin Vanguard Ambassador Program
    • Terms of Use and Privacy Policy
      • Vulnerability Disclosure Policy
      • Wash Trading
      • Address Screening
      • Risk Information
    • FAQs
      • USD vs USDC
Powered by GitBook
  1. Bluefin Exchange
  2. Trading

Oracle and Index Price

PreviousPnL CalculationNextRisk Engine

Last updated 1 year ago

Bluefin utilizes two types of price feeds to retrieve the USD value of perpetual contracts in various functions within its platform: Oracle Price and Index Price. These price feeds play a crucial role in the proper functioning of the platform, ensuring accurate calculations and triggering specific actions.

The Index Price is a volume-weighted average of spot prices from leading exchanges, aggregated and updated every few seconds. It is used for unrealized PnL calculations, triggering stop orders, and funding rate calculations.

The Oracle Price triggers liquidations, calculates funding payments between, and protects traders from taking orders at prices far from the market.

By leveraging these two types of prices, Bluefin can offer its users a secure, robust, and efficient trading experience, ensuring that they can trade digital assets with confidence and ease.

Oracle Price

The Oracle Price on Bluefin is used for liquidations, funding payments, and market take protection. Given the sensitive nature of Oracle prices, Bluefin uses decentralized sources to obtain these values to maximize security. Bluefin v2, deployed on the Sui network, uses Oracle price feeds powered by the .

Using decentralized price feeds, Bluefin can achieve robust, low-cost, and high-performance price referencing and correlated on-chain calculations, minimizing pricing vulnerabilities and ensuring a seamless user trading experience.

The parameters of the oracle prices obtained from the two sources can be found here:

Pyth Network:

Index Price

The Index Price is used for unrealized PnL calculations, triggering stop orders, and funding rate calculations.

Bluefin's Oracle and Index Prices are vital to the platform's functionality, ensuring accurate calculations and triggering specific actions. The Index Price is used for unrealized P&L calculations, triggering stop orders, and funding rate calculations, while the Oracle Price is used for liquidations, funding payments, and market take bound.

On Bluefin v2, Index Prices are received via the Pyth network.

By utilizing reliable and secure price feeds, Bluefin ensures its users can trade digital assets with confidence and ease.

Pyth network
https://pyth.network/price-feeds