Huobi.Net
5.0.4
See the version list below for details.
dotnet add package Huobi.Net --version 5.0.4
NuGet\Install-Package Huobi.Net -Version 5.0.4
<PackageReference Include="Huobi.Net" Version="5.0.4" />
paket add Huobi.Net --version 5.0.4
#r "nuget: Huobi.Net, 5.0.4"
// Install Huobi.Net as a Cake Addin #addin nuget:?package=Huobi.Net&version=5.0.4 // Install Huobi.Net as a Cake Tool #tool nuget:?package=Huobi.Net&version=5.0.4
Huobi.Net
Huobi.Net is a wrapper around the Huobi API as described on Huobi, including all features the API provides using clear and readable objects, both for the REST as the websocket API's.
If you think something is broken, something is missing or have any questions, please open an Issue
Installation
dotnet add package Huobi.Net
Support the project
I develop and maintain this package on my own for free in my spare time, any support is greatly appreciated.
Referral link
Sign up using the following referral link to pay a small percentage of the trading fees you pay to support the project instead of paying them straight to Huobi. This doesn't cost you a thing! Link
Donate
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: bc1qz0jv0my7fc60rxeupr23e75x95qmlq6489n8gh
Eth: 0x8E21C4d955975cB645589745ac0c46ECA8FAE504
Sponsor
Alternatively, sponsor me on Github using Github Sponsors.
Discord
A Discord server is available here. Feel free to join for discussion and/or questions around the CryptoExchange.Net and implementation libraries.
Release notes
Version 5.0.4 - 19 Nov 2023
- Added support for sending broker id
Version 5.0.3 - 24 Oct 2023
- Updated CryptoExchange.Net
Version 5.0.2 - 09 Oct 2023
- Updated CryptoExchange.Net version
- Added ISpotClient to DI injection
Version 5.0.1 - 25 Aug 2023
- Updated CryptoExchange.Net
Version 5.0.0 - 25 Jun 2023
- Updated CryptoExchange.Net to version 6.0.0
- Renamed HuobiClient to HuobiRestClient
- Renamed **Streams to **Api on the HuobiSocketClient
- Updated endpoints to consistently use a base url without any path as basis to make switching environments/base urls clearer
- Added IHuobiOrderBookFactory and implementation for creating order books
- Updated dependency injection register method (AddHuobi)
Version 4.2.4 - 18 Mar 2023
- Updated CryptoExchange.Net
Version 4.2.3 - 14 Feb 2023
- Updated CryptoExchange.Net
Version 4.2.2 - 05 Feb 2023
- Fixed leverageRate parameter for margin swap orders
Version 4.2.1 - 29 Dec 2022
- Fixed GetCurrentFeeRatesAsync deserialization
Version 4.2.0 - 17 Nov 2022
- Added Usdt Margin Swap API
- Updated CryptoExchange.Net
- Added user fee rate endpoint
Version 4.1.8 - 31 Jul 2022
- Added missing account types
- Fixed culture issue authenticating requests
Version 4.1.7 - 18 Jul 2022
- Updated CryptoExchange.Net
Version 4.1.6 - 16 Jul 2022
- Updated CryptoExchange.Net
Version 4.1.5 - 10 Jul 2022
- Updated CryptoExchange.Net
Version 4.1.4 - 12 Jun 2022
- Updated CryptoExchange.Net
Version 4.1.3 - 24 May 2022
- Updated CryptoExchange.Net
Version 4.1.2 - 22 May 2022
- Updated CryptoExchange.Net
Version 4.1.1 - 12 May 2022
- Fixed CryptoExchange.Net reference
Version 4.1.0 - 12 May 2022
- Added algo order endpoints
- Added margin endpoints
- Updated Url for partial order book stream
- Removed symbol restriction on GetOpenOrdersAsync
Version 4.0.10 - 08 May 2022
- Updated CryptoExchange.Net
Version 4.0.9 - 01 May 2022
- Updated CryptoExchange.Net which fixed an timing related issue in the websocket reconnection logic
- Added seconds representation to KlineInterval enum
Version 4.0.8 - 14 Apr 2022
- Updated CryptoExchange.Net
Version 4.0.7 - 14 Mar 2022
- Added GetUserIdAsync endpoint
- Added GetSubAccountUsersAsync endpoint
- Added GetSubUserAccountsAsync endpoint
Version 4.0.6 - 10 Mar 2022
- Updated CryptoExchange.Net
- Fixed CancellationToken not being passed to Common GetRecentTradesAsync
Version 4.0.5 - 08 Mar 2022
- Updated CryptoExchange.Net
Version 4.0.4 - 01 Mar 2022
- Updated CryptoExchange.Net improving the websocket reconnection robustness
Version 4.0.3 - 27 Feb 2022
- Updated CryptoExchange.Net to fix timestamping issue when request is ratelimiter
Version 4.0.2 - 25 Feb 2022
- Fixed missing Side property on GetUserTradeAsync response model
Version 4.0.1 - 24 Feb 2022
- Updated CryptoExchange.Net
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
- Fix for invalid check in SubscribeToOrderDetailsUpdatesAsync
Version 3.2.3 - 08 Oct 2021
- Updated CryptoExchange.Net to fix some socket issues
Version 3.2.2 - 06 Oct 2021
- Updated CryptoExchange.Net, fixing socket issue when calling from .Net Framework
- Fixed issue in HuobiSymbolOrderBook syncing
Version 3.2.1 - 05 Oct 2021
- Fixed incorrect sanity check in SubscribeToOrderUpdatesAsync
Version 3.2.0 - 29 Sep 2021
- Added missing AccountTypes
- Renamed Amount to Quantity in parameters and properties
- Implemented Market-By-Price streams
- Updated CryptoExchange.Net
Version 3.1.0 - 20 Sep 2021
- Added missing SetApiCredentials method
- Updated CryptoExchange.Net
Version 3.0.5 - 15 Sep 2021
- Updated CryptoExchange.Net
Version 3.0.4 - 02 Sep 2021
- Fix for disposing order book closing socket even if there are other connections
Version 3.0.3 - 26 Aug 2021
- Updated CryptoExchange.Net
Version 3.0.2 - 24 Aug 2021
- Updated CryptoExchange.Net, improving websocket and SymbolOrderBook performance
- Fix for 15minute klines via IExchangeClient
Version 3.0.1 - 13 Aug 2021
- Fix for OperationCancelledException being thrown when closing a socket from a .net framework project
Version 3.0.0 - 12 Aug 2021
- Release version with new CryptoExchange.Net version 4.0.0
- Multiple changes regarding logging and socket connection, see CryptoExchange.Net release notes
- Release version with new CryptoExchange.Net version 4.0.0
Version 3.0.0-beta3 - 09 Aug 2021
- Renamed GetOrderInfoAsync to GetOrderAsync
- Renamed GetOrderInfoByClientOrderIdAsync to GetOrderByClientOrderIdAsync
- Renamed GetSymbolTradesAsync to GetUserTradeHistoryAsync
- Renamed PlaceWithdrawAsync to WithdrawAsync
- Renamed GetTradesAsync to GetTradeHistoryAsync
Version 3.0.0-beta2 - 26 Jul 2021
- Updated CryptoExchange.Net
Version 3.0.0-beta1 - 09 Jul 2021
- Added Async postfix for async methods
- Updated CryptoExchange.Net
Version 2.5.5 - 28 apr 2021
- Updated CryptoExchange.Net
Version 2.5.4 - 19 apr 2021
- Updated CryptoExchange.Net
Version 2.5.3 - 08 apr 2021
- Added missing withdraw methods to client interface
Version 2.5.2 - 30 mrt 2021
- Updated CryptoExchange.Net
- Added missing methods in client interface
Version 2.5.1 - 01 mrt 2021
- Added Nuget SymbolPackage
Version 2.5.0 - 01 mrt 2021
- Added config for deterministic build
- Updated CryptoExchange.Net
Version 2.4.0 - 22 jan 2021
- Added GetWithdrawDeposit endpoint
- Fixed ClientOrderId parsing
- Updated for ICommonKline
Version 2.3.3 - 15 jan 2021
- Updated PlaceOrder paramters
Version 2.3.2 - 14 jan 2021
- Updated CryptoExchange.Net
Version 2.3.1 - 05 jan 2021
- Fixed missing symbol property on socket ticker
Version 2.3.0 - 05 jan 2021
- Added GetDepositAddress endpoint
- Added Withdraw endpoint
- Fix ClientOrderId deserialization on order
- Added NextTime property for pagination on GetHistoryOrders
- Updated HuobiOrderTrade model
- Fixed ticker models
Version 2.2.0 - 21 dec 2020
- Update CryptoExchange.Net
- Updated to latest IExchangeClient
Version 2.1.1 - 11 dec 2020
- Updated CryptoExchange.Net
- Implemented IExchangeClient
Version 2.1.0 - 25 nov 2020
- Updated account socket subscriptions to V2 API
Version 2.0.15 - 19 nov 2020
- Added some V2 asset endpoints
- Updated CryptoExchange.Net
Version 2.0.14 - 08 Oct 2020
- Added symbol properties
- Updated CryptoExchange.Net
Version 2.0.13 - 28 Aug 2020
- Updated CryptoExchange.Net
Version 2.0.12 - 12 Aug 2020
- Updated CryptoExchange.Net
Version 2.0.11 - 03 Aug 2020
- Added best offer stream
Version 2.0.10 - 20 Jul 2020
- Fixed transactionType mapping
Version 2.0.10 - 20 Jul 2020
- Fixed TransactionType mapping
Version 2.0.9 - 07 Jul 2020
- Fixed error parsing
- Updated ticker model
Version 2.0.8 - 21 Jun 2020
- Updated CryptoExchange
Version 2.0.7 - 16 Jun 2020
- Updated CryptoExchange.Net
Version 2.0.6 - 07 Jun 2020
- Updated CryptoExchange.Net to fix order book desync
Version 2.0.5 - 03 Mar 2020
- Added clientOrderId to orders, added clientOrderId endpoints
Version 2.0.4 - 27 Jan 2020
- Updated CryptoExchange.Net
Version 2.0.3 - 01 Nov 2019
- Fixed websocket client authentication
Version 2.0.1 - 23 Oct 2019
- Fixed validation length symbols again
Version 2.0.1 - 23 Oct 2019
- Fixed validation length symbols
Version 2.0.0 - 23 Oct 2019
- See CryptoExchange.Net 3.0 release notes
- Added input validation
- Added CancellationToken support to all requests
- Now using IEnumerable<> for collections
- Renamed Market → Symbol
- Renamed MarketDepth → OrderBook
- Renamed QueryXXX → GetXXX
Version 1.1.9 - 11 Sep 2019
- Updated CryptoExchange.Net
Version 1.1.8 - 07 Aug 2019
- Updated CryptoExchange.Net
Version 1.1.7 - 05 Aug 2019
- added code docs xml
Version 1.1.6 - 01 Aug 2019
- Added HistoryOrders endpoint, made symbol parameter optional for order retrieving methods
Version 1.1.5 - 09 jul 2019
- Updated HuobiSymbolOrderBook
Version 1.1.4 - 27 jun 2019
- Added Loan and Interest to HuobiBalanceTypes enum, fixing deserialization issue
Version 1.1.3 - 24 jun 2019
- Extended HuobiSymbol object
Version 1.1.2 - 17 may 2019
- Fix for deserializing stop-orders created on the website
Version 1.1.1 - 17 may 2019
- Added filter direction parameter to order/trade get methods
- Added limit parameter to book depth
- Added merge step parameter to order book implementation
Version 1.1.0 - 14 may 2019
- Added 4 hour kline to enum
- Added option to sign public requests to fix rate limiting issues
- Added an order book implementation for easily keeping an updated order book
- Added additional constructor to ApiCredentials to be able to read from file
Version 1.0.4 - 01 may 2019
- Updated to latest CryptoExchange.Net
- Adds response header to REST call result
- Added rate limiter per API key
- Unified socket client workings
- Fixed authentication for russian API
- Updated to latest CryptoExchange.Net
Version 1.0.3 - 25 mar 2019
- Added missing ConfigureAwait(false)
- Made decimals nullable for new markets in market data
Version 1.0.2 - 18 mar 2019
- Fixed amount parameter in PlaceOrder when precision = 0
Version 1.0.1 - 07 mar 2019
- Updated CryptoExchange.Net
Version 1.0.0 - 27 feb 2019
- Sub account support added
- Fixed account type json mapping
- Update CryptoExchange.Net
Version 0.0.5 - 15 feb 2019
- Fixed sync issue while placing order concurrently
Version 0.0.4 - 12 feb 2019
- Fixed order json mapping
Version 0.0.3 - 01 feb 2019
- Updated CryptoExchange.Net
Version 0.0.2 - 17 dec 2018
- Fix for reconnecting sometimes throwing an error
- Fix for order update fields
Version 0.0.1 - 07 dec 2018
- Initial release
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- CryptoExchange.Net (>= 6.2.1)
-
.NETStandard 2.1
- CryptoExchange.Net (>= 6.2.1)
NuGet packages (1)
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 |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on Huobi.Net:
Repository | Stars |
---|---|
JKorf/CryptoExchange.Net
A C# .netstandard base library used for implementing cryptocurrency exchange API's.
|
Version | Downloads | Last updated | |
---|---|---|---|
5.7.0 | 1,638 | 8/7/2024 | |
5.6.0 | 1,016 | 7/29/2024 | |
5.4.1 | 663 | 7/2/2024 | |
5.4.0 | 245 | 6/23/2024 | |
5.3.0 | 941 | 6/11/2024 | |
5.2.8 | 2,128 | 5/7/2024 | |
5.2.7 | 203 | 5/1/2024 | |
5.2.6 | 246 | 4/28/2024 | |
5.2.5 | 197 | 4/23/2024 | |
5.2.4 | 231 | 4/18/2024 | |
5.2.3 | 224 | 4/12/2024 | |
5.2.2 | 235 | 4/3/2024 | |
5.2.1 | 868 | 3/24/2024 | |
5.2.0 | 268 | 3/16/2024 | |
5.1.0 | 1,359 | 2/25/2024 | |
5.1.0-beta2 | 238 | 2/18/2024 | |
5.1.0-beta1 | 278 | 2/6/2024 | |
5.0.5 | 3,415 | 12/3/2023 | |
5.0.4 | 480 | 11/19/2023 | |
5.0.3 | 1,595 | 10/24/2023 | |
5.0.2 | 825 | 10/9/2023 | |
5.0.1 | 6,758 | 8/25/2023 | |
5.0.0 | 2,663 | 6/25/2023 | |
4.2.4 | 4,015 | 3/18/2023 | |
4.2.3 | 964 | 2/14/2023 | |
4.2.2 | 517 | 2/5/2023 | |
4.2.1 | 1,320 | 12/29/2022 | |
4.2.0 | 1,476 | 11/17/2022 | |
4.1.8 | 2,534 | 7/31/2022 | |
4.1.7 | 875 | 7/18/2022 | |
4.1.6 | 723 | 7/16/2022 | |
4.1.5 | 832 | 7/10/2022 | |
4.1.4 | 3,222 | 6/12/2022 | |
4.1.3 | 858 | 5/24/2022 | |
4.1.2 | 877 | 5/22/2022 | |
4.1.1 | 789 | 5/12/2022 | |
4.1.0 | 630 | 5/12/2022 | |
4.0.10 | 747 | 5/8/2022 | |
4.0.9 | 713 | 5/1/2022 | |
4.0.8 | 1,377 | 4/14/2022 | |
4.0.7 | 947 | 3/14/2022 | |
4.0.6 | 704 | 3/10/2022 | |
4.0.5 | 688 | 3/8/2022 | |
4.0.4 | 2,132 | 3/1/2022 | |
4.0.3 | 648 | 2/27/2022 | |
4.0.2 | 640 | 2/25/2022 | |
4.0.1 | 697 | 2/24/2022 | |
4.0.0 | 717 | 2/18/2022 | |
4.0.0-beta4 | 385 | 2/5/2022 | |
4.0.0-beta3 | 392 | 1/31/2022 | |
4.0.0-beta2 | 370 | 1/24/2022 | |
4.0.0-beta1 | 431 | 1/15/2022 | |
4.0.0-alpha7 | 377 | 1/7/2022 | |
4.0.0-alpha6 | 393 | 1/3/2022 | |
4.0.0-alpha5 | 372 | 1/1/2022 | |
4.0.0-alpha4 | 388 | 12/27/2021 | |
4.0.0-alpha3 | 384 | 12/22/2021 | |
4.0.0-alpha2 | 363 | 12/21/2021 | |
4.0.0-alpha1 | 385 | 12/7/2021 | |
3.2.4 | 2,238 | 11/3/2021 | |
3.2.3 | 2,272 | 10/8/2021 | |
3.2.2 | 585 | 10/6/2021 | |
3.2.1 | 495 | 10/5/2021 | |
3.2.0 | 557 | 9/29/2021 | |
3.1.0 | 755 | 9/20/2021 | |
3.0.5 | 581 | 9/15/2021 | |
3.0.4 | 680 | 9/2/2021 | |
3.0.3 | 556 | 8/26/2021 | |
3.0.2 | 775 | 8/24/2021 | |
3.0.1 | 742 | 8/13/2021 | |
3.0.0 | 564 | 8/12/2021 | |
3.0.0-beta3 | 425 | 8/9/2021 | |
3.0.0-beta2 | 395 | 7/26/2021 | |
3.0.0-beta1 | 453 | 7/9/2021 | |
2.6.0-beta4 | 425 | 6/7/2021 | |
2.6.0-beta3 | 431 | 5/26/2021 | |
2.6.0-beta2 | 445 | 5/6/2021 | |
2.6.0-beta1 | 422 | 4/30/2021 | |
2.5.5 | 2,350 | 4/28/2021 | |
2.5.4 | 690 | 4/19/2021 | |
2.5.3 | 681 | 4/8/2021 | |
2.5.2 | 757 | 3/30/2021 | |
2.5.1 | 1,189 | 3/1/2021 | |
2.5.0 | 762 | 3/1/2021 | |
2.4.0 | 774 | 1/22/2021 | |
2.3.3 | 644 | 1/15/2021 | |
2.3.2 | 639 | 1/14/2021 | |
2.3.1 | 661 | 1/5/2021 | |
2.3.0 | 584 | 1/5/2021 | |
2.2.0 | 681 | 12/21/2020 | |
2.1.1 | 801 | 12/11/2020 | |
2.1.0 | 712 | 11/25/2020 | |
2.0.15 | 698 | 11/19/2020 | |
2.0.14 | 827 | 10/8/2020 | |
2.0.13 | 1,272 | 8/28/2020 | |
2.0.12 | 743 | 8/12/2020 | |
2.0.11 | 736 | 8/3/2020 | |
2.0.10 | 722 | 7/20/2020 | |
2.0.9 | 890 | 7/7/2020 | |
2.0.8 | 813 | 6/21/2020 | |
2.0.7 | 733 | 6/16/2020 | |
2.0.6 | 840 | 6/7/2020 | |
2.0.5 | 6,850 | 3/3/2020 | |
2.0.4 | 1,144 | 1/27/2020 | |
2.0.3 | 1,474 | 11/1/2019 | |
2.0.2 | 833 | 10/23/2019 | |
2.0.1 | 780 | 10/23/2019 | |
2.0.0 | 718 | 10/23/2019 | |
1.1.9 | 1,823 | 9/11/2019 | |
1.1.8 | 1,046 | 8/7/2019 | |
1.1.7 | 771 | 8/5/2019 | |
1.1.6 | 863 | 8/1/2019 | |
1.1.5 | 870 | 7/9/2019 | |
1.1.4 | 868 | 6/27/2019 | |
1.1.3 | 873 | 6/24/2019 | |
1.1.2 | 1,312 | 5/17/2019 | |
1.1.1 | 784 | 5/17/2019 | |
1.1.0 | 829 | 5/14/2019 | |
1.0.4 | 891 | 5/1/2019 | |
1.0.3 | 970 | 3/25/2019 | |
1.0.2 | 778 | 3/18/2019 | |
1.0.1 | 854 | 3/7/2019 | |
1.0.0 | 879 | 2/27/2019 | |
0.0.5 | 972 | 2/15/2019 | |
0.0.4 | 867 | 2/12/2019 | |
0.0.3 | 850 | 2/1/2019 | |
0.0.2 | 969 | 12/17/2018 | |
0.0.1 | 1,215 | 12/7/2018 |
5.0.4 - Added support for sending broker id