示例#1
0
        public ViewViewComponentResult Invoke()
        {
            var bitStamp = ConvertService.GetJsonRequest <BitStamp>("https://www.bitstamp.net/api/v2/ticker/ETHEUR");

            ETHPriceViewModel model = new ETHPriceViewModel
            {
                BitStamp = bitStamp,
            };

            return(View(model));
        }
示例#2
0
        public ViewViewComponentResult Invoke()
        {
            var hitBTC = ConvertService.GetJsonRequest <HitBTC>("https://api.hitbtc.com/api/2/public/ticker/ETHUSD");

            ETHPriceViewModel model = new ETHPriceViewModel
            {
                HitBTC = hitBTC,
            };

            return(View(model));
        }
        public ViewViewComponentResult Invoke()
        {
            var binance = ConvertService.GetJsonRequest <Binance>("https://api.binance.com/api/v1/ticker/24hr?symbol=ETHUSDT");

            ETHPriceViewModel model = new ETHPriceViewModel
            {
                Binance = binance,
            };

            return(View(model));
        }
        public ViewViewComponentResult Invoke()
        {
            var btcTurk = ConvertService.GetJsonRequest <BTCTurk>("https://www.btcturk.com/api/ticker?pairSymbol=ETHTRY");

            ETHPriceViewModel model = new ETHPriceViewModel
            {
                BTCTurk = btcTurk,
            };

            return(View(model));
        }