v2.2.0rc1
Pre-releasev2.2.0 — What’s New
This release significantly expands the capabilities of the DhanHQ Python Library, bringing deeper market data access, improved instrument coverage, and new order-management utilities.
🔍 Deeper Market Data
You can now access the full market depth (up to 200 levels) directly via DhanHQ APIs, fully supported in the Python library. This enables advanced order-book analysis, liquidity tracking, and high-precision trading strategies.
🕒 Expired Options Data
The library now supports fetching expired options data across both NSE and BSE instruments. This makes it easier to backtest strategies, analyse historical derivatives behavior, and perform post-expiry research without external data sources.
⚡ Super Orders
Super Orders are now available in the Python library—smart orders designed to help manage risk and profit targets more efficiently. This simplifies the execution of advanced trading logic while maintaining tighter control over exits.
🔐 IP Management via API
You can now set, modify, and manage IP restrictions for your account directly from the Python library. Sample code for IP management is available under the examples section to help you get started quickly.
🚀 Improvements & Enhancements
Along with these major updates, v2.2.0 includes multiple internal improvements and expanded API coverage, making more DhanHQ functionality accessible directly through the Python SDK.
v2.2.0 is currently available as a pre-release.
With the release of v2.2.0, there are breaking changes introduced since v2.1.0, which may impact existing integrations.
If you prefer stability, we recommend continuing with the current stable version.
To try the pre-release version, install it explicitly using:
pip install --pre dhanhq