All topics
PED Perspectives
Customers + Partners
Company News
Industry Insights
Industry Insights
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Does BingX have an API?

Does BingX have an API?

Yes, BingX does have an API that allows users to access market data, trading, and account management endpoints of Perpetual Swap. You can find more details in BingX’s API documentation. The market data API is publicly accessible and provides information such as the latest trade of a trading pair. However if you’re looking for an alternative, consider using Mesh, which has built integration with BingX along with 300+ other digital asset exchanges and wallets.

About BingX

BingX, founded in 2018, is a cryptocurrency exchange platform based in Sydney, Australia, offering spot, derivatives, and social crypto trading. The company has a team of 251-500 employees and is led by professionals with experience in top VC firms, financial institutions, and leading internet companies. Catering to a wide range of users, BingX aims to provide a seamless trading experience for both individual traders and larger enterprises.

General usage

Here's a brief summary of BingX's APIs:

  1. Authentication API: Allows users to access its trading system. To ensure secure and authenticated interactions, users must create an API Key and include specific headers in their requests.
  2. Account Management API: Enables users to programmatically manage their BingX accounts. It includes features for account setup, access to trading history, and other account-related functionalities.
  3. Market Data API: Offers access to real-time and historical market data. This API is essential for users who need market insights for trading strategies and analysis.
  4. Trading API: Facilitates cryptocurrency trading and supports various order types and trading operations. It's ideal for users engaged in active trading on the BingX platform.
  5. Websocket API: Offers both private and public WebSocket subscriptions for high-frequency, real-time market data streaming. This API is critical for algorithmic traders and applications that require immediate market data updates.
  6. Copy Trading API: Allows users to engage in copy trading, where they can replicate the trading strategies of experienced traders. This feature is suitable for beginners or those looking to automate their trading based on successful patterns.

Rate Limits

The BingX API rate limit is:

  • Public REST API rate limit:
  • 20 requests per second per IP


This is how you authenticate your BingX API

  1. Generate an API Key and Secret Key at the API Management page on BingX. Set the IP access whitelist for security reasons and never share your keys with anyone.
  2. Set the appropriate permissions for your API Key based on your needs. The default permission is read-only, but you can modify it for write operations if necessary.
  3. Include the X-BX-APIKEY header in your private REST requests, passing the API Key as its value.
  4. Calculate the timestamp of your request in milliseconds and include it as a request parameter. The server will consider the request invalid if the timestamp is sent before 5000 milliseconds.
  5. Create a signature using the HMAC SHA256 encoding algorithm on the concatenated parameter string, and include it as a request parameter.

Recent changes

Here are five of the most recent changes to the BingX API:

  1. On 2024-01-10: Added fields to the response of the "/openApi/api/v3/capital/withdraw/history" and "/openApi/api/v3/capital/deposit/hisrec" endpoints. Also added a new interface for querying pending order status in perpetual contracts and a new interface for querying transaction details in spot trading.
  2. On 2023-12-21: Added new fields and interfaces related to spot trading, including cancel order restrictions, batch cancel orders, commission rate query, historical order query, currency pair query, and more.
  3. On 2023-12-08: Added new fields and interfaces related to spot trading, including percentage change in price, querying open orders, one-click liquidation, cancel all orders, sub-account management, and more.
  4. On 2023-11-22: Added support for different levels of depth in spot trading, updated status fields in deposit and withdrawal history, added fields for internal transfer records, and more.
  5. On 2023-11-10: Added support for simulated trading order placement in perpetual futures, additional fields in perpetual futures and spot trading, and more.

An alternative to the BingX API.

While BingX's API offers a way to access their platform directly, using the Mesh API can provide a more streamlined and efficient experience for developers and businesses. In this section, we'll discuss the value add of Mesh and why it's a better option than going directly to the BingX API.

Mesh offers several advantages over using the BingX API directly:

  • Integrated User Experience: Mesh seamlessly embeds cryptocurrency functionalities into your app, offering a smooth user journey.
  • Broad Connectivity: With a single integration, Mesh connects to over 300 brokerages, exchanges, and wallets, providing extensive flexibility and choice.
  • Simplified Asset Management: The API eases the process of depositing assets, allowing transfers from various sources directly within the app for enhanced user convenience.
  • Cost Benefits: Although the Mesh Pricing page does not explicitly mention costs, Mesh offers customized pricing options for businesses, which can be discussed with their sales team.

By choosing Mesh, developers and businesses can benefit from a more integrated and efficient experience when working with digital assets. Start with Mesh today and experience the ease and efficiency of their cutting-edge API in your digital currency endeavors.