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
  • Request
  • Request Parameters
  • Response
  1. developer bros
  2. API
  3. Gateway
  4. Queries

Fee Rates

PreviousContractsNextHealth Groups

Last updated 2 months ago

Rate limits

  • 1200 requests/min or 20 requests/sec per IP address. (weight = 2)

See more details in .

Request

Connect

WEBSOCKET [GATEWAY_WEBSOCKET_ENDPOINT]

Message

{
  "type": "fee_rates",
  "sender": "0x7a5ec2748e9065794491a8d29dcf3f9edb8d7c43000000000000000000000000"
}

GET [GATEWAY_REST_ENDPOINT]/query?type=fee_rates&sender={sender}

POST [GATEWAY_REST_ENDPOINT]/query

Message

{
  "type": "fee_rates",
  "sender": "0x7a5ec2748e9065794491a8d29dcf3f9edb8d7c43000000000000000000000000"
}

Request Parameters

Parameter
Type
Required
Description

sender

string

Yes

A bytes32 sent as a hex string; includes the address and the subaccount identifier.

Response

{
  "status": "success",
  "data": {
    "taker_fee_rates_x18": [
      "0",
      "300000000000000",
      "200000000000000",
      "300000000000000",
      "200000000000000"
    ],
    "maker_fee_rates_x18": [
      "0",
      "0",
      "0",
      "0",
      "0"
    ],
    "liquidation_sequencer_fee": "250000000000000000",
    "health_check_sequencer_fee": "100000000000000000",
    "taker_sequencer_fee": "25000000000000000",
    "withdraw_sequencer_fees": [
      "10000000000000000",
      "40000000000000",
      "0",
      "600000000000000",
      "0"
    ]
  },
  "request_type": "query_fee_rates",
}
  • taker_fee_rates_x18: taker fee associated with a given product indexed by product_id. Note: this fee represents the basis point (BPS) on a taker order in x18.

  • maker_fee_rates_x18: maker fee associated with a given produced indexed by product_id``.

  • withdraw_sequencer_fees: withdraw fees associated with a given product indexed by product_id. Note: this fee represents a fixed amount of product to be deducted as fee in x18.

See our page for details about current fee rates.

API Rate limits
fees