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

  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 https://app.runbot.io/Bot/ 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:

Go to https://www.okx.com/trade-swap-strategy/btc-usdt-swap or click "Trading bots" on the top left of your OKX trading app.

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.

Go back to https://app.runbot.io/Bot/ and paste the Long (Entry) message on the Signal token input box.

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.

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.

Click "Create"!

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

Happy Trading!

Last updated