diff --git a/src/routes/etf/[tickerID]/options/+layout.svelte b/src/routes/etf/[tickerID]/options/+layout.svelte index a86a1e93..d20ae0cb 100644 --- a/src/routes/etf/[tickerID]/options/+layout.svelte +++ b/src/routes/etf/[tickerID]/options/+layout.svelte @@ -15,10 +15,10 @@ if (state !== "overview" && subSectionMap[state]) { displaySubSection = state; - //goto(`/etf/${$etfTicker}${subSectionMap[state]}`); + //goto(`/stocks/${$etfTicker}${subSectionMap[state]}`); } else { displaySubSection = state; - //goto(`/etf/${$etfTicker}/statistics`); + //goto(`/stocks/${$etfTicker}/statistics`); } } @@ -64,7 +64,7 @@ changeSubSection("hottest-contracts")} class="p-2 px-5 cursor-pointer {displaySubSection === 'hottest-contracts' @@ -135,7 +135,7 @@ - Build your Stock Screener to find profitable etf. + Build your Stock Screener to find profitable stocks. diff --git a/src/routes/etf/[tickerID]/options/hottest-contracts/+page.server.ts b/src/routes/etf/[tickerID]/options/hottest-contracts/+page.server.ts index 59e5fb74..2daec6b9 100644 --- a/src/routes/etf/[tickerID]/options/hottest-contracts/+page.server.ts +++ b/src/routes/etf/[tickerID]/options/hottest-contracts/+page.server.ts @@ -18,7 +18,8 @@ export const load = async ({ locals, params }) => { }); let output = await response.json(); - output = user?.tier !== "Pro" ? output?.slice(0, 3) : output; + output.volume = user?.tier !== "Pro" ? output?.volume?.slice(0, 3) : output?.volume; + output.openInterest = user?.tier !== "Pro" ? output?.openInterest?.slice(0, 3) : output?.openInterest; return output; }; diff --git a/src/routes/etf/[tickerID]/options/hottest-contracts/+page.svelte b/src/routes/etf/[tickerID]/options/hottest-contracts/+page.svelte index d3c95f6e..773608c7 100644 --- a/src/routes/etf/[tickerID]/options/hottest-contracts/+page.svelte +++ b/src/routes/etf/[tickerID]/options/hottest-contracts/+page.svelte @@ -1,11 +1,85 @@
- {#if rawData?.length > 0} + {#if rawDataVolume?.length > 0}

- Hottest Contracts (Highest OI) + Hottest Contracts (Highest Volume)

+ + {#each volumeList as item, index} + + + + + + + + + + + + {/each} + +
+ + {item?.option_type === "C" ? "Call" : "Put"} + + + + {item?.dte} + + {item?.last_price} + + {item?.low_price}-{item?.high_price} + + {item?.volume?.toLocaleString("en-US")} + + {item?.open_interest?.toLocaleString("en-US")} + + {#if item?.open_interest_change >= 0} + +{item?.open_interest_change?.toLocaleString( + "en-US", + )} + {:else} + {item?.open_interest_change?.toLocaleString( + "en-US", + )} + {/if} + + + +
+ +
+ +
+ + +
+ + +
+
+
+
+ +
+
+
+ Bid Vol: {@html abbreviateNumberWithColor( + item?.bid_volume, + false, + true, + )} +
+
+ Mid Vol: {@html abbreviateNumberWithColor( + item?.mid_volume, + false, + true, + )} +
+
+ Ask Vol: {@html abbreviateNumberWithColor( + item?.ask_volume, + false, + true, + )} +
+
+
+
+
+
+ {@html abbreviateNumberWithColor( + item?.total_premium, + false, + true, + )} +
+
+ +

+ Highest OI Contracts +

+
+ + + + {#each openInterestList as item, index}
- {item?.strike_price} {item?.option_type === "C" ? "Call" : "Put"} - {" " + item?.date_expiration} + + + + + + + +