I am using node SDK to subscribe both market feed and order update through the websocket interface. The code simple as simple as
const reqBodyForOrderUpdate = {
dataType:‘orderUpdate’
}
fyers.fyers_connect(reqBodyForOrderUpdate,function(data){
console.log(“Order update received.”);
orderUpdated(data)
});
const reqBodyFormarketFeed = {
symbol : [“symbol1”],
dataType : ‘symbolUpdate’
}
fyers.fyers_connect(reqBody,function(data){
processDataFeed(callback, data);
});
Both calls are successful all the time. Bit the feeds are not consistent. Some time I get the the correct update from Fyers, but some time I get only partial update (few symbols subscribed or some orders), and some time I do not get any update at all. I try to find a pattern when I get correct response and when I miss feeds, but I could not find one.
Any help on this is appreciated.