modified readme

This commit is contained in:
Kate Hu 2023-02-16 14:18:25 +08:00
parent 24efd1f71e
commit ccfc4533fb
3 changed files with 14 additions and 6 deletions

View File

@ -8,8 +8,8 @@ https://github.com/okxapi/python-okx
#### OKX API Telegram #### OKX API Telegram
https://t.me/OKXAPI https://t.me/OKXAPI
#### API trading tutorials #### API trading tutorials
- Spot trading: [](https://www.okx.com/learn/spot-trading-with-jupyter-notebook) - Spot trading: https://www.okx.com/learn/spot-trading-with-jupyter-notebook
- Derivative trading: [](https://www.okx.com/learn/derivatives-trading-with-jupyter-notebook) - Derivative trading: https://www.okx.com/learn/derivatives-trading-with-jupyter-notebook
Make sure you update often and check the [Changelog](https://www.okx.com/docs-v5/log_en/) for new features and bug fixes. Make sure you update often and check the [Changelog](https://www.okx.com/docs-v5/log_en/) for new features and bug fixes.
@ -27,8 +27,8 @@ Make sure you update often and check the [Changelog](https://www.okx.com/docs-v5
`WebSocketAPI websockets package advise version 6.0` `WebSocketAPI websockets package advise version 6.0`
#### Step 1: register an account on OKX and apply for an API key #### Step 1: register an account on OKX and apply for an API key
- Register account: [](https://www.okx.com/account/register) - Register for an account: https://www.okx.com/account/register
- Apply for an API key: [](https://www.okx.com/account/users/myApi) - Apply for an API key: https://www.okx.com/account/users/myApi
#### Step 2: install python-okx #### Step 2: install python-okx
@ -46,7 +46,7 @@ passphrase = ""
``` ```
- RestAPI - RestAPI
- For spot trading: run example/get_started_en.ipynb - For spot trading: run example/get_started_en.ipynb
- For derivative trading: run example/https://github.com/okxapi/python-okx/blob/master/example/trade_derivatives_en.ipynb - For derivative trading: run example/trade_derivatives_en.ipynb
- Tweak the value of the parameter `flag` (live trading: 0, demo trading: 1 - Tweak the value of the parameter `flag` (live trading: 0, demo trading: 1
) to switch between live and demo trading environment ) to switch between live and demo trading environment
- WebSocketAPI - WebSocketAPI

7
id_rsa_api Normal file
View File

@ -0,0 +1,7 @@
-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW
QyNTUxOQAAACDIy/y1JnknxG11xPPGe3vkK9yW0fUReNanR38dovJcEwAAAJB+PKQSfjyk
EgAAAAtzc2gtZWQyNTUxOQAAACDIy/y1JnknxG11xPPGe3vkK9yW0fUReNanR38dovJcEw
AAAEDkxjjpG/q2+2BHVAUd7q9KNUSjZbEZ2mfBdZqplHaDMsjL/LUmeSfEbXXE88Z7e+Qr
3JbR9RF41qdHfx2i8lwTAAAAC2FwaUBva2cuY29tAQI=
-----END OPENSSH PRIVATE KEY-----

1
id_rsa_api.pub Normal file
View File

@ -0,0 +1 @@
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMjL/LUmeSfEbXXE88Z7e+Qr3JbR9RF41qdHfx2i8lwT api@okg.com