Sniper AI Algo Trader Bot · VYOM IT SOLUTIONSDisclaimer: Investment & trading in stock market instruments are subject to market risk.
Home › Brokers › Dhan

Dhan Algo Trading Bot powered by the DhanHQ API

Dhan's DhanHQ API is built for traders who automate. Sniper AI Algo Trader Bot connects to it with a long-validity access token, so once you set it up you are not logging in every morning.

The bot runs your selected strategy on Nifty, Bank Nifty or Sensex and routes orders to your Dhan account with your stop-loss, target and trailing-stop rules attached. Funds stay in your Dhan account the whole time.

Capital stays in your Dhan account Official Dhan API Paper mode before live Stop-loss & trailing on every trade

▶ How Sniper AI Algo Trading Bot Works — Automated Nifty, Bank Nifty & Sensex Trading

Connect Dhan (DhanHQ) step by step

  1. Open dhanhq.co/app/developers and click Generate new API Key (any app name; Redirect URL can be https://localhost).
  2. Open the Trading APIs tab and enable Trading APIs.
  3. Add the two Allowed IPs shown in your Sniper broker screen (your dedicated primary and backup static IPs). Live orders are rejected without this step.
  4. Click Generate new Access Token and set validity to 30 days.
  5. Paste your Client ID, Access Token and API Key into Broker → Dhan in Sniper, save, then Test Connection and Set Active.

Dhan-specific tips

How orders are placed on Dhan

Where possible the bot uses Dhan's Super Order, which links the entry with its stop-loss and target at the broker. If a super order cannot be placed, the bot falls back to a standard entry and manages the exit legs itself.

Supported instruments

Nifty 50 optionsBank Nifty optionsSensex options (BSE)Finnifty & Midcap Nifty optionsIntraday & swing equitiesMCX commodities (where your broker account is enabled)

What you get with Sniper AI

27+ rule-based index strategiesStrategy 27, Strategy 32 (Safe/Medium/Aggressive), VWAP/EMA, SMC liquidity-sweep & scalping for Nifty 50 & Sensex.
AI Signal Agent & NewsfilterMulti-timeframe M15 EMA 55/200 trend filter and ±60m macroeconomic Newsfilter shield with audio siren.
Stop-loss, target & trailingPoints, percentage or ATR-based exits, Smart Dynamic Limit or Market orders, max trades/day & daily P&L limits.
Paper mode firstRun Nifty 50 automated trading on live prices without real orders before going live.
Telegram alertsEvery signal, entry and exit pushed to your phone instantly via @vyomtekriwal & personal bot alerts.
Multi-broker APIsAngel One SmartAPI (Recommended), Zerodha Kite, DhanHQ, Upstox v2/v3, Sahi & Nuvama from one terminal.

Dhan algo trading — FAQ

How often do I need to update my Dhan token?

Dhan access tokens can be generated with up to 30 days validity, so typically once a month.

Why are my Dhan orders getting rejected?

Most often the server IP is not in your DhanHQ Allowed IPs list. Add both static IPs shown on your Sniper broker page and generate a fresh token.

Can I paper trade before going live on Dhan?

Yes. Every strategy can run in paper mode first, using live prices but no real orders.

Start automating on Dhan

Create your account, connect Dhan, run a strategy in paper mode, and go live when you are ready. Plans from ₹1,048 (incl. GST).

Create account See live trading video & plans YouTube Telegram channel WhatsApp +91-8810508624

Other brokers

Zerodha algo trading botAngel One algo trading botUpstox algo trading botNuvama algo trading bot

Disclaimer: Sniper AI Algo Trader Bot (VYOM IT SOLUTIONS, GSTIN 10AYYPT2812R1ZN) is software that executes the rules you configure through your broker's official API. It is not investment advice and not a SEBI-registered investment adviser. Trading in futures & options carries high risk; past performance and backtests do not guarantee future results. Your capital always remains in your own Dhan account. Broker API features, charges and requirements can change — confirm on Dhan's official website.