Bybit partner integration · USDT perpetuals

Automate Crypto Futures Trading on Bybit

Connect your real Bybit account in one click, or practise on Bybit Demo Trading first. Then build a bot that trades USDT perpetuals from your signals, with take profit, stop loss and Bybit’s own trailing stop. Six steps, no code.

One-click real account
Demo Trading
Bybit trailing stop
A real Bybit account connecting to Trader Frame in one click, a TradingView buy alert opening a ten times long on BTC/USDT with take profit, stop loss and a Bybit trailing stop, and the trade landing in the list
The BTC/USDT long rising while Bybit's trailing stop steps up behind it, then closing the trade at plus 14.2 percent ROI

Before you start

What you need, and nothing to install

Bybit connects over the internet, straight from Trader Frame. There is no app on your computer, and Trader Frame never sees your Bybit password.

A Bybit account

Your real account connects through Bybit’s own approval. For practice, use Bybit Demo Trading.

USDT for margin

In the account you connect. Demo Trading comes with virtual funds.

A signal source

TradingView alerts, Telegram, Discord, Copy Trader, or Pip, the AI Trade Agent.

Read and trade only

Trader Frame never asks for withdrawal permission, on demo or real.

What happens to every signal
Your signal
Says buy or sell, and the pair
Trader Frame
Size, leverage and exits from your bot
Bybit
Bybit
Order, stop, target and trail placed together

Your bot decides the size, the leverage and the exits. Bybit holds the take profit, stop loss and trailing stop with the position.

Step by step

From a Bybit account to a bot trading BTC/USDT

Practise on demo first if you like: steps 4 to 6 are the same for demo and real.

01
Step 1 of 6

Open Bybit in the connect sheet

  • Open Brokers and press + Connect broker.
  • Pick the Crypto tab, then Bybit, and press Continue.

The sheet asks which account to connect: Demo, for practice with virtual funds, or Real.

Opening the connect sheet from the Brokers page, picking the Crypto tab and Bybit, and pressing Continue
02
Step 2 of 6

Practise on a Bybit demo account

  • On Bybit, create a Demo Trading API key with read and trade permission only, never withdrawal.
  • Choose Demo, then paste the API key and API secret.
  • Press Connect: the demo account appears with its balance.

Demo Trading keys are separate from your real account. Bybit testnet keys are a different site and will not connect.

Choosing Demo, pasting a Demo Trading API key and secret, pressing Connect, and the Bybit demo account appearing with its balance
03
Step 3 of 6

Connect your real account in one click

  • Choose Real and press Connect.
  • Bybit opens and asks you to sign in.
  • You approve read and trade access, never withdrawal.
  • Bybit returns you here and the account appears in your list.

There is no key to paste for a real account, and Trader Frame never sees your password. A demo and a real account can be connected side by side.

Choosing Real, pressing Connect, the notice explaining the approval on Bybit, and the real Bybit account in the list
04
Step 4 of 6

Build a crypto futures bot on Bybit

  • Create a bot and pick your Bybit account under Brokers.
  • In Position size, pick the trading pair, for example BTC/USDT.
  • Set the trade size: margin, order size or coins.
  • Choose the leverage and the margin mode, Cross or Isolated.

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

Picking the Bybit account for a bot, then the BTC/USDT pair, trade size, leverage and margin mode in the Position size panel
05
Step 5 of 6

Set the exits

  • In Exit rule, choose how positions close: Auto close at your target or stop, or follow the signal.
  • Set take profit and stop loss in ROI %.
  • Turn on the trailing stop: Continuous runs as Bybit’s own trailing stop.
  • Check the position preview: prices, fees and the result at take profit and stop loss.
  • Press Save.

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

The Exit rule panel: auto close, take profit and stop loss in ROI %, a continuous trailing stop, the position preview, then Save
06
Step 6 of 6

Add a signal and switch it on

  • Under Signal sources, add Trading View.
  • Press Activate.

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

Adding Trading View as the signal source and pressing Activate

The alert message

The message only says buy or sell. The bot decides the size, the leverage and the exits.

