diff --git a/src/routes/crypto/[tickerID]/+layout.svelte b/src/routes/crypto/[tickerID]/+layout.svelte index e50e7fd4..cbfa1410 100644 --- a/src/routes/crypto/[tickerID]/+layout.svelte +++ b/src/routes/crypto/[tickerID]/+layout.svelte @@ -305,7 +305,7 @@ onMount(async () => { //const endTime = currentDateTime.set({ hour: 22, minute: 0 }); // Check if it's not a weekend and the current time is within the specified range - await websocketRealtimeData() + //await websocketRealtimeData() // Add a scroll event listener diff --git a/src/routes/etf/[tickerID]/+layout.svelte b/src/routes/etf/[tickerID]/+layout.svelte index cdcd0972..11693591 100644 --- a/src/routes/etf/[tickerID]/+layout.svelte +++ b/src/routes/etf/[tickerID]/+layout.svelte @@ -314,11 +314,12 @@ async function fetchPortfolio() //const endTime = currentDateTime.set({ hour: 22, minute: 0 }); // Check if it's not a weekend and the current time is within the specified range - + /* if ($isOpen) //&& currentDateTime > startTime && currentDateTime < endTime { await websocketRealtimeData() } + */ // Add a scroll event listener window.addEventListener('scroll', handleScroll); diff --git a/src/routes/options-flow/+page.svelte b/src/routes/options-flow/+page.svelte index 6cc001a3..9ac73db4 100644 --- a/src/routes/options-flow/+page.svelte +++ b/src/routes/options-flow/+page.svelte @@ -463,10 +463,11 @@ function daysLeft(targetDate) { }); isLoaded = true; - + /* if ($isOpen) { await websocketRealtimeData(); } + */ diff --git a/src/routes/stocks/[tickerID]/+layout.svelte b/src/routes/stocks/[tickerID]/+layout.svelte index 9b4fa786..5a196a7c 100644 --- a/src/routes/stocks/[tickerID]/+layout.svelte +++ b/src/routes/stocks/[tickerID]/+layout.svelte @@ -226,11 +226,12 @@ async function fetchPortfolio() //SellTrade = (await import('$lib/components/SellTrade.svelte')).default; PriceAlert = (await import("$lib/components/PriceAlert.svelte")).default; } - + /* if ($isOpen) { //&& currentDateTime > startTime && currentDateTime < endTime await websocketRealtimeData(); - } + }*/ + }); afterUpdate(async () => {