BRAIN Docs

OKX API Connection Guide

  1. Log in to your OKX account

    Open OKX and log in to your account. If you do not have an account yet, create one first and complete the basic security setup.

    OKX login page with the account sign-in form
  2. Check access to futures

    Before connecting, open the Futures / Derivatives section on the exchange. If the exchange shows an activation window, trading guide, risk notice, or introductory steps, confirm them and complete the short setup. Usually, this is enough to activate futures trading on the account.

    OKX futures section with the activation prompt
  3. Open BRAIN Mini App

    Go to Telegram and open @Brain_Trading_Bot.

    Then open: Settings → Exchanges → OKX → Connect OKX

    After that, BRAIN will redirect you to your OKX account to confirm the connection.

    BRAIN Mini App showing the OKX One Click connection card
  4. Confirm the connection on OKX

    On the OKX side, check the connection details and click Confirm. OKX may ask for its own security confirmation (2FA, email code).

    After confirmation, OKX will automatically redirect you back to Telegram / BRAIN.

    OKX account access page asking to confirm the BRAIN connection
  5. Check the connection status

    After returning to BRAIN, check the exchange status. If everything is connected correctly, the status next to OKX should show: Connected / Active

    BRAIN Mini App showing OKX with a connected and active status

OKX notes

For OKX, One-Click connection is used, so the user does not need to manually copy API Key and Secret Key. The connection is confirmed on the OKX side, after which the user automatically returns to BRAIN. If after confirmation the status does not change to Connected / Active, try refreshing the Mini App or repeating the connection.