Data Providers

Dhan

Connect Dhan to MyLinedChart with your own credentials, chart it, mark it up, and export your analysis as XLSX, CSV or JSON.

Quick Facts

What you provide
An access token
How it connects
Directly in the app, no extra process to run
Where your credentials live
On your device, never on our servers
Trading
Read only. MyLinedChart never places, modifies or cancels an order.
  • Connect Dhan with your own credentials. You provide an access token, and it is stored on your device rather than sent to us.
  • Draw your levels, zones and notes on Dhan data, and they stay attached to the chart with their real dates and prices.
  • Export the whole chart as XLSX, CSV or JSON, with drawings, notes, indicator values and bars carried out together.
  • Hand the live Dhan chart to an AI agent you already use, including Claude, Codex, Cursor and GitHub Copilot in VS Code.

Set up Dhan

You need an active Dhan trading account with enough in the ledger for the Data API fee.

Cost: The Data API costs Rs 499 plus taxes per month, taken from your trading ledger every 30 days. Charts do not work without it.

  1. Log in at web.dhan.co.
  2. Click My Profile and open Access DhanHQ APIs.
  3. On the Data APIs tab, subscribe to the Data API.
  4. Click Generate Access Token and copy the token.
  5. In MyLinedChart, open Data Providers, choose Dhan, paste the access-token and click Connect.

How long it lasts: The access token lasts 24 hours. Generate a new one each day and paste it in.

Good to know

  • Daily bars go back to the stock's listing, and intraday bars 5 years.
  • Up to 90 days of intraday bars per request.
  • 5 requests per second and 100,000 per day.

Dhan developer documentation

Next Steps