From e5085944a76499323fff9caac24f6ab243afe943 Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Sat, 24 Aug 2024 17:26:13 +0200 Subject: [PATCH] switch shorted stock to top sector --- src/routes/home/+page.svelte | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/src/routes/home/+page.svelte b/src/routes/home/+page.svelte index 37d036ed..9374b776 100644 --- a/src/routes/home/+page.svelte +++ b/src/routes/home/+page.svelte @@ -247,7 +247,7 @@ onMount( async() => { - Winner + Top Stock @@ -268,7 +268,7 @@ onMount( async() => { - Loser + Worst Stock @@ -289,14 +289,22 @@ onMount( async() => { - Most Shorted + Top Sector - {quickInfo?.shorted?.symbol} + + {quickInfo?.topSector?.sector?.length > 15 ? quickInfo?.topSector?.sector?.slice(0,15) +'...' : quickInfo?.topSector?.sector} +

- Short: {quickInfo?.shorted?.shortOutStandingPercent?.toFixed(2)}% + {#if quickInfo?.topSector?.changesPercentage >=0} + + +{abbreviateNumber(quickInfo?.topSector?.changesPercentage?.toFixed(2))}% + {:else} + + {abbreviateNumber(quickInfo?.topSector?.changesPercentage?.toFixed(2))}% + {/if}