Add wallet balances to the userStrategy

This commit is contained in:
2025-07-31 21:34:05 +07:00
parent 5fabfbfadd
commit cd378587aa
2 changed files with 6 additions and 0 deletions

View File

@@ -489,6 +489,7 @@ public class DataController : ControllerBase
Positions = strategy.Positions.OrderByDescending(p => p.Date)
.ToList(), // Include sorted positions with most recent first
Identifier = strategy.Identifier,
WalletBalances = strategy.WalletBalances,
};
}

View File

@@ -68,6 +68,11 @@ namespace Managing.Api.Models.Responses
public List<Position> Positions { get; set; } = new List<Position>();
public string Identifier { get; set; }
/// <summary>
/// Name of the scenario used by this strategy
/// </summary>
public string ScenarioName { get; set; }
public Dictionary<DateTime, decimal> WalletBalances { get; set; }
}
}