A .NET Standard 2.0/2.1 Client for Wootrade API.
This package is under construction, the following features are available:
- WebSockets Streams for Spot Market
- All public RESTful API endpoints available
- Important RESTful API endpoints
- OrderBook Snapshot
- Orders operations such as PlaceOrder, GetOrder, GetOrders and CancelOrder
- GetAccountInformation and GetCurrentHoldings endpoints available
If you find any issue or have questions, please please open an issue.
Name | nuget.org |
---|---|
Wootrade.Net |
Implementation is build upon the CryptoExchange.Net library, make sure to also check out the documentation on that: docs
Other CryptoExchange.Net implementations:
Bitfinex |
Bittrex |
Binance |
CoinEx |
Huobi |
Kucoin |
Kraken |
Switcheo |
Liquid |
OKEx |
Exante |
I develop and maintain this package on my own for free in my spare time. Donations are greatly appreciated.
WOO: 0x90badAB95512Ae586d376a5C64B7dF4f21C5e5cD
ETH: 0x90badAB95512Ae586d376a5C64B7dF4f21C5e5cD
Use your VS Package Manager Console to run the following command:
pm> Install-Package Wootrade.Net
The Wootrade API provides several RESTful methods. Some of them are public, some requires authentication.
IWootradeRestClient client = new WootradeRestClient();
var symbols = await client.GetSymbolsAsync();
WootradeClientOptions clientOptions = new WootradeClientOptions();
clientOptions.ApiCredentials = new CryptoExchange.Net.Authentication.ApiCredentials(apiKey, apiSecret);
IWootradeRestClient client = new WootradeRestClient(clientOptions);
var orderbook = await client.GetOrderBookAsync("SPOT_ETH_USDT");
Look how is easy to place an order:
WootradePlaceOrder order = new WootradePlaceOrder();
order.ClientOrderId = 1;
order.Price = 0.4m;
order.Quantity = 15;
order.Side = OrderSide.Buy;
order.Symbol = "SPOT_WOO_USDT";
order.Tag = "AnyTagYouWant";
order.Type = OrderType.Limit;
var result = await client.PlaceOrderAsync(order);
The Wootrade API provides several socket endpoints.
WootradeSocketClientOptions clientOptions = new WootradeSocketClientOptions("applicationId");
IWootradeSocketClient client = new WootradeSocketClient(clientOptions);
await client.Spot.SubscribeToKlineUpdatesAsync("SPOT_BTC_USDT", KlineInterval.OneMinute, (data) => {
// Handle data
}
);
Contributions are more than welcome! Submit comments, issues or pull requests, I promise I'll check it out :)
While I try to do the best I can, suggestions/contributions are deeply appreciated on documentation!