diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 9ad2927d..5df93209 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -440,38 +440,7 @@ $: { -
- - - - - - - - - - -
- - -
- -
- - -
-
-
- -
- +
@@ -544,21 +513,19 @@ $: { - - + +
-
- - - - - - - - -
- Options Flow - 0DTE Flow -
- - - - - -
-
@@ -899,17 +843,15 @@ $: {
-
= 0 && daysDiff <= 1; case "1 week": diff --git a/src/routes/options-zero-dte/+page.svelte b/src/routes/options-zero-dte/+page.svelte deleted file mode 100644 index bd148456..00000000 --- a/src/routes/options-zero-dte/+page.svelte +++ /dev/null @@ -1,1085 +0,0 @@ - - - - - - - - - - - - {$numberOfUnreadNotification > 0 ? `(${$numberOfUnreadNotification})` : ''} Options Flow Feed · stocknear - - - - - - - - - - - - - - - - - - - -
- - -
- - - {#if !$isOpen} -
- Live flow of {nyseDate} (NYSE Time) -
- {/if} - - -
- - -
- - - - - Paused - - - - - - -
- - Live Flow - -
- - -
- - -
-
-
- - {#if notFound === true} - - No Results Found - - {/if} -
- - - - -
-
- - -
- - - - - - {#if isLoaded } - - -
-
- -
-
- Flow Sentiment - {flowSentiment} -
- -
- - -
-
- Put/Call - - {putCallRatio?.toFixed(3)} - -
- -
- - - - - - - - - -
- {putCallRatio?.toFixed(2)} -
-
- - -
- - -
-
- Call Flow - - {new Intl.NumberFormat("en", { - minimumFractionDigits: 0, - maximumFractionDigits: 0 - }).format(displayCallVolume)} - -
- -
- - - - - - - - - -
- {callPercentage}% -
-
- -
- - -
-
- Put Flow - - {new Intl.NumberFormat("en", { - minimumFractionDigits: 0, - maximumFractionDigits: 0 - }).format(displayPutVolume)} - -
- -
- - - - - - - - - -
- {putPercentage}% -
-
- -
- - - {#if showMore} - -
-
- Most Traded Option - - - {mostFrequentTicker?.ticker} - - {new Intl.NumberFormat("en", { - minimumFractionDigits: 0, - maximumFractionDigits: 0 - }).format(mostFrequentTicker?.count)} - -
-
- - - -
-
- Highest Premium - - - {highestPremiumTicker?.ticker} - - ${new Intl.NumberFormat("en", { - minimumFractionDigits: 0, - maximumFractionDigits: 0 - }).format(highestPremiumTicker?.costBasis)} - -
-
- - - -
-
- Highest Volume - - - {highestVolumeTicker?.ticker} - - {new Intl.NumberFormat("en", { - minimumFractionDigits: 0, - maximumFractionDigits: 0 - }).format(highestVolumeTicker?.volume)} - -
-
- - - -
-
- Highest Open Interest - - - {highestOpenInterestTicker?.ticker} - - {new Intl.NumberFormat("en", { - minimumFractionDigits: 0, - maximumFractionDigits: 0 - }).format(highestOpenInterestTicker?.openInterest)} - -
-
- - - {/if} - -
-
- - - - - - - - - -
- -
-
-
- -
-
Time
-
Symbol
-
Strike
-
C/P
-
Sent.
-
Spot
-
Price
-
Prem.
-
Type
-
Vol
-
OI
-
- -
handleViewData(rawData[index])} slot="item" let:index let:style {style} class="tr cursor-pointer"> - - -
- {formatTime(rawData[index]?.time)} -
- -
assetSelector(rawData[index]?.ticker, rawData[index]?.assetType)} style="justify-content: center;" class="td text-sm sm:hover:text-white text-blue-400 font-normal"> - {rawData[index]?.ticker} -
- -
- {rawData[index]?.strike_price} -
- -
- {rawData[index]?.put_call} -
- -
- {rawData[index]?.sentiment} -
- -
- {rawData[index]?.underlying_price} -
- -
- {rawData[index]?.price} -
- -
- {abbreviateNumber(rawData[index]?.cost_basis)} -
- -
- {rawData[index]?.type} -
- -
- {new Intl.NumberFormat("en", { - minimumFractionDigits: 0, - maximumFractionDigits: 0 - }).format(rawData[index]?.volume)} -
- -
- {new Intl.NumberFormat("en", { - minimumFractionDigits: 0, - maximumFractionDigits: 0 - }).format(rawData[index]?.open_interest)} -
- -
-
-
-
- - - -
- -
- - - - - {:else} -
-
- -
-
- - {/if} -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/routes/options-zero-dte/+page.ts b/src/routes/options-zero-dte/+page.ts deleted file mode 100644 index 9371f0d5..00000000 --- a/src/routes/options-zero-dte/+page.ts +++ /dev/null @@ -1,43 +0,0 @@ -import {isOpen} from '$lib/store'; - - -const checkMarketHour = async () => { - const holidays = ['2024-01-01', '2024-01-15','2024-02-19','2024-03-29','2024-05-27','2024-06-19','2024-07-04','2024-09-02','2024-11-28','2024-12-25']; - const currentDate = new Date().toISOString().split('T')[0]; - - // Get the current time in the ET time zone - const etTimeZone = 'America/New_York'; - const currentTime = new Date().toLocaleString('en-US', { timeZone: etTimeZone }); - - // Determine if the NYSE is currently open or closed - const currentHour = new Date(currentTime).getHours(); - const isWeekendValue = new Date(currentTime).getDay() === 6 || new Date(currentTime).getDay() === 0; - const isBeforeMarketOpenValue = currentHour < 9 || (currentHour === 9 && new Date(currentTime).getMinutes() < 30); - const isAfterMarketCloseValue = currentHour >= 16; - - isOpen.set(!(isWeekendValue || isBeforeMarketOpenValue || isAfterMarketCloseValue || holidays?.includes(currentDate))); -} - - -export const load = async ({parent}) => { - await checkMarketHour(); - const { apiURL, apiKey } = await parent(); - - const getOptionsZeroDTE = async () => { - // make the POST request to the endpoint - const response = await fetch(apiURL + '/options-zero-dte', { - method: 'GET', - headers: { - "Content-Type": "application/json", "X-API-KEY": apiKey - }, - }); - const output = await response.json(); - - return output; - }; - - // Make sure to return a promise - return { - getOptionsZeroDTE: await getOptionsZeroDTE() - }; -}; \ No newline at end of file diff --git a/src/routes/sitemap.xml/+server.ts b/src/routes/sitemap.xml/+server.ts index 7de5548c..a33c698b 100644 --- a/src/routes/sitemap.xml/+server.ts +++ b/src/routes/sitemap.xml/+server.ts @@ -34,7 +34,6 @@ const pages = [ //{title: "/portfolio"}, { title: "/newsletter" }, { title: "/options-flow" }, - { title: "/options-zero-dte" }, { title: "/ipos" }, { title: "/list" }, { title: "/list/dividend-kings" },