admin

Connect Trading Account with OKX

How it work


ALGOGENE now supports users to trade with OKX accounts using ALGOGENE dedicated trading gateway!

collaborate


Open OKX trading accounts through our partnership link, you will enjoy:

  • OKX's Mystery Boxes worth up to $10,000
  • Lifetime 10% commission rebate for every trade on OKX
  • HK$300 free credits on ALGOGENE


This article goes through the steps to connect ALGOGENE with your OKX trading account. The overall workflow is summarized in this diagram.

workflow

Who is OKX?

OKX (https://www.okx.com//), formerly called OKEx, is a crypto exchange initially headquartered in China and now based in Seychelles. As of the time of writing, OKX ranks to be the top #8 cryptocurrency exchange by trading volume. It offers crypto trading for spot and derivatives including margin, futures, perpetual swaps and options. Other products include: trading bots, block trading, crypto loans, and OKX Earn (savings, stablecoins, DeFi, staking, etc).


Client Onboarding on OKX

  • Sign up on OKX

  • From top right dropdown, click "Verification" and follow the instructions to complete the KYC process
  • onboard

Trading Account Configuration

ALGOGENE supports 2 methods to connect with your OKX accounts.

  1. API Key
  2. OAuth

1. For API Key method,

  • For connecting real trading accounts, please refer to this section.
  • For connecting demo trading accounts, please refer to this section.

  • Config on ALGOGENE
    • Login ALGOGENE portal
    • Go to 'Settings' page
    • Select an ALGOGENE live-test or real-trade account depending on your case
    • config1

    • Choose "OKX" in broker dropdown
    • Update the connection settings as follows:
      • "API Key" -> Your OKX's API Key
      • "Password" -> Your OKX's API Secret
      • "Passphase" -> Your OKX's API Passphase

      algogene_config

2. For OAuth method,

  • Login ALGOGENE portal
  • Go to 'Settings' page
  • Select an ALGOGENE live-test or real-trade account depending on your case
  • config1

  • Choose "OKX (OAuth)" in broker dropdown
  • oauth4

  • You will be redirected to OKX official website
  • oauth1

  • Login with your OKX sub-account or main account, then approve binding with ALGOGENE
  • oauth2

  • After successful authorization on OKX, you will get back to ALGOGENE and the connection is done!


Deploy Algo

After successful connection from above, you are now ready to deploy and trade an Algo with OKX.

1. Deploy from a DIY script

  • Under ALGOGENE 'settings', choose your OKX linked account
  • algogene_deploy

  • deploy any one of your backtested script
  • algogene_deploy2

2. Deploy from algo marketplace subscription

  • Explore available trading bots from ALGOGENE Marketplace
  • Choose a desired trading bot, click "SUBSCRIBE"
  • Select your desired "Run Mode" and "Account", then click "SUBMIT"
  • subcribe


Happy Trading! :)


 
admin

This section is about Real Trading Account setup!



Create Real-Trading Sub-account

It is advised to create multiple sub-accounts on OKX to manage different trading strategies.

  • From top right dropdown, click "Sub-account"
  • subaccount

  • Click "Create Sub-account"
  • step2

  • Set "Login ID", "Password"
  • "Account Type" chooses "Standard sub-account"
  • step3

Create API Key for Real-Trading Sub-account

  • From top right dropdown, click "Sub-account"
  • subaccount

  • Click "Action", then "Manage API"
  • step4

  • Click "Create API Key"
  • step5

  • Click "Binding third-party apps", and choose "Algogene" in App name dropdown
  • Set "API Name", "Passphase", enable "Trade" permission, then click "Confirm"
  • step6

  • Get your "API Key" and "API Secret"
  • step7

Create API Key for main account (Optional)

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
 
admin

This section is about Demo Trading Account setup!



Create Demo-Trading Sub-account

  • In top navigation bar, click "Trade" > "Demo Trading"

  • In top right corner, click "Sub-account"

  • Click "+Create Sub-account"

  • Set "Login ID", "Password"
  • "Account Type" chooses "Standard sub-account"

Create API Key for Paper-Trading Sub-account

  • In top navigation bar, click "Trade" > "Demo Trading"

  • Click "+Create Sub-account"

  • Under an sub-account, click "Action" > "Manage API"

  • Click "Create API Key for demo-trading"

  • Click "Binding third-party apps", and choose "Algogene" in App name dropdown
  • Set "API Name", "Passphase", enable "Trade" permission, then click "Confirm"
  • step16

  • Get your "API Key" and "API Secret"
  • step7