Unable to fetch real time data

Hey Upstox Dev Team,

I’m facing an issue while integrating the WebSocket Market Data Feed (v3). Here’s the exact flow I’m following:

Step 1: I first authorize using the URL:

https://api.upstox.com/v3/feed/market-data-feed/authorize

I’m using a valid, live access token (not sandbox), and I successfully receive a fresh authorizedRedirectUri in the response. which is a wss link means the websocket link

Step 2: I then use the authorized WebSocket URL to connect using OkHttp in Java. The WebSocket connection is successfully established. And onOpen() is triggered correctly.

Step 3: Once the connection is open, I send the following subscription message:

{

“guid”: “test-guid-001”,

“method”: “sub”,

“params”: {

“mode”: “full”,

“instrumentKeys”: [

“NSE_INDEX|Nifty 50”,

“NSE_EQ|INE002A01018”

]

}

}

Step 4: After sending the subscription message, the only message I receive from the WebSocket is this one-time message:

type: market_info

marketInfo {

segmentStatus {

key: “NSE_INDEX”

value: CLOSING_END

}

}

After that, no price ticks or data is received — nothing else comes through the WebSocket.

I’ve confirmed the following:

  • The WebSocket URL is fresh and generated right before connecting
  • The access token is valid and from the live environment
  • The instrument keys are correct and return data in Node.js
  • I’m decoding incoming messages using the official MarketDataFeed.proto
  • The subscription message is being sent after the connection is confirmed
  • I’m testing this during live market hours

Could someone from the team help me understand why I’m not receiving any tick data even though everything seems to be connected and subscribed correctly?

Appreciate your support!

Thanks,

Ayush Nigam