/// <summary> /// Gets the current depth order book for the specified symbol /// </summary> /// <param name="symbol">The symbol to retrieve the order book for</param> /// <param name="useCache"></param> /// <param name="limit">Amount to request - defaults to 100</param> /// <returns></returns> public async Task <OrderBookResponse> GetOrderBookAsync(string symbol, bool useCache = false, int limit = 100) { Guard.AgainstNull(symbol); if (limit > 100) { throw new ArgumentException( "When requesting the order book, you can't request more than 100 at a time.", nameof(limit)); } return(await _apiProcessor.ProcessGetRequest <OrderBookResponse>( Endpoints.MarketData.OrderBook(symbol, limit, useCache))); }
/// <summary> /// Test the connectivity to the API /// </summary> public async Task <EmptyResponse> TestConnectivity() { return(await _apiProcessor.ProcessGetRequest <EmptyResponse>(Endpoints.General.TestConnectivity)); }