feat: curve regime

This commit is contained in:
OpenSquared
2026-07-25 09:23:26 +02:00
parent 3addea6850
commit ad7ab35d1d
8 changed files with 177 additions and 31 deletions

View File

@@ -1164,6 +1164,16 @@ export const useWaveletWatchlistSignals = () =>
staleTime: 5 * 60_000,
})
// Instrument-level Curve Regime (services.curve_regime) per Watchlist instrument — cached
// on the same refresh cadence as the wavelet cache (services.wavelet_scheduler), NOT the
// global macro regime. Feeds the Dashboard's "Curve Regime" card.
export const useWatchlistCurveRegimes = () =>
useQuery({
queryKey: ['watchlist-curve-regimes'],
queryFn: () => api.get('/watchlist/curve-regimes').then(r => r.data as { items: any[] }),
staleTime: 5 * 60_000,
})
export const useLogCycles = () =>
useQuery({
queryKey: ['log-cycles'],