Runbot Documentation
How it worksIndicatorsTriggers BoxesNFTs
  • Introduction
  • Interactive Tutorial
  • HOW IT WORKS
    • Box synergies
    • Signal list
      • Long/Short signal
      • Cancel signal
      • Stop signal
      • Custom signal
    • Glossary
  • Parimutuels Markets
  • Strategy Boxes
    • Strategy list
    • Strategy management (Backtest box)
    • Signals Box
    • Selectors Box
    • Indicators box
      • Offset Candle
      • Signal creation
      • Signal duration rule
  • Indicators
    • Basic triggers
    • Runbot Indicators
      • RSI
      • Candle
      • MACD
      • MA
      • Stochastic
      • Streak
      • ATR
      • Bollinger Bands
      • Funding (8h Rates)
      • Orderflow
      • Liquidations
      • Pivot Points
      • ATR Bands
      • Fibonacci
      • CHOP
      • Potential Cumulative Liquidations
      • Open Interest
      • Volume Profile
      • Ichimoku
      • SAR
      • TD9
      • VWAP/MVWAP
      • Calendar
      • SuperTrend
      • CCI
      • Fear & Greed Index
      • MA Bands
      • Volume Anomaly
      • Orderbook
      • AI News Sentiment
    • #AI Indicators: Harmonia
    • VeloData Indicators
      • Aggregated Datas
        • Premium Index
        • Volume Index
      • Options Markets
        • Options Premium Index
        • Option Volume
        • Option Skew
        • Implied Volatility
        • Delta
        • Vega
        • Gamma
  • Triggers Boxes
    • Entry in position rules
      • Majority of signals
      • Unanimity of signals
      • Equality
      • Minimum number of signals
      • Maximum number of signals
      • No previous trade
    • Exit position rules
      • Stop %/ATR
      • Confirmation stop %/ATR
      • TP ATR %/ATR
      • TP/SL signal
      • Trailing %/ATR
      • Decaying TP %/ATR
      • Magnetic TP %/ATR
      • Stop candle %/ATR
      • TP Candle %/ATR
      • Number of candles
      • Opposite trade
    • Adjust position rules
      • Increase/Decrease order size
      • Delay between two triggers
      • Signals occurs
      • Max position size
  • Risk management Boxes
    • Position size
      • Leverage
      • Constant USD
      • Orderbook
      • Risk % capital per %/ATR
      • Risk constant USD per %/ATR
      • Candle distance
    • Entry in position methods
      • Market order
      • Slippage market
      • Sequential Market
      • Pyramid orders
      • Delay
  • Runbot NFTs
    • Connect your Web3 Wallet
    • Strategy NFTs
    • Mint Open-Source NFT
    • Mint Rental NFT
    • Community NFTs Indicators
      • Black Flamingo Indicators
      • Harmonia Indicators
      • VeloData Indicators
    • FAQ Marketplace & NFTs
  • Webhooks (Trading Bots)
    • BingX (free bots)
    • Bitget (free bots)
    • Phemex (free bots)
    • Blofin (free bots)
    • OKX
    • Bybit
    • Tealstreet
    • Mizar
    • WunderTrading
    • Alertatron
    • Zignaly
    • Discord
    • Custom URL
  • Advanced Tools
    • Strategies Composer
    • Strategy Optimiser
      • Random Search
      • Simulated annealing
      • Combinatorial
      • Tips to Optimize your strategy
  • Free plan and Credits
Powered by GitBook
On this page

Was this helpful?

  1. Webhooks (Trading Bots)

OKX

Connect your Runbot Alerts with OKX to send trading bot orders.

PreviousBlofin (free bots)NextBybit

Last updated 10 months ago

Was this helpful?

  1. You can connect as many bots as you want on OKX, however you can only connect 1 Runbot Strategy per OKX Signal Bot. If you want to run 3 different strategies, you'll need to create 3 different OKX Signal Bots & Webhooks.


To receive your Strategy Alerts directly on OKX and automate your trading, go to or directly click on "Alerts Bots".

Find Credit webhooks section and click on "+" to Create a Credit webhook.


On the Bot webhook configuration box, select 'Linked strategy' and pick the strategy you want to receive alerts from.


Enter the exact amount of capital you wish to allocate to your trading strategy. The size of your orders will be based on this reference, which can be a lower or a higher amount, depending on the leverage of your strategy.


Select OKX to send alerts:



Select "Signal Bots" on the bots menu.

If you can't find it, and the OKX app suggests switching to Pro Mode, go ahead and do so; the Signal Bot will then appear on the right side of your screen.


Click "Add a custom signal".


Choose a name for your Signal Bot, then click "Create signal".


Select "Custom".


Then, copy the "Long (Entry)" message. Only this message is necessary, the others can be ignored.

Save changes on Runbot and click "Complete" on OKX.


On your OKX Bots menu, click "Create Bot" from the bot you just created.


Select the trading pair of your Runbot Strategy.


Enter the amount of USD capital you want to allocate to your strategy in the "Invested margin" input box.

By default, you can leave the Leverage at 10x. However if your strategy has a very high leverage, enter the maximum leverage of your strategy. This information can be found in your backtest infos. On the Backtest Stats box, click "Backtest informations", and read "Max position leverage".

"Invested Margin x Leverage" only means the result of the MAXIMUM cap size allowed by your OKX bot. If you want to use "cross-mode", you can lower the invested margin and increase the leverage.


Click "Create"!


Happy Trading!

Go to or click "Trading bots" on the top left of your OKX trading app.

Go back to and paste the Long (Entry) message on the Signal token input box.

On Runbot, click and to start your automated trading with OKX and Runbot!

https://www.okx.com/trade-swap-strategy/btc-usdt-swap
https://app.runbot.io/Bot/
https://app.runbot.io/Bot/
A maximum position of 50 000$ (10x5000$) can be open with this Signal bot. Be sure your strategy is executing smaller amounts if you encounter any trading error.