feat: add confluence.signalHistory API route

Returns signal fire history for a symbol (last 6 months) with slot
names and body types. Used by the upcoming confluence chart to plot
signal markers on price data.
This commit is contained in:
Investor Flow Build
2026-08-11 23:13:15 -04:00
parent 1a063d199a
commit 44f8342f6e
2 changed files with 37 additions and 1 deletions
+10
View File
@@ -1472,6 +1472,16 @@ export const api = {
}>("confluence.backtest", { symbol, ...(opts?.weeks ? { weeks: opts.weeks } : {}) }),
scorecard: (symbol?: string) =>
trpcQuery<{ slots: unknown[]; note: string }>("confluence.scorecard", symbol ? { symbol } : {}),
signalHistory: (symbol: string) =>
trpcQuery<{
fires: Array<{
slotId: string;
slotName: string;
body: 'bull' | 'bear' | 'exit';
firedAt: string;
qualityAtFire: string;
}>;
}>("confluence.signalHistory", { symbol }),
saveRack: (input: { id?: string; name: string; description?: string; slotIds: string[] }) =>
trpcMutate<{ id: string; name: string; slotIds: string[]; isSystem: boolean; description: string | null }>("confluence.saveRack", input),
corridorSnapshot: (symbol: string) =>