F&O on strategy webhooks
Strategy webhooks support one futures or options contract per request. Multi-leg spreads (legs[]) are not supported yet.
Create the right strategy type
Create the strategy as F&O (or F&O lot scale). Use the matching webhook path:
| Path | Product |
|---|---|
/fut | Futures |
/opt | Options |
F&O orders always use INTRADAY at the broker.
How to identify the contract
| Method | Reliability | Notes |
|---|---|---|
security_id | Best | Avoids wrong-contract matches |
| Exact trading symbol | Good | Full option / future series name |
Bare underlying only (NIFTY) | Risky | May pick the wrong contract |
Example
{
"action": "BUY",
"symbol": "NIFTY25APR24000CE",
"security_id": 123456,
"exchange_segment": "NSE_FNO",
"price": 125.5,
"lots": 1,
"sl": 100,
"target": 160
}
Replace security_id and symbol with your contract values from Dhan.
Back to TradingView alerts · Payload reference