Releases: JKorf/HTX.Net
Releases · JKorf/HTX.Net
HTX.Net Version 7.5.1
- Fixed futures error parsing
- Added additional insufficient balance error mapping
- Added websocket error check for unknown symbol
HTX.Net Version 7.5.0
- Updated CryptoExchange.Net to version 9.5.0, see https://github.com/JKorf/CryptoExchange.Net/releases/
- Added improved error parsing
- Updated rest request sending too prevent duplicate parameter serialization
- Updated restClient.SpotApi.Trading.PlaceMultipleOrderAsync to return CallResult objects allowing for improved error handling
- Fixed restClient.UsdtFuturesApi.Account.GetTradingStatusAsync endpoint deserialization
Updates notes:
- Error.Code is deprecated, use Error.ErrorCode instead for checking specific errors
HTX.Net Version 7.4.0
- Updated CryptoExchange.Net to version 9.4.0, see https://github.com/JKorf/CryptoExchange.Net/releases/
HTX.Net Version 7.3.1
- Fixed Shared spot Ticker subscriptions throwing exception if open price is 0
HTX.Net Version 7.3.0
- Updated CryptoExchange.Net to version 9.3.0, see https://github.com/JKorf/CryptoExchange.Net/releases/
- Updated websocket message matching
HTX.Net Version 7.2.0
- Updated CryptoExchange.Net to version 9.2.0, see https://github.com/JKorf/CryptoExchange.Net/releases/
Version 7.1.0
- Updated CryptoExchange.Net to version 9.1.0, see https://github.com/JKorf/CryptoExchange.Net/releases/
- Added (I)HTXUserClientProvider allowing for easy client management when handling multiple users
Version 7.0.0
- Updated CryptoExchange.Net to version 9.0.0, see https://github.com/JKorf/CryptoExchange.Net/releases/
- Added support for Native AOT compilation
- Added RateLimitUpdated event
- Added SharedSymbol response property to all Shared interfaces response models returning a symbol name
- Added GenerateClientOrderId method to UsdtFuturesApi and Spot Shared clients
- Added IBookTickerRestClient implementation to SpotApi and UsdtFuturesApi Shared clients
- Added ISpotOrderClientIdClient implementation to SpotApi Shared client
- Added ISpotTriggerOrderRestClient implementation to SpotApi Shared client
- Added IFuturesOrderClientIdClient implementation to UsdtFuturesApi Shared client
- Added IFuturesTriggerOrderRestClient implementation to UsdtFuturesApi Shared client
- Added IFuturesTpSlRestClient implementation to UsdtFuturesApi Shared client
- Added takeProfitPrice, stopLossPrice parameter support for UsdtFuturesApi Shared PlaceFuturesOrderAsync endpoint
- Added IsTriggerOrder property to SharedSpotOrder model
- Added OptionalExchangeParameters and Supported properties to EndpointOptions
- Added QuoteVolume property mapping to SharedSpotTicker model
- Added All property to retrieve all available environment on HTXEnvironment
- Refactored Shared clients quantity parameters and responses to use SharedQuantity
- Updated all IEnumerable response and model types to array response types
- Removed Newtonsoft.Json dependency
- Removed legacy ISpotClient implementation
- Removed legacy AddHTX(restOptions, socketOptions) DI overload
- Fixed some typos
- Fixed deserialization error for restClient.UsdtFuturesApi.Account.GetIsolatedMarginAccountInfoAsync
- Fixed incorrect DataTradeMode on certain Shared interface responses
- Fixed restClient.UsdtFuturesApi.Trading.PlaceIsolatedMarginTriggerOrderAsync and PlaceCrossMarginTriggerOrderAsync reduceOnly parameter
- Fixed socketClient.UsdtFuturesApi.SubscribeToCrossMarginPositionUpdatesAsync updates
- Fixed incorrect Symbol returned in some UsdtFuturesApi Shared socket updates
Updates notes:
- Processing responses which previously returned an IEnumerable now return an array. Although you can still call
ToList
orToArray
this overhead can now be removed - The
AddHTX(restOptions, socketOptions)
overload was removed but can be replaced byAddHTX(options)
, whereoptions.Rest
is the same as the previous versionsrestOptions
andoptions.Socket
is the same as previous versionssocketOptions
. - When providing quantities for the Shared interfaces you now need to specify the type of quantity:
SharedQuantity.Base(/*qty*/)
,SharedQuantity.Quote(/*qty*/)
orSharedQuantity.Contracts(/*qty*/)
. - Quantity responses for the Shared interfaces have the same logic, quantities are wrapped in the
SharedOrderQuantity
model, containing theQuantityInBaseAsset
,QuantityInQuoteAsset
andQuantityInContracts
properties. - See https://cryptoexchange.jkorf.dev/client-libs/shared/quantities for more info on the new quantity notations
- Structured logging SourceContext now include the client type, previously the SourceContext was always
HTX
, it is now splitHTX.RestClient
andHTX.SocketClient
. Update any logic depending on this accordingly.
Version 7.0.0-beta3
- Updated CryptoExchange.Net version to 9.0.0-beta5
- Added property to retrieve all available API environments
Version 7.0.0-beta2
- Updated CryptoExchange.Net to version 9.0.0-beta2
- Added Shared spot ticker QuoteVolume mapping
- Fixed incorrect DataTradeMode on responses