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.
https://www.myshareprice.in/apiStandard HTTP headers: Accept: application/json. HTTPS is strictly enforced.
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.
{
"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" }
}
}Returns historical candlestick (OHLCV) timeseries data for an individual NSE/BSE stock ticker.
range (optional): 1d, 5d, 1mo, 6mo, 1y, 5y, max (default: 1mo)interval (optional): 5m, 15m, 1d, 1wk, 1mo (default: 1d){
"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 }
]
}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
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.