Websocket doesn't return price feeds for NIFTY mar and apr future

Hello,

When I pass instrument keys for nifty mar and apr contracts simultaneously the ltpc feed is not coming, however when I run them individually I am getting the feed. I want to run the feed for both the contracts simultaneously. This issue is also coming in the markquote api as well.

I am passing in the websocket file as both the combination, the later combination is working but not the first one.

“instrumentKeys”: [“NSE_FO|35001,NSE_FO|54452”]
#“instrumentKeys”: [“NSE_FO|54452”]

You need to pass instrument keys as an array, like this: [“NSE_FO|35001", "NSE_FO|54452”]. This format will work correctly.

Additionally, you can refer to the documentation for more details:
Upstox API Documentation

Thanks!

Yes it is working, thanks for clarification

1 Like