Beispiel #1
0
        public async void getSymbolPriceTicker(String symbol)
        {
            var result = await client.GetAsync(calls.baseEndPoint + calls.tickerPrice + "?symbol=" + symbol);

            String contents = await result.Content.ReadAsStringAsync();

            SymbolPriceTicker symbolPriceTicker = parseJsonSymbolTicker(contents);

            Console.WriteLine(symbolPriceTicker);
        }
Beispiel #2
0
        static SymbolPriceTicker parseJsonSymbolTicker(String result)
        {
            SymbolPriceTicker symbolPriceTicker = new SymbolPriceTicker();

            dynamic stuff = JsonConvert.DeserializeObject(result);

            symbolPriceTicker.symbol = stuff.symbol;
            symbolPriceTicker.price  = stuff.price;

            return(symbolPriceTicker);
        }