Now that you’ve created your webhook on Quantapes, the next step is to configure TradingView alerts to send signals to your Bybit API.
Step 1: Create a TradingView Account (If You Don’t Have One)
📌 Don’t have a TradingView account? Click here to sign up.
Once registered, you can access strategies and indicators to set up alerts.
Step 2: Adding an Alert in TradingView
- Open a chart with your preferred strategy or indicator.
- Click on the three dots next to your strategy name.
- Select “Add Alert on [Strategy Name]” (as shown in the first screenshot).
Step 3: Configuring the Alert
A Create Alert pop-up will appear. Follow these steps:
1. Go to the “Notifications” Tab
- Check the “Webhook URL” option.
- Paste the Webhook URL you copied from Quantapes.
- This ensures that TradingView sends alerts to Quantapes when triggered.
- (Refer to the second screenshot for this setup.)
2. Go Back to the “Settings” Tab
- Set your Condition (e.g., RSI Strategy, Moving Average Cross, etc.).
- Expiration – Choose Open-ended alert if you want it to run indefinitely.
- Alert Name – Give it a recognizable name (e.g.,
"BTC Entry Signal").
Step 4: Configuring the Message Field
Quantapes reads parameters from the “Message” field to execute trades.
📌 Use the following JSON structures depending on your trade type:
For BUYS on Spot:
json{"base": "BTC", "quote": "USDT", "price": {{close}}, "action": "buy", "orderType": "market" }
For SELLS on Spot:
json{"base": "BTC", "quote": "USDT", "price": {{close}}, "action": "sell", "orderType": "market" }
For LONGS on Futures/Derivatives:
json{"base": "BTC", "quote": "USDT", "price": {{close}}, "action": "long", "orderType": "market", "close": true }
For SHORTS on Futures/Derivatives:
json{"base": "BTC", "quote": "USDT", "price": {{close}}, "action": "short", "orderType": "market", "close": true }
Step 5: Finalizing the Alert
- Once everything is set up, click “Create.”
- Your alert is now active, and every time it triggers, TradingView will send the signal to Quantapes, which will execute the trade on Bybit.
Final Notes
- Your alerts are now routed to Quantapes, executing trades on Bybit.
- Make sure your Webhook URL is correct to avoid missed trades.
- Use the correct format in the message field for each trade type.
- Webhooks automate trade execution based on TradingView signals.
- Each account can create up to 5 webhooks, one per indicator.
- Keep your webhook URL private to avoid unauthorized trades.
Now, sit back and let Quantapes automate your trading! 🚀