예제 #1
0
        public async Task <IActionResult> GetAllDirectoriesAsync(
            [FromQuery] decimal minEthLiquidity = 0,
            [FromQuery] StatsOrderBy orderBy    = StatsOrderBy.Liquidity
            )
        {
            var directories = await _statsService.GetExchangesAsync(orderBy, minEthLiquidity);

            return(Ok(_mapper.Map <List <IExchangeEntity>, DirectoriesDto>(directories.ToList())));
        }
예제 #2
0
        public async Task <IActionResult> GetStats([FromQuery] StatsOrderBy orderBy = StatsOrderBy.Liquidity)
        {
            var exchanges = await _statsService.GetExchangesAsync(orderBy);

            return(Ok(_mapper.Map <List <IExchangeEntity>, StatsExchangesDto>(exchanges.ToList())));
        }