public IActionResult Matrix(string assetPair, bool depositFee = false, bool tradingFee = false)
        {
            if (string.IsNullOrWhiteSpace(assetPair))
            {
                return(NotFound());
            }

            var domain = _arbitrageDetectorService.GetMatrix(assetPair, false, depositFee, tradingFee);
            var model  = Mapper.Map <Matrix>(domain);

            return(Ok(model));
        }
        private async Task SaveMatrixToDatabaseAsync()
        {
            var settings = await _settingsService.GetAsync();

            var assetPairs = settings.MatrixHistoryAssetPairs;

            foreach (var assetPair in assetPairs)
            {
                var matrix = _arbitrageDetectorService.GetMatrix(assetPair);
                await _matrixHistoryRepository.InsertAsync(matrix);
            }
        }