{"categories":[{"label":"WWW/HTTP","url":"https://skillfed.io/packages/category/internet-www-http/8"}],"enrichment":{"capability":"Python client library for the Dhan trading API, enabling automated order placement, position management, live market data streaming, and historical data retrieval for equity and derivatives trading.","skillfed_tags":["trading-api","broker-integration","market-data"],"use_cases":["Automate equity and derivatives order placement and cancellation on NSE and BSE exchanges without manual intervention.","Build algorithmic trading strategies that consume real-time market depth and tick data via the live market feed.","Retrieve historical OHLC candles and option chain data for backtesting and analysis workflows.","Monitor and manage open positions, holdings, and account margins programmatically.","Implement swing trading systems using Forever Orders (single or OCO) for automated risk and profit management."],"what_it_does":"DhanHQ-py is the official Python client for the Dhan trading platform's REST and WebSocket APIs. It abstracts the complexity of communicating with Dhan's trading infrastructure, allowing developers to place and manage orders, stream real-time market data, retrieve historical candles, and query account positions and balances programmatically. The library wraps HTTP requests via the requests library and real-time feeds via websockets, with data serialization handled by pandas.\n\nThe package is designed for traders and algorithmic trading systems that need to automate execution and data collection on the Dhan platform. It handles authentication via DhanLogin (OAuth or PIN/TOTP flows), manages credentials through a DhanContext object to reduce credential sprawl, and provides a high-level API for common trading workflows such as placing market or limit orders, querying order status, fetching option chains, and accessing fund details. Version 2.2.0 introduced 200-level market depth, expired options data, super orders for risk management, and IP whitelisting capabilities.","worth_installing":"Yes, if you trade on the Dhan platform and need programmatic order execution or market data access. The library has low install friction, active maintenance, permissive licensing, and no known vulnerabilities. However, v2.2.0 contains breaking changes from v2.1.0, so verify compatibility with your codebase or pin to v2.0.2 if stability is critical. Requires valid Dhan credentials and is only useful if you already have a Dhan trading account."},"id":"dhanhq","links":{"html":"https://skillfed.io/packages/dhanhq","md":"https://skillfed.io/packages/dhanhq.md","pypi":"https://pypi.org/project/dhanhq/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-04-24","license_spdx":null,"license_treatment":"permissive","name":"dhanhq","python_support":"unspecified","summary":"The official Python client for communicating with the DhanHQ API"},"popularity":{"monthly_downloads":73452,"position":14996,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2.2.0"}
