fix: rename signal-history API to avoid route conflict + restart backfill
This commit is contained in:
parent
424cb993f8
commit
ec6a8fc64d
@ -461,7 +461,7 @@ async def get_market_indicators(user: dict = Depends(get_current_user)):
|
|||||||
return result
|
return result
|
||||||
|
|
||||||
|
|
||||||
@app.get("/api/signals/history")
|
@app.get("/api/signals/signal-history")
|
||||||
async def get_signal_history(
|
async def get_signal_history(
|
||||||
symbol: str = "BTC",
|
symbol: str = "BTC",
|
||||||
limit: int = 50,
|
limit: int = 50,
|
||||||
|
|||||||
@ -181,7 +181,7 @@ function SignalHistory({ symbol }: { symbol: Symbol }) {
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const fetchData = async () => {
|
const fetchData = async () => {
|
||||||
try {
|
try {
|
||||||
const res = await authFetch(`/api/signals/history?symbol=${symbol}&limit=20`);
|
const res = await authFetch(`/api/signals/signal-history?symbol=${symbol}&limit=20`);
|
||||||
if (!res.ok) return;
|
if (!res.ok) return;
|
||||||
const json = await res.json();
|
const json = await res.json();
|
||||||
setData(json.data || []);
|
setData(json.data || []);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user