DhanHQ API v2.0 · Read-Only Live Feed & FIFO Journal

Live Charting, 20-Level Market Depth & FIFO Journal for DhanHQ v2

Stream Little-Endian binary WebSocket ticks, dissect NSE Level-3 20-Level & 200-Level orderbooks, stitch 90-day intraday history onto 20-year Bhavcopy charts, and reconcile Dhan trades in one workspace.

Technical Specification & Feature Matrix

DhanHQ API v2.0 Capabilities Inside Stocks Simply Terminal
DhanHQ v2 FeatureTechnical Implementation in Stocks SimplyBenefit
Live Binary FeedLittle-Endian binary WebSocket singletonPrevents Dhan Error 805 multi-socket disconnects
NSE Level-3 Orderbook20-Level & 200-Level Market Depth dissectorInspect real-time bid/ask liquidity walls
Intraday History90-day columnar intraday stitching + 20-yr BhavcopySeamless zoom from 1m ticks to 20-year macro
Token Lifecycle24-hour JWT + Headless TOTP auto-renewalZero manual copy-paste friction
Forever Orders (GTT)Read-only GTT level overlays on chartVisualize planned stops alongside price action
Trade Reconciliation1-Click FIFO Tradebook SyncAccurate realized P&L & 1R tracking
Order PlacementDisabled (Zero Live Execution)100% read-only compliance

Pricing and feature comparisons reflect publicly available information as of November 2026 for honest comparative evaluation under Section 30(1) of the Indian Trade Marks Act, 1999. Verify current pricing on each provider's official website.

Architecture & Workflow Highlights

Zero-Drop Feed

Little-Endian Binary WebSocket Singleton (Error 805 Safe)

Dhan disconnects duplicate WebSocket clients with Error 805. Stocks Simply enforces a single shared WebSocket instance.

  • Decodes Little-Endian binary tick packets cleanly into 60 FPS Lightweight Charts v5 updates.
  • Handles multi-chart layouts through one shared subscription bridge.
Orderbook Depth

NSE Level-3 20-Level & 200-Level Depth Dissector

Inspect deep bid/ask liquidity beyond standard 5-level snapshots directly inside the terminal.

  • Tracks cumulative bid vs. ask volume distribution across 20 and 200 price levels.
  • Zero order execution—strictly analytical visibility.
Deep History

90-Day Intraday Stitching + 20-Year Bhavcopy

Combines Dhan's 90-day intraday columnar candles with 20 years of split-adjusted BSE/NSE daily history.

  • Supports 1m, 5m, 15m, 1h, and NSE-aligned 75m sessions.
  • Pairs seamlessly with 1-Click FIFO Tradebook Sync and read-only Forever Order overlays.

How It Works

  1. STEP 01

    Open Broker Connect → Dhan

    Select Dhan inside Broker Connect and enter your Client ID + 24-hour JWT or TOTP credentials.

  2. STEP 02

    Stream Binary Ticks & 20-Depth

    Singleton WebSocket initializes automatically without triggering Error 805 socket limits.

  3. STEP 03

    Sync FIFO Tradebook & Forever Orders

    Reconcile executed trades into the 5-tab journal and inspect GTT levels on your charts.

Read-Only DhanHQ v2 Architecture & Client Vault

  • •Stocks Simply is independent software and is not affiliated with or endorsed by Dhan (Raise Financial Services).
  • •Zero live order placement: Dhan integration is strictly read-only for market data and tradebook journaling.
  • •Tokens remain stored locally in your browser's IndexedDB vault (StockRadarBrokerVault_v1).

Frequently Asked Questions

How does Stocks Simply prevent Dhan Error 805?

Dhan enforces strict limits on concurrent WebSocket connections per client. Our DhanDataBridge maintains a single shared Little-Endian binary WebSocket singleton across all open chart panes.

Can I view 20-Level and 200-Level NSE Market Depth?

Yes. When connected to DhanHQ v2, the terminal dissects NSE Level-3 20-Level and 200-Level depth packets in real time.

Does it support Dhan Forever Orders (GTT)?

Yes, in read-only mode. Your active Forever Orders can be viewed as horizontal levels on the chart without enabling order execution.

How long do Dhan access tokens stay valid?

Dhan JWT tokens are valid for 24 hours per SEBI 2FA norms. You can also configure headless TOTP renewal inside the local browser vault.

Explore Related Guides & Tools