Enhance UI, add AI integration, improve logging and database stats
This commit is contained in:
@@ -35,6 +35,12 @@ public static class TraderEndpoints
|
||||
return Results.Ok();
|
||||
});
|
||||
|
||||
group.MapPost("/{id:int}/ai-analysis", async (int id, bool manual, IAiStrategyAnalysisService aiSvc, CancellationToken ct) =>
|
||||
{
|
||||
var summary = await aiSvc.AnalyzeTraderStrategyAsync(id, manual, ct);
|
||||
return Results.Ok(new { summary });
|
||||
});
|
||||
|
||||
group.MapPost("/", async (string platform, string wallet, IAnalyticsService svc, CancellationToken ct) =>
|
||||
{
|
||||
var id = await svc.AddTraderAsync(platform, wallet, ct);
|
||||
|
||||
Reference in New Issue
Block a user