mirror of
https://github.com/Tomato6966/investment-portfolio-simulator.git
synced 2025-04-11 08:00:34 +02:00
add note about proxy server
This commit is contained in:
parent
434d07b421
commit
59734a2b27
1 changed files with 2 additions and 2 deletions
|
@ -53,7 +53,7 @@ export const searchAssets = async (query: string): Promise<Asset[]> => {
|
||||||
type: 'equity,etf',
|
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);
|
const response = await fetch(url);
|
||||||
if (!response.ok) throw new Error('Network response was not ok');
|
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',
|
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);
|
const response = await fetch(url);
|
||||||
if (!response.ok) throw new Error('Network response was not ok');
|
if (!response.ok) throw new Error('Network response was not ok');
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue