diff --git a/src/lib/components/Footer.svelte b/src/lib/components/Footer.svelte index 8ca3f66a..6768f532 100644 --- a/src/lib/components/Footer.svelte +++ b/src/lib/components/Footer.svelte @@ -92,6 +92,42 @@ --> +
+

Sections

+ +
+

Services

-

Legal

+

Website

@@ -165,13 +202,27 @@ Contact Us +
  • Terms of Use +
  • +
  • + Privacy Policy +
  • +
  • + Imprint - Sitemap -
  • + + + + + + + + + + + +
    +
    +
    + Wallpaper +
    +
    +
    +

    + {article?.title} +

    +
    +
    + Published {new Date(article?.created)?.toLocaleString("en-US", { + month: "short", + day: "numeric", + year: "numeric", + daySuffix: "2-digit", + })} +
    +
    +
    + +
    +
    + {@html article?.description} +
    +
    +
    + +
    +
    + {#if !data?.user} +
    +
    +

    + Stay informed in just 2 minutes +

    +

    + Get a daily email with the top market-moving news in bullet + point format, for free. +

    + +
    +
    + {/if} + +
    +

    Watchlist

    +

    + Build your watchlist to keep track of their performance +

    +
    +
    + +
    +

    Top Stocks

    +

    + Get the latest Top Wall Street Analyst Ratings +

    +
    +
    +
    +
    +
    +
    +
    +
    diff --git a/src/routes/etf/+page.server.ts b/src/routes/etf/+page.server.ts index 41fad682..c09c6866 100644 --- a/src/routes/etf/+page.server.ts +++ b/src/routes/etf/+page.server.ts @@ -1,13 +1,15 @@ export const load = async ({ locals }) => { - const getETFList = async () => { + const getStockList = async () => { const { apiKey, apiURL } = locals; + const postData = {'filterList': 'all-etf-tickers'} // make the POST request to the endpoint - const response = await fetch(apiURL + "/all-etf-tickers", { - method: "GET", + const response = await fetch(apiURL + "/list-category", { + method: "POST", headers: { "Content-Type": "application/json", "X-API-KEY": apiKey, }, + body: JSON.stringify(postData) }); const output = await response.json(); @@ -17,6 +19,6 @@ export const load = async ({ locals }) => { // Make sure to return a promise return { - getETFList: await getETFList(), + getStockList: await getStockList(), }; }; diff --git a/src/routes/etf/+page.svelte b/src/routes/etf/+page.svelte index 2272436f..89431e29 100644 --- a/src/routes/etf/+page.svelte +++ b/src/routes/etf/+page.svelte @@ -1,34 +1,12 @@ @@ -36,11 +14,11 @@ {$numberOfUnreadNotification > 0 ? `(${$numberOfUnreadNotification})` : ""} List - of All ETF Ticker Symbols · Stocknear + of All Stock ETF Symbols · Stocknear @@ -50,7 +28,7 @@ /> @@ -63,15 +41,15 @@ />
    -