Update naming and remove used calls
This commit is contained in:
@@ -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