Home

Awesome

.Kucoin.Net Kucoin.Net

.NET License

Kucoin.Net is a strongly typed client library for accessing the Kucoin REST and Websocket API.

Features

Supported Frameworks

The library is targeting both .NET Standard 2.0 and .NET Standard 2.1 for optimal compatibility

.NET implementationVersion Support
.NET Core2.0 and higher
.NET Framework4.6.1 and higher
Mono5.4 and higher
Xamarin.iOS10.14 and higher
Xamarin.Android8.0 and higher
UWP10.0.16299 and higher
Unity2018.1 and higher

Install the library

NuGet

NuGet version Nuget downloads

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

GitHub 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.

ExchangeRepositoryNuget
BinanceJKorf/Binance.NetNuget version
BingXJKorf/BingX.NetNuget version
BitfinexJKorf/Bitfinex.NetNuget version
BitgetJKorf/Bitget.NetNuget version
BitMartJKorf/BitMart.NetNuget version
BybitJKorf/Bybit.NetNuget version
CoinExJKorf/CoinEx.NetNuget version
CoinGeckoJKorf/CoinGecko.NetNuget version
Gate.ioJKorf/GateIo.NetNuget version
HuobiJKorf/Huobi.NetNuget version
KrakenJKorf/Kraken.NetNuget version
MexcJKorf/Mexc.NetNuget version
OKXJKorf/OKX.NetNuget version

Discord

Nuget version
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

APISupportedLocation
Account Basic InforestClient.SpotApi.Account / restClient.FuturesApi.Account
Account Sub-AccountX
Funding OverviewrestClient.SpotApi.Account
Funding DepositrestClient.SpotApi.Account
Funding WithdrawalrestClient.SpotApi.Account
Funding TransferrestClient.SpotApi.Account
Funding Trade FeerestClient.SpotApi.Account
Spot Trading Market DatarestClient.SpotApi.ExchangeData
Spot Trading HF TraderestClient.SpotApi.ProAccount
Spot Trading OrdersrestClient.SpotApi.Trading
Spot Trading FillsrestClient.SpotApi.Trading
Spot Trading Stop OrderrestClient.SpotApi.Trading
Margin Trading Margin HT TradeX
Margin Trading Margin OrdersrestClient.SpotApi.Trading
Margin Trading Margin InforestClient.SpotApi.ExchangeData
Margin Trading Isolated MarginrestClient.SpotApi.ExchangeData / restClient.SpotApi.Account
Margin Trading Margin Trading(V3)restClient.SpotApi.Margin
Margin Trading Lending Market(V3)restClient.SpotApi.Margin
Futures Trading Market DatarestClient.FuturesApi.ExchangeData
Futures Trading OrdersrestClient.FuturesApi.Trading
Futures Trading FillsrestClient.FuturesApi.Trading
Futures Trading PositionsrestClient.FuturesApi.Acount / restClient.FuturesApi.Trading
Futures Trading Risk LimitrestClient.FuturesApi.Acount
Futures Trading Funding FeesrestClient.FuturesApi.ExchangeData

Websocket Api

APISupportedLocation
Spot PublicsocketClient.SpotApi
Spot PrivatesocketClient.SpotApi
Margin PublicsocketClient.SpotApi
Margin PrivatesocketClient.SpotApi
Futures PublicsocketClient.FuturesApi
Futures PrivatesocketClient.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