Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve OKEX integration #63

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

darrylsite
Copy link
Contributor

  • Add the DEMO context for websocket
  • Add the REST endpoing for ALgo order

@pimpcapital
Copy link
Contributor

could you split it to 2 PRs?
I am not sure about demo context. I need to look into the use case.

@darrylsite
Copy link
Contributor Author

Hi @freelunchcap,
I sure can split it in two MR.
The demo mode is to trade in the simulation mode. You can find the documentation at: https://www.okx.com/docs-v5/en/#overview-api-resources-and-support

Demo Trading Services
At present, the V5 API works for Demo Trading and users can request all APIs except the withdrawal, deposit and purchase/redemption endpoints.

The Demo Trading URL:

REST: https://www.okx.com
Public WebSocket:wss://wspap.okx.com:8443/ws/v5/public?brokerId=9999
Private WebSocket:wss://wspap.okx.com:8443/ws/v5/private?brokerId=9999
OKX account can be used for login on Demo Trading. If you already have an OKX account, you can log in directly.

Start API Demo Trading by the following steps:
Login OKX —> Assets —> Start Demo Trading —> Personal Center —> Demo Trading API -> Create Demo Trading V5 APIKey —> Start your Demo Trading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants