feat: curve regime
This commit is contained in:
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user