示例#1
0
        public async Task AddLevelAsync(string assetPairId, InstrumentLevel instrumentLevel)
        {
            Instrument instrument = await GetByAssetPairIdAsync(assetPairId);

            instrument.AddLevel(instrumentLevel);

            await _instrumentRepository.UpdateAsync(instrument);

            _cache.Set(instrument);

            _log.InfoWithDetails("Level volume was added to the instrument", instrument);
        }