When working with FYERS' WebSocket API, it's important to understand the structure of the data being returned. Both the market data stream and order updates follow a consistent format to simplify integration and parsing.
FYERS WebSocket responses are delivered in the form of a dictionary (JSON object). This applies to:
This dictionary includes key-value pairs that describe each update, such as:
symbol
ltp
(Last Traded Price)order_id
status
message_type
timestamp
{
"symbol": "NSE:TCS-EQ",
"ltp": 3730.5,
"timestamp": 1729912302,
"type": "symbolUpdate"
}
{
"order_id": "22000239812",
"status": "TRADE_EXECUTED",
"message_type": "orderUpdate",
"timestamp": 1729912302
}
This uniform dictionary structure allows developers to use common parsing logic across different types of updates.
Last updated: 30 Jun 2025