Add Agent tracking balance
This commit is contained in:
16
src/Managing.Domain.Statistics/AgentBalance.cs
Normal file
16
src/Managing.Domain.Statistics/AgentBalance.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
public class AgentBalance
|
||||
{
|
||||
public string AgentName { get; set; }
|
||||
public decimal TotalValue { get; set; }
|
||||
public decimal TotalAccountUsdValue { get; set; }
|
||||
public decimal BotsAllocationUsdValue { get; set; }
|
||||
public decimal PnL { get; set; }
|
||||
public DateTime Time { get; set; }
|
||||
public IList<PnLPoint> PnLHistory { get; set; }
|
||||
}
|
||||
|
||||
public class PnLPoint
|
||||
{
|
||||
public DateTime Time { get; set; }
|
||||
public decimal Value { get; set; }
|
||||
}
|
||||
18
src/Managing.Domain.Statistics/AgentBalanceHistory.cs
Normal file
18
src/Managing.Domain.Statistics/AgentBalanceHistory.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
namespace Managing.Domain.Statistics;
|
||||
|
||||
public class AgentBalanceHistory
|
||||
{
|
||||
public string AgentName { get; set; }
|
||||
public decimal TotalValue { get; set; }
|
||||
public decimal TotalAccountUsdValue { get; set; }
|
||||
public decimal BotsAllocationUsdValue { get; set; }
|
||||
public decimal PnL { get; set; }
|
||||
public DateTime Time { get; set; }
|
||||
public IList<PnLPoint> PnLHistory { get; set; }
|
||||
}
|
||||
|
||||
public class PnLPoint
|
||||
{
|
||||
public DateTime Time { get; set; }
|
||||
public decimal Value { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user