SmartWebsocket2 - If exchange type is invalid, API does not throw any error
-
I thought of posting it for future improvement or helping others. Somehow, I unknowingly updated exchange type as '0' in my code and I stopped getting any streaming data. It took me a few hours to figure-out the problem after finally comparing with previous version of code.
Documentation
https://smartapi.angelbroking.com/docs/WebSocket2Following are valid exchange types:
tokenList[].exchangeType Integer M
exchange type
1 (nse_cm)
2 (nse_fo)
3 (bse_cm)
4 (bse_fo)
5 (mcx_fo)
7 (ncx_fo)
13 (cde_fo)