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:
@@ -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) =>
|
||||
|
||||
Reference in New Issue
Block a user