Skip to main content

OKX

Important information regarding OKX. Please read it carefully:

  • Only USDT perpetuals are supported and tested.
  • Only futures trading is supported; the spot market is not available.
  • The account must be in Trade mode (not Simple mode). Switch this in OKX settings under Trading → Account mode.
  • One Way and Hedge mode is supported
  • Hedge mode is recommended
  • Check if the master and slave are configured the same, such as One Way or Hedge mode, leverage, and so on.
  • OKX does not support multiple positions for the same symbol, only a single aggregated position. If there are multiple positions on the master account, they will be merged into one. In this case, the ticket number of the oldest position on the master account will be used for tracking purposes.
  • Since OKX only supports one aggregated position per symbol, MetaCopier adapts TP/SL management as follows:
    • For Buy Positions:
      • The highest Take Profit (TP) among all master positions is applied.
      • The lowest Stop Loss (SL) among all master positions is applied.
    • For Sell Positions:
      • The lowest Take Profit (TP) among all master positions is applied.
      • The highest Stop Loss (SL) among all master positions is applied.
  • Price differences between a normal Broker and OKX
    • There can be significant price differences between a normal broker and OKX (a direct market exchange). This is due to variations in liquidity, spreads, and pricing models used by brokers versus exchanges.
    • To ensure accurate risk management, we highly recommend enabling the #tp-sl-management feature in MetaCopier and activating the "Adjust with master distance" option. This ensures that Take Profit (TP) and Stop Loss (SL) levels are adjusted dynamically based on the price difference between the master and slave accounts, improving trade execution reliability.
  • Check the profit of the trades and adjust the multiplier to align the profit on the slave account, since OKX works differently compared to a traditional forex broker.
  • When adding a copier to the OKX account, the option "Hide comment" must be activated. Manual trading or positions opened by other systems on the slave account are not recommended while this option is active, because a position can still be misclassified.

How to generate an API Key and Secret Key on OKX​

To connect your OKX account to MetaCopier, you can generate your API keys by following these steps:

Step 1: Log in to OKX

  • Go to the OKX website.
  • Click Log In and enter your credentials (email and password).
  • Complete any 2FA authentication if prompted.

Step 2: Navigate to API Management

Step 3: Create a New API Key

  • Click Create API Key.
  • Enter a label/name for your API key (e.g., "MetaCopier").
  • Enter a passphrase (you will need this later).
  • Under permissions, select Trade.
  • Select No IP restriction (or bind to your dedicated IP if applicable).
  • Click Submit and complete the verification steps.

Step 4: Connect to MetaCopier

  • Log in to MetaCopier.

  • Create an OKX account.

  • Enter your API Key, Secret Key, and Passphrase in the password field using the format:

    apikey|secretkey|passphrase
  • If the account can not connect try using a different region.

Security Tips

  • Do not share your Secret Key or Passphrase with anyone.