M Alpha Core logoM·ALPHA·COREBuy a license

Home / Guides / OKX trading bot for your own account

OKX trading bot for your own account

OKX is one of the ten exchanges M Alpha Core supports. Scan a market, check the result on data the search never saw and let your own bot trade it on OKX with a key that can only trade.

Last updated:

Download M Alpha CoreGet a license

OKX perpetual swaps and contract sizes

OKX offers USDT and USDC margined perpetual swaps on its global platform. Orders on OKX are counted in contracts, and every market has its own contract size. The bot converts your trade size into contracts and back, so you never have to do that math yourself.

OKX supports sub accounts with their own API keys. Its help center has an FAQ on sub accounts, account modes and API connections, and an API FAQ. Like Bitget and KuCoin, OKX asks for a passphrase when you create a key.

In the European Economic Area, OKX offers X-Perps through OKX Europe. According to OKX, they are available to eligible traders in the EEA only, offer up to 10x leverage and require an appropriateness assessment before you can trade them.

Security diagram in M Alpha Core: sealed signals, an exchange key with trading rights only, an encrypted control panel and Telegram alerts
Security diagram in M Alpha Core: sealed signals, an exchange key with trading rights only, an encrypted control panel and Telegram alerts

Gold, stocks and commodities on OKX

OKX had 528 perpetual markets in the app's list on November 13, 2026, fewer than several other exchanges, yet every non crypto market M Alpha Core scans was among them: gold, silver, platinum, palladium, copper (listed as XCU), WTI and Brent oil, natural gas (listed as NG), the S&P 500 and the Nasdaq 100. Single stocks such as Nvidia, Apple and Tesla were listed as well.

The app knows these OKX names, so a scan on copper or natural gas finds the right contract without you having to look up the ticker. On OKX Europe, the bot does not use these swaps but the X-Perps available there.

Source: market list of the app, November 13, 2026.

How M Alpha Core works with OKX

The app does the research before any money moves. M Alpha Core has one built-in strategy, and the scan looks for the settings of that strategy that suit your market best. It tunes them on roughly the first eight months of a year of price data and then tries them on the remaining months, which it has never seen (out of sample). You get a report with each trade, the profit factor of both periods and the deepest drawdown, and our methodology page describes every step.

Your bot on OKX

Your bot connects to your OKX sub account with your own key and trades the perpetual contract of your market in USDT or USDC on the global platform; on OKX Europe the X-Perp settles in USD with USDC as collateral. Every trade lands in your Telegram, and a panel in your browser lets you go long, short, reverse or stop.

Every trade your bot makes on OKX also lands in the app's trade history, which you can export as a CSV file for your tax advisor.

OKX in M Alpha Core at a glance

Contract typeLinear perpetual contracts
Settlement currency on OKXUSDT or USDC on the global platform; on OKX Europe the X-Perp settles in USD with USDC as collateral
Order size counted inContracts, converted by the bot
Passphrase for the OKX keyYes

Smallest order on OKX

OKX counts every order in contracts. On November 13, 2026, one BTC-USDT contract was worth 0.01 BTC and one ETH-USDT contract 0.1 ETH, and both could be traded in steps of 0.01 contracts. The gold contract XAU-USDT was worth 0.001 XAU, with a minimum of one whole contract. The bot turns your trade size into contracts, rounds down and never up.

Global, Europe and other regions

OKX runs more than one platform address. If the global address does not know your key, the bot tries the European and the other regional address and keeps the one that answers. On OKX Europe it looks for the X-Perp of your market with the longest term and trades that one.

Leverage caps

If OKX allows your account less leverage than you set, for example the 10x limit on X-Perps, the bot uses the highest leverage OKX accepts and tells you, so you are never surprised by the position size.

Setting up your OKX bot step by step

  1. Scan your market in the app and go on only if the result holds up on the unseen 35 %.
  2. On OKX, create a sub account for this bot and move the bot's money into it.
  3. Create an API key in that sub account with futures trading rights only, withdrawals off, bound to your bot server's IP address. Note the passphrase you set for the key. On OKX Europe, complete the X-Perps assessment first.
  4. Enter the key in the app, which sends it to your own server, then start the bot.

Button names on OKX change from time to time, so we link the official help pages instead of copying them:

M Alpha Core Android app home screen with signal server status, the exchange, the last gold scan and three bots
M Alpha Core Android app home screen with signal server status, the exchange, the last gold scan and three bots

Leverage, margin and liquidation on OKX

On OKX, the margin mode travels with every order: the bot sends isolated or cross with each trade and sets the leverage for your market before the first one. According to OKX, X-Perps on OKX Europe allow up to 10x. On the global platform, OKX's public data showed a ceiling of 100x for the BTC-USDT, ETH-USDT and XAU-USDT swaps on November 13, 2026. Treat that as the upper edge of what OKX permits; the figure to plan with is the limit in your report.

How much leverage is too much depends on the market. Take a real ETH scan on the 30 minute chart: 116 trades between November 6, 2025 and November 6, 2026, and the furthest the price ever ran against a single trade was 15.64 %. Divide 100 by 15.64 and you get 6.39, so with more than 6.39x that trade would have ended in liquidation. Your report gives you this number for your own market; the calculator shows what other values would do.

OKX trading fees and M Alpha Core costs

Trading fees and the funding rate on OKX come from OKX, not from us, and depend on your account level; the official OKX fee page has the current figures. For the app itself, Standard is $49 a month, and all plans are on the pricing page. A small server for the bot adds about $12 a month.

OKX regional platforms and X-Perps in Europe

Whether an exchange serves your country is set by the exchange. Check its terms. OKX serves different regions through different platforms, and the products differ between them. See: OKX Europe: X-Perps. M Alpha Core supports nine more exchanges in case OKX is closed to you.

Section “What these numbers do not say” in the M Alpha Scan gold report on an Android phone, naming the limits of a backtest
Section “What these numbers do not say” in the M Alpha Scan gold report on an Android phone, naming the limits of a backtest (Demo with the gold scan of November 12, 2026)

Other exchanges besides OKX

Binance · Bybit · Bitget · MEXC · Gate · BingX · KuCoin · Crypto.com · Hyperliquid

OKX trading bot: questions and answers

Which markets can I trade on OKX?

On the global platform: crypto, gold, silver, platinum, palladium, copper, oil, natural gas, the S&P 500, the Nasdaq 100 and single stocks. On OKX Europe the bot trades X-Perps.

Does the bot work with OKX Europe?

The bot recognises an OKX Europe key, looks for the X-Perp of your market with the longest term and trades it. You need to pass the assessment OKX requires for X-Perps first.

Why is my leverage lower than I set?

OKX decides how much leverage your account may use, for example up to 10x on X-Perps. The bot uses the highest leverage OKX accepts and reports the difference.

Does OKX need a passphrase?

Yes. An OKX API key has three parts: key, secret and the passphrase you choose. The app asks for all three.

Compare M Alpha Core

Side by side with other bot tools, with sources for every statement about them.

Exchanges in M Alpha Core: Binance · Bybit · Bitget · MEXC · Gate · BingX · KuCoin · Crypto.com · Hyperliquid

Download for Windows, Mac and AndroidTry the demo

All figures come from backtests on past market data. No result is a promise of future profit. Trading, especially with leverage, involves high risk. M Alpha Core is a software tool, not investment advice.