+
+
+ {#await import('$lib/components/SentimentAnalysis.svelte') then {default: Comp}}
+
+ {/await}
- {/if}
+
{#if VaR}
diff --git a/src/routes/stocks/[tickerID]/+layout.server.ts b/src/routes/stocks/[tickerID]/+layout.server.ts
index 1a9c6848..ba34bb3e 100644
--- a/src/routes/stocks/[tickerID]/+layout.server.ts
+++ b/src/routes/stocks/[tickerID]/+layout.server.ts
@@ -148,7 +148,6 @@ export const load = async ({ params, locals, cookies}) => {
fetchData(apiURL,'/bull-bear-say',params.tickerID),
fetchData(apiURL,'/wiim',params.tickerID),
fetchData(apiURL,'/top-etf-ticker-holder',params.tickerID),
- fetchData(apiURL,'/sentiment-analysis',params.tickerID),
fetchData(apiURL,'/fundamental-predictor-analysis',params.tickerID),
fetchData(apiURL,'/value-at-risk',params.tickerID),
fetchData(apiURL,'/historical-price',params.tickerID),
@@ -172,7 +171,6 @@ export const load = async ({ params, locals, cookies}) => {
getBullBearSay,
getWhyPriceMoved,
getTopETFHolder,
- getSentimentAnalysis,
getFundamentalAnalysis,
getVaR,
getHistoricalPrice,
@@ -202,7 +200,6 @@ export const load = async ({ params, locals, cookies}) => {
getBullBearSay,
getWhyPriceMoved,
getTopETFHolder,
- getSentimentAnalysis,
getFundamentalAnalysis,
getVaR,
getHistoricalPrice,
diff --git a/src/routes/stocks/[tickerID]/+page.svelte b/src/routes/stocks/[tickerID]/+page.svelte
index 0899248a..c8940d40 100644
--- a/src/routes/stocks/[tickerID]/+page.svelte
+++ b/src/routes/stocks/[tickerID]/+page.svelte
@@ -41,7 +41,6 @@
let marketMoods = {}
let taRating = {};
let varDict = {};
- let sentimentList = []
let fundamentalAnalysisDict = {};
let communitySentiment = {};
@@ -65,7 +64,6 @@
let Correlation;
let OptionsData;
let WIIM;
- let SentimentAnalysis;
let FundamentalAnalysis;
let VaR;
@@ -81,7 +79,6 @@
}
*/
WIIM = (await import('$lib/components/WIIM.svelte')).default;
- SentimentAnalysis = (await import('$lib/components/SentimentAnalysis.svelte')).default;
FundamentalAnalysis = (await import('$lib/components/FundamentalAnalysis.svelte')).default;
VaR = (await import('$lib/components/VaR.svelte')).default;
@@ -627,7 +624,6 @@ function changeChartType() {
marketMoods = {};
taRating = {};
varDict={}
- sentimentList = [];
fundamentalAnalysisDict = {};
communitySentiment = {}
output = null;
@@ -641,7 +637,6 @@ function changeChartType() {
previousClose = data?.getStockQuote?.previousClose;
marketMoods = data?.getBullBearSay;
taRating = data?.getStockTARating;
- sentimentList = data?.getSentimentAnalysis;
varDict = data?.getVaR;
fundamentalAnalysisDict = data?.getFundamentalAnalysis;
communitySentiment = data?.getCommunitySentiment;
@@ -1225,11 +1220,13 @@ function changeChartType() {
{/if}
- {#if SentimentAnalysis}
-
-
-
- {/if}
+
+
+ {#await import('$lib/components/SentimentAnalysis.svelte') then {default: Comp}}
+
+ {/await}
+
+
{#if VaR}