OKX Sub-accounts & API Connection

Creating your own OKX APIs enables integration between your OKX Exchange Wallet and our product, Investy.ai. You can now start investing on Investy.ai with your funds in OKX through the created API.

Note:

  • You should create a sub-account on OKX to connect with INVESTY.AI. Invest your funds in the sub-accounts while continuing to trade with your main OKX account.

  • Prior to API creation, ensure your security by activating 2FA (Two-factor authentication).

Authentication Set-up

Create OKX Trading Sub-Account

  1. From top right dropdown, click "Sub-account":

  1. Click "Create Sub-account"

  1. Set up a [Login ID and Password] - [Account Type: Standard Sub-Account] - [Edit: Configure according to your preference] - [Submit]

Create API Key for OKX Trading Sub-account

  1. From top right dropdown, click "Sub-account"

  1. Click "Action", then "Manage API"

  1. Click "Create V5 API Key"

  1. Set "API Name", "Passphase", enable "Trade" permission, then click "Confirm"

  1. Input “Two-factor authentication” then click “Confirm"

  1. Get your "API Key" and "API Secret"

Transfer of funds into sub-account

  1. Select Transfer

  1. Select the Funding/Trading account in Main/Sub-account, the Sub-account name and Crypto you would like to transfer. Fill in the Amount and select Transfer to complete.

Connect to Investy.ai

  1. Add your IP as address allowlist at the OKX API Account as follows:

Get your IP here in the bottom section in Investy.ai website (showed below)

  1. Navigation: API keys → Edit → Add your IP and tick on Confirm

  1. Copy and paste API key and API Secret to Investy.ai Exchange Setup. Then, enter your OKX created passphrase correctly

  1. Fill out all the required fields in Investy.ai. Press [Save] & [Connect Exchange] - your funds will be available in Investy.ai within a minute

Create API Key for OKX main account (Optional)

Alternatively, if you want the trade happens in your master account, you can create the main account API as follows:

  1. From top right dropdown, click "API"

  1. Click "Create API Key"

  1. Follow similar procedures for sub-account API above

Last updated