+
+
+ diff --git a/src/lib/components/Options/OpenInterestByExpiry.svelte b/src/lib/components/Options/OpenInterestByExpiry.svelte new file mode 100644 index 00000000..850448ae --- /dev/null +++ b/src/lib/components/Options/OpenInterestByExpiry.svelte @@ -0,0 +1,347 @@ + + +
| + {new Date(item?.expiry).toLocaleDateString("en-US", { + month: "short", // Abbreviated month (e.g., Jan) + day: "numeric", // Numeric day (e.g., 10) + year: "numeric", // Full year (e.g., 2025) + })} + | ++ {@html abbreviateNumberWithColor( + item?.call_oi?.toFixed(2), + false, + true, + )} + | ++ {@html abbreviateNumberWithColor( + item?.put_oi?.toFixed(2), + false, + true, + )} + | + ++ {#if item?.put_call_ratio <= 1 && item?.put_call_ratio !== null} + {item?.put_call_ratio?.toFixed(2)} + {:else if item?.put_call_ratio > 1 && item?.put_call_ratio !== null} + {item?.put_call_ratio?.toFixed(2)} + {:else} + n/a + {/if} + | +
| + {item?.strike?.toFixed(2)} + | ++ {@html abbreviateNumberWithColor( + item?.call_oi?.toFixed(2), + false, + true, + )} + | ++ {@html abbreviateNumberWithColor( + item?.put_oi?.toFixed(2), + false, + true, + )} + | + ++ {#if item?.put_call_ratio <= 1 && item?.put_call_ratio !== null} + {item?.put_call_ratio?.toFixed(2)} + {:else if item?.put_call_ratio > 1 && item?.put_call_ratio !== null} + {item?.put_call_ratio?.toFixed(2)} + {:else} + n/a + {/if} + | +