Skip to content

username77/KuCoinApi.NetCore

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

KuCoinApi.NetCore

.Net Core library for accessing the KuCoin Exchange api

This library is available on NuGet for download: https://www.nuget.org/packages/KuCoinApi.NetCore

PM> Install-Package KuCoinApi.NetCore -Version 1.0.0

To trade, log into your KuCoin account and create an api key with trading permissions:
Account -> API Keys -> Create (with Read Information & Trading Authority)

Initialization:
Non-secured endpoints only:

var kucoin = new KuCoinClient();

Secure & non-secure endpoints:

var kucoin = new KuCoinClient("api-key", "api-secret");

or

create config file config.json
{
  "apiKey": "api-key",
  "apiSecret": "api-secret"
}
var kucoin = new KuCoinClient("/path-to/config.json");

Using an endpoint:

var balance = await kucoin.KuCoinRepository.GetBalance();

or

var balance = kucoin.KuCoinRepository.GetBalance().Result;

Non-secure endpoints:
GetCandlesticks() - Get charting candlesticks
GetOrderBook() - Get current order book for a trading pair
GetTick() - Get tick for a trading pair
GetTicks() - Get ticker for all trading pairs
GetMarkets() - Get markets trading on exchange
GetTradingSymbolTick() - Get details for all coins
GetTradingPairs() - Get all trading pairs on exchange
GetCoin() - Get information about a coin GetCoins() - Get information about all coins GetTrendings() - Get open sells for all pairs or a market
GetKuCoinTime() - Get current KuCoin server time

Secure endpoints:
GetBalance() - Get current asset balances
GetOrder() - Get information for an order
GetOrders() - Get all current user order information
GetOpenOrders() - Get all current user open orders
PostTrade() - Post a new trade
DeleteTrade() - Delete a current open trade

KCS:
0x011bd184fc7fd1964702844ffd668318f7c3d4c4
ETH:
0x3c8e741c0a2Cb4b8d5cBB1ead482CFDF87FDd66F
BTC:
1MGLPvTzxK9argeNRTHJ9EZ3WtGZV6nxit
XLM:
GA6JNJRSTBV54W3EGWDAWKPEGGD3QCXIGEHMQE2TUYXUKKTNKLYWEXVV

About

KuCoin api access built in .Net Core

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%