diff --git a/src/Managing.Api/Controllers/DataController.cs b/src/Managing.Api/Controllers/DataController.cs
index 1f685b5..edfc1d2 100644
--- a/src/Managing.Api/Controllers/DataController.cs
+++ b/src/Managing.Api/Controllers/DataController.cs
@@ -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,
};
}
diff --git a/src/Managing.Api/Models/Responses/UserStrategyDetailsViewModel.cs b/src/Managing.Api/Models/Responses/UserStrategyDetailsViewModel.cs
index facbab7..ef16023 100644
--- a/src/Managing.Api/Models/Responses/UserStrategyDetailsViewModel.cs
+++ b/src/Managing.Api/Models/Responses/UserStrategyDetailsViewModel.cs
@@ -1,5 +1,4 @@
using Managing.Domain.Trades;
-using static Managing.Common.Enums;
namespace Managing.Api.Models.Responses
{
@@ -12,65 +11,67 @@ namespace Managing.Api.Models.Responses
/// Name of the deployed strategy
///
public string Name { get; set; }
-
+
///
/// Strategy identifier
///
public string StrategyName { get; set; }
-
+
///
/// Current state of the strategy (RUNNING, STOPPED, UNUSED)
///
public string State { get; set; }
-
+
///
/// Total profit or loss generated by the strategy in USD
///
public decimal PnL { get; set; }
-
+
///
/// Return on investment percentage
///
public decimal ROIPercentage { get; set; }
-
+
///
/// Return on investment percentage in the last 24 hours
///
public decimal ROILast24H { get; set; }
-
+
///
/// Date and time when the strategy was started
///
public DateTime Runtime { get; set; }
-
+
///
/// Average percentage of successful trades
///
public int WinRate { get; set; }
-
+
///
/// Total trading volume for all trades
///
public decimal TotalVolumeTraded { get; set; }
-
+
///
/// Trading volume in the last 24 hours
///
public decimal VolumeLast24H { get; set; }
-
+
///
/// Number of winning trades
///
public int Wins { get; set; }
-
+
///
/// Number of losing trades
///
public int Losses { get; set; }
-
+
///
/// List of all positions executed by this strategy
///
public List Positions { get; set; } = new List();
+
+ public string Identifier { get; set; }
}
-}
\ No newline at end of file
+}
\ No newline at end of file