Dhan Trading
The DhanHQ trading assistant is an AI-based trading auxiliary tool that realizes stock trading, portfolio management, and account query functions through natural language interaction, supporting various order types and intelligent trading strategies.
rating : 2.5 points
downloads : 91
What is DhanHQ Trading Assistant?
DhanHQ Trading Assistant is an AI-driven trading assistant based on the Model Context Protocol (MCP), allowing you to interact with the DhanHQ trading platform through natural language, execute orders, view portfolios, and manage trading activities.How to use DhanHQ Trading Assistant?
You can complete operations through simple voice or text commands, such as buying stocks, setting target prices and stop-loss points.Applicable scenarios
Suitable for professional investors and individual users who want to simplify the trading process and improve efficiency.Main features
Order managementSupports market orders and limit orders, and can perform buy or sell operations.
Super ordersProvides advanced order functions with target prices and stop-loss prices.
Portfolio managementView real-time position details and adjust product types.
Account informationCheck the fund balance and calculate the margin requirement.
Advantages and limitations
Advantages
Easy to get started without complex programming knowledge.
Supports a variety of trading strategies to meet personalized needs.
Updates market dynamics in real-time to improve decision-making speed.
Limitations
Requires a stable network connection to ensure data synchronization.
Some advanced functions may be limited by API permissions.
How to use
Install dependency libraries
Run pip install -r requirements.txt to install the required dependencies.
Configure credentials
Edit the config.py file and fill in your DhanHQ API key.
Start the server
Use python -m mcp.server.cli to start the MCP server.
Usage examples
Buy Reliance stockBuy Reliance stock according to the set target price and stop-loss ratio.
View position detailsGet all currently held stocks and their market values.
Frequently Asked Questions
How to add new stocks to the system?
What if I forget my API key?
Related resources
Official documentation
Visit the DhanHQ official documentation for more help.
GitHub repository
The hosting address of the project source code.
Featured MCP Services

Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
100
4.3 points

Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
1.7K
5 points

Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
153
4.5 points

Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
839
4.3 points

Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
6.7K
4.5 points

Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
575
5 points

Context7
Context7 MCP is a service that provides real-time, version-specific documentation and code examples for AI programming assistants. It is directly integrated into prompts through the Model Context Protocol to solve the problem of LLMs using outdated information.
TypeScript
5.2K
4.7 points

Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
761
4.8 points