-3.48%13,79,984 Clients
The HDFC Securities API enables traders and developers to build custom, high-speed trading applications with low-latency execution. It features zero-cost, secure REST-based APIs for login, order placement, and portfolio data retrieval (holdings, positions, funds), making it suitable for automated and algorithmic trading, particularly for users of 3-in-1 account.
InvestRight Open API offers secure, user-friendly interfaces for developers to integrate financial services into apps and platforms. It aids in creating banking apps, budgeting tools, or fintech solutions, streamlining development and enhancing user experiences.
Key Features:
| API Brokerage Charge | Free integration (API is free to use). |
| API Document Link | https://developer.hdfcsec.com/ir-docs/docs/intro |
| API Data Format | Python, JavaScript, JSON, Rust, PHP, Node.js, C# |
| API Offer Type | Trading API, Historical Data API, Order API |
| API Exchange Support | BSE, NSE, MCX (Equity, F&O, Currency, Commodity) |
| API OS Support | Windows, macOS, Linux |
| API Support Features | Login Authentication, Profile API, Order Placement & Modification, Order History, Market Feeds API, Portfolio, Funds API, Notifications, Logout |
| API Third‑Party Tools | TradingView, AmiBroker, MetaTrader, Python bots |
| API Order Types | Market, Limit, Stop Loss (SL), Stop Loss Market (SLM), Bracket Order (BO), Cover Order (CO), Good-Till-Date (GTD), After Market Order (AMO) |
Key API Brokerage & Charges:
Typically 5–10 requests per second, depending on account tier and plan.
To get an API key for HDFC Securities (InvestRight), visit the HDFC Securities Developer Portal, log in with your InvestRight credentials, enter the 6-digit OTP, accept the risk disclosure disclaimer, fill in the required details, and click "Create". The API allows for login, placing orders, and fetching trade/holdings data.
Steps to Get HDFC Securities API Key (InvestRight):
Key Points:
1. Trading API
The Trading API allows users to execute and manage trades across all segments:
Place and modify orders programmatically
Cancel open positions instantly
Execute bracket and cover orders with built-in stop-loss triggers
Margin check and MIS order management
The Trading API is designed for high-speed, low-latency execution, ensuring trades are placed in milliseconds.
2. Market Data / Historical Data API
Access both real-time and historical market data:
Tick, 1-minute, 5-minute, and EOD (End-of-Day) data available
Supports technical studies, charting, and backtesting algorithms
Data can be retrieved for multiple symbols simultaneously
Comprehensive OHLC data enable strategy development, correlation analysis, and volatility forecasting.
3. Order Management API
A unified interface to manage the full order lifecycle:
Retrieve order book, trade book, and position book
Modify live trades
Access fund allocations and margin utilisation data
Track active and historical orders for analytical insights
The HDFC Sky API delivers a versatile, secure, and professional-grade platform for traders looking to automate and scale their trading operations. Combining real-time market access, robust order management, and integration with algo tools, it stands as a powerful API ecosystem rivalling top-tier brokers like Zerodha Kite Connect and ICICI Direct Breeze.
Its flexibility, low latency, and modular design make it ideal for retail quants, institutional desks, data scientists, and algorithmic trading professionals aiming for speed, precision, and reliability.
Yes, API access is free of cost, and there are no additional subscription fees. Brokerage is charged as per your regular trading plan.
It includes Trading, Market Feed, Order Management, and Historical Data APIs.
HDFC Sky APIs integrate with AmiBroker, TradingView, MetaTrader, and custom Python bots.
HDFC Securities API supports multiple order types, including Market Order, Limit Order, Stop-Loss (SL), Stop-Loss Market (SLM), Bracket Order (BO), Cover Order (CO), After Market Order (AMO), and Good Till Date (GTD) orders.
Information on this page was last updated on Saturday, November 18, 2023
Zerodha (Flat Rs 20 Per Trade)
Special Offer - Invest brokerage-free Equity Delivery and Direct Mutual Funds (truly no brokerage). Pay flat Rs 20 per trade for Intra-day and F&O. Open Instant Account and start trading today.
Compare brokers side-by-side to choose the right one.
Are you a HDFC Securities Customer?