# OKX (via API-key)

## Connecting OKX

Finandy service enables trading on [OKX](https://www.okx.com/join/9132713) through a free API key. To connect to trading via API on the OKX exchange partner, follow these steps:

1. Register on OKX [using this link →](https://www.okx.com/join/9132713)
2. Deposit funds into your [OKX](https://www.okx.com/join/9132713) exchange account
3. Navigate to Futures using the [LINK](https://www.okx.com/trade-swap/btc-usdt-swap), click "Update to trade," and in the opened window, press the "Switch" button (as shown in the image below).

<figure><img src="https://t24536365.p.clickup-attachments.com/t24536365/1bf0f841-7693-4fae-8d1b-04cb5f39941a/tg_image_658540016.jpeg" alt="" width="375"><figcaption></figcaption></figure>

<figure><img src="https://554260309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeAkMGtCw51BYWLVdmuDx%2Fuploads%2FiRMllvvQSQHNfxZUgEMK%2Fimage.png?alt=media&#x26;token=bc66be41-a5e0-48f7-9663-ec6750fe4679" alt="" width="563"><figcaption></figcaption></figure>

4\. Log in to your Finandy account and select Account / API Keys

5\. Click the **"Connect OKX"** button.

<figure><img src="https://t24536365.p.clickup-attachments.com/t24536365/c5242502-4f13-4a03-b219-11548c3f0a56/image.png" alt="" width="563"><figcaption></figcaption></figure>

6\. Fast API creation menu is displayed

<figure><img src="https://t24536365.p.clickup-attachments.com/t24536365/e6bf020d-74d7-4fdd-871e-2f60d4400dae/image.png" alt="" width="563"><figcaption></figcaption></figure>

7\. After connecting, you will be redirected to the original Finandy service page, which will automatically display the API key created during connection.

<figure><img src="https://t24536365.p.clickup-attachments.com/t24536365/0f7f58d4-1423-483c-9f9f-a3f7a14d48d6/image.png" alt="" width="563"><figcaption></figcaption></figure>

## Possible errors

**Processing API key creationError: OKX API error: Fast API is allowed to create only one API KEY**

<figure><img src="https://554260309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeAkMGtCw51BYWLVdmuDx%2Fuploads%2F1W81Rus14fNGchQlLMzA%2Fimage.png?alt=media&#x26;token=0c553a75-60ae-4d74-852d-d44d216be913" alt="" width="563"><figcaption></figcaption></figure>

This error indicates that you have previously connected to Finandy.You need to delete the API key in OKX and try again.To delete the API key in OKX you need to:

1. Log in to your OKX Exchange account and select Account - API

<figure><img src="https://554260309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeAkMGtCw51BYWLVdmuDx%2Fuploads%2FpxS3lvGicDB3PwH7XlAo%2Fimage.png?alt=media&#x26;token=30d0e762-0398-4310-b3ec-18b81853c1bb" alt="" width="371"><figcaption></figcaption></figure>

2. Delete all API keys by clicking the **Delete** button.

## Delete an API key

To delete an exchange API key, go to Account / API Keys (1) in Finandy's website and click on Delete (2).

{% hint style="info" %}
Warning! If you plan to delete the key on OKX, it is necessary to delete it on Finandy terminal as well.
{% endhint %}

<figure><img src="https://554260309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeAkMGtCw51BYWLVdmuDx%2Fuploads%2FuSMKfp94t9j35E3dHj87%2Fimage.png?alt=media&#x26;token=691c8f34-d68c-489b-94b4-bbd195bcd011" alt="" width="563"><figcaption></figcaption></figure>

## Frequently asked questions

### What are the restrictions if there is a previously created account without reference code/with a different reference code in OKX exchange?

There are no restrictions or additional conditions for these accounts.

### I use the OKX API for third party services and not just Finandy. Will the API conflict?

Yes, there can be conflicts. This type of activity is not regulated, so all risks are entirely at the user's own risk.

### Can I trade on OKX / Binance / Finandy at the same time?

Yes, it is possible to trade on all three platforms.

### Is it safe to connect the terminal to OKX exchange?

Upon connection, an API key is generated, which only has access to the IP of our servers.The procedure is the same as creating a key manually in OKX and adding it to our service.Finandy terminal stores the API key in encrypted form.

Do you have any questions? We will help you in our [Telegram chat](https://t.me/finandy).
