APIs10 min read

Indian Stock Market APIs for Developers: SDKs and Languages Compared (2026)

By Deion DSouza
Indian stock market API providers compared by SDK language and data job

Pick a stock market API in India for developers by the data job first and the language second. Price feeds come from authorised vendors such as TrueData and Global Datafeeds, company events and filings come from an event API such as Drishti, and orders go through a broker API. Then the official SDK (software development kit) for your language decides how much glue code you write.

This guide compares six products for National Stock Exchange of India (NSE) and BSE data on developer access, protocols, official libraries and pricing. Drishti is our product, so weigh that when you read this comparison.

Key takeaways

  • Split the build into three jobs: prices and ticks, company events and filings, and orders. Most products cover one job well.
  • TrueData and Global Datafeeds are price-feed vendors with WebSocket and REST APIs; their API pricing is not published.
  • Tijori, Trendlyne and StockScans are browser research products; we found no self-serve public developer API for them.
  • Drishti ships official SDKs for Python, Node.js/TypeScript, Java, PHP and .NET, and all five pass one shared conformance test suite.
  • Before you commit, check licence, rate limits, SDK release history and auth.

On this page

Pick the data job before the language

"Stock market API" covers three different products. Mixing them up is how teams pick a well-documented SDK that does not carry the data they need.

  1. Prices and ticks. Live quotes, OHLC (open, high, low, close) bars and historical candles for charts and backtests. An authorised market data vendor delivers these, usually over WebSocket (a long-lived connection the server pushes updates through) or TCP.
  2. Company events and filings. Corporate announcements, results, earnings call (concall) transcripts, block deals and news. The hard part is turning filings and PDFs into fields your code can filter, so a REST (Representational State Transfer) API with structured output matters more than microseconds.
  3. Orders. Placing and tracking trades. If you need to place orders, use a broker API such as Kite Connect, Upstox or DhanHQ.

A portfolio tracker might stream prices from a vendor, pull filings from an event API and never touch orders. Draw that split before you compare SDKs.

Diagram mapping three data jobs to provider types: prices and ticks to a market data vendor, company events and filings to an event API, and orders to a broker API

NSE BSE API SDK support by provider

"Not published" means we could not find the detail on the provider's public pages, not that it does not exist.

ProviderDeveloper APIProtocolsOfficial libraries/SDKsPublic pricing
DrishtiYes, self-serve with a free SandboxREST, WebSocket, MCP server, OpenAPI specPython, Node.js/TypeScript, Java, PHP, C#/.NETSandbox free; Starter ₹2,000/month; Pro ₹10,000/month
TrueDataYesWebSocket, TCP, REST (JSON)Python package truedata; site lists JS/Node and C#/.NET librariesAPI pricing not published; Velocity plugin from ₹1,699/month
Global DatafeedsYesWebSocket, REST, .NET, COM, FIXPython wrapper ws-gfdl (labelled beta); sample code for Python, Java, Node, PHP, C#, VB.NET, C/C++Pricing on request
Tijori FinanceLimited; enterprise access via supportNo self-serve docs foundNone foundApp plans Free, ₹330/month or ₹3,500/year; API pricing not published
TrendlyneNo self-serve public API documentation found; B2B data for brokeragesExcel Connect; AI MCP plansNone foundAI MCP plans from ₹299/month; API pricing not published
StockScansNo public API foundNot applicableNone foundFree entry tier for the research platform

MCP is the Model Context Protocol, which lets an AI assistant call a data source as a tool. FIX (Financial Information eXchange) is a messaging standard used by trading systems.

Which provider type fits each job

This is a product-fit comparison, not a ranking. We have not benchmarked these providers for latency or uptime.

If your build needsConsiderWhy it may fitCheck before choosing
Tick and OHLC prices for charts or backtestsTrueDataAuthorised real-time vendor for NSE, BSE and the Multi Commodity Exchange (MCX) with real-time tick and historical dataAPI pricing; the licence covers your own use, and redistribution needs exchange approval
Real-time and historical prices into trading platforms, with option chains and GreeksGlobal DatafeedsAuthorised Level 1 (L1) vendor since 2010 with WebSocket, REST and FIX, plus 25+ platform integrationsPricing on request; the Python wrapper is labelled beta
Company events and AI-structured filings in codeDrishtiREST and WebSocket feeds for announcements, earnings, concalls, news, alerts and block deals, with five official SDKsIt does not cover prices or orders; Sandbox has no WebSockets
Company research in a browser, no codeTijori, Trendlyne or StockScansFilings timelines, screeners, scores and scans for investorsNo self-serve developer API found
Placing ordersA broker APIAccount-linked tradingBroker terms and account requirements

A common stack uses TrueData or Global Datafeeds for tick and OHLC prices, Drishti for company events and filings, and a broker API for orders. Drishti is an independent market-intelligence API built on official exchange-backed sources. It does not scrape NSE or BSE websites. It also does not provide tick-by-tick prices or submit orders, so pair it with a price vendor when your app needs both.

Indian stock market API in Python, Java, Node and more

Drishti publishes official SDKs for five languages, and they share a single conformance suite: language-neutral test fixtures that every SDK must pass, run in continuous integration on every pull request. Retries on 408, 409, 425, 429, 500, 502, 503 and 504 responses, errors, pagination and WebSocket reconnects therefore behave the same in Python as in .NET, and every WebSocket session resubscribes after a drop and runs a heartbeat watchdog.

