Implement fiscal-style research MVP flows
Some checks failed
PR Checks / typecheck-and-build (push) Has been cancelled
Some checks failed
PR Checks / typecheck-and-build (push) Has been cancelled
This commit is contained in:
@@ -10,6 +10,7 @@ import {
|
||||
listFilings,
|
||||
listHoldings,
|
||||
listRecentTasks,
|
||||
listResearchJournal,
|
||||
listWatchlist
|
||||
} from '@/lib/api';
|
||||
import { queryKeys } from '@/lib/query/keys';
|
||||
@@ -103,6 +104,16 @@ export function watchlistQueryOptions() {
|
||||
});
|
||||
}
|
||||
|
||||
export function researchJournalQueryOptions(ticker: string) {
|
||||
const normalizedTicker = ticker.trim().toUpperCase();
|
||||
|
||||
return queryOptions({
|
||||
queryKey: queryKeys.researchJournal(normalizedTicker),
|
||||
queryFn: () => listResearchJournal(normalizedTicker),
|
||||
staleTime: 15_000
|
||||
});
|
||||
}
|
||||
|
||||
export function holdingsQueryOptions() {
|
||||
return queryOptions({
|
||||
queryKey: queryKeys.holdings(),
|
||||
|
||||
Reference in New Issue
Block a user