Exchange API
Your gateway to the future
A seamless trading integration
Support spot, margin, contracts, and options API trading for 100+ digital currencies
Create/Manage API keys
Trade & request
Deploy API
User
API
Exchange
VIPs & institutions
We offer exclusive services for our VIP and institutional users, such as better fees, higher trading limits flexible account management feature, and OTC services. Our professional team strives to provide excellent trading solutions to a wide range of market participants.
Market Maker Program
Get access to better fees, higher trading limits and lower latency.
Broker Program
Get access to world-class market depth and rewardable commissions.
Block trading
Request-for-Quote (RFQ) for large-sized spot, derivatives, and multi-leg structures
FAQ
Is Exchange API free?
It's completely free to sign up as Exchange user and use our APIs.
How to create and use your Exchange API Keys?
1. Log into your OKX account and click the user icon
2. Select API from the dropdown menu
3. Choose the account you want to create API Keys for
4. Click Create API Keys
How do I use Exchange API?
You can start using OKX APIs once created them! For public REST APIs, you can just test them out in your browser, e.g. /api/v5/public/instruments?instType=SPOT. For private REST APIs or WebSocket APIs, we recommend using tools like Jupyter Notebook, Postman, etc.
What's the difference between REST API and WebSocket API?
REST APIs require an HTTP request to be sent for every response you get. It's the best when you just want the current state of a resource and do not want or require ongoing updates, e.g. instruments data. WebSocket APIs do not follow a request-response message pattern. Once a TCP connection has been established, the WebSocket channel can send updates continuously without receiving another request. WebSocket APIs are the best when you want ongoing updates whenever they are available, e.g. market data.
In acceding to or using the Platform and the Site, you represent and warrant that you are fully aware of the risks associated with the transactions involving Digital Assets or the use of Platform. You agree and understand that you are solely responsible for determining the nature, potential value, suitability, and appropriateness of these risks for yourself, and that the Company does not give advice or recommendations regarding any Digital Asset, including the suitability and appropriateness of, and investment strategies for, any Digital Asset. You agree and understand that you access and use the Platform and the Site at your own risk. © Pinolise Crypto 2024