diff --git a/src/routes/most-retail-volume/+page.server.ts b/src/routes/most-retail-volume/+page.server.ts deleted file mode 100644 index 86e7dc20..00000000 --- a/src/routes/most-retail-volume/+page.server.ts +++ /dev/null @@ -1,26 +0,0 @@ -export const load = async ({ locals, setHeaders }) => { - const getMostRetailVolume = async () => { - const { apiKey, apiURL, user } = locals; - - // make the POST request to the endpoint - const response = await fetch(apiURL + "/most-retail-volume", { - method: "GET", - headers: { - "Content-Type": "application/json", - "X-API-KEY": apiKey, - }, - }); - - let output = await response.json(); - - output = user?.tier !== "Pro" ? output?.slice(0, 6) : output; - setHeaders({ "cache-control": "public, max-age=3000" }); - - return output; - }; - - // Make sure to return a promise - return { - getMostRetailVolume: await getMostRetailVolume(), - }; -}; diff --git a/src/routes/most-retail-volume/+page.svelte b/src/routes/most-retail-volume/+page.svelte deleted file mode 100644 index 09fde9e5..00000000 --- a/src/routes/most-retail-volume/+page.svelte +++ /dev/null @@ -1,361 +0,0 @@ - - - - - - - {$numberOfUnreadNotification > 0 ? `(${$numberOfUnreadNotification})` : ""} Most - Retail Investor Volume 路 stocknear - - - - - - - - - - - - - - - - -
- - -
-
-
-
-
-
- -
-
-

- Retail Trader Activity -

-
- - - Find out the Top 100 stocks where retail traders are investing - the most daily. - -
- - - - - -
-
- - {#if isLoaded} -
- - We update on a daily basis where retail investor are trading the most - to never miss out the next hype. Daily sentiments can either be bullish - (strong buying of retail investors) or bearish (more selling) for each - stock. -
- -
-
- - - - - - - - - - - - - - - {#each stockList as item, index} - - - - - - - - - - - - - - {/each} - -
- # - - Symbol - - Name - - Daily Traded - - Volume in % - - Sentiment -
- {index + 1} - - - {item?.symbol} - - - {item?.name?.length > charNumber - ? item?.name?.slice(0, charNumber) + "..." - : item?.name} - - {abbreviateNumber(item?.traded, true)} - - {item?.retailStrength}% - - {item?.sentiment > 0 - ? "Bullish" - : item?.sentiment < 0 - ? "Bearish" - : "Mixed"} -
-
- -
- {:else} -
-
- -
-
- {/if} -
- - -
-
-
-
diff --git a/src/routes/sitemap.xml/+server.ts b/src/routes/sitemap.xml/+server.ts index 0e851ba8..7cee9a5e 100644 --- a/src/routes/sitemap.xml/+server.ts +++ b/src/routes/sitemap.xml/+server.ts @@ -60,12 +60,10 @@ const pages = [ { title: "/list/bitcoin-etfs" }, { title: "/stock-screener" }, { title: "/market-news" }, - { title: "/market-news/crypto" }, { title: "/market-news/general" }, { title: "/earnings-calendar" }, { title: "/economic-calendar" }, { title: "/dividends-calendar" }, - { title: "/stock-splits-calendar" }, { title: "/market-mover/gainers" }, { title: "/market-mover/losers" }, { title: "/market-mover/active" }, diff --git a/src/routes/stock-screener/+page.svelte b/src/routes/stock-screener/+page.svelte index 2e9604cd..87108a11 100644 --- a/src/routes/stock-screener/+page.svelte +++ b/src/routes/stock-screener/+page.svelte @@ -1466,13 +1466,14 @@ } function changeRule(state: string) { - searchTerm = ""; - selectedPopularStrategy = ""; - ruleName = state; - handleAddRule(); - - //const closePopup = document.getElementById("ruleModal"); - //closePopup?.dispatchEvent(new MouseEvent('click')) + if (data?.user?.tier !== "Pro" && state === "score") { + goto("/pricing"); + } else { + searchTerm = ""; + selectedPopularStrategy = ""; + ruleName = state; + handleAddRule(); + } } const handleMessage = (event) => { @@ -1856,10 +1857,7 @@ const handleKeyDown = (event) => { { condition: "over", name: "marketCap", value: "100M" }, ], }, - topAIStocks: { - name: "Top AI Stocks", - rules: [{ condition: "", name: "score", value: "Strong Buy" }], - }, + momentumTAStocks: { name: "Momentum TA Stocks", rules: [ @@ -2217,12 +2215,7 @@ const handleKeyDown = (event) => { > Top Shorted Stocks - popularStrategy("topAIStocks")} - class="cursor-pointer hover:bg-[#27272A]" - > - Top AI Stocks - + popularStrategy("momentumTAStocks")} class="cursor-pointer hover:bg-[#27272A]" @@ -3156,9 +3149,23 @@ const handleKeyDown = (event) => { > {/if} - {row?.label} + + {row?.label} + {#if row?.rule === "score"} + + + + {/if} + {/each} diff --git a/src/routes/stock-splits-calendar/+page.server.ts b/src/routes/stock-splits-calendar/+page.server.ts deleted file mode 100644 index 34f17ac4..00000000 --- a/src/routes/stock-splits-calendar/+page.server.ts +++ /dev/null @@ -1,23 +0,0 @@ -export const load = async ({ locals, setHeaders }) => { - const getStockSplitsCalendar = async () => { - const { apiKey, apiURL } = locals; - // make the POST request to the endpoint - const response = await fetch(apiURL + "/stock-splits-calendar", { - method: "GET", - headers: { - "Content-Type": "application/json", - "X-API-KEY": apiKey, - }, - }); - - const output = await response.json(); - setHeaders({ "cache-control": "public, max-age=3000" }); - - return output; - }; - - // Make sure to return a promise - return { - getStockSplitsCalendar: await getStockSplitsCalendar(), - }; -}; diff --git a/src/routes/stock-splits-calendar/+page.svelte b/src/routes/stock-splits-calendar/+page.svelte deleted file mode 100644 index f67dc950..00000000 --- a/src/routes/stock-splits-calendar/+page.svelte +++ /dev/null @@ -1,593 +0,0 @@ - - - - - - - {$numberOfUnreadNotification > 0 ? `(${$numberOfUnreadNotification})` : ""} Stock - Splits Calendar 路 stocknear - - - - - - - - - - - - - - - - -
- - -
-
-
-
-
-
- -
-
-

- Stock Splits Calendar -

-
- - -
- - - - - -
-
- - -
- -
- -
- - - {#each weekday as day, index} -
- -
- {/each} - -
- - {#each weekday as day, index} - {#if index === selectedWeekday} - {#if day?.length !== 0} -
- - - - - - - - - - - - {#each day as item} - - - - - - - - - - - - - {/each} - -
SymbolCompany NameEPSMarket CapSplit
- - {item?.symbol} - - - {item?.name?.length > 40 - ? item?.name?.slice(0, 40) + "..." - : item?.name} - - {item?.eps !== null ? item?.eps : "-"} - - {item?.marketCap !== null - ? abbreviateNumber(item?.marketCap) - : "-"} - - From {item?.denominator} to {item?.numerator} -
-
- {:else} -
- - No Stock Splits available for the day. -
- {/if} - {/if} - {/each} -
-
-
- - -
-
-
-