-
+
+
+
+
+
@@ -165,7 +160,7 @@ $: {
- {#each symbolList as item,index}
+ {#each stockList as item,index}
goto("/etf/"+item?.symbol)} class="sm:hover:bg-[#245073] sm:hover:bg-opacity-[0.2] odd:bg-[#27272A] border-b-[#09090B] shake-ticker cursor-pointer">
|
@@ -201,12 +196,66 @@ $: {
|
-
-
-
+
+
+
+
+
+
+
+
+
+
-
-
\ No newline at end of file
+
+
+
\ No newline at end of file
diff --git a/src/routes/etf/+page.ts b/src/routes/etf/+page.ts
deleted file mode 100644
index 3eebe692..00000000
--- a/src/routes/etf/+page.ts
+++ /dev/null
@@ -1,35 +0,0 @@
-import { getCache, setCache } from "$lib/store";
-
-export const load = async ({ parent }) => {
- const getETFList = async () => {
- let output;
-
- // Get cached data for the specific tickerID
- const cachedData = getCache("", "getETFList");
- if (cachedData) {
- output = cachedData;
- } else {
- const { apiKey, apiURL } = await parent();
- // make the POST request to the endpoint
- const response = await fetch(apiURL + "/all-etf-tickers", {
- method: "GET",
- headers: {
- "Content-Type": "application/json",
- "X-API-KEY": apiKey,
- },
- });
-
- output = await response.json();
-
- // Cache the data for this specific tickerID with a specific name 'getETFList'
- setCache("", output, "getETFList");
- }
-
- return output;
- };
-
- // Make sure to return a promise
- return {
- getETFList: await getETFList(),
- };
-};
diff --git a/src/routes/most-shorted-stocks/+page.svelte b/src/routes/most-shorted-stocks/+page.svelte
index 1fc7b6e2..91e218b8 100644
--- a/src/routes/most-shorted-stocks/+page.svelte
+++ b/src/routes/most-shorted-stocks/+page.svelte
@@ -1,7 +1,6 @@
@@ -77,19 +68,25 @@ $: {
-
-
-
+
+
+
+
+
+
+
+
-
-
+
+
+
+
+
@@ -169,7 +166,7 @@ $: {
- {#each symbolList as item,index}
+ {#each stockList as item,index}
goto("/stocks/"+item?.symbol)} class="sm:hover:bg-[#245073] sm:hover:bg-opacity-[0.2] odd:bg-[#27272A] border-b-[#09090B] shake-ticker cursor-pointer">
|
@@ -205,12 +202,64 @@ $: {
-
+
+
+
+
+
+
-
+
+
+
-
-
-
\ No newline at end of file
+
+
\ No newline at end of file
|