bugfixing option price
This commit is contained in:
parent
84ed8f433d
commit
da76570d08
@ -62,6 +62,16 @@
|
|||||||
description="Stocknear has everything you need to analyze stocks with help of AI, including detailed financial data, statistics, news and charts."
|
description="Stocknear has everything you need to analyze stocks with help of AI, including detailed financial data, statistics, news and charts."
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
{@html `<script type="application/ld+json">
|
||||||
|
{
|
||||||
|
"@context": "https://schema.org",
|
||||||
|
"@type": "Organization",
|
||||||
|
"url": "https://stocknear.com",
|
||||||
|
"name": "Stocknear.com",
|
||||||
|
"description": "Stocknear has everything you need to analyze stocks with help of AI, including detailed financial data, statistics, news and charts."
|
||||||
|
}
|
||||||
|
</script>`}
|
||||||
|
|
||||||
<div
|
<div
|
||||||
class="w-full sm:max-w-[1400px] overflow-hidden m-auto min-h-screen bg-white dark:bg-default text-muted dark:text-white mb-16"
|
class="w-full sm:max-w-[1400px] overflow-hidden m-auto min-h-screen bg-white dark:bg-default text-muted dark:text-white mb-16"
|
||||||
>
|
>
|
||||||
@ -101,7 +111,7 @@
|
|||||||
{#if data?.user}
|
{#if data?.user}
|
||||||
<Feedback {data} />
|
<Feedback {data} />
|
||||||
{/if}
|
{/if}
|
||||||
|
<!--
|
||||||
<div
|
<div
|
||||||
class="text-center mb-10 relative w-fit flex justify-center m-auto text-white"
|
class="text-center mb-10 relative w-fit flex justify-center m-auto text-white"
|
||||||
>
|
>
|
||||||
@ -122,6 +132,7 @@
|
|||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
-->
|
||||||
|
|
||||||
<h1
|
<h1
|
||||||
class="hidden sm:block text-3xl lg:text-4xl text-muted dark:text-white font-bold text-center mb-10 relative w-fit flex justify-center m-auto"
|
class="hidden sm:block text-3xl lg:text-4xl text-muted dark:text-white font-bold text-center mb-10 relative w-fit flex justify-center m-auto"
|
||||||
|
|||||||
@ -417,7 +417,9 @@
|
|||||||
);
|
);
|
||||||
|
|
||||||
const output = await getContractHistory(optionSymbol);
|
const output = await getContractHistory(optionSymbol);
|
||||||
selectedOptionPrice = output?.history?.at(-1)?.mark || 0;
|
selectedOptionPrice = output?.history?.at(-1)?.mark
|
||||||
|
? output?.history?.at(-1)?.mark
|
||||||
|
: output?.history?.at(-1)?.close || 0;
|
||||||
item.optionPrice = selectedOptionPrice;
|
item.optionPrice = selectedOptionPrice;
|
||||||
item.optionSymbol = optionSymbol;
|
item.optionSymbol = optionSymbol;
|
||||||
item.optionType = selectedOptionType;
|
item.optionType = selectedOptionType;
|
||||||
@ -1258,7 +1260,9 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="flex items-baseline">
|
<div class="flex items-baseline">
|
||||||
<span class="text-lg font-semibold"
|
<span class="text-lg font-semibold"
|
||||||
>${currentStockPrice}</span
|
>${currentStockPrice
|
||||||
|
? currentStockPrice?.toFixed(2)
|
||||||
|
: "n/a"}</span
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user