/Exchanges & API/Connect your exchange/How to create and set up OKX API key

How to create and set up OKX API key

In this article, we will show you how to create, configure, and connect your OKX and OKX Futures API key to the Bitsgap platform.

Bitsgap is a trading platform that allows you to work with numerous cryptocurrency exchanges from a unified interface with access to additional tools unavailable on the exchange.

All trading operations are created and processed using an exchange API key unique to every user. An API key is a safe and reliable way to use a platform because it does not give access to personal data and prevents any funds management (withdrawals & deposits).


Types of creating API keys

Currently, there are two options to create OKX API keys:

OKX Fast API is the OKX API subsystem that uses the OAuth 2.0 protocol for user authentication and authorization. It helps to quickly authorize specific account permissions, create API keys, and automatically connect them to Bitsgap. It allows you to start using Bitsgap services without manually creating API keys. This system is secure since all generated API keys are transferred to Bitsgap in encrypted form. To set up an API key, please, follow the next steps:

1. Configure Futures Account (optional)

Log in to your OKX account.

image.png

Note
This is required if you want to connect your OKX Futures account. You can skip this step if you trade on the Spot market only.

To enable futures trading, go to Trade > Futures.

Untitled.png

Then click on the “Settings” icon in the top-right corner.

Untitled (1).png

To ensure a smooth trading experience, set your Account mode to ‘Single-currency margin’ and check if your Position mode is ‘One-way mode’.

OKXENG.gif

Untitled (2).png

When you complete all steps, your OKX Futures account will be activated - this will allow you to trade on your OKX futures account via Bitsgap.

Warning
On the OKX exchange, you have only one wallet for different markets (spot, futures, margin, etc.). So, when trading OKX futures, we recommend using the Isolated margin mode to avoid losing the entire balance in case of liquidation.

2. Go to Bitsgap > My Exchanges page

Log in to your Bitsgap account, go to the My Exchanges page, and click the [Add new exchange] button to continue.

OKX1.png

3. Select OKX from the list and choose Fast Connect

Read through the further steps and then click [Connect].

OKX2.png

4. Authorize the permissions

You will be forwarded to the OKX website, where you will see the account permissions requested by us.

Note
The requested permissions don't give access to your account or don't transfer any personal or credential data.

Screenshot_1.jpg

To connect your OKX account to Bitsgap, please enter your OKX account credentials and click the [Log in] button.

5. Connection check

After successful authorization and API creation, you will be automatically redirected to the My exchanges page on Bitsgap. The API key will be created and added automatically.

If everything is done correctly, you will see OKX added to the list of your connected exchanges with the Connected status and the trading balance available on your account.

OKX4.png

Manual connection of OKX API keys

1. Log in to the OKX

Log in to your OKX account or create a new one.

OKX5.png

1.1. Configure Futures Account (optional)

Note
This is required if you want to connect your OKX Futures account. You can skip this step if you trade on the Spot market only.

To enable futures trading, go to Trade > Futures.

Untitled.png

Then click on the “Settings” icon in the top-right corner.

Untitled (1).png

To ensure a smooth trading experience, set your Account mode to ‘Single-currency margin’ and check if your Position mode is ‘One-way mode’.

OKXENG.gif

Untitled (2).png

When you complete all steps, your OKX Futures account will be activated - this will allow you to trade on your OKX futures account via Bitsgap.

Warning
On the OKX exchange, you have only one wallet for different markets (spot, futures, margin, etc.). So, when trading OKX futures, we recommend using the Isolated margin mode to avoid losing the entire balance in case of liquidation.

2. Go to the API page

Navigate to the API page from your account settings (top-right corner).

OKX1.png

3. Create a V5 API Key

Click [Create V5 API Key] to proceed.

OKX2.png

4. Select the purpose for creating the API key

To create an API key for Bitsgap, click on the [Linking third-party apps] button in the Purpose section and choose Bitsgap from the list of App names.

OKX3.png

5. Label your API key and match permissions

Give your API key any name (it is your personal choice) so you can easily understand that this key is connected to your Bitsgap account.

Note
Please note that you will need to create a Passphrase at this stage. This password is individual for each API key. Save it somewhere safe because you will need it in the future.

Edit your permissions as in the example below. These permissions will allow us to read your history, current balance and execute trades on your exchange account.

Here is the list of required permissions:

  • Read - on
  • Trade - on

OKX4.png

Insert all the codes for the security verification, and proceed by clicking the [Confirm] button.

6. Copy your API key and Secret key

Now your OKX trading key is successfully created and ready to be connected to our platform! Please copy your API and Secret keys somewhere safe before adding them to Bitsgap.

OKX10.png

7. Go to Bitsgap > My Exchanges

Log in to your Bitsgap account and go to the My Exchanges page, where you can find an option to connect your OKX account. Click [Add new exchange].

OKX1.png

8. Select the OKX exchange and enter your API info

From the pop-up window, you need to select OKX. In the Manual Connect window, you can paste your API key, Secret key, and Passphrase. Then click [Connect].

OKX11.png

9. Connection check

If everything is done correctly, you will see OKX added to the list of your connected exchanges with the Connected status and the trading balance available on your account.

OKX4.png


Get stuck? Ask your question to our community on Telegram!