Data Socket - Indices Update
This WebSocket allows you to stream live index values such as NIFTY 50 and NIFTY Bank.
USE CASE
Show live index levels in a market header, or compare a stock's move with its index.
Details
- The WebSocket API for receiving stock data is a real-time communication protocol designed to provide seamless and low-latency access to live stock market data. This API allows developers and traders to establish a persistent, bidirectional connection with the server, enabling them to receive continuous updates on stock prices, trading volumes, and other relevant market information.
- To quickly get started with the WebSocket API and start receiving real-time stock data, you can explore our sample scripts and code examples in our GitHub repository:
Data WebSocket Sample Scripts - Subscribe with
data_typeset toSymbolUpdateand index symbols such asNSE:NIFTY50-INDEXorNSE:NIFTYBANK-INDEX. - Index messages have
typeset toif. - An index message has only
symbol,ltp,prev_close_price,high_price,low_price,open_price,ch,chpandtype. Volume and bid or ask fields are not sent. - A missing
symbolkey in index updates was fixed on 22 Aug 2025 (Java v1.3.0). Use a recent SDK version. See the Change Log.
Plan limits
Standard plan
- Up to 100 symbols, counted per user across all connections
Prime plan
- Up to 5,000 symbols, counted per user across all connections
For rate limits and all other plan details, see Plans & rate limits.
Response Attributes (Index Update)
| Attribute | Data Type | Description |
|---|---|---|
symbol | string | The symbol in fyers symbology format whose data is received on socket. |
ltp | float | Last traded price of security or asset. |
prev_close_price | float | Previous day's close of security or asset. |
high_price | float | Current day's high of security or asset. |
low_price | float | Current day's low of security or asset. |
open_price | float | Current day's open of security or asset. |
ch | float | Change in price of security or asset today. |
chp | float | Change in price in % of security or asset today. |
type | string |
|
Last updated on