add note about proxy server

This commit is contained in:
tomato6966 2024-12-22 00:31:58 +01:00
parent 434d07b421
commit 59734a2b27

View file

@ -53,7 +53,7 @@ export const searchAssets = async (query: string): Promise<Asset[]> => {
type: 'equity,etf',
});
const url = `${API_BASE}/v1/finance/lookup${isDev ? encodeURIComponent(`?${params}`) : `?${params}`}`;
const url = `${API_BASE}/v1/finance/lookup${!isDev ? encodeURIComponent(`?${params}`) : `?${params}`}`;
const response = await fetch(url);
if (!response.ok) throw new Error('Network response was not ok');
@ -99,7 +99,7 @@ export const getHistoricalData = async (symbol: string, startDate: string, endDa
interval: '1d',
});
const url = `${API_BASE}/v8/finance/chart/${symbol}${isDev ? encodeURIComponent(`?${params}`) : `?${params}`}`;
const url = `${API_BASE}/v8/finance/chart/${symbol}${!isDev ? encodeURIComponent(`?${params}`) : `?${params}`}`;
const response = await fetch(url);
if (!response.ok) throw new Error('Network response was not ok');