OKEx API setup steps: After logging in, enter "API Management" to create an API key. Configure the key name, permissions and validity period, and download the key pair. Activate the API key and enter the email verification code. Verify key validity in API documentation, use key pair and timestamp to generate signature.
How to set up OKEx API
Step 1: Create API key
- Log in to your OKEx account and click the "Account" icon in the upper right corner.
- Select "API Management" and then select the "API Management" tab.
- Click the "Create API Key" button.
Step 2: Configure API Key Settings
- Set a name for the API key.
- Select the permissions you want to grant your API key. You can choose spot trading, contract trading, USDT lending and other permissions.
- Select the validity period of the API key, you can choose to never expire or specify the validity period.
- Download API key and key pair. NOTE: This is your only chance to get your API key, so make sure you keep it safe.
Step 3: Activate API Key
- In the API Management page, find the newly created API key.
- Click the "Activate" button.
- Enter the email verification code to activate the API key.
Step 4: Verify API Key
Note:
- API key Only allowed for automated trading or managed accounts.
- Please do not share your API key with others.
- Regularly check API key validity and create new API keys if necessary.
The above is the detailed content of How to set up API on okex by yourself. For more information, please follow other related articles on the PHP Chinese website!