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 OkCoin have an API?

Does OkCoin have an API?

Yes, OkCoin does have an API. It provides real-time market data, trading functionalities, trade execution, and account balances. Moreover, it supports advanced trading options like futures and margin trading, as well as secure methods for depositing and withdrawing funds. However, instead of using OkCoin's public API, an alternative is to use the Mesh API, which has built integrations with OkCoin, along with 300+ other digital asset exchanges and wallets. This allows developers to build products that enable users to access their digital assets from various platforms, all via a single integration with Mesh.

About OkCoin

OkCoin is a rapidly growing global cryptocurrency exchange that offers users the ability to buy, sell, and manage assets like Bitcoin, Ethereum, and other cryptocurrencies. Moreover, the company prides itself on providing low fees and a range of services, including staking and DeFi opportunities. They also offer a mobile app for convenient access to the market, making it a versatile choice for crypto enthusiasts.

General usage

Here's a brief summary of OkCoin API:

  1. Trading APIs: These allow for placing, amending, and canceling orders, including batch operations. They support trading-related activities and require authentication.
  2. Funding APIs: These provide functionalities for managing currencies, account balances, asset valuation, funds transfer, deposit and withdrawal operations.
  3. Account Management APIs: These cover account balance inquiries, bill details, account configuration, and maximum trade amount queries.
  4. OTC-Desk RFQ APIs: These are specialized for Request for Quote (RFQ) operations in over-the-counter trading, including pair availability, order placement, and order history.
  5. Market Data APIs: These provide access to market-related data such as tickers, order books, candlesticks, trade history, and total volume.
  6. Public Data APIs: These APIs offer access to general market instruments and system time information.
  7. SubAccount APIs: They facilitate viewing and managing sub-account information, including balance and transfer history.
  8. WebSocket APIs: These are used for real-time data streaming and trading operations. They support functionalities like account and order channel subscriptions and trade execution.

Rate Limits

Here are the rate limits for OkCoin API:

  • Rate Limits Range:
  • Rate Limit: 60 requests per 2 seconds


This is how you authenticate your requests to the OkCoin API:

  1. Generate an API key via the OkCoin Exchange website, and note down the key, secret, and any additional required information.
  2. Select the appropriate permissions for your API key based on your application's needs.
  3. Include the necessary headers, such as API key, signature, and timestamp, in your API requests.
  4. Calculate the timestamp header as the number of seconds since Unix Epoch in UTC.
  5. Create the signature header by generating a hash (e.g., HMAC) using the secret key and other required information. Include the resulting signature in the appropriate header of your API request.

Recent changes

Here are the most recent changes to the OkCoinAPI:

  • 2023-08-30
  • System maintenance that may result in short interruption (lasting less than 5 seconds) or websocket disconnection (users can immediately reconnect) will not be announced. The maintenance will only be performed during times of low market volatility.
  • 2023-04-19
  • Order book channel made some changes as follows:
  • The trading fee tier that is allowed to subscribe to "books-l2-tbt" 400 depth channels, changed from VIP5 and above to VIP4 and above.
  • 2023-03-08
  • Fiat endpoints was launched
  • 2023-01-05
  • OkCoin published V5API Beta version

An alternative to the OkCoin API.

Integrating with OkCoin's API directly might seem like the obvious choice for developers looking to access the exchange's features. However, using the Mesh API offers several advantages that make it a more attractive option for developers and businesses aiming to offer a more a streamlined and integrated user experience for cryptocurrency transactions. Here are some of the standout features of the Mesh API:

  • 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 your app for enhanced user convenience.
  • Cost Benefits: Mesh offers customized pricing options for businesses, which can be discussed with their sales team.

By choosing the Mesh API over OkCoin's own API, developers can benefit from a more comprehensive and user-friendly solution that simplifies the process of buying and selling digital assets. Start with Mesh today and experience the ease and efficiency of their cutting-edge API in your digital asset endeavors.