Home > web3.0 > How to set up API on okex by yourself

How to set up API on okex by yourself

WBOY
Release: 2024-07-24 18:38:01
Original
1099 people have browsed it

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 API on okex by yourself

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

  • Use the created API key and key pair to verify that the API key is valid.
  • In the API documentation page (https://www.okex.me/docs/cn/), select the API you want to use.
  • Add the following information in the request header:

    • OK-ACCESS-KEY: API key
    • OK-ACCESS-PASSPHRASE: Key pair
    • OK-ACCESS-TIMESTAMP: Current time Stamp (UNIX timestamp)
    • OK-ACCESS-SIGN: A signature generated using a key pair and timestamp (please refer to the API documentation for specific generation methods)

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template