добавлена обработка расписания торгов

main
vlad zverzhkhovskiy 2025-09-05 00:11:57 +03:00
parent 9749791b4c
commit 859fba68ed
1 changed files with 1 additions and 1 deletions

View File

@ -282,7 +282,7 @@ namespace KLHZ.Trader.Core.Exchange.Services
{ {
using var context = await _dbContextFactory.CreateDbContextAsync(); using var context = await _dbContextFactory.CreateDbContextAsync();
await context.Trades await context.Trades
.Where(t => t.Figi == newPrice.Figi && t.ArchiveStatus == 0) .Where(t => t.Figi == newPrice.Figi && t.ArchiveStatus == 0 && t.Asset == DataLayer.Entities.Trades.Enums.AssetType.Future)
.ExecuteUpdateAsync(t => t.SetProperty(tr => tr.Price, newPriceValue)); .ExecuteUpdateAsync(t => t.SetProperty(tr => tr.Price, newPriceValue));
foreach (var account in Accounts.Values) foreach (var account in Accounts.Values)
{ {