Congress Trading

{#if senateTradingList?.length !== 0}
Buy/Sell {buySellRatio?.toFixed(3)}
= 0 ? 100 - (buySellRatio * 100)?.toFixed(2) : 0} >
{buySellRatio?.toFixed(2)}
Dem/Rep {partyRatio?.toFixed(3)}
= 0 ? 100 - (partyRatio * 100)?.toFixed(2) : 0} >
{partyRatio?.toFixed(2)}
{#each senateTradingList as item, index} {/each}
{item?.party} {new Date(item?.transactionDate)?.toLocaleString( "en-US", { month: "short", day: "numeric", year: "numeric", daySuffix: "2-digit", }, )} {item?.amount} {#if item?.type === "Bought"} Bought {:else if item?.type === "Sold"} Sold {:else if item?.type === "Exchange"} Exchange {/if}
{#if rawData?.length >= 20} {/if} {:else} {/if}