# How to create API keys on OKX

1. Go to the API key creation section: <https://www.okx.com/account/my-api><br>

2. Begin the key creation procedure.

   <figure><img src="/files/hIkEancvEQclPJf04Nxb" alt=""><figcaption></figcaption></figure>

3. Copy the list of IP addresses from the CDZV service user panel.

   <figure><img src="/files/ARGuAUXVkksZcU4NBA9D" alt=""><figcaption></figcaption></figure>

   <figure><img src="/files/0YgAVPfX60jjTr6RDSv6" alt="" width="563"><figcaption></figcaption></figure>

4. Enter the name of the key (any name).

   <figure><img src="/files/0wfBInwokXj1TTdSRZfl" alt=""><figcaption></figcaption></figure>

5. Select the key operation mode “API trding” and copy the IP addresses you copied from the CDZV service user panel.

   <figure><img src="/files/mqKX03J6qDJiEPzn52ln" alt=""><figcaption></figcaption></figure>

6. Issue a trade authorization and enter a secret passphrase to further protect your API key (write it down). Your keys are ready to work!

   <figure><img src="/files/DxsDcx072lklbl7eVg3w" alt=""><figcaption></figcaption></figure>

7. Copy the Public and Secret keys, we will need them in CDZV.

   <figure><img src="/files/5o3XvpialQ7tidKl5Fd6" alt=""><figcaption><p><br></p></figcaption></figure>

   <figure><img src="/files/6KVO6mR4aBqsqxVGKpmv" alt="" width="563"><figcaption></figcaption></figure>

8. Create a new connection to the exchange in the user panel of the CDZV service and enter the previously saved Public and Secret keys and API Password (Passphrase) in the user panel of the CDZV service. After clicking the “OK” button, the system will check the connection to the exchange and, if successful, create a connection.

   <figure><img src="/files/91HnOKoeaGbeWGbELlzR" alt="" width="563"><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cdzv.com/code-zero-visual-trading_en/user-guide/how-to-create-api-keys-on-okx.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
