You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Most likely you're connecting to dxLink. For token-based authorization, use the following address format: "dxlink:wss://demo.dxfeed.com/dxlink-ws[login=dxlink:token]"
Here's an example of how to do it:
usingSystem;usingDxFeed.Graal.Net;usingDxFeed.Graal.Net.Api;usingDxFeed.Graal.Net.Events.Market;// Enable experimental feature.SystemProperty.SetProperty("dxfeed.experimental.dxlink.enable","true");// Set scheme for dxLink.SystemProperty.SetProperty("scheme","ext:opt:sysprops,resource:dxlink.xml");// For token-based authorization, use the following address format:// "dxlink:wss://demo.dxfeed.com/dxlink-ws[login=dxlink:token]"usingvarendpoint=DXEndpoint.Create().Connect("dxlink:wss://demo.dxfeed.com/dxlink-ws");usingvarsubscription=endpoint.GetFeed().CreateSubscription(typeof(Quote));subscription.AddEventListener(events =>{foreach(vareinevents){Console.WriteLine(e);}});subscription.AddSymbols("AAPL");Console.ReadKey();
My Broker has provided me with the link to connect and it does not have a port.
Its something like wss://abc.dxfeed.com/realtime
How do I authenticate with a token?
The text was updated successfully, but these errors were encountered: