Add net Pnl in db
This commit is contained in:
@@ -13,10 +13,15 @@ namespace Managing.Api.Models.Responses
|
||||
public string AgentName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Total profit and loss in USD
|
||||
/// Total profit and loss in USD (gross, before fees)
|
||||
/// </summary>
|
||||
public decimal TotalPnL { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Net profit and loss in USD (after fees)
|
||||
/// </summary>
|
||||
public decimal NetPnL { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Total return on investment as a percentage
|
||||
/// </summary>
|
||||
@@ -160,10 +165,15 @@ namespace Managing.Api.Models.Responses
|
||||
public required decimal TotalVolume { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Total PnL on this date in USD
|
||||
/// Total PnL on this date in USD (gross, before fees)
|
||||
/// </summary>
|
||||
public required decimal TotalPnL { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Net PnL on this date in USD (after fees)
|
||||
/// </summary>
|
||||
public required decimal NetPnL { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Total open interest on this date in USD
|
||||
/// </summary>
|
||||
|
||||
@@ -50,7 +50,7 @@ public class PaginatedAgentIndexResponse
|
||||
/// <summary>
|
||||
/// Field used for sorting
|
||||
/// </summary>
|
||||
public SortableFields SortBy { get; set; } = SortableFields.TotalPnL;
|
||||
public SortableFields SortBy { get; set; } = SortableFields.NetPnL;
|
||||
|
||||
/// <summary>
|
||||
/// Sort order (asc or desc)
|
||||
|
||||
@@ -11,10 +11,15 @@ namespace Managing.Api.Models.Responses
|
||||
public string StrategyName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Profit and Loss value of the strategy
|
||||
/// Profit and Loss value of the strategy (gross, before fees)
|
||||
/// </summary>
|
||||
public decimal PnL { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Net Profit and Loss value of the strategy (after fees)
|
||||
/// </summary>
|
||||
public decimal NetPnL { get; set; }
|
||||
|
||||
public string AgentName { get; set; }
|
||||
}
|
||||
|
||||
@@ -34,10 +39,15 @@ namespace Managing.Api.Models.Responses
|
||||
public decimal Roi { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Profit and Loss value of the strategy
|
||||
/// Profit and Loss value of the strategy (gross, before fees)
|
||||
/// </summary>
|
||||
public decimal PnL { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Net Profit and Loss value of the strategy (after fees)
|
||||
/// </summary>
|
||||
public decimal NetPnL { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Volume traded by the strategy
|
||||
/// </summary>
|
||||
@@ -77,10 +87,15 @@ namespace Managing.Api.Models.Responses
|
||||
public string AgentName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Profit and Loss value of the agent
|
||||
/// Profit and Loss value of the agent (gross, before fees)
|
||||
/// </summary>
|
||||
public decimal PnL { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Net Profit and Loss value of the agent (after fees)
|
||||
/// </summary>
|
||||
public decimal NetPnL { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Total ROI percentage of the agent
|
||||
/// </summary>
|
||||
|
||||
@@ -19,10 +19,15 @@ namespace Managing.Api.Models.Responses
|
||||
public Enums.BotStatus State { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Total profit or loss generated by the strategy in USD
|
||||
/// Total profit or loss generated by the strategy in USD (gross, before fees)
|
||||
/// </summary>
|
||||
public decimal PnL { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Net profit or loss generated by the strategy in USD (after fees)
|
||||
/// </summary>
|
||||
public decimal NetPnL { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Return on investment percentage
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user