Update strategy details models reponse
This commit is contained in:
@@ -453,7 +453,7 @@ public class DataController : ControllerBase
|
|||||||
return new UserStrategyDetailsViewModel
|
return new UserStrategyDetailsViewModel
|
||||||
{
|
{
|
||||||
Name = strategy.Name,
|
Name = strategy.Name,
|
||||||
State = strategy.Status.ToString(),
|
State = strategy.Status,
|
||||||
PnL = pnl,
|
PnL = pnl,
|
||||||
ROIPercentage = roi,
|
ROIPercentage = roi,
|
||||||
ROILast24H = roiLast24h,
|
ROILast24H = roiLast24h,
|
||||||
@@ -464,7 +464,7 @@ public class DataController : ControllerBase
|
|||||||
Wins = wins,
|
Wins = wins,
|
||||||
Losses = losses,
|
Losses = losses,
|
||||||
Positions = new Dictionary<Guid, Position>(),
|
Positions = new Dictionary<Guid, Position>(),
|
||||||
Identifier = strategy.Identifier.ToString(),
|
Identifier = strategy.Identifier,
|
||||||
WalletBalances = new Dictionary<DateTime, decimal>(),
|
WalletBalances = new Dictionary<DateTime, decimal>(),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
using Managing.Common;
|
||||||
using Managing.Domain.Trades;
|
using Managing.Domain.Trades;
|
||||||
|
|
||||||
namespace Managing.Api.Models.Responses
|
namespace Managing.Api.Models.Responses
|
||||||
@@ -15,7 +16,7 @@ namespace Managing.Api.Models.Responses
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Current state of the strategy (RUNNING, STOPPED, UNUSED)
|
/// Current state of the strategy (RUNNING, STOPPED, UNUSED)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string State { get; set; }
|
public Enums.BotStatus State { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Total profit or loss generated by the strategy in USD
|
/// Total profit or loss generated by the strategy in USD
|
||||||
@@ -67,7 +68,7 @@ namespace Managing.Api.Models.Responses
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public Dictionary<Guid, Position> Positions { get; set; } = new Dictionary<Guid, Position>();
|
public Dictionary<Guid, Position> Positions { get; set; } = new Dictionary<Guid, Position>();
|
||||||
|
|
||||||
public string Identifier { get; set; }
|
public Guid Identifier { get; set; }
|
||||||
|
|
||||||
public Dictionary<DateTime, decimal> WalletBalances { get; set; } = new Dictionary<DateTime, decimal>();
|
public Dictionary<DateTime, decimal> WalletBalances { get; set; } = new Dictionary<DateTime, decimal>();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user