This is a simple example on how to connect to the Binck realtime update platform for news, quotes and order execution.
The platform is written using SignalR
After cloning or downloading this repo, make sure you add an active Bearer token in Program.cs, together with the account number:
privateconststringAccessToken="YOUR-ACCESS-TOKEN";privateconststringAccountNumber="YOUR-ACCOUNT-NUMBER";To obtain an access token to the platform please refer to the documentation here
The example will subscribe to the news feed for the country to which the account number belongs and to the last quotes for the DAX index as an example.
// Start the connection to the streamerawaithubConnection.StartAsync();// Subscribe to the news feedawaithubConnection.InvokeAsync("SubscribeNews",AccountNumber);// Subscribe to an instrument quotes awaithubConnection.InvokeAsync("SubscribeQuotes",AccountNumber,new[]{DaxIndex},"TopOfBook");