sFOX API
Sign InOpen Account
sFOX API
sFOX API
  • Introduction
    • Welcome
    • Getting Started
    • Systems & Operations
    • Rate Limits
  • REST API
    • REST Endpoints
    • Authentication
    • Rate Limits
    • Account Management
      • Get All Balances
      • Get All Currencies
      • Get All Currency Pairs
      • Get All Transactions
      • Get Fees
    • Orders
      • Order Types
      • Create Order
      • Cancel Order
      • Cancel Multiple Orders
      • Cancel All Orders
      • Amend Order
      • Get Single Order
      • Get All Open Orders
      • Get All Done Orders
      • Get All Trades
    • Request for Quote (RFQ)
    • Post-Trade Settlement (PTS)
      • Get Account Risk Metrics
      • Get All Positions
      • Get All Funding Transactions
      • Get All Funding Rates
      • Get All Risk Modes
      • Create Transfer
    • Shorting
      • Get Account Risk Metrics
      • Get All Positions
    • Transfers
      • Get All Deposit Addresses
      • Get Single Deposit Address
      • Create Deposit Address
      • Deposit From Bank Account
      • Withdraw From Account
      • Get Single Withdrawal Fee
      • Create Transfer
    • Custody (sFOX SAFE)
      • Get Whitelisted Addresses
      • Add Whitelisted Address
      • Delete Whitelisted Address
      • Get Approval Rules
      • Create Approval Rule
      • Edit Approval Rule
      • Get Approval Requests
      • Respond to Approval Request
    • Staking
      • Get Staking Currencies
      • Get All Staking Transactions
      • Create Stake
      • Cancel Stake
      • Unstake
    • Market Data
      • Get Candlesticks
      • Get Volume Analytics
      • Get Order Estimate
      • Get Order Book
    • Reporting
      • Get Orders Report
      • Get Monthly Summary
      • Get Portfolio Valuation
      • Get All Transactions
  • WebSocket API
    • Introduction
    • Connecting
    • Rate Limits
    • Authentication
    • Subscribing & Unsubscribing
    • Message Format
    • Market Data
      • Order Book
      • Trades
      • Ticker
    • Orders & Account Data
      • Orders
      • Trades
      • Balances
      • Post-Trade Settlement
  • FIX API
    • FIX Order Entry
    • FIX Market Data
    • QuickFIX Guide
  • Errors
    • Error Codes
Powered by GitBook
  1. Introduction

Rate Limits

PreviousSystems & OperationsNextREST Endpoints

Last updated 5 months ago

The REST API rate limits requests by IP address AND, in some cases, by route.

  • IP Address: 250 requests per 10 seconds.

    • If you exceed this, a 429 error is thrown and you have to wait 60 seconds before resuming.

  • Route-specific limits: Routes with unique rate limits are specified in the route details within this documentation. e.g. .

    • If the route details do NOT specify a rate limit then the route does not have a specific rate limit.

    • If you exceed this, a 429 error is thrown and you have to wait 10 seconds before resuming requests to this specific route.

sFOX recommends using the for retrieving data as much as possible as this will not count towards the request limit.

Note: sFOX typically enforces route-specific rate limits on routes that return data that is available via the e.g. account balances.

The WebSocket API rate limits requests and connections by IP address. If you exceed a rate limit, an error is thrown and your requests will be blocked for 2 minutes. Rate limits for the WebSocket API are as follows:

Type
Limit

Connections

10 active connections per IP address.

Requests

40 requests per 1 minute per IP address. Requests are counted, in total, across your active connections.

REST API Rate Limits
Get All Done Orders
WebSocket API
WebSocket API
WebSocket API Rate Limits