ui fixes
This commit is contained in:
parent
6b13d213a7
commit
8698ee0c34
@ -453,14 +453,16 @@
|
||||
<td
|
||||
class="text-white text-sm sm:text-[1rem] text-end whitespace-nowrap"
|
||||
>
|
||||
{#if item?.putCallRatio <= 1}
|
||||
{#if item?.putCallRatio <= 1 && item?.putCallRatio !== null}
|
||||
<span class="text-[#00FC50]"
|
||||
>{item?.putCallRatio?.toFixed(2)}</span
|
||||
>
|
||||
{:else}
|
||||
{:else if item?.putCallRatio >= 0 && item?.putCallRatio !== null}
|
||||
<span class="text-[#FF2F1F]"
|
||||
>{item?.putCallRatio?.toFixed(2)}</span
|
||||
>
|
||||
{:else}
|
||||
n/a
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@ -18,7 +18,9 @@ export const load = async ({ locals, params }) => {
|
||||
},
|
||||
body: JSON.stringify(postData),
|
||||
});
|
||||
const output = await response.json();
|
||||
let output = await response.json();
|
||||
output = output?.filter(item => (item?.call_dex + item?.put_dex) !== 0);
|
||||
|
||||
|
||||
return output;
|
||||
};
|
||||
|
||||
@ -18,7 +18,10 @@ export const load = async ({ locals, params }) => {
|
||||
},
|
||||
body: JSON.stringify(postData),
|
||||
});
|
||||
const output = await response.json();
|
||||
let output = await response.json();
|
||||
|
||||
output = output?.filter(item => (item?.call_dex + item?.put_dex) !== 0);
|
||||
|
||||
|
||||
return output;
|
||||
};
|
||||
|
||||
@ -18,7 +18,7 @@ export const load = async ({ locals, params }) => {
|
||||
},
|
||||
body: JSON.stringify(postData),
|
||||
});
|
||||
const output = await response.json();
|
||||
let output = await response.json();
|
||||
|
||||
return output;
|
||||
};
|
||||
|
||||
@ -18,7 +18,10 @@ export const load = async ({ locals, params }) => {
|
||||
},
|
||||
body: JSON.stringify(postData),
|
||||
});
|
||||
const output = await response.json();
|
||||
let output = await response.json();
|
||||
|
||||
output = output?.filter(item => (item?.call_gex + item?.put_gex) !== 0);
|
||||
|
||||
|
||||
return output;
|
||||
};
|
||||
|
||||
@ -18,7 +18,9 @@ export const load = async ({ locals, params }) => {
|
||||
},
|
||||
body: JSON.stringify(postData),
|
||||
});
|
||||
const output = await response.json();
|
||||
let output = await response.json();
|
||||
|
||||
output = output?.filter(item => (item?.call_gex + item?.put_gex) !== 0);
|
||||
|
||||
return output;
|
||||
};
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import { etfTicker, displayCompanyName } from "$lib/store";
|
||||
import { indexTicker, displayCompanyName } from "$lib/store";
|
||||
|
||||
import Infobox from "$lib/components/Infobox.svelte";
|
||||
import SEO from "$lib/components/SEO.svelte";
|
||||
@ -11,7 +11,7 @@
|
||||
|
||||
<SEO
|
||||
title="Gamma Exposure By Strike Price"
|
||||
description={`Analyze gamma exposure for ${$displayCompanyName} (${$etfTicker}) by strike price. Access historical volume, open interest trends, and save options contracts for detailed analysis and insights.`}
|
||||
description={`Analyze gamma exposure for ${$displayCompanyName} (${$indexTicker}) by strike price. Access historical volume, open interest trends, and save options contracts for detailed analysis and insights.`}
|
||||
/>
|
||||
|
||||
<section
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user