Overview
SmartAPI by Angel Broking is an Indian stock brokerage API that lets developers build automated trading systems, portfolio trackers, and order management tools for the NSE and BSE markets. It requires an API key and supports real-time market data, historical data, order placement, and WebSocket streaming. This API is best suited for developers with some trading domain knowledge.
Beginner Tip
Before placing live orders, always test your integration in the sandbox environment to avoid accidental real trades. Start by exploring the market data endpoints before attempting order management.
Available Data
Example Response
{
"status": "success",
"data": {
"result": "Data from SmartAPI",
"description": "Gain access to set of <SmartAPI> and create end-to-end broking services",
"timestamp": "2025-01-15T10:00:00Z"
}
} Field Reference
status True if the request was successful, false if it failed. message Human-readable status message or error description. data.jwtToken JWT access token to include in the Authorization header for subsequent requests. data.refreshToken Token used to obtain a new JWT access token after expiry. data.feedToken Separate token required for WebSocket market data feed connections. Implementation Example
const url = "https://smartapi.angelbroking.com/";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
headers: {
"X-API-Key": "YOUR_API_KEY"
}
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Matrix Score Breakdown
Partially tested on Apr 5, 2026
Technical Specifications
Similar APIs
View All →Aletheia
Aletheia provides financial data including insider trading filings, earnings call transcripts, and financial statements for US-listed companies.
Alpaca
Alpaca provides real-time and historical market data for US equities and ETFs, along with commission-free trading capabilities.
Alpha Vantage
⭐ Beginner's PickAlpha Vantage delivers free real-time and historical stock, forex, and cryptocurrency data through a simple REST API.
Bank Data API
Bank Data API lets you instantly validate IBAN and SWIFT/BIC numbers to make sure bank account details are correct before processing a payment.
Billplz
Billplz is a payment platform API focused on the Malaysian market that lets you create bills and collect payments online.