コード例 #1
0
        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);
        }
コード例 #2
0
        public TickerInfo GetTicker(string ticker)
        {
            var endpoint = ApiEndpoints.GetTicker_Endpoint(ticker);
            var result   = _client.GetRequest <TradeSatoshiResponse <TickerInfo> >(endpoint.Uri);

            ValidateResponse(result);
            return(result.Data);
        }