public async Task <TickerInfo> GetTickerAsync(string ticker) { var endpoint = ApiEndpoints.GetTicker_Endpoint(ticker); var result = await _client.GetRequestAsync <TradeSatoshiResponse <TickerInfo> >(endpoint.Uri); ValidateResponse(result); return(result.Data); }
public TickerInfo GetTicker(string ticker) { var endpoint = ApiEndpoints.GetTicker_Endpoint(ticker); var result = _client.GetRequest <TradeSatoshiResponse <TickerInfo> >(endpoint.Uri); ValidateResponse(result); return(result.Data); }