Every SDK sends your key in the X-API-Key header to https://developers.manasija.in. Each snippet reads it from DRISHTI_API_KEY and fetches ten news items for two symbols.

Python

The Python SDK targets Python 3.10+ and returns dictionaries, which suits notebooks, cron jobs and FastAPI services. Install it from PyPI with pip install drishti-sdk.

Code
import os
from drishti_sdk import DrishtiClient

with DrishtiClient(api_key=os.environ["DRISHTI_API_KEY"]) as client:
    news = client.get_news(symbols=["RELIANCE", "TCS"], limit=10)
    print(len(news["data"]))

The full walkthrough is in the Python guide for NSE and BSE data.

Node.js and TypeScript

The npm package ships TypeScript types and runs on Node.js 18+ or in a modern browser. Install it with npm install drishti-sdk. Keep production keys on the server.

Code
import { DrishtiClient } from "drishti-sdk";

const client = new DrishtiClient({ apiKey: process.env.DRISHTI_API_KEY! });
const news = await client.getNews({ symbols: ["RELIANCE", "TCS"], limit: 10 });
console.log(news.data.length);

The full walkthrough is in the Node.js and TypeScript guide for NSE and BSE data.

Java

The Java SDK needs Java 17+ and has one runtime dependency, Jackson. Add io.github.techmanasija:drishti-sdk:1.0.0 from Maven Central. The client is thread-safe, so create one and share it.

Code
DrishtiClient client = DrishtiClient.fromEnvironment(); // reads DRISHTI_API_KEY
JsonNode news = client.getNews(new NewsParams().symbols("RELIANCE", "TCS").limit(10));
System.out.println(news.path("data").size());

The full walkthrough is in the Java guide for NSE and BSE data.

PHP

The PHP SDK requires PHP 8.2+ and installs from Packagist with composer require manasija/drishti-sdk. JSON comes back as associative arrays. Run its blocking WebSocket client in a worker process, not a web request.

Code
use Drishti\DrishtiClient;

$client = new DrishtiClient(apiKey: getenv('DRISHTI_API_KEY'));
$news = $client->getNews(symbols: ['RELIANCE', 'TCS'], limit: 10);
echo count($news['data']);

The full walkthrough is in the PHP and Laravel guide for NSE and BSE data.

.NET

The .NET SDK targets .NET 8+ and .NET Standard 2.0, and is async throughout with typed response models. Install it from NuGet with dotnet add package Manasija.Drishti. In ASP.NET Core, AddDrishtiClient(...) registers it through IHttpClientFactory.

Code
using var client = DrishtiClient.FromEnvironment(); // reads DRISHTI_API_KEY
var news = await client.GetNewsAsync(new NewsParams { Symbols = ["RELIANCE", "TCS"], Limit = 10 });
Console.WriteLine(news!.Data.Count);

The full walkthrough is in the C# and .NET guide for NSE and BSE data.

Stock market API India for developers: checks before choosing

Run these checks on any provider, including us.

  1. Licence and redistribution. A working API key is not a right to display or resell the data. TrueData, for example, licenses data for the subscriber's own use, and redistribution needs exchange approval.
  2. Rate limits. Drishti's free Sandbox allows 10 requests per minute and 1,000 REST requests per day with 1,000 one-time trial credits; Starter raises that to 60 requests per minute with 10,000 credits a month.
  3. SDK maintenance. Check the last release on the package registry and whether the SDK is official or community-built. A "beta" label or a stale release changes what to expect in production.
  4. Auth model. Static keys, session tokens and user-level OAuth logins need different handling. Anything reaching a browser or mobile app needs a server in the middle.
  5. Ticks or events. If the requirement says "real time", ask which data. Streaming ticks need a price vendor; filings and results arrive as discrete events.

For a broader provider ranking across data types, read our Indian stock market API comparison. If you already use TrueData and want to know what to pair it with, see TrueData alternatives for NSE and BSE data.

Frequently asked questions

Is there an official NSE API for developers?

Most developers do not integrate with the exchange directly. They reach NSE prices through an authorised vendor such as TrueData or Global Datafeeds, or through a broker API. For filings and events, an API like Drishti structures the data so you do not scrape exchange websites.

Which Indian stock market API has an official Python SDK?

TrueData publishes the truedata package on PyPI, Global Datafeeds offers the ws-gfdl wrapper (labelled beta), and Drishti publishes drishti-sdk. They cover different jobs: the first two carry price feeds, while Drishti carries company events, filings, news and alerts.

Can I use one SDK for both live prices and corporate announcements?

Usually not. Drishti does not stream tick prices, so most teams run two clients: a vendor SDK for prices and an event API for announcements and results.

Do Drishti's SDKs behave the same in every language?

Yes. All five pass one shared conformance suite covering requests, retries, errors, pagination and WebSocket parsing. Method names follow each language's style, such as get_news in Python and GetNewsAsync in .NET.

Is there a free stock market API in India for testing?

Drishti's Sandbox is free and includes 1,000 one-time trial credits, 10 requests per minute and 1,000 REST requests per day. WebSocket streams start on the Starter plan. TrueData offers a 7-day trial of its Velocity plugin.

Make your first call today

Create a free Sandbox key at platform.manasija.in, export it as DRISHTI_API_KEY and run one request. If it prints 10, follow the quickstart to add announcements, earnings and alerts for your own watchlist.

Product pages, package registries and documentation checked on 21 October 2026. Prices and features change, so confirm on each provider's site before you buy. This article is not investment advice.

Keep exploring