示例#1
0
        public override async Task Execute()
        {
            try
            {
                await _exRateService.SaveRate(Pair.BTCUSD, Market.Lykke);
            }
            catch (Exception ex)
            {
                await _log.WriteErrorAsync(
                    nameof(LykkeBtcUsdPeriodicalHandler),
                    nameof(Execute),
                    "Exchange Lykke, AssetPair: BTCUSD",
                    ex);
            }

            await Task.CompletedTask;
        }
        public override async Task Execute()
        {
            try
            {
                await _exRateService.SaveRate(Pair.ETHUSD, Market.Kraken);
            }
            catch (Exception ex)
            {
                await _log.WriteErrorAsync(
                    nameof(KrakenEthUsdPeriodicalHandler),
                    nameof(Execute),
                    "Exchange: Kraken, AssetPair: ETHUSD",
                    ex);
            }

            await Task.CompletedTask;
        }