示例#1
0
        internal static async Task <List <Ticker> > GetTickersAsync(Currencies currency = Currencies.USD, int start = 0, int limit = 100)
        {
            Uri    uri      = GetListUri(currency, start, limit);
            string response = await RestServices.GetResponseAsync(uri).ConfigureAwait(false);

            return(await ParseListResponseAsync(response, currency).ConfigureAwait(false));
        }
示例#2
0
        internal static async Task <Ticker> GetTickerAsync(string id, Currencies currency = Currencies.USD)
        {
            Uri    uri      = GetSingleUri(currency, id);
            string response = await RestServices.GetResponseAsync(uri).ConfigureAwait(false);

            return(await ParseSingleResponseAsync(response, currency).ConfigureAwait(false));
        }
示例#3
0
        internal static async Task <GlobalData> GetDataAsync(Currencies currency = Currencies.USD)
        {
            Uri    uri      = GetUri(currency);
            string response = await RestServices.GetResponseAsync(uri).ConfigureAwait(false);

            return(await ParseResponseAsync(response, currency).ConfigureAwait(false));
        }