diff --git a/README.md b/README.md index a641f4e..0fee8f6 100644 --- a/README.md +++ b/README.md @@ -113,7 +113,7 @@ For example: ```C# using(var client = new BinanceClient()) { - var result = client.GetServerTime(); + var result = client.Spot.System.GetServerTime(); if (result.Success) Console.WriteLine($"Server time: {result.Data}"); else @@ -212,33 +212,34 @@ To stop synchronizing an order book use the `Stop` method. Most implementations have an implementation of the `IExchangeClient` interface. It is a shared interface, which makes it easier to re-use the same code for multiple exchanges. It offers basic functionality only, for exchange specific calls use the actual client interface, for example `IBinanceClient` or `IBitfinexClient`. The IExchangeClient interface supports the following methods: + `string GetSymbolName(string baseAsset, string quoteAsset);` - Based on a base and quote asset return the symbol name for the exchange. -`Task>> GetSymbolsAsync();` - Get a list of supported symbols. +`GetSymbolsAsync();` - Get a list of supported symbols. -`Task>> GetTickersAsync();` - Get a list of tickers (High/Low/volume data for the last 24 hours) for all symbols. +`GetTickersAsync();` - Get a list of tickers (High/Low/volume data for the last 24 hours) for all symbols. -`Task> GetTickerAsync(string symbol);` - Get a specific ticker. +`GetTickerAsync(string symbol);` - Get a specific ticker. -`Task>> GetKlinesAsync(string symbol, TimeSpan timespan, DateTime? startTime = null, DateTime? endTime = null, int? limit = null);` - Get candlestick data for a symbol. +`GetKlinesAsync(string symbol, TimeSpan timespan, DateTime? startTime = null, DateTime? endTime = null, int? limit = null);` - Get candlestick data for a symbol. -`Task> GetOrderBookAsync(string symbol);` - Get the order book for a symbol. +`GetOrderBookAsync(string symbol);` - Get the order book for a symbol. -`Task>> GetRecentTradesAsync(string symbol);` - Get a list of the most recent trades for a symbol. +`GetRecentTradesAsync(string symbol);` - Get a list of the most recent trades for a symbol. -`Task> PlaceOrderAsync(string symbol, OrderSide side, OrderType type, decimal quantity, decimal? price = null, string? accountId = null);` - \[Authenticated\] Place an order. +`PlaceOrderAsync(string symbol, OrderSide side, OrderType type, decimal quantity, decimal? price = null, string? accountId = null);` - \[Authenticated\] Place an order. -`Task> GetOrderAsync(string orderId, string? symbol = null);` - \[Authenticated\] Get details on an order. +`GetOrderAsync(string orderId, string? symbol = null);` - \[Authenticated\] Get details on an order. -`Task>> GetTradesAsync(string orderId, string? symbol = null);` - \[Authenticated\] Get executed trades for an order. +`GetTradesAsync(string orderId, string? symbol = null);` - \[Authenticated\] Get executed trades for an order. -`Task>> GetOpenOrdersAsync(string? symbol = null);` - \[Authenticated\] Get a list of open orders. +`GetOpenOrdersAsync(string? symbol = null);` - \[Authenticated\] Get a list of open orders. -`Task>> GetClosedOrdersAsync(string? symbol = null);` - \[Authenticated\] Get a list of closed orders. +`GetClosedOrdersAsync(string? symbol = null);` - \[Authenticated\] Get a list of closed orders. -`Task> CancelOrderAsync(string orderId, string? symbol = null);` - \[Authenticated\] Cancel an order. +`CancelOrderAsync(string orderId, string? symbol = null);` - \[Authenticated\] Cancel an order. -`Task>> GetBalancesAsync(string? accountId = null);` - \[Authenticated\] Get a list of balances. +`GetBalancesAsync(string? accountId = null);` - \[Authenticated\] Get a list of balances. Example usage: