first commit
Some checks failed
Deploy / lint (push) Failing after 7s
Deploy / test (push) Has been skipped
Deploy / deploy (push) Has been skipped

This commit is contained in:
Dennis Thiessen
2026-02-20 17:31:01 +01:00
commit 61ab24490d
160 changed files with 17034 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
import { useQuery } from '@tanstack/react-query';
import { getOHLCV } from '../api/ohlcv';
import { getScores } from '../api/scores';
import { getLevels } from '../api/sr-levels';
import { getSentiment } from '../api/sentiment';
import { getFundamentals } from '../api/fundamentals';
export function useTickerDetail(symbol: string) {
const ohlcv = useQuery({
queryKey: ['ohlcv', symbol],
queryFn: () => getOHLCV(symbol),
enabled: !!symbol,
});
const scores = useQuery({
queryKey: ['scores', symbol],
queryFn: () => getScores(symbol),
enabled: !!symbol,
});
const srLevels = useQuery({
queryKey: ['sr-levels', symbol],
queryFn: () => getLevels(symbol),
enabled: !!symbol,
});
const sentiment = useQuery({
queryKey: ['sentiment', symbol],
queryFn: () => getSentiment(symbol),
enabled: !!symbol,
});
const fundamentals = useQuery({
queryKey: ['fundamentals', symbol],
queryFn: () => getFundamentals(symbol),
enabled: !!symbol,
});
return { ohlcv, scores, srLevels, sentiment, fundamentals };
}