Update strategies agent return

This commit is contained in:
2025-08-06 19:47:13 +07:00
parent a0bd2e2100
commit b1c1c8725d
3 changed files with 6 additions and 5 deletions

View File

@@ -463,7 +463,7 @@ public class DataController : ControllerBase
VolumeLast24H = volumeLast24h, VolumeLast24H = volumeLast24h,
Wins = wins, Wins = wins,
Losses = losses, Losses = losses,
Positions = new Dictionary<Guid, Position>(), Positions = new List<Position>(),
Identifier = strategy.Identifier, Identifier = strategy.Identifier,
WalletBalances = new Dictionary<DateTime, decimal>(), WalletBalances = new Dictionary<DateTime, decimal>(),
}; };

View File

@@ -66,7 +66,7 @@ namespace Managing.Api.Models.Responses
/// <summary> /// <summary>
/// Dictionary of all positions executed by this strategy, keyed by position identifier /// Dictionary of all positions executed by this strategy, keyed by position identifier
/// </summary> /// </summary>
public Dictionary<Guid, Position> Positions { get; set; } = new Dictionary<Guid, Position>(); public List<Position> Positions { get; set; } = new List<Position>();
public Guid Identifier { get; set; } public Guid Identifier { get; set; }

View File

@@ -1,4 +1,8 @@
{ {
"PostgreSql": {
"ConnectionString": "Host=managing-postgre.apps.managing.live;Port=5432;Database=managing;Username=postgres;Password=29032b13a5bc4d37",
"Orleans": "Host=managing-postgre.apps.managing.live;Port=5432;Database=orleans;Username=postgres;Password=29032b13a5bc4d37"
},
"InfluxDb": { "InfluxDb": {
"Url": "https://influx-db.apps.managing.live", "Url": "https://influx-db.apps.managing.live",
"Organization": "managing-org", "Organization": "managing-org",
@@ -8,9 +12,6 @@
"AppId": "cm6f47n1l003jx7mjwaembhup", "AppId": "cm6f47n1l003jx7mjwaembhup",
"AppSecret": "63Chz2z5M8TgR5qc8dznSLRAGTHTyPU4cjdQobrBF1Cx5tszZpTuFgyrRd7hZ2k6HpwDz3GEwQZzsCqHb8Z311bF" "AppSecret": "63Chz2z5M8TgR5qc8dznSLRAGTHTyPU4cjdQobrBF1Cx5tszZpTuFgyrRd7hZ2k6HpwDz3GEwQZzsCqHb8Z311bF"
}, },
"PostgreSql": {
"ConnectionString": "Host=managing-postgre.apps.managing.live;Port=5432;Database=managing;Username=postgres;Password=29032b13a5bc4d37"
},
"Serilog": { "Serilog": {
"MinimumLevel": { "MinimumLevel": {
"Default": "Information", "Default": "Information",