Connect OKX in one click, demo or real: you approve it on OKX, with no API key to paste. Then build a bot that trades USDT perpetuals from your signals, with take profit, stop loss and OKX’s own trailing order. Six steps, no code.
Before you start
OKX connects over the internet, straight from Trader Frame. There is no app on your computer, and Trader Frame never sees your OKX password.
Demo and real both connect through OKX’s own approval. Practise on demo first.
In the account you connect. A demo account trades virtual funds.
TradingView alerts, Telegram, Discord, Copy Trader, or Pip, the AI Trade Agent.
Trader Frame never asks for withdrawal permission, on demo or real.
Your bot decides the size, the leverage and the exits. OKX holds the take profit, stop loss and trailing stop with the position.
Step by step
Practise on demo first if you like: steps 4 to 6 are the same for demo and real.
The sheet asks which account to connect: Demo, for practice with virtual funds, or Real.

There is no API key to paste: OKX approves the demo account on its own site, and Trader Frame never sees your password.

Demo and real are separate approvals, so each bot can point at either account.

The panel shows what each trade commits: margin, notional at your leverage and the share of your balance.

ROI % is measured on the margin, so leverage sets how far the price moves for each percent.

Open the Trading View source for the webhook URL and the Buy and Sell alert messages, and paste them into your TradingView alert.

The message only says buy or sell. The bot decides the size, the leverage and the exits.
The alert names the pair the way your chart does, for example BTCUSDT. Size, leverage and exits always come from the bot.
AI trading agent for OKX
Pip is Trader Frame’s Trade Agent. Add it to an OKX bot instead of an alert: Pip reads the BTC/USDT perpetual market, decides when to go long or short, and explains every decision. Your bot still sets the size, the leverage and the exits.
Yes. Add Pip, the Trade Agent, to an OKX bot as its signal source. Pip decides when to buy or sell; the bot places the order on OKX with your size, leverage and exits.
The pair’s candles on several timeframes, plus the market around them on OKX: spread, volume, funding on the perpetual and order-book depth.
Yes. Take profit, stop loss and the trailing stop come from the bot’s Exit rule, and OKX holds them with the position.
Each look Pip takes uses agent credits from your plan. The Free plan has no agent.
Demo or real
Demo and real both connect through OKX’s own approval, one click each. Everything you build on top is the same, so a bot proven on demo moves to real by changing its broker.
Keeping it running
Take profit, stop loss and a continuous trailing stop are placed on OKX with the position, so they hold on their own. Closing by hand in Trader Frame cancels the ones left over.
Set per bot in Position size. Isolated limits a trade to its own margin; Cross shares your wallet, so the liquidation price depends on your balance.
The position preview estimates entry and exit fees. Funding accrues while a position stays open and changes by market and hour, so it is not priced in advance.
Connect one demo and one real OKX account. Each bot points at one of them, so a bot moves from demo to real by changing its broker.
Troubleshooting
Every refusal and skip is written to the bot’s Signals tab with its reason.
FAQ
No. Demo and real accounts are both approved on OKX itself. Your password never reaches Trader Frame.
No. OKX grants the access when you approve it on its site, for demo and real alike, so there is nothing to copy or paste.
No. The approval carries read and trade permission only, never withdrawal.
OKX USDT perpetual futures, such as BTC/USDT, ETH/USDT and XRP/USDT, with the leverage and margin mode you set.
Yes, in Continuous mode: OKX holds it as its own trailing order with the position. Steps mode moves your stop in stages from Trader Frame.
Yes. Connect one demo and one real OKX account, and point each bot at the one you want.
When the bot has earned it, connect your real OKX account and point the same bot at it. Nothing else changes.