![]() |
VOOZH | about |
Package has been renamed to JKorf.HTX.Net due to exchange renaming
dotnet add package Huobi.Net --version 5.7.0
NuGet\Install-Package Huobi.Net -Version 5.7.0
<PackageReference Include="Huobi.Net" Version="5.7.0" />
<PackageVersion Include="Huobi.Net" Version="5.7.0" />Directory.Packages.props
<PackageReference Include="Huobi.Net" />Project file
paket add Huobi.Net --version 5.7.0
#r "nuget: Huobi.Net, 5.7.0"
#:package Huobi.Net@5.7.0
#addin nuget:?package=Huobi.Net&version=5.7.0Install as a Cake Addin
#tool nuget:?package=Huobi.Net&version=5.7.0Install as a Cake Tool
Huobi.Net is a strongly typed client library for accessing the Huobi REST and Websocket API.
The library is targeting both .NET Standard 2.0 and .NET Standard 2.1 for optimal compatibility
| .NET implementation | Version Support |
|---|---|
| .NET Core | 2.0 and higher |
| .NET Framework | 4.6.1 and higher |
| Mono | 5.4 and higher |
| Xamarin.iOS | 10.14 and higher |
| Xamarin.Android | 8.0 and higher |
| UWP | 10.0.16299 and higher |
| Unity | 2018.1 and higher |
👁 NuGet version
👁 Nuget downloads
dotnet add package Huobi.Net
Huobi.Net is available on GitHub packages. You'll need to add https://nuget.pkg.github.com/JKorf/index.json as a NuGet package source.
The NuGet package files are added along side the source with the latest GitHub release which can found here.
REST Endpoints
// Get the ETH/USDT ticker via rest request
var restClient = new HuobiRestClient();
var tickerResult = await restClient.SpotApi.ExchangeData.GetTickerAsync("ETHUSDT");
var lastPrice = tickerResult.Data.ClosePrice;
Websocket streams
// Subscribe to ETH/USDT ticker updates via the websocket API
var socketClient = new HuobiSocketClient();
var tickerSubscriptionResult = socketClient.SpotApi.SubscribeToTickerUpdatesAsync("ethusdt", (update) =>
{
var lastPrice = update.Data.ClosePrice;
});
For information on the clients, dependency injection, response processing and more see the Huobi.Net documentation, CryptoExchange.Net documentation, or have a look at the examples here or here.
Huobi.Net is based on the CryptoExchange.Net base library. Other exchange API implementations based on the CryptoExchange.Net base library are available and follow the same logic.
CryptoExchange.Net also allows for easy access to different exchange API's.
| Exchange | Repository | Nuget |
|---|---|---|
| Binance | JKorf/Binance.Net | 👁 Nuget version |
| BingX | JKorf/BingX.Net | 👁 Nuget version |
| Bitfinex | JKorf/Bitfinex.Net | 👁 Nuget version |
| Bitget | JKorf/Bitget.Net | 👁 Nuget version |
| BitMart | JKorf/BitMart.Net | 👁 Nuget version |
| Bybit | JKorf/Bybit.Net | 👁 Nuget version |
| CoinEx | JKorf/CoinEx.Net | 👁 Nuget version |
| CoinGecko | JKorf/CoinGecko.Net | 👁 Nuget version |
| Gate.io | JKorf/GateIo.Net | 👁 Nuget version |
| Kraken | JKorf/Kraken.Net | 👁 Nuget version |
| Kucoin | JKorf/Kucoin.Net | 👁 Nuget version |
| Mexc | JKorf/Mexc.Net | 👁 Nuget version |
| OKX | JKorf/OKX.Net | 👁 Nuget version |
👁 Nuget version
A Discord server is available here. Feel free to join for discussion and/or questions around the CryptoExchange.Net and implementation libraries.
| API | Supported | Location |
|---|---|---|
| Reference Data | ✓ | restClient.SpotApi.ExchangeData |
| Market Data | ✓ | restClient.SpotApi.ExchangeData |
| Account | ✓ | restClient.SpotApi.Account |
| Wallet | ✓ | restClient.SpotApi.Account |
| Sub user management | Partial | restClient.SpotApi.Account |
| Trading | ✓ | restClient.SpotApi.Trading |
| Conditional Order | ✓ | restClient.SpotApi.Trading |
| Margin Loan | ✓ | restClient.SpotApi.Account |
| Margin Loan | ✓ | restClient.SpotApi.Account |
| Websocket Market Data | ✓ | socketClient.SpotApi |
| Websocket Account and Order | ✓ | socketClient.SpotApi |
| API | Supported | Location |
|---|---|---|
| * | X |
| API | Supported | Location |
|---|---|---|
| * | X |
| API | Supported | Location |
|---|---|---|
| Reference Data | ✓ | restClient.UsdtMarginSwapApi.ExchangeData |
| Swap Market Data Interface | ✓ | restClient.UsdtMarginSwapApi.ExchangeData |
| Swap Account Interface | ✓ | restClient.UsdtMarginSwapApi.Account |
| Swap Trade Interface | ✓ | restClient.UsdtMarginSwapApi.Trading |
| Swap Strategy Order Interface | X | |
| Swap Transferring Interface | X | restClient.SpotApi.Account |
| Websocket Market Interface | ✓ | socketClient.UsdtMarginSwapApi |
| Websocket Index and Basis Interface | ✓ | socketClient.UsdtMarginSwapApi |
| Orders And Account WebSocket | X | |
| WebSocket System updates | X |
I develop and maintain this package on my own for free in my spare time, any support is greatly appreciated.
Make a one time donation in a crypto currency of your choice. If you prefer to donate a currency not listed here please contact me.
Btc: bc1q277a5n54s2l2mzlu778ef7lpkwhjhyvghuv8qf
Eth: 0xcb1b63aCF9fef2755eBf4a0506250074496Ad5b7
USDT (TRX) TKigKeJPXZYyMVDgMyXxMf17MWYia92Rjd
Alternatively, sponsor me on Github using Github Sponsors.
Version 5.7.0 - 07 Aug 2024
Version 5.6.0 - 27 Jul 2024
Version 5.5.0 - 16 Jul 2024
Version 5.4.1 - 02 Jul 2024
Version 5.4.0 - 23 Jun 2024
Version 5.3.0 - 11 Jun 2024
Version 5.2.8 - 07 May 2024
Version 5.2.7 - 01 May 2024
Version 5.2.6 - 28 Apr 2024
Version 5.2.5 - 23 Apr 2024
Version 5.2.4 - 18 Apr 2024
Version 5.2.3 - 12 Apr 2024
Version 5.2.2 - 03 Apr 2024
Version 5.2.1 - 24 Mar 2024
Version 5.2.0 - 16 Mar 2024
Version 5.1.0 - 25 Feb 2024
Version 5.0.5 - 03 Dec 2023
Version 5.0.4 - 19 Nov 2023
Version 5.0.3 - 24 Oct 2023
Version 5.0.2 - 09 Oct 2023
Version 5.0.1 - 25 Aug 2023
Version 5.0.0 - 25 Jun 2023
Version 4.2.4 - 18 Mar 2023
Version 4.2.3 - 14 Feb 2023
Version 4.2.2 - 05 Feb 2023
Version 4.2.1 - 29 Dec 2022
Version 4.2.0 - 17 Nov 2022
Version 4.1.8 - 31 Jul 2022
Version 4.1.7 - 18 Jul 2022
Version 4.1.6 - 16 Jul 2022
Version 4.1.5 - 10 Jul 2022
Version 4.1.4 - 12 Jun 2022
Version 4.1.3 - 24 May 2022
Version 4.1.2 - 22 May 2022
Version 4.1.1 - 12 May 2022
Version 4.1.0 - 12 May 2022
Version 4.0.10 - 08 May 2022
Version 4.0.9 - 01 May 2022
Version 4.0.8 - 14 Apr 2022
Version 4.0.7 - 14 Mar 2022
Version 4.0.6 - 10 Mar 2022
Version 4.0.5 - 08 Mar 2022
Version 4.0.4 - 01 Mar 2022
Version 4.0.3 - 27 Feb 2022
Version 4.0.2 - 25 Feb 2022
Version 4.0.1 - 24 Feb 2022
Version 4.0.0 - 18 Feb 2022
Added Github.io page for documentation: https://jkorf.github.io/Huobi.Net/
Added unit tests for parsing the returned JSON for each endpoint and subscription
Added AddHuobi extension method on IServiceCollection for easy dependency injection
Added URL reference to API endpoint documentation for each endpoint
Added default rate limiter
Refactored OrderType to be split in Type and Side to be consistent across exchange implementations
Refactored client structure to be consistent across exchange implementations
Renamed various properties to be consistent across exchange implementations
Cleaned up project structure
Fixed various models
Updated CryptoExchange.Net, see https://github.com/JKorf/CryptoExchange.Net#release-notes
See https://jkorf.github.io/Huobi.Net/MigrationGuide.html for additional notes for updating from V3 to V4
Version 3.2.4 - 03 Nov 2021
Version 3.2.3 - 08 Oct 2021
Version 3.2.2 - 06 Oct 2021
Version 3.2.1 - 05 Oct 2021
Version 3.2.0 - 29 Sep 2021
Version 3.1.0 - 20 Sep 2021
Version 3.0.5 - 15 Sep 2021
Version 3.0.4 - 02 Sep 2021
Version 3.0.3 - 26 Aug 2021
Version 3.0.2 - 24 Aug 2021
Version 3.0.1 - 13 Aug 2021
Version 3.0.0 - 12 Aug 2021
Version 3.0.0-beta3 - 09 Aug 2021
Version 3.0.0-beta2 - 26 Jul 2021
Version 3.0.0-beta1 - 09 Jul 2021
Version 2.5.5 - 28 apr 2021
Version 2.5.4 - 19 apr 2021
Version 2.5.3 - 08 apr 2021
Version 2.5.2 - 30 mrt 2021
Version 2.5.1 - 01 mrt 2021
Version 2.5.0 - 01 mrt 2021
Version 2.4.0 - 22 jan 2021
Version 2.3.3 - 15 jan 2021
Version 2.3.2 - 14 jan 2021
Version 2.3.1 - 05 jan 2021
Version 2.3.0 - 05 jan 2021
Version 2.2.0 - 21 dec 2020
Version 2.1.1 - 11 dec 2020
Version 2.1.0 - 25 nov 2020
Version 2.0.15 - 19 nov 2020
Version 2.0.14 - 08 Oct 2020
Version 2.0.13 - 28 Aug 2020
Version 2.0.12 - 12 Aug 2020
Version 2.0.11 - 03 Aug 2020
Version 2.0.10 - 20 Jul 2020
Version 2.0.10 - 20 Jul 2020
Version 2.0.9 - 07 Jul 2020
Version 2.0.8 - 21 Jun 2020
Version 2.0.7 - 16 Jun 2020
Version 2.0.6 - 07 Jun 2020
Version 2.0.5 - 03 Mar 2020
Version 2.0.4 - 27 Jan 2020
Version 2.0.3 - 01 Nov 2019
Version 2.0.1 - 23 Oct 2019
Version 2.0.1 - 23 Oct 2019
Version 2.0.0 - 23 Oct 2019
Version 1.1.9 - 11 Sep 2019
Version 1.1.8 - 07 Aug 2019
Version 1.1.7 - 05 Aug 2019
Version 1.1.6 - 01 Aug 2019
Version 1.1.5 - 09 jul 2019
Version 1.1.4 - 27 jun 2019
Version 1.1.3 - 24 jun 2019
Version 1.1.2 - 17 may 2019
Version 1.1.1 - 17 may 2019
Version 1.1.0 - 14 may 2019
Version 1.0.4 - 01 may 2019
Version 1.0.3 - 25 mar 2019
Version 1.0.2 - 18 mar 2019
Version 1.0.1 - 07 mar 2019
Version 1.0.0 - 27 feb 2019
Version 0.0.5 - 15 feb 2019
Version 0.0.4 - 12 feb 2019
Version 0.0.3 - 01 feb 2019
Version 0.0.2 - 17 dec 2018
Version 0.0.1 - 07 dec 2018
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 is compatible. |
| .NET Framework | net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 1 NuGet packages that depend on Huobi.Net:
| Package | Downloads |
|---|---|
|
exchange-client-1
Exchange client gather all exchanges via jkorf and it uses common client sources |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 5.7.0 | 2,939 | 8/7/2024 | 5.7.0 is deprecated. |
| 5.6.0 | 1,305 | 7/29/2024 | |
| 5.4.1 | 1,111 | 7/2/2024 | |
| 5.4.0 | 487 | 6/23/2024 | |
| 5.3.0 | 1,220 | 6/11/2024 | |
| 5.2.8 | 2,399 | 5/7/2024 | |
| 5.2.7 | 396 | 5/1/2024 | |
| 5.2.6 | 528 | 4/28/2024 | |
| 5.2.5 | 414 | 4/23/2024 | |
| 5.2.4 | 436 | 4/18/2024 | |
| 5.2.3 | 423 | 4/12/2024 | |
| 5.2.2 | 476 | 4/3/2024 | |
| 5.2.1 | 1,544 | 3/24/2024 | |
| 5.2.0 | 504 | 3/16/2024 | |
| 5.1.0 | 2,074 | 2/25/2024 | |
| 5.1.0-beta2 | 388 | 2/18/2024 | |
| 5.1.0-beta1 | 407 | 2/6/2024 | |
| 5.0.5 | 3,574 | 12/3/2023 | |
| 5.0.4 | 614 | 11/19/2023 | |
| 5.0.3 | 1,725 | 10/24/2023 |