Update naming and remove used calls
This commit is contained in:
@@ -799,7 +799,7 @@ public class DataController : ControllerBase
|
||||
TotalVolume = s.TotalVolume,
|
||||
TotalPnL = s.TotalPnL,
|
||||
TotalOpenInterest = s.TotalOpenInterest,
|
||||
TotalPositionCount = s.TotalPositionCount
|
||||
TotalPositionCount = s.TotalLifetimePositionCount
|
||||
})
|
||||
.ToList(),
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ public class DailySnapshot
|
||||
|
||||
[Id(5)] public decimal TotalOpenInterest { get; set; }
|
||||
|
||||
[Id(6)] public int TotalPositionCount { get; set; }
|
||||
[Id(6)] public int TotalLifetimePositionCount { get; set; }
|
||||
|
||||
[Id(7)] public int TotalPlatformFees { get; set; }
|
||||
}
|
||||
@@ -69,7 +69,7 @@ public class PlatformSummaryGrain : Grain, IPlatformSummaryGrain, IRemindable
|
||||
TotalVolume = 0,
|
||||
TotalPnL = 0,
|
||||
TotalOpenInterest = 0,
|
||||
TotalPositionCount = 0,
|
||||
TotalLifetimePositionCount = 0,
|
||||
TotalPlatformFees = 0,
|
||||
};
|
||||
|
||||
@@ -101,7 +101,6 @@ public class PlatformSummaryGrain : Grain, IPlatformSummaryGrain, IRemindable
|
||||
_logger.LogInformation("Refreshing platform summary data");
|
||||
|
||||
var positions = await _tradingService.GetAllDatabasePositionsAsync();
|
||||
var strategies = await _botService.GetBotsAsync();
|
||||
|
||||
// Calculate all metrics from positions in a single loop
|
||||
var totalVolume = 0m;
|
||||
@@ -301,7 +300,7 @@ public class PlatformSummaryGrain : Grain, IPlatformSummaryGrain, IRemindable
|
||||
TotalVolume = _state.State.TotalPlatformVolume,
|
||||
TotalPnL = _state.State.TotalPlatformPnL,
|
||||
TotalOpenInterest = _state.State.OpenInterest,
|
||||
TotalPositionCount = _state.State.TotalLifetimePositionCount,
|
||||
TotalLifetimePositionCount = _state.State.TotalLifetimePositionCount,
|
||||
};
|
||||
|
||||
_state.State.DailySnapshots.Add(dailySnapshot);
|
||||
|
||||
Reference in New Issue
Block a user