I am unable to unsubscribe symbols using javascript api.
For example:
skt.unsubscribe([‘NSE:NIFTY50-INDEX’],false);
console.log(skt.isConnected())
})
It is still streaming ‘NSE:NIFTY50-INDEX’.
console error
error in unsubscribe function ReferenceError: logger is not defined
unsubscribe https://cdn.fyers.in/js/sdk/1.1.0/fyers-web-sdk-v3/index.min.js
WWhYB2qrsx
(Inactive Member)
2
Hey @priya_hala
This is working fine now , could you please check from you’re end .
We have checked. It is not working. Your documentation too is wrong for unsubscribe ??
https://myapi.fyers.in/docsv3#tag/Web-Socket/paths/~1WebSocket/patch
skt.on(“message”,function(message){
if(message.ltp>100 &&message.symbol==“NSE:SBIN-EQ”){
fyersdata.unsubscribe([“NSE:SBIN-EQ”],false)
}
})
fyersdata ???
Moreover in positions your documentation shows
slNo - This is used for sorting of positions
There is no such response. There is no way we can sort positions in descending order??? Your API is not reliable unlike other brokers.
WWhYB2qrsx
(Inactive Member)
4
Hey @priya_hala
Please use the latest version of the SDK to avoid such issues , please check and let us know if there are any issues faced