FinnhubDotNet 1.0.19
dotnet add package FinnhubDotNet --version 1.0.19
NuGet\Install-Package FinnhubDotNet -Version 1.0.19
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="FinnhubDotNet" Version="1.0.19" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="FinnhubDotNet" Version="1.0.19" />
<PackageReference Include="FinnhubDotNet" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add FinnhubDotNet --version 1.0.19
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: FinnhubDotNet, 1.0.19"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package FinnhubDotNet@1.0.19
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=FinnhubDotNet&version=1.0.19
#tool nuget:?package=FinnhubDotNet&version=1.0.19
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
FinnhubDotNet - clean and efficient C# websocket wrapper for Finnhub
Disclaimer
- This is <b>not</b> an official C# SDK of Finnhub. This is a personal project aimed to contribute to the open-source community.
Installation
- .NET CLI:
dotnet add package FinnhubDotNet - Or search <b>FinnhubDotNet</b> in Visual Studio using NugetPackageManager.
- Or download the <b>./FinnhubDotNet</b> folder and build the class library locally.
Sample Usage
namespace Test {
internal class Program {
static async Task Main(string[] args) {
string yourKey = "";
var ws = new FinnhubDotNet.Websocket.FinnhubStreamingClient(yourKey);
await ws.ConnectAsync();
await ws.SubscribeTradeAsync("BINANCE:BTCUSDT");
await ws.SubscribeTradeAsync("BINANCE:ETHUSDT");
ws.tradeUpdate += (trades) => {
foreach (var trade in trades) {
Console.WriteLine(trade);
}
};
while (true) {
await Task.Delay(5000);
}
}
}
}
Advantages
- Efficient data handling: The data receiving logic is implemented with a pipe, minimizing memory overheads and ensuring low latency.
- Minimalistic interfaces.
Contact/Contribute
- My email is zizh3ng@gmail.com. Please let me know if you have any suggestions or questions on this project.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Newtonsoft.Json (>= 13.0.3)
- System.IO.Pipelines (>= 8.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.19 | 307 | 4/21/2024 |
| 1.0.18 | 157 | 4/1/2024 |
| 1.0.17 | 164 | 3/31/2024 |
| 1.0.16 | 147 | 3/30/2024 |
| 1.0.15 | 157 | 3/30/2024 |
| 1.0.14 | 155 | 3/30/2024 |
| 1.0.13 | 154 | 3/30/2024 |
| 1.0.12 | 156 | 3/30/2024 |
| 1.0.11 | 172 | 3/29/2024 |
| 1.0.10 | 157 | 3/29/2024 |
| 1.0.9 | 173 | 3/28/2024 |
| 1.0.8 | 164 | 3/28/2024 |
| 1.0.7 | 171 | 3/28/2024 |
| 1.0.6 | 176 | 3/28/2024 |
| 1.0.5 | 159 | 3/28/2024 |
| 1.0.4 | 178 | 3/28/2024 |
| 1.0.3 | 183 | 3/27/2024 |
| 1.0.2 | 166 | 3/27/2024 |
| 1.0.1 | 173 | 3/27/2024 |
| 1.0.0 | 208 | 3/24/2024 |
performance improvements