добавлена обработка расписания торгов
parent
9749791b4c
commit
859fba68ed
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue