OKX Sub-accounts & API Connection
Last updated
Last updated
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).
Create OKX Trading Sub-Account
From top right dropdown, click "Sub-account":
Click "Create Sub-account"
Set up a [Login ID and Password] - [Account Type: Standard Sub-Account] - [Edit: Configure according to your preference] - [Submit]
From top right dropdown, click "Sub-account"
Click "Action", then "Manage API"
Click "Create V5 API Key"
Set "API Name", "Passphase", enable "Trade" permission, then click "Confirm"
Input “Two-factor authentication” then click “Confirm"
Get your "API Key" and "API Secret"
Select Transfer
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.
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)
Navigation: API keys → Edit → Add your IP and tick on Confirm
Copy and paste API key and API Secret to Investy.ai Exchange Setup. Then, enter your OKX created passphrase correctly
Fill out all the required fields in Investy.ai. Press [Save] & [Connect Exchange] - your funds will be available in Investy.ai within a minute
Alternatively, if you want the trade happens in your master account, you can create the main account API as follows:
From top right dropdown, click "API"
Click "Create API Key"
Follow similar procedures for sub-account API above