diff --git a/src/routes/crypto/[tickerID]/congress-trading/+page.svelte b/src/routes/crypto/[tickerID]/congress-trading/+page.svelte index 3cde275e..c52962cd 100644 --- a/src/routes/crypto/[tickerID]/congress-trading/+page.svelte +++ b/src/routes/crypto/[tickerID]/congress-trading/+page.svelte @@ -161,7 +161,7 @@
-

+

Congress Trading

diff --git a/src/routes/etf/[tickerID]/congress-trading/+page.svelte b/src/routes/etf/[tickerID]/congress-trading/+page.svelte index eb3eb838..f04dcb17 100644 --- a/src/routes/etf/[tickerID]/congress-trading/+page.svelte +++ b/src/routes/etf/[tickerID]/congress-trading/+page.svelte @@ -161,7 +161,7 @@
-

+

Congress Trading

diff --git a/src/routes/etf/[tickerID]/dividends/+page.svelte b/src/routes/etf/[tickerID]/dividends/+page.svelte index 042f6e71..b958d283 100644 --- a/src/routes/etf/[tickerID]/dividends/+page.svelte +++ b/src/routes/etf/[tickerID]/dividends/+page.svelte @@ -1,350 +1,434 @@ - - - - - - - - {$numberOfUnreadNotification > 0 ? `(${$numberOfUnreadNotification})` : ''} {$displayCompanyName} ({$etfTicker}) Dividend History, Dates & Yield · stocknear - - - - - - - - - - - - - - - - - - - -
-
-
-
-
-

- Dividends -

- - - - -
- - - - {#if rawData?.history?.length !== 0} - {#if !dateDistance} - {$displayCompanyName} has an annual dividend of - ${annualDividend} - per share, with a forward yield of - {dividendYield}%. - The dividend is paid every - {payoutFrequency === 4 ? '3 months' : payoutFrequency === 2 ? '6 months' : payoutFrequency === 1 ? '12 months' : 'n/a'} - and the last ex-dividend date was - {new Date(exDividendDate)?.toLocaleString('en-US', { month: 'short', day: 'numeric', year: 'numeric', daySuffix: '2-digit' })} - {:else} - {$displayCompanyName} issued its most recent dividend on - {new Date(rawData?.history?.at(0)?.date)?.toLocaleString('en-US', { month: 'short', day: 'numeric', year: 'numeric', daySuffix: '2-digit' })}. - Since then, the company has not distributed any further dividends for over 12 months. - {/if} - - - {:else} - No dividend history available for {$displayCompanyName}. - {/if} - -
- -
- - {#if rawData?.history?.length !== 0} - -
-
- -
- {dividendYield !== '0.00' ? dividendYield : '0'}% -
-
-
- - -
- ${annualDividend !== '0.00' ? annualDividend : '0'} -
-
-
- - -
- {new Date(exDividendDate)?.toLocaleString('en-US', { month: 'short', day: 'numeric', year: 'numeric', daySuffix: '2-digit' })} -
-
+ }); + -
- - -
- {payoutFrequency === 4 ? 'Quartely' : payoutFrequency === 2 ? 'Half-Yearly' : payoutFrequency === 1 ? 'Annually' : 'n/a'} -
-
-
- - -
- {payoutRatio !== '0.00' ? payoutRatio : '0'}% -
-
-
- - -
- {dividendGrowth !== 'NaN' ? dividendGrowth+'%' : '-'} -
-
- - -
+ + + + + {$numberOfUnreadNotification > 0 ? `(${$numberOfUnreadNotification})` : ""} + {$displayCompanyName} ({$etfTicker}) Dividend History, Dates & Yield · + stocknear + + + + + + + + + + + + + -
- -

- Dividends History -

