public async Task <IActionResult> GetExchangeLatest() { var channelStats = await _exchangeQuery.GetLatestBittrexSummaryAsync(); return(Ok(new ExchangeSummary { Ask = channelStats.Ask, BaseVolume = channelStats.BaseVolume, Bid = channelStats.Bid, Exchange = "Bittrex", Last = channelStats.Last, OpenBuyOrders = channelStats.OpenBuyOrders, OpenSellOrders = channelStats.OpenSellOrders, TimeStamp = channelStats.TimeStamp, Volume = channelStats.Volume })); }
public async Task <string> GetLatestBittrexSummary() { return(Helpers.JsonSerialise(await _exchangeQuery.GetLatestBittrexSummaryAsync())); }
public Task <BittrexSummaryDto> GetLatestPrice() { return(_exchangeQuery.GetLatestBittrexSummaryAsync()); }