{formatString(name)}

{politicianParty ?? "n/a"} / {politicianCongress} {#if politicianDistrict !== undefined && politicianDistrict?.length !== 0} / {politicianDistrict} {/if}

${new Intl.NumberFormat("en", { minimumFractionDigits: 0, maximumFractionDigits: 0, }).format(totalAmountTraded)}
Total Amount
{numOfTrades?.toLocaleString("en-US")}
Transaction
{lastTradedDate?.length !== undefined ? new Date(lastTradedDate)?.toLocaleString("en-US", { month: "short", day: "numeric", year: "numeric", daySuffix: "2-digit", }) : "n/a"}
Last Transaction
{buySellRatio?.toFixed(2)}
Buy/Sell
{#if mainSectors?.length !== 0}
Top Industries:
{#each mainIndustries as item} {item} {/each}
{/if}

Trading History

{#each tableData as item} {#if checkedSymbol === (item?.ticker ?? item?.symbol)} {/if} {/each}
Symbol Name Transaction Type Amount Transaction Last Trade Filed
{item?.name?.length > 20 ? item?.name?.slice(0, 20) + "..." : item?.name} {#if item?.type === "Bought"} {item?.type} {:else if item?.type === "Sold"} {item?.type} {:else if item?.type === "Exchange"} Exchange {/if} {item?.amount} {item?.transaction?.toLocaleString("en-US")} {new Date(item?.transactionDate)?.toLocaleString( "en-US", { month: "short", day: "numeric", year: "numeric", daySuffix: "2-digit", }, )} {new Date(item?.disclosureDate)?.toLocaleString( "en-US", { month: "short", day: "numeric", year: "numeric", daySuffix: "2-digit", }, )}
({ ...item, date: item.transactionDate, }), )} symbol={item?.ticker ?? item?.symbol} numOfRatings={item?.transaction} />