
Integration with TradingView
PrimeTrade Pro seamlessly integrates with TradingView to enable automated options trading based on real-time alerts. This guide will walk you through setting up TradingView alerts and connecting them to PrimeTrade Pro using webhooks.
Thank you for reading this post, don't forget to subscribe!Step 1: Get Your Webhook URL
To connect TradingView with PrimeTrade Pro, you’ll need a unique webhook URL that includes your secret key for authentication.
-
- Go to your PrimeTrade Pro account dashboard.
- Copy the webhook URL provided in the format:
https://yourname.primetrade.pro/webhook?secret=
- Replace
<YOUR_SECRET_KEY>
with the secret key assigned to your account.
Step 2: Create an Alert in TradingView
- Open the chart for the instrument you want to trade (e.g., Nifty, Bank Nifty).
- Click the ‘Alert’ icon at the top or right-click on the chart and select ‘Add Alert’.
- In the ‘Condition’ section, set the criteria for the alert (e.g., crossing a moving average).
- Under ‘Options’, ensure that ‘Webhook URL’ is checked and paste the webhook URL you copied from PrimeTrade Pro.
- In the ‘Message’ section, enter a JSON payload corresponding to the signal type.
Step 3: Sample JSON Payloads
Use the following sample JSON payloads to trigger specific types of trades:
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 you’ve entered the webhook URL and JSON payload, click ‘Create’ to activate the alert.
- PrimeTrade Pro will now automatically execute trades whenever the alert conditions are met and the signal is sent.
Supported Indices
- NIFTY
- BANKNIFTY
- FINNIFTY
- MIDCPNIFTY
- SENSEX
- BANKEX
Important Notes
- Ensure that your webhook URL includes the correct secret key to authenticate the request.
- Double-check your JSON payload formatting to avoid execution errors.
- Only supported indices can be used in the
index
field of the JSON payload. - For exit signals, specifying additional fields like
index
oroption_type
is optional, as the platform will automatically exit all open positions ifexit
is sent.
Contact Support
If you encounter any issues during the integration process, feel free to reach out to our support team:
- Email: support@primetradepro.com
- Phone: +91 9991411128
- Live Chat: Available on our whatsapp number