- - - -
- - - {#if isLoaded} - {#if rawData?.history?.length !== 0 && optionsDividend} - -
- -
- - -
- - - - - - - - - - - {#each rawData?.history as item} - - - - - - - {/each} - -
- Ex-Divid. Date - - Cash Amount - - Record Date - - Pay Date -
- {new Date(item?.date)?.toLocaleString('en-US', { month: 'short', day: 'numeric', year: 'numeric', daySuffix: '2-digit' })} - - ${item?.adjDividend?.toFixed(3)} - - {item?.recordDate?.length !== 0 ? new Date(item?.recordDate)?.toLocaleString('en-US', { month: 'short', day: 'numeric', year: 'numeric', daySuffix: '2-digit' }) : 'n/a'} - - {item?.paymentDate?.length !== 0 ? new Date(item?.paymentDate)?.toLocaleString('en-US', { month: 'short', day: 'numeric', year: 'numeric', daySuffix: '2-digit' }) : 'n/a'} -
-
- - * Dividend amounts are adjusted for stock splits when applicable. - - - {:else} -

- No history found -

- {/if} - - - {:else} -
-
- -
-
- {/if} - - - {/if} - - - - - -
-
+
+
+
+
+
+

+ Dividends +

+ +
+ + + {#if rawData?.history?.length !== 0} + {#if !dateDistance} + {$displayCompanyName} has an annual dividend of ${annualDividend} + per share, with a forward yield of + {dividendYield}%. The dividend is paid every + {payoutFrequency === 4 + ? "3 months" + : payoutFrequency === 2 + ? "6 months" + : payoutFrequency === 1 + ? "12 months" + : "n/a"} + and the last ex-dividend date was + {new Date(exDividendDate)?.toLocaleString("en-US", { + month: "short", + day: "numeric", + year: "numeric", + daySuffix: "2-digit", + })} + {:else} + {$displayCompanyName} issued its most recent dividend on + {new Date(rawData?.history?.at(0)?.date)?.toLocaleString( + "en-US", + { + month: "short", + day: "numeric", + year: "numeric", + daySuffix: "2-digit", + }, + )}. Since then, the company has not distributed any further + dividends for over 12 months. + {/if} + {:else} + No dividend history available for {$displayCompanyName}. + {/if}
- - -
- - - - - - \ No newline at end of file +
+ + {#if rawData?.history?.length !== 0} +
+
+ +
+ {dividendYield !== "0.00" ? dividendYield : "0"}% +
+
+
+ + +
+ ${annualDividend !== "0.00" ? annualDividend : "0"} +
+
+
+ + +
+ {new Date(exDividendDate)?.toLocaleString("en-US", { + month: "short", + day: "numeric", + year: "numeric", + daySuffix: "2-digit", + })} +
+
+ +
+ + +
+ {payoutFrequency === 4 + ? "Quartely" + : payoutFrequency === 2 + ? "Half-Yearly" + : payoutFrequency === 1 + ? "Annually" + : "n/a"} +
+
+
+ + +
+ {payoutRatio !== "0.00" ? payoutRatio : "0"}% +
+
+
+ + +
+ {dividendGrowth !== "NaN" ? dividendGrowth + "%" : "-"} +
+
+
+ +
+

Dividends History

+
+ + {#if isLoaded} + {#if rawData?.history?.length !== 0 && optionsDividend} +
+ +
+ +
+ + + + + + + + + + + {#each rawData?.history as item} + + + + + + + {/each} + +
+ Ex-Divid. Date + + Cash Amount + + Record Date + + Pay Date +
+ {new Date(item?.date)?.toLocaleString("en-US", { + month: "short", + day: "numeric", + year: "numeric", + daySuffix: "2-digit", + })} + + ${item?.adjDividend?.toFixed(3)} + + {item?.recordDate?.length !== 0 + ? new Date(item?.recordDate)?.toLocaleString( + "en-US", + { + month: "short", + day: "numeric", + year: "numeric", + daySuffix: "2-digit", + }, + ) + : "n/a"} + + {item?.paymentDate?.length !== 0 + ? new Date(item?.paymentDate)?.toLocaleString( + "en-US", + { + month: "short", + day: "numeric", + year: "numeric", + daySuffix: "2-digit", + }, + ) + : "n/a"} +
+
+ + * Dividend amounts are adjusted for stock splits when + applicable. + + {:else} +

+ No history found +

+ {/if} + {:else} +
+
+ +
+
+ {/if} + {/if} +
+
+
+ + + diff --git a/src/routes/stocks/[tickerID]/+layout.svelte b/src/routes/stocks/[tickerID]/+layout.svelte index 1c489320..2f09a8c1 100644 --- a/src/routes/stocks/[tickerID]/+layout.svelte +++ b/src/routes/stocks/[tickerID]/+layout.svelte @@ -743,10 +743,10 @@ function handleTypeOfTrade(state:string)