Skip to content

Releases: JKorf/Kucoin.Net

Kucoin.Net Version 7.5.1

21 Aug 12:08
Compare
Choose a tag to compare
  • Added error handling for non 200 http status code response for Futures api

Kucoin.Net Version 7.5.0

20 Aug 11:14
Compare
Choose a tag to compare
  • Updated CryptoExchange.Net to version 9.5.0, see https://github.com/JKorf/CryptoExchange.Net/releases/
  • Added improved error parsing
  • Added restClient.SpotApi.Margin.GetBorrowInterestRateAsync endpoint
  • Updated rest request sending too prevent duplicate parameter serialization
  • Updated restClient.SpotApi.Trading.PlaceBulkOrderAsync to return CallResult objects with errors for failed orders
  • Fixed error responses not correctly getting logged as error

Updates notes:

  • Error.Code is deprecated, use Error.ErrorCode instead for checking specific errors

Kucoin.Net Version 7.4.0

04 Aug 11:28
Compare
Choose a tag to compare

Kucoin.Net Version 7.3.0

23 Jul 12:13
Compare
Choose a tag to compare

Kucoin.Net Version 7.2.0

15 Jul 11:04
Compare
Choose a tag to compare
  • Updated CryptoExchange.Net to version 9.2.0, see https://github.com/JKorf/CryptoExchange.Net/releases/
  • Updated leverage and quantity parameters for restClient.FuturesApi.Trading.PlaceTestOrderAsync to be optional
  • Fixed culture issue when parsing decimal values in Futures Api order book update

Version 7.1.0

02 Jun 07:03
Compare
Choose a tag to compare
  • Updated CryptoExchange.Net to version 9.1.0, see https://github.com/JKorf/CryptoExchange.Net/releases/
  • Added (I)KucoinUserClientProvider allowing for easy client management when handling multiple users
  • Added restClient.FuturesApi.Account.SetMarginModesAsync endpoint
  • Added restClient.FuturesApi.Account.GetCrossMarginRiskLimitAsync endpoint
  • Added Period and NextFundingTime to restClient.FuturesApi.ExchangeData.GetCurrentFundingRateAsync response model
  • Adjusted margin endpoint ratelimits
  • Updated restClient.SpotApi.Account.GetCrossMarginAccountsAsync response model

Version 7.0.0

13 May 13:58
Compare
Choose a tag to compare
  • 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 Futures and Spot Shared clients
  • Added IBookTickerRestClient implementation to SpotApi and FuturesApi Shared clients
  • Added IFuturesOrderClientIdClient implementation to FuturesApi Shared client
  • Added IFuturesTpSlRestClient implementation to FuturesApi Shared client
  • Added ISpotOrderClientIdClient implementation to SpotApi Shared client
  • Added ISpotTriggerOrderRestClient implementation to SpotApi Shared client
  • Added IsTriggerOrder, TriggerPrice properties to SharedSpotOrder model
  • Added TriggerPrice, IsTriggerOrder, IsCloseOrder properties to SharedFuturesOrder model
  • Added OptionalExchangeParameters and Supported properties to EndpointOptions
  • Added QuoteVolume property mapping to SharedSpotTicker model
  • Added All property to retrieve all available environment on KucoinEnvironment
  • Added restClient.SpotApi.Account.GetWithdrawalAsync endpoint
  • Refactored Shared clients quantity parameters and responses to use SharedQuantity
  • Updated all IEnumerable response and model types to array response types
  • Updated restClient.FuturesApi.Trading.PlaceOrderAsync leverage parameter to optional
  • Updated restClient.FuturesApi.Trading.PlaceTpSlOrderAsync leverage and side parameters to optional
  • Updated PlaceMultipleOrdersAsync endpoints to return a list of CallResult models and an error if all orders fail to place
  • Updated restClient.SpotApi.TradingHf.EditOrderAsync rate limit weight from 3 to 1
  • Replaced KucoinApiCredentials with ApiCredentials
  • Removed Newtonsoft.Json dependency
  • Removed legacy ISpotClient and IFuturesClient implementations
  • Removed legacy AddKucoin(restOptions, socketOptions) DI overload
  • Fixed some typos
  • Fixed incorrect DataTradeMode on certain Shared interface responses
  • Fixed Shared OrderPrice and OrderQuantity being returned as 0 instead of null if there is no value

