Releases: JKorf/Kucoin.Net
Releases · JKorf/Kucoin.Net
Kucoin.Net Version 7.5.1
- Added error handling for non 200 http status code response for Futures api
Kucoin.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
- 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
- Updated CryptoExchange.Net to version 9.4.0, see https://github.com/JKorf/CryptoExchange.Net/releases/
- Added support for multi-symbol Shared socket subscriptions
- Added socketClient.SpotApi.SubscribeToKlineUpdatesAsync overload for multiple symbols
Kucoin.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
- Added restClient.FuturesApi.Account.GetCrossMarginRequirementAsync endpoint
Kucoin.Net Version 7.2.0
- 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
- 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
- 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
orToArray
this overhead can now be removed - The
AddKucoin(restOptions, socketOptions)
overload was removed but can be replaced byAddKucoin(options)
, whereoptions.Rest
is the same as the previous versionsrestOptions
andoptions.Socket
is the same as previous versionssocketOptions
. - 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*/)
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
Kucoin
, it is now splitKucoin.RestClient
andKucoin.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
Version 7.0.0-beta1
- 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
orToArray
this overhead can now be removed - The
AddKucoin(restOptions, socketOptions)
overload was removed but can be replaced byAddKucoin(options)
, whereoptions.Rest
is the same as the previous versionsrestOptions
andoptions.Socket
is the same as previous versionssocketOptions
- 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*/)
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