diff --git a/src/lib/components/Table/Table.svelte b/src/lib/components/Table/Table.svelte index 93f00961..f9945da3 100644 --- a/src/lib/components/Table/Table.svelte +++ b/src/lib/components/Table/Table.svelte @@ -158,6 +158,7 @@ rule: "topAnalystUpside", type: "percentSign", }, + { name: "Change OI", rule: "changeOI", type: "decimal" }, ]; allRows = [...allRows, ...specificRows]; diff --git a/src/routes/list/+layout.svelte b/src/routes/list/+layout.svelte index bffb7e66..f79792cd 100644 --- a/src/routes/list/+layout.svelte +++ b/src/routes/list/+layout.svelte @@ -206,6 +206,10 @@ title: "Most Shorted Stocks", link: "/list/most-shorted-stocks", }, + { + title: "Hottest Options Contracts", + link: "/list/hottest-contracts", + }, ]; navigation = [...navigationIndustry, ...navigation]; diff --git a/src/routes/list/+page.svelte b/src/routes/list/+page.svelte index 6c67854b..07a619a5 100644 --- a/src/routes/list/+page.svelte +++ b/src/routes/list/+page.svelte @@ -30,7 +30,13 @@
  • U.S. Companies With The Most Fail-to-Deliver SharesU.S. Companies With The Most FTD Shares +
  • +
  • + U.S. Companies with Highest OI Change
  • @@ -184,6 +190,7 @@ href="/list/overbought-stocks/">Overbought Stocks +
  • All REITs { + + const getStocks = async () => { + const { apiKey, apiURL } = locals; + const postData = { filterList: 'hottest-contracts' }; + + 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(); + setHeaders({ "cache-control": "public, max-age=60*5" }); + + return output; + }; + + // Make sure to return a promise + return { + getStocks: await getStocks(), + }; +}; diff --git a/src/routes/list/hottest-contracts/+page.svelte b/src/routes/list/hottest-contracts/+page.svelte new file mode 100644 index 00000000..237f4dd2 --- /dev/null +++ b/src/routes/list/hottest-contracts/+page.svelte @@ -0,0 +1,34 @@ + + +
    + + + + +