Updates notes:

  • Processing responses which previously returned an IEnumerable now return an array. Although you can still call ToList or ToArray this overhead can now be removed
  • The AddKucoin(restOptions, socketOptions) overload was removed but can be replaced by AddKucoin(options), where options.Rest is the same as the previous versions restOptions and options.Socket is the same as previous versions socketOptions.
  • The KucoinApiCredentials class is removed and is replaced by the ApiCredentials class. Replace existing calls with new ApiCredentials("KEY", "SECRET", "PASS")
  • When providing quantities for the Shared interfaces you now need to specify the type of quantity: SharedQuantity.Base(/*qty*/), SharedQuantity.Quote(/*qty*/) or SharedQuantity.Contracts(/*qty*/).
  • Quantity responses for the Shared interfaces have the same logic, quantities are wrapped in the SharedOrderQuantity model, containing the QuantityInBaseAsset, QuantityInQuoteAsset and QuantityInContracts 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 Kucoin, it is now split Kucoin.RestClient and Kucoin.SocketClient. Update any logic depending on this accordingly.

Version 7.0.0-beta3

01 May 12:08
Compare
Choose a tag to compare
  • Updated CryptoExchange.Net version to 9.0.0-beta5
  • Added property to retrieve all available API environments

Version 7.0.0-beta2

23 Apr 13:45
Compare
Choose a tag to compare
  • Updated CryptoExchange.Net to version 9.0.0-beta2
  • Added Shared spot ticker QuoteVolume mapping
  • Fixed incorrect DataTradeMode on responses

Version 7.0.0-beta1

22 Apr 07:34
Compare
Choose a tag to compare
  • Updated CryptoExchange.Net to version 9.0.0-beta1, 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 Futures and Spot Shared clients
  • Added IBookTickerRestClient implementation to SpotApi and FuturesApi Shared clients
  • Added IFuturesOrderClientIdClient implementation to FuturesApi Shared client
  • Added IFuturesTpSlRestClient implementation to FuturesApi Shared client
  • Added ISpotOrderClientIdClient implementation to SpotApi Shared client
  • Added ISpotTriggerOrderRestClient implementation to SpotApi Shared client
  • Added IsTriggerOrder, TriggerPrice properties to SharedSpotOrder model
  • Added TriggerPrice, IsTriggerOrder, IsCloseOrder properties to SharedFuturesOrder model
  • Added OptionalExchangeParameters and Supported properties to EndpointOptions
  • Refactored Shared clients quantity parameters and responses to use SharedQuantity
  • Updated all IEnumerable response and model types to array response types
  • Updated restClient.FuturesApi.Trading.PlaceOrderAsync leverage parameter to optional
  • Updated restClient.FuturesApi.Trading.PlaceTpSlOrderAsync leverage and side parameters to optional
  • Updated PlaceMultipleOrdersAsync endpoints to return a list of CallResult models and an error if all orders fail to place
  • Replaced KucoinApiCredentials with ApiCredentials
  • Removed Newtonsoft.Json dependency
  • Removed legacy ISpotClient and IFuturesClient implementations
  • Removed legacy AddKucoin(restOptions, socketOptions) DI overload
  • Fixed some typos

Updates notes:

  • Processing responses which previously returned an IEnumerable now return an array. Although you can still call ToList or ToArray this overhead can now be removed
  • The AddKucoin(restOptions, socketOptions) overload was removed but can be replaced by AddKucoin(options), where options.Rest is the same as the previous versions restOptions and options.Socket is the same as previous versions socketOptions
  • The KucoinApiCredentials class is removed and is replaced by the ApiCredentials class. Replace existing calls with new ApiCredentials("KEY", "SECRET", "PASS")
  • When providing quantities for the Shared interfaces you now need to specify the type of quantity: SharedQuantity.Base(/*qty*/), SharedQuantity.Quote(/*qty*/) or SharedQuantity.Contracts(/*qty*/)
  • Quantity responses for the Shared interfaces have the same logic, quantities are wrapped in the SharedOrderQuantity model, containing the QuantityInBaseAsset, QuantityInQuoteAsset and QuantityInContracts properties
  • See https://cryptoexchange.jkorf.dev/client-libs/shared/quantities for more info on the new quantity notations