TradingView
TradingView alert message · strategy
Copy it from the bot’s Trading View panel
{ "symbol": "{{ticker}}", "side": "{{strategy.order.action}}" }
TradingView
Indicator alerts · one per side
Buy opens a long · Sell opens a short
{ "symbol": "{{ticker}}", "side": "BUY" }
{ "symbol": "{{ticker}}", "side": "SELL" }

The alert names the pair the way your chart does, for example BTCUSDT or BYBIT:BTCUSDT. Size, leverage and exits always come from the bot.

AI trading agent for Bybit

Meet Pip: an AI trading agent that trades Bybit inside your limits

Pip is Trader Frame’s Trade Agent. Add it to a Bybit 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.

Suggest
Pip proposes the trade and you place it or skip it. A proposal expires after 5 minutes.
Enter
Pip places the trade itself, inside your bot’s limits: size, leverage, trading hours and plan.
Manage
While its own position is open, Pip can move the stop closer (never wider) or close the trade.
Add Pip to a Bybit bot
Pick Trade Agent under Signal sources

Can an AI agent trade Bybit for me?

Yes. Add Pip, the Trade Agent, to a Bybit bot as its signal source. Pip decides when to buy or sell; the bot places the order on Bybit with your size, leverage and exits.

What does Pip read before a trade?

The pair’s candles on several timeframes, plus the market around them on Bybit: spread, volume, funding on the perpetual and order-book depth.

Does Pip use my exits?

Yes. Take profit, stop loss and the trailing stop come from the bot’s Exit rule, and Bybit holds them with the position.

How is Pip paid for?

Each look Pip takes uses agent credits from your plan. The Free plan has no agent.

Demo or real

Same bot, two ways in

A demo account connects with a key you paste; a real account connects through Bybit’s own approval. Everything you build on top is the same, so a bot proven on demo moves to real by changing its broker.

Demo
Real
How it connects
API key and secret from Bybit Demo Trading
One click: you approve it on Bybit
Funds
Virtual funds
Your USDT
Your password
Never asked
Never seen: you sign in on Bybit
Permissions
Read and trade, never withdrawal
Read and trade, never withdrawal
Side by side
One demo account
One real account

Keeping it running

Day to day on Bybit

Exits live on Bybit

Take profit, stop loss and a continuous trailing stop are placed on Bybit with the position, so they hold on their own. Closing by hand in Trader Frame cancels the ones left over.

Leverage and margin mode

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.

Fees and funding

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.

Demo keys and expiry

A Demo Trading key without an IP restriction can expire on Bybit. If the account card reads Key rejected, create a new demo key and connect again.

Troubleshooting

What a message means, and what to do

Every refusal and skip is written to the bot’s Signals tab with its reason.

What you see
Why
What to do
Connect: “The broker refused the connection”
The key or secret was copied wrong, or it is a testnet key.
Create a key in Bybit Demo Trading and paste both again.
Connect: “already have a connected account”
One demo and one real Bybit account at a time.
Use the account you have, or disconnect it first.
Account card: “Key rejected”
The demo key expired or was deleted on Bybit.
Create a new Demo Trading key and connect again.
Real: back from Bybit with no account
The approval was cancelled on Bybit.
Choose Real, press Connect and approve again.
Skipped: “Symbol mismatch”
The alert named a different pair than the bot trades.
Point the alert at the right bot, or change its pair.

FAQ

Bybit questions

Does Trader Frame see my Bybit password?

No. A real account is approved on Bybit itself, and a demo account connects with an API key you create. Your password never reaches Trader Frame.

Can Trader Frame withdraw my funds?

No. The approval and the demo key carry read and trade permission only, never withdrawal.

Which markets can the bot trade?

Bybit USDT perpetual futures, such as BTC/USDT, ETH/USDT and SOL/USDT, with the leverage and margin mode you set.

Is the trailing stop really on Bybit?

Yes, in Continuous mode: Bybit holds it with the position and moves it with the price. Steps mode moves your stop in stages from Trader Frame.

Can I use the Bybit testnet?

No. Use Bybit Demo Trading for practice. Testnet keys belong to a different site and will not connect.

Can I keep demo and real side by side?

Yes. Connect one demo and one real Bybit account, and point each bot at the one you want.

Start on Demo Trading

Practise on demo. Go real in one click.

When the bot has earned it, connect your real Bybit account and point the same bot at it. Nothing else changes.