- Historical Option Data
+
+ {activeIdx === 0 ? 'Historical Option Data' : 'Option Chain Data'}
-
-
+
{#if optionList?.length !== 0}
+
+ {#each tabs as item, i}
+
+ {/each}
+
+
+ {#if activeIdx === 1}
+
+
+
+ {/if}
-
-
-
+
-
+ {#if activeIdx === 0}
@@ -680,7 +667,6 @@ $: {
{#each (data?.user?.tier === 'Pro' ? optionList : optionList?.slice(0,3)) as item, index}
handleViewData(item?.history)} class="cursor-pointer sm:hover:bg-[#245073] sm:hover:bg-opacity-[0.2] odd:bg-[#27272A] border-b-[#09090B] {index+1 === optionList?.slice(0,3)?.length && data?.user?.tier !== 'Pro' ? 'opacity-[0.1]' : ''}">
-
|
{formatDate(item?.date)}
|
@@ -757,6 +743,63 @@ $: {
+ {:else}
+
+
+
+ | Call Prem |
+ Call OI |
+ Call Volume |
+ Strike Price |
+ Put Volume |
+ Put OI |
+ Put Prem |
+
+
+
+ {#each (data?.user?.tier === 'Pro' ? optionChainList : optionChainList?.slice(0,3)) as item, index}
+
+
+ |
+ {abbreviateNumber(item?.total_premium_call,true)}
+ |
+
+
+ {item?.total_open_interest_call}
+ |
+
+
+ {item?.total_volume_call}
+ |
+
+
+
+ {item?.strike_price}
+
+ |
+
+
+ {item?.total_volume_put}
+ |
+
+
+ {item?.total_open_interest_put}
+ |
+
+
+
+ {abbreviateNumber(item?.total_premium_put,true)}
+ |
+
+
+
+
+
+ {/each}
+
+
+
+ {/if}
@@ -913,88 +956,6 @@ $: {
-
-
-
-