private decimal GetFiatEquity()
        {
            lock (_sync)
            {
                if (_fiatEquityUpdated == default(DateTime) ||
                    DateTime.UtcNow - _fiatEquityUpdated > _fiatEquityUpdateInterval)
                {
                    _fiatEquity        = _balanceIndicatorsReportService.GetAsync().GetAwaiter().GetResult().FiatEquity;
                    _fiatEquityUpdated = DateTime.UtcNow;
                }

                return(_fiatEquity);
            }
        }
예제 #2
0
        public async Task <BalanceIndicatorsReportModel> GetBalanceIndicatorsReportAsync()
        {
            BalanceIndicatorsReport balanceIndicatorsReport = await _balanceIndicatorsReportService.GetAsync();

            return(Mapper.Map <BalanceIndicatorsReportModel>(balanceIndicatorsReport));
        }