OKX TR API

Your gateway to the future

OKX TR API
https://static.okx.com/cdn/assets/imgs/2211/6D79824F98D32028.png

Seamless trading integration

https://static.okx.com/cdn/assets/imgs/2211/1E4918D617B309F7.png

User

Create/Manage API keys

Create/Manage API keys
Deploy API

Deploy API

https://static.okx.com/cdn/assets/imgs/2211/5D9BA656FACF420C.png

API

Trade & request

Trade & request

https://static.okx.com/cdn/assets/imgs/2211/ADF2EC5A876AEC07.png

OKX TR

Incentive programs

Check out our various incentive programs to 100x your profits

Made for developers

Utilize these tools and platforms to elevate your API trading experience!

Contact us

FAQ

Is OKX TR API free?

It's completely free to sign up as OKX TR user and use our APIs. For trading fees, please refer to Fee schedule.

How to create and use your OKX TR API Keys?

1. Log into your OKX TR 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

Does OKX TR provide a test environment?

Yes. After logging into OKX TR website, by clicking Demo trading, you can follow the steps described above to create API Keys for demo trading purpose.
Please refer to Demo Trading Services for the useful URLs to start demo trading services.

How do I use OKX TR API?

You can start using OKX TR APIs once created them!
For public REST APIs, you can just test them out in your browser, e.g. https://www.okx.com/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. symbol 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.

Disclaimer: The availability of products and services listed on this page will depend on your region. Please see your applicable Terms of Service for more detail.