LogoLogo
Join DiscordFollow on XBridge FundsLong $BERA
  • Doc Bros v1
    • Overview
    • Key Features
      • Speed & Liquidity is Key
      • Bropetual Markets
      • A Hub for Berachain DeFi
    • Proof-of-Liquidity
      • Reward Vault
    • Power of Points
    • Partners & Integrations
    • Campaigns
      • bro.trade Em Up
  • bullish bros
    • SuperBros NFT
  • Technicals
    • What is Proof-of-Liquidity?
    • One-Click Trading
    • Funding Rates
  • Liquidations & Insurance Fund
  • Vertex Edge Sequencer
  • Fees
  • PnL Settlements
  • Withdrawals
  • Pricing (Oracles)
  • links & resources
    • bro.trade Links
      • Website
      • Trade Bropetuals
      • Discord
      • X (Twitter)
      • Medium
      • Swap on OogaBooga
    • Berachain Links
      • Berachain.com
      • Official Bridge
      • BeraHub
      • Berascan
      • Bera Discord
      • Berachain X (Twitter)
      • Berachain Docs
    • FAQ
  • developer bros
    • API
      • Gateway
        • Executes
          • Place Order
          • Cancel Order
          • Cancel and Place
          • Cancel Product Order
          • Withdraw Colleteral
          • Transfer Quote
          • Liquidate Subaccount
          • Mint LP
          • Burn LP
          • Link Signer
        • Queries
          • All Products
          • Contracts
          • Fee Rates
          • Health Groups
          • Insurance
          • Linked Signer
          • Market Liquidity
          • Market Prices
          • Max Lp Mintable
          • Max Order Size
          • Max Withdrawable
          • Min Deposit Rates
          • Nonces
          • Order
          • Orders
          • Status
          • Subaccount Info
          • Symbols
        • Signing
          • Examples
          • Q A
      • Subscriptions
        • Authentication
        • Streams
        • Events
        • Rate Limits
      • Archive (indexer)
        • Candlesticks
        • Events
        • Funding Rate
        • Interest Funding Payments
        • Linked Signer Rate Limit
        • Liquidation Feed
        • Maker Statistics
        • Market Snapshots
        • Matches
        • Merkle Proofs
        • Oracle Price
        • Orders
        • Perp Prices
        • Product Snapshots
        • Rewards
        • Signatures
        • Subaccounts
        • Summary
        • HONEY Price
      • Trigger
        • Executes
          • Place Order
          • Cancel Orders
          • Cancel Product Orders
        • Queries
          • List Trigger Orders
      • V2
        • Apr
        • Assets
        • Contracts
        • Orderbook
        • Pairs
        • Tickers
        • Trades
      • Rate limits
      • Errors
      • Symbols
      • Depositing
      • Withdrawing (on-chain)
      • Integrate via Smart Contracts
      • Definitions / Formulas
    • On-Chain Contracts
Powered by GitBook
On this page
  • Rate limits
  • Single Product
  • Multiple Products
  • Response Fields
  1. developer bros
  2. API
  3. Archive (indexer)

Perp Prices

PreviousOrdersNextProduct Snapshots

Last updated 3 months ago

Rate limits

  • 1200 requests/min or 200 requests/10secs per IP address. (weight = 2)

See more details in

Single Product

Request

POST [ARCHIVE_ENDPOINT]

Body

{
  "price": {
    "product_id": 4
  }
}

Request Parameters

Parameter
Type
Required
Description

product_id

number

Yes

ID of the perp product to fetch prices for.

Response

{
  "product_id": 2,
  "index_price_x18": "28180063400000000000000",
  "mark_price_x18": "28492853627394637978665",
  "update_time": "1680734493"
}

Multiple Products

Request

POST [ARCHIVE_ENDPOINT]

Body

{
  "perp_prices": {
    "product_ids": [2, 4]
  }
}

Request Parameters

Parameter
Type
Required
Description

product_ids

number[]

Yes

IDs of perp products to fetch prices for.

Response

Note: the response is a map of product_id -> perp_prices for each requested product.

{
  "2": {
    "product_id": 2,
    "index_price_x18": "31483202055051853950444",
    "mark_price_x18": "31514830401018841708801",
    "update_time": "1689281222"
  },
  "4": {
    "product_id": 4,
    "index_price_x18": "1989441054781252181059",
    "mark_price_x18": "1991027178395002760448",
    "update_time": "1689281222"
  }
}

Response Fields

Field Name
Description

product_id

ID of the perp product.

index_price_x18

Latest index price of the perp product, multiplied by 10^18.

mark_price_x18

Latest mark price of the perp product, multiplied by 10^18.

update_time

Epoch time in seconds when the perp prices were last updated.

API Rate limits