The Dhan API makes two unusual promises to data users: authentication you touch roughly once a month, and market depth twenty levels deep where the industry standard is five. It also draws an unusual pricing line — trading APIs free, data APIs ₹499 + GST per month — that inverts most rivals’ models. This guide reads the dhan api from the analytics consumer’s seat: what the data surface offers, what the static token changes operationally, and where the build-it-yourself tax still applies.
The pricing split, precisely
As of August 2026: orders, positions and funds APIs are free with a Dhan account; the live market feed and quote APIs require the ₹499 + GST monthly data subscription (details in the DhanHQ docs). For a pure analytics user the subscription IS the product — know that before assuming “free API” covers your use. One integration lesson worth inheriting: entitlement failures are quiet. If the data subscription lapses, calls keep succeeding around an effectively empty feed, so pipelines should verify entitlement on connect rather than diagnosing silence at 9:16 AM.
The static token: operations you barely notice
Every other major broker makes data collection a daily ritual — hosted logins (Zerodha, Upstox) or scripted TOTP (Angel One). Dhan issues an access token from its web console that lives about 30 days. For unattended collectors this is the lowest-friction model in Indian broking: no morning auth window to miss, no browser automation, no TOTP drift. The counterweight is credential concentration — one long-lived bearer token with full account power — so store it like the password it effectively is, and rotate on schedule.
The data surface
The live feed streams quote and full modes with 20-level depth across NSE, BSE and MCX, derivative ticks carrying open interest. Depth that deep is a genuine differentiator for order-flow-curious analysts: five levels show you the crowd’s edge, twenty show its shape. Historical candles serve intraday and daily resolutions over REST. Instruments are token-addressed by securityId from a daily master — no symbol formatting anywhere, one less bug class.
The layer the dhan api leaves to you
Unchanged from every broker API: ticks in, analytics not included. A coherent option chain, OI baselines and buildup classification, IV and Greeks, max pain, GEX aggregation — all of it is engineering downstream of the feed, with the same expiry-roll and baseline pitfalls whichever broker supplies the ticks. The dhan api’s operational calm (static token, clean ids) makes the pipeline PLUMBING easier than most; the analytical layer costs the same weeks everywhere.
Build-vs-use, priced honestly
Here the subscription changes the maths. On free-data APIs the build-it-yourself path costs only time; on Dhan it costs ₹499 + GST monthly PLUS the time. If your goal is custom computation with premium depth data, that’s a fair price for the best depth feed in the market. If your goal is the standard options-analytics stack — live option chain, Trending OI, screeners, positioning — OIData runs that whole layer on your own broker connection with nothing to build or maintain, which makes paying a data fee in order to rebuild it yourself a hard trade to justify. Use each for what it’s uniquely good at.
A practical starter pipeline
The dhan api’s calm auth changes the pipeline shape: no morning login job at all — instead, a monthly token-rotation reminder treated with password-grade seriousness, and an entitlement probe on every connect so a lapsed data subscription announces itself instead of streaming silence. Downstream, the usual discipline: instruments keyed by securityId from a nightly master refresh, per-strike OI baselines from the previous session, depth consumed only where an analytic genuinely uses it (twenty levels is a lot of bytes to store for decoration), and off-hours candle backfills. The rare failure mode to plan for is the quiet one — token expired or entitlement lapsed — precisely because nothing errors loudly.
Depth: when twenty levels actually matter
Be honest about whether you need the marquee feature. For OI analytics — buildups, support/resistance, positioning — five levels are ample; OI itself does the work. Twenty levels earn their storage in order-flow studies: iceberg detection, spoof-pattern analysis, queue-position modelling. If your interest is the latter, Dhan is the only mainstream Indian feed that serves it; if the former, don’t let the headline feature decide the subscription.
Dhan API — data FAQ
Is the dhan api free? The trading APIs are. The market-data APIs are ₹499 + GST per month as of August 2026 — the half analytics users actually need.
How long does the token last? About 30 days from generation on the web console — the least-friction auth model among major Indian brokers, and a bearer credential to guard accordingly.
Does the feed include open interest and MCX? Yes to both — OI on derivative ticks, coverage across NSE, BSE and MCX, plus the signature 20-level depth.
Do I need it to use OIData? OIData runs on your own broker connection as well — you link your account and the ready-made analytics run on data streaming from it; the dhan api is a foundation for building custom layers beyond them.
Can I run it alongside a free-data broker? Many do: a free feed (Upstox, SmartAPI) for breadth, the dhan api’s depth where order-flow analytics justify the fee. The static token makes it the easiest of the pair to keep running unattended.
Does the static token work for the WebSocket too? Yes — the same token authenticates REST and the live feed, which is what makes the whole pipeline one-credential simple compared to brokers that mint separate session and feed tokens every morning.
What resolutions do candles come in? Intraday minutes up through daily bars over REST — comfortable for charting and systematic studies; pace bulk history pulls off-hours like on every broker, and the data subscription must be active for these endpoints too.
Verdict
Operationally the calmest data API in India — a month-long token and clean token-addressed instruments — with a real data edge in 20-level depth, priced at ₹499 + GST. Pay it for custom work that needs those strengths; for the standard analytics layer, the ready-made path costs less than the subscription alone.