Integration with TradingView
PrimeTrade Pro seamlessly integrates with TradingView to enable automated options trading based on real-time alerts. This guide walks you through the process of setting up alerts in TradingView and connecting them to PrimeTrade Pro using webhooks.
Step 1: Get Your Webhook URL
To link TradingView with PrimeTrade Pro, you’ll need a unique webhook URL containing your secret key for authentication.
Instructions:
- Log into your PrimeTrade Pro account dashboard.
- Locate and copy your webhook URL in the following format:
https://yourname.primetrade.pro/webhook?secret=<YOUR_SECRET_KEY>
- Replace
<YOUR_SECRET_KEY>
with the secret key assigned to your account.
Step 2: Create an Alert in TradingView
- Open a chart for the instrument you wish to trade (e.g., NIFTY, BANKNIFTY).
- Click the ‘Alert’ icon at the top or right-click on the chart and select ‘Add Alert’.
- In the ‘Condition’ section, define the criteria for the alert (e.g., crossing a moving average).
- Under ‘Options’, make sure to:
- Check ✅ Webhook URL
- Paste the webhook URL copied from PrimeTrade Pro
- In the ‘Message’ section, insert a JSON payload matching your trading signal.
Step 3: Sample JSON Payloads
Use the following JSON payloads to send specific signals to PrimeTrade Pro:
1. Buy Call
{
"signal": "buycall",
"index": "NIFTY",
"option_type": "ATM",
"week_number": 0,
"amount": 10000
}
2. Sell Put
{
"signal": "sellput",
"index": "BANKNIFTY",
"option_type": "OTM",
"week_number": 1,
"amount": 15000
}
3. Exit All Positions
{
"signal": "exit"
}
Step 4: Save and Activate the Alert
Once the webhook URL and payload are entered:
- Click ‘Create’ to activate the alert.
- PrimeTrade Pro will now automatically execute trades whenever your alert conditions are triggered.

Supported Indices
- NIFTY
- BANKNIFTY
- FINNIFTY
- MIDCPNIFTY
- SENSEX
- BANKEX
Important Notes
- Ensure your webhook URL includes the correct secret key to authenticate requests.
- Always double-check the formatting of your JSON payloads to prevent execution errors.
- Only the supported indices listed above can be used in the
index
field. - For
exit
signals, additional fields likeindex
oroption_type
are optional. PrimeTrade Pro will exit all open positions automatically.
Contact Support
Need help? Reach out to us anytime:
- Email: support@primetradepro.com
- Phone: +91 99914 11128