Skip to content

Client library for receiving Finnhub.io real-time price updates.

License

Notifications You must be signed in to change notification settings

georg-jung/FinnhubRealtime

Repository files navigation

FinnhubRealtime logo

FinnhubRealtime

NuGet version (FinnhubRealtime) Build Status

FinnhubRealtime is a .Net Standard 2.1 client library for receiving Finnhub.io real-time price updates via the websocket interface. A small demo application can be found in this repository.

Screenshot of demo application

Usage

using var cl = new WebsocketClient("YOUR API TOKEN");
await cl.Connect();
await cl.Subscribe("AAPL");
while (true)
{
    var msg = await cl.Receive();
    if (msg is TradeMessage trade) {
        var tradeStr = string.Join("\n", trade.Data.Select(t => $"{t.S} - #{t.V} x {t.P}"));
        Console.WriteLine(tradeStr);
    }
}

About

Client library for receiving Finnhub.io real-time price updates.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages