Getting decodig issue while implementation Webhook for Market feed V3

Dear Upstock Team,

I have set up a Node.js backend application to establish a WebSocket connection with your webhook. The connection is successfully established, but the data we receive appears to be in binary format. Based on the documentation, I assume this requires decoding.

I have attached a snapshot from Insomnia showing the received data. I also attempted to decode it using a .proto file, but it did not work as expected.

Could you please guide me on how to properly decode this message? If you have any sample snippets or specific decoding steps, that would be greatly helpful.

geting responce like this �����2"�
NCD_FO
NSE_FO
BSE_EQ
BCD_FO
BSE_FO
NSE_EQ
MCX_FO
MCX_INDEX
NSE_INDEX
BSE_INDEX
kindly find the attached photo also
Best regards,
Himanshul Keshri

1 Like

Hi @Himanshul_Keshri

Please ensure that you are using the correct proto file mentioned in our documentation. This will allow you to convert the binary feed into a human-readable format. Upstox API Documentation

Since you are using Node.js, we recommend using our streamer functionality in the Node.js SDK. This will make the implementation much easier for you. Please check this documentation: GitHub - Upstox Node.js SDK.

Thank you!

Thank you for your guidance! I have implemented the Upstox Node.js SDK for the market data streamer, and it’s working perfectly now.
I appreciate the support and the well-documented resources.

Best regards,
Himanshul Keshri

3 Likes