Developer Hub • v1.0 REST API

API Documentation

Public & Internal Endpoints Reference for Indian Stock Market Data

MySharePrice provides programmatic REST APIs for querying real-time market indices, individual stock quotes, historical price series, and fundamental company analysis. All responses are formatted as standard JSON.

Base URL
https://www.myshareprice.in/api

Standard HTTP headers: Accept: application/json. HTTPS is strictly enforced.

GET/api/market/liveRate Limit: 60 req/min

Fetches the latest live market snapshot including benchmark indices (NIFTY 50, SENSEX, Nifty Bank, Midcap, Smallcap), commodities (Gold, Silver), currency pairs (USD/INR), and market breadth advancing/declining statistics.

Sample Response:
{
  "success": true,
  "data": {
    "lastUpdated": "15:30:00 IST",
    "nifty50": { "ltp": 23426.75, "change": -4.20, "percentChange": -0.02 },
    "sensex": { "ltp": 74751.29, "change": -15.10, "percentChange": -0.02 },
    "bankNifty": { "ltp": 56386.75, "change": 90.20, "percentChange": 0.16 },
    "marketStatus": { "isOpen": false, "statusText": "Market is Closed" }
  }
}
GET/api/stock/[symbol]/history?range=1mo&interval=1dRate Limit: 120 req/min

Returns historical candlestick (OHLCV) timeseries data for an individual NSE/BSE stock ticker.

Query Parameters:
  • range (optional): 1d, 5d, 1mo, 6mo, 1y, 5y, max (default: 1mo)
  • interval (optional): 5m, 15m, 1d, 1wk, 1mo (default: 1d)
Sample Response:
{
  "symbol": "RELIANCE",
  "currency": "INR",
  "candles": [
    { "timestamp": 1727409600, "open": 2980.0, "high": 3010.5, "low": 2972.0, "close": 2995.2, "volume": 4210300 },
    { "timestamp": 1727496000, "open": 2998.0, "high": 3025.0, "low": 2990.0, "close": 3012.8, "volume": 3894200 }
  ]
}
GET/llms.txtLLM & AI Crawlers

Standardized markdown documentation containing complete platform definitions, schema interpretations, financial ratio calculations, and guidelines for Large Language Model integrations.

Direct Link: https://www.myshareprice.in/llms.txt

Terms of API Usage & Attribution

Use of the MySharePrice API is subject to standard fair-use rate limits. Automated scraping of front-facing HTML pages is prohibited. If you are developing an academic, institutional, or partner application requiring high-throughput access, please contact us at api@myshareprice.in.