Skip to content

INDstocks API Suite - Complete Overview

API Summary

The INDstocks API Suite v1 is a comprehensive RESTful API designed for financial trading applications. This API suite provides real-time market data, order management, and portfolio tracking capabilities with robust error handling and extensive market coverage.

Pricing & Cost Structure

  • API Access: Free - No subscription fees or API charges
  • Brokerage: ₹5 per order - Flat rate regardless of order size
  • No Hidden Costs: Transparent pricing with no additional charges

Core Features

🚀 Performance

  • Sub-20ms latency for order execution
  • WebSocket streams for real-time market data
  • Optimized JSON responses with minimal payload sizes

🔒 Security

  • Token-based authentication
  • Rate limiting and abuse prevention
  • Encryption in transit

📊 Market Coverage

  • Multi-exchange support (NSE and more)
  • All asset classes: Equity, Derivatives, Options, Futures
  • Real-time market quotes
  • Historical data with extensive time series

🎯 Trading Features

  • Smart Orders (GTT) with advanced multi-leg trading strategies
  • Stop-loss and target automation with intelligent routing
  • Portfolio management with real-time P&L tracking
  • Advanced margin calculations with dynamic risk assessment
  • Multi-exchange support (NSE, BSE) with unified interface
  • All asset classes: Equity, Derivatives, Options, Futures

Complete API Endpoint Catalog

1. User Management & Profile

Endpoint Method Purpose Documentation
/user/profile GET User profile and account details Users Guide
/funds GET Available and utilized funds Users Guide

Note: Authentication is handled via access tokens obtained from the indstocks.com dashboard.

2. Market Data APIs

Endpoint Method Purpose Documentation
/market/quotes/full GET Real-time market quotes Market Quotes
/market/quotes/ltp GET Last traded price only Market Quotes
/market/quotes/mkt GET Market depth/order book Market Quotes
/market/historical/{interval} GET Historical OHLCV data Historical Data
/market/instruments GET Instrument master CSV Instruments Data

3. Order Management

Endpoint Method Purpose Documentation
/order POST Place new orders Orders Guide
/order/modify POST Modify pending orders Orders Guide
/order/cancel POST Cancel orders Orders Guide
/order-book GET Daily order history Orders Guide
/trades/{order_id} GET Trade confirmations for an order Orders Guide
/trade-book GET Trade book for segment Orders Guide

4. Smart Orders

Endpoint Method Purpose Documentation
/smart/order POST Multi-leg GTT orders Smart Orders Guide
/smart/order/modify POST Smart order modifications Smart Orders Guide
/smart/order/cancel POST Smart order cancellation Smart Orders Guide

5. Portfolio & Risk Management

Endpoint Method Purpose Documentation
/portfolio/holdings GET Equity holdings in Demat account Portfolio & Holdings
/portfolio/positions GET Open derivative positions Portfolio & Holdings
/funds GET Available and utilized funds Users Guide
/margin GET Margin calculation for orders Margin Calculation

6. WebSocket Streaming

Stream Type Purpose Documentation
Market Data Live quotes/ticks WebSockets Guide
Order Updates Trade confirmations WebSockets Guide
Portfolio Changes Position updates WebSockets Guide

7. Utility & System APIs

Endpoint Method Purpose Documentation
/option-chain GET Option chain data Utility APIs
/option-chain-symbols GET Available expiry dates Utility APIs
/greeks POST Greeks calculations Utility APIs

📚 Complete Documentation Guide

For detailed implementation guides, refer to these comprehensive documentation pages:

Getting Started

Market Data & Instruments

Trading & Orders

Portfolio & Risk

Real-time & Utilities

Developer Resources

Technical Specifications

How to Get Your Access Token: 1. Login to indstocks.com 2. Navigate to API section → "Get Started with INDstocks APIs" 3. Copy your access token for API requests

Error Handling Excellence

  • HTTP Status Codes: Standard compliance
  • Error Response Format: Structured JSON
  • Error Categories: 400-499 (Client), 500-599 (Server)

Integration Examples

Quick Start (Python)

Python
import requests

# Get your access token from indstocks.com dashboard
access_token = "YOUR_ACCESS_TOKEN_FROM_DASHBOARD"

# Place Order
order_response = requests.post('https://api.indstocks.com/order',
                              headers={
                                  'Authorization': access_token,
                                  'Content-Type': 'application/json'
                              },
                              json={
                                  'txn_type': 'BUY',
                                  'exchange': 'NSE',
                                  'segment': 'EQUITY',
                                  'security_id': '12345',
                                  'qty': 100,
                                  'order_type': 'LIMIT',
                                  'limit_price': 150.50,
                                  'validity': 'DAY',
                                  'product': 'CNC',
                                  'is_amo': False,
                                  'algo_id': '99999'
                              })

WebSocket Integration

JavaScript
const ws = new WebSocket('wss://api.indstocks.com/ws');
ws.on('message', (data) => {
    const marketData = JSON.parse(data);
    console.log('Live Quote:', marketData);
});

Performance Metrics & Benchmarks

Latency Performance

  • Order Execution: Fast response time for order placement
  • WebSocket Data: Real-time market feeds
  • API Response: Optimized for standard API calls

Reliability Metrics

  • Error Rate: Low system error rate
  • Throughput: High concurrent request support

Cost Efficiency

  • API Access: Free (no subscription charges)
  • Brokerage: Flat ₹5 per order (regardless of size)
  • Data Feeds: Real-time data included at no extra cost
  • Historical Data: 10+ years of historical data available

Key Benefits

1. Developer Experience

  • Comprehensive documentation with interactive examples
  • SDKs available in Python, JavaScript, Java
  • 24/7 developer support

2. Reliability & Performance

  • Financial-grade infrastructure
  • Optimized for low-latency access
  • Auto-scaling to handle peak trading volumes

3. Feature Completeness

  • All order types supported (Market, Limit, Stop-Loss, GTT)
  • Multi-asset support (Equity, F&O, Commodities)
  • Advanced analytics with portfolio insights
  • Compliance ready

Conclusion

The INDstocks API Suite provides enterprise-grade reliability and comprehensive functionality for financial trading applications. The API is designed for trading algorithms, fintech applications, and systems requiring high-quality API integration.

Contact: [email protected] | Documentation: https://api-docs.indstocks.com