Kucoin.Net
5.17.0
dotnet add package Kucoin.Net --version 5.17.0
NuGet\Install-Package Kucoin.Net -Version 5.17.0
<PackageReference Include="Kucoin.Net" Version="5.17.0" />
paket add Kucoin.Net --version 5.17.0
#r "nuget: Kucoin.Net, 5.17.0"
// Install Kucoin.Net as a Cake Addin #addin nuget:?package=Kucoin.Net&version=5.17.0 // Install Kucoin.Net as a Cake Tool #tool nuget:?package=Kucoin.Net&version=5.17.0
Kucoin.Net
Kucoin.Net is a strongly typed client library for accessing the Kucoin REST and Websocket API.
Features
- Response data is mapped to descriptive models
- Input parameters and response values are mapped to discriptive enum values where possible
- Automatic websocket (re)connection management
- Client side rate limiting
- Client side order book implementation
- Extensive logging
- Support for different environments (production, testnet)
- Easy integration with other exchange client based on the CryptoExchange.Net base library
Supported Frameworks
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 |
Install the library
NuGet
dotnet add package Kucoin.Net
GitHub packages
Kucoin.Net is available on GitHub packages. You'll need to add https://nuget.pkg.github.com/JKorf/index.json
as a NuGet package source.
Download release
The NuGet package files are added along side the source with the latest GitHub release which can found here.
How to use
REST Endpoints
// Get the ETH/USDT ticker via rest request
var restClient = new KucoinRestClient();
var tickerResult = await restClient.SpotApi.ExchangeData.GetTickerAsync("ETH-USDT");
var lastPrice = tickerResult.Data.LastPrice;
Websocket streams
// Subscribe to ETH/USDT ticker updates via the websocket API
var socketClient = new KucoinSocketClient();
var tickerSubscriptionResult = socketClient.SpotApi.SubscribeToTickerUpdatesAsync("ETH-USDT", (update) =>
{
var lastPrice = update.Data.LastPrice;
});
For information on the clients, dependency injection, response processing and more see the Kucoin.Net documentation, CryptoExchange.Net documentation, or have a look at the examples here or here.
CryptoExchange.Net
Kraken.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 | |
BingX | JKorf/BingX.Net | |
Bitfinex | JKorf/Bitfinex.Net | |
Bitget | JKorf/Bitget.Net | |
BitMart | JKorf/BitMart.Net | |
Bybit | JKorf/Bybit.Net | |
Coinbase | JKorf/Coinbase.Net | |
CoinEx | JKorf/CoinEx.Net | |
CoinGecko | JKorf/CoinGecko.Net | |
Crypto.com | JKorf/CryptoCom.Net | |
Gate.io | JKorf/GateIo.Net | |
HTX | JKorf/HTX.Net | |
Kraken | JKorf/Kraken.Net | |
Mexc | JKorf/Mexc.Net | |
OKX | JKorf/OKX.Net |
Discord
A Discord server is available here. Feel free to join for discussion and/or questions around the CryptoExchange.Net and implementation libraries.
Supported functionality
Rest Api
API | Supported | Location |
---|---|---|
Account Basic Info | ✓ | restClient.SpotApi.Account / restClient.FuturesApi.Account |
Account Sub-Account | ✓ | restClient.SpotApi.SubAccount |
Funding Overview | ✓ | restClient.SpotApi.Account |
Funding Deposit | ✓ | restClient.SpotApi.Account |
Funding Withdrawal | ✓ | restClient.SpotApi.Account |
Funding Transfer | ✓ | restClient.SpotApi.Account |
Funding Trade Fee | ✓ | restClient.SpotApi.Account |
Spot Trading Market Data | ✓ | restClient.SpotApi.ExchangeData |
Spot Trading HF Trade | ✓ | restClient.SpotApi.ProAccount |
Spot Trading Orders | ✓ | restClient.SpotApi.Trading |
Spot Trading Fills | ✓ | restClient.SpotApi.Trading |
Spot Trading Stop Order | ✓ | restClient.SpotApi.Trading |
Margin Trading Margin HF Trade | X | |
Margin Trading Margin Orders | ✓ | restClient.SpotApi.Trading |
Margin Trading Margin Info | ✓ | restClient.SpotApi.ExchangeData |
Margin Trading Isolated Margin | ✓ | restClient.SpotApi.ExchangeData / restClient.SpotApi.Account |
Margin Trading Margin Trading(V3) | ✓ | restClient.SpotApi.Margin |
Margin Trading Lending Market(V3) | ✓ | restClient.SpotApi.Margin |
Futures Trading Market Data | ✓ | restClient.FuturesApi.ExchangeData |
Futures Trading Orders | ✓ | restClient.FuturesApi.Trading |
Futures Trading Fills | ✓ | restClient.FuturesApi.Trading |
Futures Trading Positions | ✓ | restClient.FuturesApi.Acount / restClient.FuturesApi.Trading |
Futures Trading Risk Limit | ✓ | restClient.FuturesApi.Acount |
Futures Trading Funding Fees | ✓ | restClient.FuturesApi.ExchangeData |
Websocket Api
API | Supported | Location |
---|---|---|
Spot Public | ✓ | socketClient.SpotApi |
Spot Private | ✓ | socketClient.SpotApi |
Margin Public | ✓ | socketClient.SpotApi |
Margin Private | ✓ | socketClient.SpotApi |
Futures Public | ✓ | socketClient.FuturesApi |
Futures Private | ✓ | socketClient.FuturesApi |
Support the project
I develop and maintain this package on my own for free in my spare time, any support is greatly appreciated.
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: bc1q277a5n54s2l2mzlu778ef7lpkwhjhyvghuv8qf
Eth: 0xcb1b63aCF9fef2755eBf4a0506250074496Ad5b7
USDT (TRX) TKigKeJPXZYyMVDgMyXxMf17MWYia92Rjd
Sponsor
Alternatively, sponsor me on Github using Github Sponsors.
Release notes
Version 5.17.0 - 28 Oct 2024
- Updated CryptoExchange.Net to version 8.1.0, see https://github.com/JKorf/CryptoExchange.Net/releases/tag/8.1.0
- Moved FormatSymbol to KucoinExchange class
- Added support Side setting on SharedTrade model
- Added KucoinTrackerFactory for creating trackers
- Added overload to Create method on KucoinOrderBookFactory support SharedSymbol parameter
Version 5.16.0 - 18 Oct 2024
- Added restClient.FuturesApi.Trading.CancelMultipleOrdersAsync endpoint
- Added restClient.SpotApi.Account.GetIsHfAccountAsync endpoint
- Added restClient.SpotApi.ExchangeData.GetAnnouncementsAsync endpoint
- Added AveragePrice to Futures order response model
- Added AveragePrice setting to Shared IFuturesOrderRestClient responses
- Updated restClient.SpotApi.Account.WithdrawAsync to V3 endpoint
- Updated KucoinAssetNetwork response model
- Fixed CancelAfter parameter type for restClient.SpotApi.Trading.PlaceBulkOrderAsync endpoint
- Fixed Shared IBalanceRestClient implementation to only return spot balances
Version 5.15.1 - 14 Oct 2024
- Updated CryptoExchange.Net to version 8.0.3, see https://github.com/JKorf/CryptoExchange.Net/releases/tag/8.0.3
- Fixed TypeLoadException during initialization
- Fixed restClient.SpotApi.Margin.BorrowAsync timeInForce parameter
Version 5.15.0 - 08 Oct 2024
- Added FuturesApi.Account.GetMarginModeAsync endpoint
- Added FuturesApi.Account.SetMarginModeAsync endpoint
- Added FuturesApi.Account.GetCrossMarginLeverageAsync endpoint
- Added FuturesApi.Account.SetCrossMarginLeverageAsync endpoint
- Added marginMode parameter to FuturesApi.Trading.PlaceOrderAsync and PlaceMultipleOrdersAsync endpoints
- Added onWalletUpdate update handler to FuturesApi.SubscribeToBalanceUpdatesAsync stream
- Added FuturesApi.SubscribeToMarginModeUpdatesAsync stream
- Added FuturesApi.SubscribeToCrossMarginLeverageUpdatesAsync stream
- Updated various order and trade response/update models with margin mode properties
- Update position models with MarginMode, PositionSide, Leverage and PositionFunding properties
- Fixed cancellation token not getting passed in shared ticker subscriptions
Version 5.14.0 - 27 Sep 2024
- Updated CryptoExchange.Net to version 8.0.0, see https://github.com/JKorf/CryptoExchange.Net/releases/tag/8.0.0
- Added Shared client interfaces implementation for Spot and FuturesApi Rest and Socket clients
- Added QuoteQuantityRemaining property on KucoinStreamOrderUpdate model
- Updated Status property type from string to OrderStatus on KucoinFuturesOrder model
- Updated FuturesKlineInterval Enum values to match number of seconds
- Updated Sourcelink package version
- Fixed various endpoints returning null instead of empty collection in SpotApi.HfTrading
- Fixed futures kline deserialization issue
- Marked ISpotClient and IFuturesClient references as deprecated
Version 5.13.2 - 11 Sep 2024
- Added SpotApi.ExchangeData.GetSymbolAsync endpoint
Version 5.13.1 - 28 Aug 2024
- Updated CryptoExchange.Net to version 7.11.2, see https://github.com/JKorf/CryptoExchange.Net/releases/tag/7.11.2
- Added FuturesApi.Trading.PlaceTpSlOrderAsync endpoint, added ClientOrderId property to futures order placement response
Version 5.13.0 - 21 Aug 2024
- Added sub account endpoints under SpotApi.SubAccount.*
- Moved SpotApi.Account.GetSubUserInfoAsync to new SubAccount topic
Version 5.12.0 - 19 Aug 2024
- Added FuturesApi.SubscribeToKlineUpdatesAsync subscription
- Added FuturesApi.ExchangeData.GetTickersAsync endpoint
- Added FuturesApi.Trading.GetMaxOpenPositionSizeAsync endpoint
- Added migration endpoints SpotApi.Account.GetHfMigrationStatusAsync and MigrateHfAccountAsync
Version 5.11.0 - 07 Aug 2024
- Updated CryptoExchange.Net to version 7.11.0, see https://github.com/JKorf/CryptoExchange.Net/releases/tag/7.11.0
- Updated XML code comments
- Add caching for passphrase authentication sign
- Renamed SpotApi.SubscribeToBestOfferUpdatesAsync to SubscribeToBookTickerUpdatesAsync
- Fixed KucoinOrder and KucoinUserTrade model Stop property being nullable Enum
Version 5.10.0 - 27 Jul 2024
- Updated CryptoExchange.Net to version 7.10.0, see https://github.com/JKorf/CryptoExchange.Net/releases/tag/7.10.0
- Added SpotApi.Margin.GetMarginMarkPricesAsync endpoint
- Updated KC-API-KEY-VERSION header from '2' to '3' (V2 keys will still work)
Version 5.9.0 - 16 Jul 2024
- Updated CryptoExchange.Net to version 7.9.0, see https://github.com/JKorf/CryptoExchange.Net/releases/tag/7.9.0
- Updated internal classes to internal access modifier
Version 5.8.3 - 02 Jul 2024
- Updated CryptoExchange.Net to V7.8.0, see https://github.com/JKorf/CryptoExchange.Net/releases/tag/7.8.0
Version 5.8.2 - 27 Jun 2024
- Fixed incorrect response mapping SpotApi.HfTrading.PlaceMultipleOrdersAsync
Version 5.8.1 - 26 Jun 2024
- Fixed CancelAfter parameter on SpotApi.HfTrading.PlaceMultipleOrdersAsync endpoint
- Removed symbol base parameter from SpotApi.HfTrading.PlaceMultipleOrdersAsync as its not needed
Version 5.8.0 - 25 Jun 2024
- Updated CryptoExchange.Net to 7.7.2, see https://github.com/JKorf/CryptoExchange.Net/releases/tag/7.7.2
- Added SpotApi.Margin.GetCrossMarginSymbolsAsync endpoint
- Added SpotApi.Margin.SetLeverageMultiplierAsync
- Added SpotApi.HfTrading.GetMarginSymbolsWithOpenOrdersAsync endpoint
Version 5.7.0 - 23 Jun 2024
- Updated CryptoExchange.Net to version 7.7.0, see https://github.com/JKorf/CryptoExchange.Net/releases/tag/7.7.0
- Added missing HF/ProAccount endpoints
- Renamed ProAccount SpotApi topic to HFTrading
- Added FuturesApi.Account.GetPositionHistoryAsync endpoint Added FuturesApi.Account.GetTradingFeeAsync endpoint
- Added SpotApi.SubscribeToIsolatedMarginPositionUpdatesAsync subscription
- Updated response models from classes to records
Version 5.6.0 - 11 Jun 2024
- Updated CryptoExchange.Net to v7.6.0, see https://github.com/JKorf/CryptoExchange.Net?tab=readme-ov-file#release-notes for release notes
Version 5.5.5 - 07 May 2024
- Updated CryptoExchange.Net to v7.5.2, see https://github.com/JKorf/CryptoExchange.Net?tab=readme-ov-file#release-notes for release notes
Version 5.5.4 - 04 May 2024
- Fixed CryptoExchange.Net reference
Version 5.5.3 - 04 May 2024
- Fixed universal transfer endpoint
- Fixed FuturesApi.SubscribeToStopOrderUpdatesAsync deserialization
- Updated various response models
- Updated CryptoExchange.Net to v7.5.1, see https://github.com/JKorf/CryptoExchange.Net?tab=readme-ov-file#release-notes for release notes
Version 5.5.2 - 01 May 2024
- Added SpotApi.Trading.GetOcoOrderByClientOrderIdAsync to interface
- Updated CryptoExchange.Net to v7.5.0, see https://github.com/JKorf/CryptoExchange.Net?tab=readme-ov-file#release-notes for release notes
Version 5.5.1 - 28 Apr 2024
- Added Url and ApiDocsUrl to KrakenExchange static info class
- Added KucoinOrderBookFactory book creation method
- Fixed KucoinOrderBookFactory injection issue
- Updated CryptoExchange.Net to v7.4.0, see https://github.com/JKorf/CryptoExchange.Net?tab=readme-ov-file#release-notes for release notes
Version 5.5.0 - 23 Apr 2024
- Added FuturesApi.ExchangeData.Get24HourTransactionVolumeAsync endpoint
- Added FuturesApi.ExchangeData.GetFundingRateHistoryAsync endpoint
- Added FuturesApi.Account.GetMaxWithdrawMarginAsync endpoint
- Added FuturesApi.Account.RemoveMarginAsync endpoint
- Added FuturesApi.Trading.PlaceTestOrderrAsync endpoint
- Added FuturesApi.Trading.CancelOrderByClientOrderIdAsync endpoint
- Added FuturesApi.Trading.PlaceMultipleOrdersAsync endpoint
- Added OCO order endpoints to SpotApi.Trading
- Added SpotApi.Margin endpoints containing Margin Trading (V3) and Margin Lending (V3) endpoints
- Added SpotApi.SubscribeToPositionUpdatesAsync for all symbols stream
- Added SpotApi.SubscribeToMarginPositionUpdatesAsync stream
- Added SpotApi.SubscribeToMarginOrderUpdatesAsync stream
- Fixed FuturesApi.ExchangeData.GetKlinesAsync parameters not getting send
Version 5.4.1 - 18 Apr 2024
- Fixed SpotApi.ExchangeData.GetAggregatedFullOrderBookAsync request
Version 5.4.0 - 18 Apr 2024
- Updated CryptoExchange.Net to 7.3.1, see https://github.com/JKorf/CryptoExchange.Net?tab=readme-ov-file#release-notes for release notes
- Re-implemented client side ratelimiting for Spot API
- Added client side ratelimiting for Futures API
- Added handling of RetryAfter responses
- Added SpotApi.ExchangeData.GetLeveragedTokensAsync endpoint
- Added SpotApi.ExchangeData.GetCrossMarginRiskLimitAndConfig endpoint
- Added SpotApi.ExchangeData.GetIsolatedMarginRiskLimitAndConfig endpoint
- Added autoRepay parameter to SpotApi.Trading.PlaceMarginOrderAsync
- Added isolatedMarginSymbol parameter to SpotApi.Account.GetTransferableAsync
- Added SelfTradePrevention parameter to FuturesApi.Trading.PlaceOrderAsync
- Added OneMonth to kline interval enum
- Updated UserTrade response model
- Updated Position response model
- Updated WithdrawalQuota response model
- Updated Transfer response model
- Updated Asset Network response model
- Updated Tickers response model
- Fixed FuturesApi.ExchangeData.GetContractsAsync NextFundingRateTime response property
- Removed deprecated endpoints
Version 5.3.3 - 03 Apr 2024
- Updated string comparision for improved performance
- Removed pre-send symbol validation
Version 5.3.2 - 25 Mar 2024
- Fix deserialization issue SpotApi.ExchangeData.GetAssetsAsync
Version 5.3.1 - 24 Mar 2024
- Updated CryptoExchange.Net to 7.2.0, see https://github.com/JKorf/CryptoExchange.Net?tab=readme-ov-file#release-notes for release notes
- Added DepositFeeRate and DepositMinQuantity to KucoinAssetNetwork model
- Fixed websocket balance updates for HF/Pro trade accounts
Version 5.3.0 - 16 Mar 2024
- Updated CryptoExchange.Net to 7.1.0, see https://github.com/JKorf/CryptoExchange.Net?tab=readme-ov-file#release-notes for release notes
Version 5.2.0 - 25 Feb 2024
- Updated CryptoExchange.Net and implemented reworked websocket message handling. For release notes for the CryptoExchange.Net base library see: https://github.com/JKorf/CryptoExchange.Net?tab=readme-ov-file#release-notes
- Fixed issue in DI registration causing http client to not be correctly injected
- Added multi symbol support for socket client subscriptions
- Added BestOffers stream subscription to socket client spot api
- Updated socket client spot api order subscription
- Removed deprecated match engine subscriptions from socket client spot api
- Updated some namespaces
Version 5.1.0 - 23 Dec 2023
- Added SpotApi.Account.GetUserInfoAsync
- Added SpotApi.Account.UniversalTransferAsync
- Added SpotApi.Account.GetCrossMarginAccountsAsync
- Added SpotApi.Trading.PlaceTestOrderAsync
- Added SpotApi.Trading.PlaceTestMarginOrderAsync
- Updated SpotApi.ExchangeData.GetAssetsAsync to V3 API
- Updated SpotApi.ExchangeData.GetAssetAsync to V3 API
- Updated API doc links on endpoints
- Renamed SpotApi.Account.GetUserInfoAsync to GetSubUserInfoAsync
- Removed obsolete SpotApi.Account.GetAccountLedgerAsync
Version 5.0.8 - 03 Dec 2023
- Updated CryptoExchange.Net
Version 5.0.7 - 07 Nov 2023
- Fixed broker signing
Version 5.0.6 - 29 Oct 2023
- Added broker reference options
Version 5.0.5 - 24 Oct 2023
- Updated CryptoExchange.Net
Version 5.0.4 - 09 Oct 2023
- Updated CryptoExchange.Net version
- Added ISpotClient and IFuturesClient to DI injection
Version 5.0.3 - 25 Aug 2023
- Updated CryptoExchange.Net
Version 5.0.2 - 23 Jul 2023
- Fixed credentials provided in orderbook options not getting used
Version 5.0.1 - 11 Jul 2023
- Fixed KucoinFuturesSymbolOrderBook constructor being internal instead of public
Version 5.0.0 - 25 Jun 2023
- Updated CryptoExchange.Net to version 6.0.0
- Renamed KucoinClient to KucoinRestClient
- Renamed **Streams to **Api on the KucoinSocketClient
- Updated endpoints to consistently use a base url without any path as basis to make switching environments/base urls clearer
- Added IKucoinOrderBookFactory and implementation for creating order books
- Updated dependency injection register method (AddKucoin)
Version 4.3.3 - 15 Apr 2023
- Fixed futures ping, preventing regular disconnects
- Added basic high frequency endpoints
- Fixed testnet SpotApi.GetSymbolsAsync endpoint
- Added futures RiskLimit endpoints
- Added futures TransferToFutures endpoint
- Added various new optional parameters
- Removed deprecated endpoints
Version 4.3.2 - 18 Mar 2023
- Added HighFrequency account type
- Added Network property to asset details model
- Fixed Futures api size parameter type
Version 4.3.1 - 14 Feb 2023
- Updated CryptoExchange.Net
Version 4.3.0 - 05 Feb 2023
- Updated GetSymbolsAsync to V2 endpoint
- Added MinFunds property to Symbols model
- Added missing Network properties on Withdraw/Deposit models
- Added feeDeductType parameter on WithdrawAsync endpoint
Version 4.2.1 - 21 Nov 2022
- Fixed reconnect url
Version 4.2.0 - 17 Nov 2022
- Updated CryptoExchange.Net
- Removed Api Credentials need for order book endpoints
Version 4.1.0 - 11 Oct 2022
- Fixed leverage field being an int instead of decimal
- Fixed CancelAfter property on order model
- Added fromTag and toTag to InnerTransferAsync endpoint
- Fixed PlaceIsolatedBorrowOrderAsync type parameter
Version 4.0.17 - 15 Aug 2022
- Fixed SpotApi.Trading.PlaceStopOrderAsync cancelAfter parameter
- Fixed KucoinBalanceUpdate Timestamp property not getting deserialized correctly
- Fixed KucoinBorrowRecord RepayTime deserialization
Version 4.0.16 - 31 Jul 2022
- Added PlaceBulkOrderAsync endpoint
- Fixed QuantityStep mapping on ISpotClient GetSymbolsAsync
Version 4.0.15 - 18 Jul 2022
- Fix for websocket not reconnecting
- Updated CryptoExchange.Net
Version 4.0.14 - 16 Jul 2022
- Added isolated margin endpoints
- Updated xml api docs references
- Updated CryptoExchange.Net
Version 4.0.13 - 10 Jul 2022
- Updated CryptoExchange.Net
Version 4.0.12 - 12 Jun 2022
- Added margin endpoints
- Updated CryptoExchange.Net
Version 4.0.11 - 24 May 2022
- Updated CryptoExchange.Net
Version 4.0.10 - 22 May 2022
- Fixed MaxSocketConnections incorrectly being set to 10 instead of 50
- Added TradeType filter to CancelAllOrdersAsync
- Updated CryptoExchange.Net
Version 4.0.9 - 08 May 2022
- Removed deprecated spot GetOrderBookAsync endpoint and fixed the CommonSpotClient order book endpoint
- Updated CryptoExchange.Net
Version 4.0.8 - 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.7 - 21 Apr 2022
- Fixed timeInForce parameter being sent as null if not specified
- Fixed typo
Version 4.0.6 - 14 Apr 2022
- Fixed NullReference exception when PlaceOrder on common futures client fails
- Fixed deserialization error on PlaceMarginOrderAsync
- Fixed Common clients 15 minute klines returning 5 minute klines
- Updated CryptoExchange.Net
Version 4.0.5 - 10 Mar 2022
- Updated CryptoExchange.Net, fixing order deserialization in .net framework
Version 4.0.4 - 08 Mar 2022
- Added Spot GetMarginAccountAsync endpoint
- Added Spot GetRiskLimitAsync endpoint
- Added Spot GetMarginConfigurationAsync endpoint
- Updated GetAssetAsync endpoint to V2, now includes networks
- Updated CryptoExchange.Net
Version 4.0.3 - 01 Mar 2022
- Updated KucoinContract model with missing properties
- Updated CryptoExchange.Net improving the websocket reconnection robustness
Version 4.0.2 - 27 Feb 2022
- Fixed quantity/price parameter issue in ISpotClient PlaceOrderAsync
- Updated CryptoExchange.Net to fix timestamping issue when request is ratelimiter
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/Kucoin.Net/
Added unit tests for parsing the returned JSON for each endpoint and subscription
Added AddKucoin extension method on IServiceCollection for easy dependency injection
Added URL reference to API endpoint documentation for each endpoint
Added default rate limiter
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/Kucoin.Net/MigrationGuide.html for additional notes for updating from V3 to V4
Version 3.1.6 - 04 Nov 2021
- Fixed futures order deserialization
Version 3.1.5 - 03 Nov 2021
- Added PostBorrowOrder, GetBorrowOrderAsync and RepaySingleBorrowOrderAsync endpoints
- Fixed authentication when there are special characters in the parameters
- Fixed StopPriceType parsing in Futures order model
- Added missing funding book subscription in socket client interface
- Fixed futures user trade timestamp deserialization
- Fixed futures position AverageEntryPrice deserialization
- Added some missing model properties
Version 3.1.4 - 08 Oct 2021
- Fixed price serialization new future order
- Updated CryptoExchange.Net to fix some socket issues
Version 3.1.3 - 06 Oct 2021
- Updated CryptoExchange.Net, fixing socket issue when calling from .Net Framework
Version 3.1.2 - 05 Oct 2021
- Added optional chain parameter to GetWithdrawalQuotasAsync endpoint
- Fix for Future order StopOrderType deserialization
- Fixed some properties on KucoinPosition model
Version 3.1.1 - 29 Sep 2021
- Changed GetFiatPricesAsync parameter from
params
toIEnumerable<string>
- Updated CryptoExchange.Net
- Changed GetFiatPricesAsync parameter from
Version 3.1.0 - 20 Sep 2021
- Added missing SetApiCredentials endpoints
- Updated CryptoExchange.Net
Version 3.0.10 - 20 Sep 2021
- upl kucoin
Version 3.0.9 - 15 Sep 2021
- Updated CryptoExchange.Net
Version 3.0.8 - 14 Sep 2021
- Fix for futures credentials not working when using SetDefaultOptions
Version 3.0.7 - 14 Sep 2021
- Fixed clientOrderId parameter in futures PlaceOrderAsync
- Fixed clientOrderId in futures stream order update
- Added PlaceMarginOrderAsync endpoint
- Fixed PlaceOrderAsync not returning order id
Version 3.0.6 - 03 Sep 2021
- Added timestamp to trade update
- Fixed PlaceOrderAsync optional stopType and stopPriceType parameters not being optional on futures
Version 3.0.5 - 02 Sep 2021
- Fix for disposing order book closing socket even if there are other connections
Version 3.0.4 - 26 Aug 2021
- Updated CryptoExchange.Net
Version 3.0.3 - 24 Aug 2021
- Updated CryptoExchange.Net, improving websocket and SymbolOrderBook performance
Version 3.0.2 - 13 Aug 2021
- Fix for OperationCancelledException being thrown when closing a socket from a .net framework project
Version 3.0.1 - 13 Aug 2021
- Added GetDepositAddressesAsync to retrieve all deposit addresses for a currency
- Added chain parameter to GetDepositAddressAsync and CreateDepositAddressAsync
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
- Added Futures support
- Fixed KucoinSymbolOrderBook
- Renamed GetSymbolTradesAsync to GetTradeHistoryAsync
- Renamed GetFillsAsync to GetUserTradesAsync
- Renamed GetRecentFillsAsync to GetRecentUserTradesAsync
Version 3.0.0-beta2 - 26 Jul 2021
- Updated CryptoExchange.Net
Version 3.0.0-beta1 - 09 Jul 2021
- Added stop order endpoints
- Added Async postfix for async methods
- Updated CryptoExchange.Net
Version 2.3.9 - 05 mei 2021
- Fixed order deserialization when quantity is null
Version 2.3.8 - 04 mei 2021
- Added some margin socket subscriptions
Version 2.3.7 - 28 apr 2021
- Added new GetAccountLedgers
- Changed GetAccountLedger to [Obsolete]
- Fixed AccountActivityContext parsing
- Updated CryptoExchange.Net
Version 2.3.6 - 19 apr 2021
- Updated CryptoExchange.Net
Version 2.3.5 - 30 mrt 2021
- Updated CryptoExchange.Net
Version 2.3.4 - 16 mrt 2021
- Fixed full order book timestamp deserialization
Version 2.3.3 - 16 mrt 2021
- Fixed orderbook endpoint not found
Version 2.3.2 - 16 mrt 2021
- Added fee endpoints
- Added CancelOrderByClientOrderId endpoint
- Added GetOrderByClientOrderId endpoint
- Updated IKucoinClient interface
Version 2.3.1 - 05 mrt 2021
- Fixed Filled order update parsing
Version 2.3.0 - 04 mrt 2021
- Added socket kline subscription
- Added socket order book subscription
- Added multiple market support for snapshot subscription
- Updated match subscriptions
Version 2.2.1 - 01 mrt 2021
- Added Nuget SymbolPackage
Version 2.2.0 - 01 mrt 2021
- Added config for deterministic build
- Updated CryptoExchange.Net
Version 2.1.2 - 22 jan 2021
- Updated for ICommonKline
Version 2.1.1 - 14 jan 2021
- Updated CryptoExchange.Net
Version 2.1.0 - 21 dec 2020
- Update CryptoExchange.Net
- Updated to latest IExchangeClient
Version 2.0.17 - 11 dec 2020
- Fix for GetKlines sending null timestamp
Version 2.0.16 - 11 dec 2020
- Updated CryptoExchange.Net
- Implemented IExchangeClient
Version 2.0.15 - 19 nov 2020
- Fixed order model to allow null values
- Updated CryptoExchange.Net
Version 2.0.14 - 08 Oct 2020
- Fixed incorrect paramter on GetSymbols
- Updated CryptoExchange.Net
Version 2.0.13 - 28 Aug 2020
- Updated CryptoExchange.Net
Version 2.0.12 - 12 Aug 2020
- Fixed cancelAfter parameter in PlaceOrder
- Updated CryptoExchange.Net
Version 2.0.11 - 05 Aug 2020
- Fixed withdraw endpoint
- Added InnerTransfer support
Version 2.0.10 - 03 Aug 2020
- Fixed timestamp parameters
Version 2.0.9 - 22 Jul 2020
- Added missing nullable
Version 2.0.8 - 22 Jul 2020
- More nullable fields for new markets
Version 2.0.7 - 20 Jul 2020
- Made decimals in Tick model nullable to support new markets
Version 2.0.6 - 07 Jul 2020
- Fixed parsing error in MatchEngine updates
Version 2.0.5 - 21 Jun 2020
- Updated CryptoExchange
Version 2.0.4 - 16 Jun 2020
- Updated CryptoExchange.Net
Version 2.0.3 - 07 Jun 2020
- Updated CryptoExchange.Net to fix order book desync
Version 2.0.2 - 03 Mar 2020
- Updated CryptoExchange
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
Version 1.0.4 - 30 Sep 2019
- Fixed Bid/Ask reversed in tick
- Fixed error on empty self trade prevention field
Version 1.0.3 - 23 Sep 2019
- Fixed parameters not passed to certain requests
Version 1.0.2 - 07 Aug 2019
- Updated CryptoExchange.Net
Version 1.0.1 - 05 Aug 2019
- added code docs xml
Version 1.0.0 - 09 jul 2019
- Updated KucoinSymbolOrderBook
Version 0.0.2 - 14 may 2019
- Added an order book implementation for easily keeping an updated order book
- Added additional constructor to ApiCredentials to be able to read from file
- Added ConfigureAwait calls to prevent deadlocks
Version 0.0.1 - 09 may 2019
- 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 (>= 8.1.0)
-
.NETStandard 2.1
- CryptoExchange.Net (>= 8.1.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Kucoin.Net:
Package | Downloads |
---|---|
CryptoClients.Net
CryptoClients.Net is a collection of multiple cryptocurrency exchange API clients for accessing both the REST API's and WebSocket API's. Supports order and account management and requesting and streaming both public and private data. |
|
exchange-client-1
Exchange client gather all exchanges via jkorf and it uses common client sources |
GitHub repositories (3)
Showing the top 3 popular GitHub repositories that depend on Kucoin.Net:
Repository | Stars |
---|---|
JKorf/CryptoExchange.Net
A C# .netstandard base library used for implementing cryptocurrency exchange API's.
|
|
grantcolley/tradeview
A .NET Core 3.1 WPF client and ASP.NET Core Web API platform for trading crypto currency pairs on crypto exchanges and running crypto currency pair strategies.
|
|
JKorf/Kucoin.Net
A C# .netstandard client library for the Kucoin REST and Websocket Spot and Futures API focusing on clear usage and models
|
Version | Downloads | Last updated |
---|---|---|
5.17.0 | 168 | 10/28/2024 |
5.16.0 | 454 | 10/18/2024 |
5.15.1 | 342 | 10/14/2024 |
5.15.0 | 516 | 10/8/2024 |
5.14.0 | 2,094 | 9/27/2024 |
5.13.2 | 325 | 9/11/2024 |
5.13.1 | 1,264 | 8/28/2024 |
5.13.0 | 789 | 8/21/2024 |
5.12.0 | 601 | 8/19/2024 |
5.11.0 | 606 | 8/7/2024 |
5.10.0 | 4,589 | 7/29/2024 |
5.8.3 | 1,467 | 7/2/2024 |
5.8.2 | 306 | 6/27/2024 |
5.8.1 | 118 | 6/26/2024 |
5.8.0 | 331 | 6/25/2024 |
5.7.0 | 158 | 6/23/2024 |
5.6.0 | 1,319 | 6/11/2024 |
5.5.5 | 5,918 | 5/7/2024 |
5.5.4 | 232 | 5/4/2024 |
5.5.3 | 122 | 5/4/2024 |
5.5.2 | 159 | 5/1/2024 |
5.5.1 | 301 | 4/28/2024 |
5.5.0 | 342 | 4/23/2024 |
5.4.1 | 347 | 4/18/2024 |
5.4.0 | 111 | 4/18/2024 |
5.3.3 | 907 | 4/3/2024 |
5.3.2 | 1,386 | 3/25/2024 |
5.3.1 | 210 | 3/24/2024 |
5.3.0 | 443 | 3/16/2024 |
5.2.0 | 2,463 | 2/25/2024 |
5.2.0-beta1 | 427 | 2/6/2024 |
5.1.0 | 5,662 | 12/23/2023 |
5.0.8 | 10,442 | 12/3/2023 |
5.0.7 | 2,880 | 11/7/2023 |
5.0.6 | 2,859 | 10/29/2023 |
5.0.5 | 1,162 | 10/24/2023 |
5.0.4 | 1,969 | 10/9/2023 |
5.0.3 | 8,172 | 8/25/2023 |
5.0.2 | 2,560 | 7/23/2023 |
5.0.1 | 1,313 | 7/11/2023 |
5.0.0 | 3,098 | 6/25/2023 |
4.3.3 | 7,644 | 4/15/2023 |
4.3.2 | 12,823 | 3/18/2023 |
4.3.1 | 2,309 | 2/14/2023 |
4.3.0 | 1,619 | 2/5/2023 |
4.2.1 | 5,827 | 11/21/2022 |
4.2.0 | 1,298 | 11/17/2022 |
4.1.0 | 3,197 | 10/11/2022 |
4.0.17 | 3,351 | 8/15/2022 |
4.0.16 | 1,800 | 7/31/2022 |
4.0.15 | 1,594 | 7/18/2022 |
4.0.14 | 1,410 | 7/16/2022 |
4.0.13 | 11,099 | 7/10/2022 |
4.0.12 | 5,058 | 6/12/2022 |
4.0.11 | 4,544 | 5/24/2022 |
4.0.10 | 1,999 | 5/22/2022 |
4.0.9 | 2,222 | 5/8/2022 |
4.0.8 | 1,568 | 5/1/2022 |
4.0.7 | 1,889 | 4/21/2022 |
4.0.6 | 1,485 | 4/14/2022 |
4.0.5 | 2,734 | 3/10/2022 |
4.0.4 | 1,400 | 3/8/2022 |
4.0.3 | 2,851 | 3/1/2022 |
4.0.2 | 1,599 | 2/27/2022 |
4.0.1 | 1,398 | 2/24/2022 |
4.0.0 | 1,432 | 2/18/2022 |
4.0.0-beta7 | 992 | 2/5/2022 |
4.0.0-beta6 | 1,034 | 1/31/2022 |
4.0.0-beta5 | 1,027 | 1/24/2022 |
4.0.0-beta4 | 1,018 | 1/20/2022 |
4.0.0-beta3 | 1,036 | 1/19/2022 |
4.0.0-beta2 | 997 | 1/19/2022 |
4.0.0-beta1 | 1,008 | 1/15/2022 |
4.0.0-alpha7 | 1,011 | 1/13/2022 |
4.0.0-alpha6 | 1,139 | 1/7/2022 |
4.0.0-alpha5 | 1,012 | 1/3/2022 |
4.0.0-alpha4 | 1,038 | 1/1/2022 |
4.0.0-alpha3 | 1,024 | 12/27/2021 |
4.0.0-alpha2 | 1,147 | 12/21/2021 |
4.0.0-alpha1 | 1,027 | 12/7/2021 |
3.2.1 | 6,095 | 12/14/2021 |
3.2.0 | 1,180 | 12/14/2021 |
3.1.7 | 1,203 | 12/13/2021 |
3.1.6 | 3,171 | 11/4/2021 |
3.1.5 | 1,206 | 11/3/2021 |
3.1.4 | 3,091 | 10/8/2021 |
3.1.3 | 1,263 | 10/6/2021 |
3.1.2 | 1,230 | 10/5/2021 |
3.1.1 | 1,298 | 9/29/2021 |
3.1.0 | 1,450 | 9/20/2021 |
3.0.10 | 1,200 | 9/20/2021 |
3.0.9 | 1,227 | 9/15/2021 |
3.0.8 | 1,228 | 9/14/2021 |
3.0.7 | 1,196 | 9/14/2021 |
3.0.6 | 1,331 | 9/3/2021 |
3.0.5 | 1,165 | 9/2/2021 |
3.0.4 | 1,314 | 8/26/2021 |
3.0.3 | 1,362 | 8/24/2021 |
3.0.2 | 1,400 | 8/13/2021 |
3.0.1 | 1,191 | 8/13/2021 |
3.0.0 | 1,186 | 8/12/2021 |
3.0.0-beta3 | 1,028 | 8/9/2021 |
3.0.0-beta2 | 1,042 | 7/26/2021 |
3.0.0-beta1 | 1,118 | 7/9/2021 |
2.4.0-beta6 | 1,202 | 6/13/2021 |
2.4.0-beta5 | 1,032 | 6/11/2021 |
2.4.0-beta4 | 1,066 | 6/7/2021 |
2.4.0-beta3 | 1,047 | 5/26/2021 |
2.4.0-beta2 | 1,085 | 5/6/2021 |
2.4.0-beta1 | 1,039 | 4/30/2021 |
2.3.9 | 2,699 | 5/5/2021 |
2.3.8 | 1,200 | 5/4/2021 |
2.3.7 | 3,847 | 4/28/2021 |
2.3.6 | 4,208 | 4/19/2021 |
2.3.5 | 1,331 | 3/30/2021 |
2.3.4 | 1,606 | 3/16/2021 |
2.3.3 | 1,242 | 3/16/2021 |
2.3.2 | 1,265 | 3/16/2021 |
2.3.1 | 1,512 | 3/5/2021 |
2.3.0 | 1,293 | 3/4/2021 |
2.2.1 | 1,317 | 3/1/2021 |
2.2.0 | 1,235 | 3/1/2021 |
2.1.2 | 1,854 | 1/22/2021 |
2.1.1 | 1,318 | 1/14/2021 |
2.1.0 | 1,421 | 12/21/2020 |
2.0.17 | 1,406 | 12/11/2020 |
2.0.16 | 1,404 | 12/11/2020 |
2.0.15 | 1,728 | 11/19/2020 |
2.0.14 | 4,823 | 10/8/2020 |
2.0.13 | 1,901 | 8/28/2020 |
2.0.12 | 1,393 | 8/12/2020 |
2.0.11 | 1,400 | 8/5/2020 |
2.0.10 | 1,387 | 8/3/2020 |
2.0.9 | 1,522 | 7/22/2020 |
2.0.8 | 1,379 | 7/22/2020 |
2.0.7 | 1,369 | 7/20/2020 |
2.0.6 | 1,519 | 7/7/2020 |
2.0.5 | 1,521 | 6/21/2020 |
2.0.4 | 1,399 | 6/16/2020 |
2.0.3 | 1,487 | 6/7/2020 |
2.0.2 | 7,276 | 3/3/2020 |
2.0.1 | 2,147 | 10/23/2019 |
2.0.0 | 1,475 | 10/23/2019 |
1.0.4 | 12,780 | 9/30/2019 |
1.0.3 | 1,426 | 9/23/2019 |
1.0.2 | 1,677 | 8/7/2019 |
1.0.1 | 1,445 | 8/5/2019 |
1.0.0 | 1,471 | 7/9/2019 |
0.0.2 | 1,605 | 5/14/2019 |
0.0.1 | 1,528 | 5/9/2019 |