C#C
C#2y ago
Isaaaak

Protocol buffer from Yahoo Finance API

I'm trying to pull data (specifically "price") from a websocket (wss://streamer.finance.yahoo.com/), and it works great. The problem is that the data is in a protocol buffer format. I have the .proto file to decode this data, but I don't actually understand how to do it in C#. It works on an online protobuf decoder (https://www.protobufpal.com/), so I know there is no issue with my .proto file or the data (see image). I tried a few different ways but I just can't get it to work. I'm a beginner in C# so don't know all the concepts.
image.png
image.png
Was this page helpful?
Protocol buffer from Yahoo Finance API - C#