Strategy webhooks
Strategy webhooks are private REST URLs on your TradePod. TradingView, Postman, a script, or an AI agent sends a signal; TradePod sizes it from strategy Settings and (when Auto-Execute is on) places the order on Dhan.
This is not TradeFlow HMAC / central strategies. Each strategy has its own URL and secret key.
Why TradePod (not Dhan TradingView alone)
Dhan is the broker. TradePod is the strategy layer on top.
| Need | Dhan chart alert alone | TradePod webhook |
|---|---|---|
| Buy / sell from a chart | Yes | Yes |
| Attach SL + target with entry | Limited | Yes (sl / target) |
| Change SL / target after fill | No | Yes (MODIFY) |
| Exit only if you have a position | No | Yes (EXIT) |
| Flatten everything on that strategy | No | Yes (FORCE_EXIT) |
| Size, market hours, square-off, daily limits per strategy | No | Yes (Settings) |
You do not host your own server — the pod already has a Static IP (whitelist it in Connect Dhan).
Routes
| Method | Path | Auth |
|---|---|---|
POST | /strategy/:strategy_id | Required — Normal webhook |
POST | /strategy/:strategy_id/eq | Required — Equity |
POST | /strategy/:strategy_id/fut | Required — Futures |
POST | /strategy/:strategy_id/opt | Required — Options |
GET | /strategy/:strategy_id/health | None — health check |
Example (Options):
https://YOUR_POD.tradepod.in/strategy/strat_xxxxx/opt?key=YOUR_API_KEY
In TradePod → Strategy → Config you can copy four URLs:
| Label in app | Path |
|---|---|
| Normal webhook | /strategy/{id}?key=… |
| Options | /strategy/{id}/opt?key=… |
| Futures | /strategy/{id}/fut?key=… |
| Equity | /strategy/{id}/eq?key=… |
TradingView cannot send custom headers. Prefer /eq /fut /opt on the path. Keep ?key= on the URL. Message is entry/exit JSON only — Authentication.
Actions
| Action | What it does |
|---|---|
BUY / SELL | Open a trade. Optional sl / target go with the entry |
EXIT | Close the open trade for that symbol |
EXIT_BUY / EXIT_SELL | Exit a long or short specifically |
MODIFY | Change SL / target (and related fields) on the open trade |
FORCE_EXIT / EXIT_ALL | Flatten — close all open trades on this strategy |
Same URL for every action — the "action" field (or the first word of a plain-text alert) decides what happens.
Message format
Send either:
- JSON (recommended for most setups), or
- Plain text pipe-style alerts (also accepted)
See TradingView alerts for both.
Not supported
- Multi-leg
legs[]— HTTP 400. One contract per request. Use TradeFlow for spreads. - Running TradingView against
localhost— use your public TradePod host.
Start here
- Create a strategy
- TradingView alerts — URL + entry/exit Message
- Pine Script & extras — helpers + strategy examples
- Payload reference
- Authentication · F&O · Force exit · Postman