m.Stock API (Algo Trading) Review

m.Stock Logo

-13.45%2,32,231 Clients

m.Stock Trading API is a modern trading infrastructure that provides REST-based APIs for developers and traders to build, automate, and execute trading strategies. It enables users to connect their m.Stock accounts with custom applications or third-party tools and create fully automated trading systems.

m.Stock APIs are built on REST architecture with support for WebSocket streaming, allowing real-time market data access and fast order execution. The platform focuses on high performance, scalability, and zero-cost integration, making it suitable for both retail traders and professional developers.

m.Stock API Benefits

  • Free API Access: No setup, subscription, or recurring API charges
  • Low Brokerage: ₹5 per order for intraday, F&O, and MTF
  • High Performance: Fast execution with less than 100 ms latency
  • Real-Time Data: Live streaming through WebSocket
  • High Scalability: Unlimited orders per day with high request limits
  • Advanced Features: Basket orders, margin calculation, and option chain data
  • Strong Security: Token-based authentication using API key and access token
  • Developer-Friendly: REST APIs with JSON responses and SDK support
  • Transparent Pricing: No hidden charges

m.Stock API Details

API Brokerage Charge

₹5 per order (F&O, Intraday, MTF)

API Document Link

https://tradingapi.mstock.com/docs/v1/Introduction

API Data Format

JSON (inputs form-encoded, responses JSON)

API Offer Type

Trading API, Market Data API, Historical Data API, Portfolio API

API Exchange Support

NSE, BSE (Equity, F&O)

API OS Support

Windows, Linux, macOS, server-based systems

API Support Features

Authentication, Order Placement, Order Modification & Cancellation, Order Book, Trade Book, Portfolio, Positions, Margin Calculator, Market Data, Historical Data, WebSocket Streaming

API Third‑Party Tools

Custom-built trading systems, Python, Node.js, Postman, third-party algo platforms

API Order Types

LIMIT, MARKET, STOP_LOSS, etc

API Support

REST API + WebSocket with high rate limits

m.Stock API Brokerage Charge

  • No setup or subscription fees
  • ₹5 brokerage per order

m.Stock API Rate Limit

  • Order APIs: Supports up to 30 requests per second
  • Data APIs: Supports up to 1 request per second
  • Quote APIs: Supports up to 20 requests per second
  • Per Minute Limit: Supports 1000+ requests per minute depending on the API type
  • Per Day Limit: Unlimited API requests per day

m.Stock API Key

Steps to use API Key and Access Token

  • Generate API Key
    • Login to your m.Stock account
    • Navigate to the API section
    • Generate the API key
    • Store the API key securely
  • Generate Access Token
    • Use the API key to generate an access token
    • The access token is required for all API requests
  • Use Credentials in API Request
    • Send both the API key and access token in the request header
    • Authorization format: token api_key:access_token
  • Server Validation
    • The system validates the token
    • Checks token expiry and access permissions
  • Receive Response
    • Valid token returns the requested data
    • Invalid token returns an error response

m.Stock API Types Offered

  • User API: Handles user profile, account details, and authentication
  • Order Management API: Place, modify, cancel orders, and track order status
  • Portfolio API: Track holdings, positions, and P&L
  • Market Data API: Provides real-time quotes and instrument data
  • Historical Data API: Access past price data and charts
  • WebSocket API: Real-time streaming of market data and order updates
  • Basket API: Execute multiple orders together
  • Margin API: Calculate the required margin before placing orders
  • Option Chain API: Provides options data and market insights

Conclusion

m.Stock Trading API provides a powerful and cost-effective solution for building automated trading systems. With zero API cost, fast execution, high scalability, and real-time data support, it is ideal for traders and developers. Its REST architecture, WebSocket streaming, and flexible integration options make it suitable for both beginners and advanced users.

Zerodha (India's Best & No. 1 Broker)

  Special Offer - Free Equity Delivery and Mutual Funds

  • Brokerage-free equity delivery trades.
  • Brokerage-free Direct Mutual Fund.
  • Pay ₹20 per trade for Intraday & F&O.
  • The best trading platform in India.

Open Instant Demat Account Read Reviews

Frequently Asked Questions

Yes, there are no setup or API charges. Only ₹5 per order brokerage applies

It supports NSE and BSE for equity and derivatives trading

The API key is long-term, but the access token expires daily.

Yes, it supports full automation and integration with custom systems.

m.Stock Competitors Review

Information on this page was last updated on Tuesday, November 19, 2024

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.

Zerodha (Flat Rs 20 Per Trade)
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.

Zerodha (India's Best & No. 1 Broker)

  Special Offer - Free Equity Delivery and Mutual Funds

  • Brokerage-free equity delivery trades.
  • Brokerage-free Direct Mutual Fund.
  • Pay ₹20 per trade for Intraday & F&O.
  • The best trading platform in India.

Open Instant Demat Account Read Reviews
⚖️
Compare Brokers

Compare brokers side-by-side to choose the right one.

Are you a m.Stock Customer?