Fix identifier for strat
This commit is contained in:
@@ -422,7 +422,8 @@ public class DataController : ControllerBase
|
||||
Wins = wins,
|
||||
Losses = losses,
|
||||
Positions = strategy.Positions.OrderByDescending(p => p.Date)
|
||||
.ToList() // Include sorted positions with most recent first
|
||||
.ToList(), // Include sorted positions with most recent first
|
||||
Identifier = strategy.Identifier,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Managing.Domain.Trades;
|
||||
using static Managing.Common.Enums;
|
||||
|
||||
namespace Managing.Api.Models.Responses
|
||||
{
|
||||
@@ -72,5 +71,7 @@ namespace Managing.Api.Models.Responses
|
||||
/// List of all positions executed by this strategy
|
||||
/// </summary>
|
||||
public List<Position> Positions { get; set; } = new List<Position>();
|
||||
|
||||
public string Identifier { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user