Looks like, the sample code and sdk is not updated as per Market Data Feed V3. Please advise.
using System;
using System.Net.WebSockets;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Com.Upstox.Marketdatafeeder.Rpc.Proto;
class WebSocketClientExample
{
private const string WebSocketUri = "wss://api.upstox.com/v2/feed/market-data-feed";
private const string AccessToken = <ACCESS_TOKEN>;
static async Task Main(string[] args)
{
using (ClientWebSocket webSocket = new ClientWebSocket())
{
// Configure the WebSocket headers as needed for authorization
webSocket.Options.SetRequestHeader("Authorization", $"Bearer {AccessToken}");
// Connect to the WebSocket server
This file has been truncated. show original
Hi @Samiksha_47544883 , Currently, .NET example code for the V3 WebSocket implementation is not available. However, you can refer to sample examples in other languages provided in the link below.