Add wallet balances to the userStrategy
This commit is contained in:
@@ -489,6 +489,7 @@ public class DataController : ControllerBase
|
|||||||
Positions = strategy.Positions.OrderByDescending(p => p.Date)
|
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,
|
Identifier = strategy.Identifier,
|
||||||
|
WalletBalances = strategy.WalletBalances,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -68,6 +68,11 @@ namespace Managing.Api.Models.Responses
|
|||||||
public List<Position> Positions { get; set; } = new List<Position>();
|
public List<Position> Positions { get; set; } = new List<Position>();
|
||||||
|
|
||||||
public string Identifier { get; set; }
|
public string Identifier { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Name of the scenario used by this strategy
|
||||||
|
/// </summary>
|
||||||
public string ScenarioName { get; set; }
|
public string ScenarioName { get; set; }
|
||||||
|
public Dictionary<DateTime, decimal> WalletBalances { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user