Dhan HQ API algo development

Your rules built as a Python algo on the DhanHQ trading API, with order handling and risk limits written to your blueprint.

What we build on Dhan HQ API

Every rule goes into a blueprint you approve before any code is written. Anything you did not specify is marked, never guessed.

  • DhanHQ integrationOrders, positions, funds and live data through the official API.
  • Option selling and buyingStraddles, strangles, hedged spreads and directional option buys.
  • Risk controlsStop loss, targets, maximum daily loss and time-based exits.
  • Setup guideRunning it on your own machine or server, with a small-quantity test first.

Dhan HQ API at a glance

Needs DhanHQ API access on your account. SEBI's retail algo rules apply: orders go through your broker's approved API setup (static IP or algo registration where the broker requires it). We check your broker's current rules before the build.

StatusSupported
How we build itDhanHQ API (Python)
You receivePython service
Your passwords or withdrawal accessNever requested
Last checked2026-11-19

Dhan HQ API questions

What do I need from Dhan?

DhanHQ API access on your own account. Your access token stays with you.

Is this allowed under SEBI rules?

Yes, through your broker’s API under SEBI’s retail algo framework. We check Dhan’s current requirements before the build.

Can I connect TradingView alerts to Dhan?

Yes, through a webhook bridge we build, as a separate scope.

Do you give tips or guarantee profit?

No. We are not a SEBI-registered investment adviser or research analyst. No. We build the rules you give us and test that they behave as written. No robot can guarantee profit, and automated trading can lose money.

Ready to automate your rules?

Express builds from ₹3,999 in about two hours. A senior engineer writes your blueprint and you approve it before any code is written.

RuleToBot builds software and gives no investment advice. Automated trading can lose money, and no robot or backtest guarantees a profit.