Create a strategy webhook
A strategy webhook is a private URL TradePod gives you. TradingView (or Postman / a bot) sends JSON or plain text to that URL; TradePod turns it into orders on your Dhan account.
Before you start
- Connect Dhan
- Open TradePod on your public host (example:
https://yourname.tradepod.in) — not onlylocalhost. TradingView must reach the URL from the internet. - Settings → Integrations → turn TradingView on
If TradingView is off, create and webhook calls return 403.
Steps in the app
- Open TradePod → Strategy.
- Click Add TradingView.
- Enter a clear strategy name (shown in activity and logs).
- Choose type:
- Equity — stocks; default size from Capital (₹) in Settings
- F&O — single-leg futures or options; default size from Lots
- Set capital (and lots for F&O).
- Turn Auto-execute trades on if you want signals to place orders automatically. Leave it off to receive signals only (no broker orders).
- Click Create.
TradingView alerts place one leg per webhook. Multi-leg / “F&O lot scale” is for TradeFlow spreads — not this create flow.
After create — copy URLs
The success screen (and later Config) shows:
| Copy row | Example shape |
|---|---|
| Normal webhook | …/strategy/strat_xxx?key=… |
| Options | …/strategy/strat_xxx/opt?key=… |
| Futures | …/strategy/strat_xxx/fut?key=… |
| Equity | …/strategy/strat_xxx/eq?key=… |
Also copy Entry and Exit messages from Config. Paste them into two TradingView alerts. Do not put the secret in the Message — it is already on the URL.
Setup steps: TradingView alerts
If the URL still shows localhost, open TradePod on your public host before pasting into TradingView.
Settings that affect webhooks
Open the strategy → Settings (and Advanced):
| Setting | Effect |
|---|---|
| Auto-Execute | Off = signal only. On = send to Dhan |
| Capital / lots / size mode | Default quantity when the alert omits qty / lots |
| Order mode | LIMIT / MARKET / AUTO when JSON omits order_mode |
| Intraday vs CNC | Equity product type (F&O is always intraday at the broker) |
| Trade only in market hours | Blocks new entries outside 09:15–15:30 IST Mon–Fri; exits still work |
| Square-off time | Flatten open lots once per day at that IST time |
| Daily profit / loss | Stops automatic entries for this strategy when hit; exits still work |
| Max trades per day | Stops new entries after N automatic entries today; exits still work |
Details: Force exit & timings.