Adding real-time stock data to your application can significantly enhance its value for users who need live market insights. FYERS provides a dedicated Market Data WebSocket API that allows developers to receive streaming updates for stock prices, trades, and market depth.
The Market Data WebSocket API is a service by FYERS that streams live data such as last traded price (LTP), bid/ask quotes, and volume for subscribed instruments. This is especially useful for trading platforms, analytical tools, and automated systems that require low-latency data feeds.
wss://api.fyers.in/socket/v2/data/NSE:INFY-EQ or NSE:SBIN-EQ.| Scenario | Outcome |
|---|---|
| You send an invalid symbol or format | The subscription may fail silently; verify symbol codes |
| You need to switch instruments dynamically | Unsubscribe from old symbols before subscribing to new ones |
| The WebSocket disconnects randomly | Check heartbeat/ping settings and implement retry logic |
Last updated: 30 Jun 2025