Fix Hurst indicator fetch URL to use full API_BASE_URL, preventing 404
This commit is contained in:
@ -128,7 +128,7 @@ function intervalToSeconds(interval) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function getCandlesForTimeframe(tf, startTime, endTime) {
|
async function getCandlesForTimeframe(tf, startTime, endTime) {
|
||||||
const url = `/api/v1/candles?symbol=BTC&interval=${tf}&start=${startTime.toISOString()}&end=${endTime.toISOString()}&limit=5000`;
|
const url = `${window.APP_CONFIG.API_BASE_URL}/candles?symbol=BTC&interval=${tf}&start=${startTime.toISOString()}&end=${endTime.toISOString()}&limit=5000`;
|
||||||
const response = await fetch(url);
|
const response = await fetch(url);
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
console.error(`Failed to fetch candles for ${tf}:`, response.status, response.statusText);
|
console.error(`Failed to fetch candles for ${tf}:`, response.status, response.statusText);
|
||||||
|
|||||||
Reference in New Issue
Block a user