Implement WinRate, Bankroll, Positions UI and add Trades30d to Analytics
This commit is contained in:
@@ -24,6 +24,12 @@ public static class TraderEndpoints
|
||||
return dd is not null ? Results.Ok(dd) : Results.NotFound();
|
||||
});
|
||||
|
||||
group.MapGet("/{id:int}/positions", async (int id, IAnalyticsService svc, CancellationToken ct) =>
|
||||
{
|
||||
var positions = await svc.GetTraderPositionsAsync(id, ct);
|
||||
return Results.Ok(positions);
|
||||
});
|
||||
|
||||
group.MapPost("/{id:int}/priority", async (int id, int? score, IScoringService svc, CancellationToken ct) =>
|
||||
{
|
||||
await svc.SetManualOverrideAsync(id, score, ct);
|
||||
|
||||
Reference in New Issue
Block a user