Automate Your Trading with Runbot Alerts on OKX

·

Automating your crypto trading strategies has never been easier. By integrating Runbot Alerts with OKX, you can seamlessly execute trades based on real-time signals—without manual intervention. Whether you're managing one strategy or multiple, this guide walks you through the step-by-step setup process to connect your Runbot strategies with OKX Signal Bots for efficient, automated trading.

This integration allows traders to turn powerful signal alerts into executed orders instantly, maximizing opportunities in fast-moving markets.

👉 Discover how easy it is to automate your crypto trades today.


How Runbot and OKX Integration Works

The core of this automation lies in webhooks—a method for one platform (Runbot) to send instant data to another (OKX). When your Runbot strategy generates a trading signal (like a long entry), it triggers a webhook that sends that alert directly to your OKX Signal Bot, which then executes the trade according to your predefined settings.

Key benefits:

Core Keywords


Step-by-Step Setup Guide

Follow these steps carefully to ensure your Runbot strategy is correctly connected to OKX.

Step 1: Create a Credit Webhook in Runbot

Log in to your Runbot account at app.runbot.io/Bot/ and navigate to the Alerts Bots section. Under the Credit webhooks area, click the "+" button to create a new webhook.

This webhook will serve as the communication bridge between Runbot and OKX.

Step 2: Link Your Strategy

In the webhook configuration window:

Ensure you're selecting the correct strategy—especially if you're running multiple systems.

Step 3: Set Your Capital Allocation

Enter the exact amount of capital you want to allocate for this strategy. This value determines the size of your trading orders. It doesn't have to match your full account balance—it’s simply the reference amount used for position sizing.

For example:

👉 Start automating your strategy with precision and speed.


Connect to OKX: Create a Signal Bot

Now switch over to OKX to set up the receiving end of the signal.

Step 4: Access Signal Bots on OKX

Go to the OKX trading platform and:

Note: If you don’t see "Signal Bots," enable Pro Mode in your OKX interface. The option will appear on the right-hand side once activated.

Step 5: Add a Custom Signal

Click "Add a custom signal", then:

Choose "Custom" as the signal source.

Step 6: Copy the Long (Entry) Message

From the provided messages, copy only the "Long (Entry)" message. This is the primary trigger for opening positions.

Only the Long (Entry) message is required. Other messages (like exit or short signals) can be ignored unless your strategy specifically requires them.

Return to Runbot and paste this message into the Signal token input box.

Save your changes in Runbot, then go back to OKX and click "Complete".


Configure Your Trading Bot Parameters

Back in OKX, finalize your bot configuration.

Step 7: Create the Bot

In the Bots menu, click "Create Bot" under the signal bot you just created.

Step 8: Select Trading Pair

Choose the correct trading pair that matches your Runbot strategy (e.g., BTC-USDT-SWAP). Accuracy here ensures signals are applied to the right market.

Step 9: Set Invested Margin and Leverage

Enter your desired USD capital in the "Invested margin" field.

This is not necessarily your total portfolio—it's the amount dedicated to this bot.

Understanding Leverage Settings

By default, OKX sets leverage at 10x, but you should adjust this based on your strategy’s maximum leverage:

Use this formula:

Invested Margin × Leverage = Maximum Position Size

For example:

You can also use cross-margin mode by lowering invested margin and increasing leverage for more flexibility.

Click "Create" when ready.


Launch and Monitor Your Automated Strategy

Once created, your bot is live and ready to receive signals from Runbot. Return to Runbot and click the play/start button to begin sending alerts.

Your trades will now be executed automatically on OKX whenever a signal is triggered.

Monitor performance regularly through:

Adjust capital allocation or leverage as needed based on market conditions or performance feedback.


Frequently Asked Questions (FAQ)

Can I run multiple Runbot strategies on one OKX account?

Yes. You can connect multiple strategies, but each requires its own OKX Signal Bot and webhook. For three strategies, create three separate Signal Bots and link each individually.

Do I need to copy all webhook messages from OKX?

No. Only the Long (Entry) message is required. Other messages (e.g., exit or short signals) are optional and can be ignored unless your strategy uses them.

What happens if my strategy exceeds my bot’s leverage limit?

If a signal suggests a position that exceeds your configured leverage × margin cap, the order may fail or be adjusted. Always align your OKX bot settings with your strategy’s max leverage found in backtest data.

Can I use cross-margin mode with this setup?

Yes. Use cross-margin mode by reducing invested margin and increasing leverage. This allows better capital efficiency while staying within acceptable risk limits.

Is there a delay between signal and execution?

Execution is near-instantaneous—typically within seconds—depending on network conditions and exchange processing speed. Webhooks ensure minimal latency.

How do I know if my bot is working correctly?

Test with a small capital allocation first. Confirm that:


Ready to take control of your trading with automation?

👉 Connect your first strategy and start trading smarter now.