diff --git a/src/routes/sitemap.xml/+server.ts b/src/routes/sitemap.xml/+server.ts index 37aeb515..b3ce4378 100644 --- a/src/routes/sitemap.xml/+server.ts +++ b/src/routes/sitemap.xml/+server.ts @@ -14,6 +14,10 @@ const pages = [ { title: "/heatmaps" }, { title: "/donation" }, //{title: "/portfolio"}, + { title: "/sentiment-tracker" }, + { title: "/industry" }, + { title: "/industry/sectors" }, + { title: "/industry/all" }, { title: "/newsletter" }, { title: "/options-flow" }, { title: "/ipos" }, @@ -130,7 +134,7 @@ const sitemap = ( posts, articles, stocks, - pages + pages, ) => ` ${website}${page.title} - ` + `, ) .join("")} ${stocks @@ -157,7 +161,7 @@ const sitemap = ( ? "/stocks/" : ticker.type === "ETF" ? "/etf/" - : "/stocks/"; + : "/crypto/"; return ` ${website}${path}${ticker.id} @@ -171,7 +175,7 @@ const sitemap = ( ${website}/blog/article/${article.id} - ` + `, ) .join("")} ${posts @@ -180,7 +184,7 @@ const sitemap = ( ${website}/community/post/${post.id} - ` + `, ) .join("")} `; diff --git a/src/routes/stocks/[tickerID]/insider/+page.svelte b/src/routes/stocks/[tickerID]/insider/+page.svelte index e5ea6ec0..2b9273ed 100644 --- a/src/routes/stocks/[tickerID]/insider/+page.svelte +++ b/src/routes/stocks/[tickerID]/insider/+page.svelte @@ -1,392 +1,579 @@ - - - - {$numberOfUnreadNotification > 0 ? `(${$numberOfUnreadNotification})` : ''} {$displayCompanyName} ({$stockTicker}) US Congress & Senate Trading · stocknear + {$numberOfUnreadNotification > 0 ? `(${$numberOfUnreadNotification})` : ""} + {$displayCompanyName} ({$stockTicker}) US Congress & Senate Trading · + stocknear - - + + - - - + + + - - - + + + - - - +
+
+
+
+
+

+ Insider Trading +

-
-
-
-
-
-

- Insider Trading -

- +
+ -
- - - {#if insiderTradingList?.length !== 0} - Get detailed insights of Insiders who bought or sold {$displayCompanyName} and the amounts involved! - {:else} - No trading history available for {$displayCompanyName}. Likely no insider trading has happened yet. - {/if} -
+ {#if insiderTradingList?.length !== 0} + Get detailed insights of Insiders who bought or sold {$displayCompanyName} + and the amounts involved! + {:else} + No trading history available for {$displayCompanyName}. Likely no + insider trading has happened yet. + {/if} +
+
+ {#if isLoaded} + {#if insiderTradingList?.length !== 0} + {#if Object?.keys(statistics)?.length !== 0} +

+ Q{statistics?.quarter} + {statistics?.year} Insider Statistics +

+ +
+
+ +
+
+ Buy/Sell + + {buySellRatio} +
- - {#if isLoaded} + +
+ + + + + + = 1 + ? 0 + : 100 - (buySellRatio * 100)?.toFixed(2)} + > + + + +
+ {buySellRatio}% +
+
+ +
+ + +
+
+ Bought Shares + + {new Intl.NumberFormat("en", { + minimumFractionDigits: 0, + maximumFractionDigits: 0, + }).format(statistics?.buyShares)} + +
+ +
+ + + + + + + + + +
+ {statistics?.buySharesPercentage}% +
+
+ +
+ + +
+
+ Sold Shares + + {new Intl.NumberFormat("en", { + minimumFractionDigits: 0, + maximumFractionDigits: 0, + }).format(statistics?.soldShares)} + +
+ +
+ + + + + + + + + +
+ {statistics?.soldSharesPercentage}% +
+
+ +
+ +
+
+ + {/if} - {#if insiderTradingList?.length !== 0} - - - - - {#if Object?.keys(statistics)?.length !== 0 } -

- Q{statistics?.quarter} {statistics?.year} Insider Statistics -

- -
-
- - -
-
- Buy/Sell - - {(statistics?.buyShares/statistics?.soldShares)?.toFixed(2) } - +
+ + + + + + + + + + + + {#each data?.user?.tier === "Pro" ? insiderTradingList : insiderTradingList?.slice(0, 3) as item, index} + {#if item?.price > 0} + + + + + + + + + {/if} - - -
-
+ Name + + Date + + Shares + + Price + Value
+
+ {formatString(item?.reportingName)?.replace( + "/de/", + "", + )} + {extractOfficeInfo(item?.typeOfOwner)}
- -
- - - - - - = 1 ? 0 : 100-(statistics?.buyShares/statistics?.soldShares*100)?.toFixed(2)}> - - - -
- {(statistics?.buyShares/statistics?.soldShares)?.toFixed(2)} +
+ {new Date(item?.transactionDate)?.toLocaleString( + "en-US", + { + month: "short", + day: "numeric", + year: "numeric", + daySuffix: "2-digit", + }, + )} + + {abbreviateNumber(item?.securitiesTransacted)} + + {item?.price?.toFixed(2)} + +
+ {#if transactionStyles[item?.transactionType]} +
+ {abbreviateNumber( + item?.securitiesTransacted * item?.price, + )}
-
- - - - - -
-
- Bought Shares - - {new Intl.NumberFormat("en", { - minimumFractionDigits: 0, - maximumFractionDigits: 0 - }).format(statistics?.buyShares)} - -
- -
- - - - - - - - - -
- {statistics?.buySharesPercentage}% +
+ {transactionStyles[item?.transactionType].text} +
+ {:else} + n/a + {/if}
-
- -
- - -
-
- Sold Shares - - {new Intl.NumberFormat("en", { - minimumFractionDigits: 0, - maximumFractionDigits: 0 - }).format(statistics?.soldShares)} - -
- -
- - - - - - - - - -
- {statistics?.soldSharesPercentage}% -
-
- - -
- - - - - - +
- - - - - - - - - - - {#each (data?.user?.tier === 'Pro' ? insiderTradingList : insiderTradingList?.slice(0,3)) as item, index} - {#if item?.price > 0} - - - - - - - - - - - {/if} - {/each} - -
- Name - - Date - - Shares - - Price - Value
-
- {formatString(item?.reportingName)?.replace('/de/','')} - {extractOfficeInfo(item?.typeOfOwner)} -
-
- {new Date(item?.transactionDate)?.toLocaleString('en-US', { month: 'short', day: 'numeric', year: 'numeric', daySuffix: '2-digit' })} - - {abbreviateNumber(item?.securitiesTransacted)} - - {item?.price?.toFixed(2)} - - -
- {#if transactionStyles[item?.transactionType]} -
{abbreviateNumber(item?.securitiesTransacted * item?.price)}
-
- {transactionStyles[item?.transactionType].text} -
- {:else} - n/a - {/if} -
-
-
- - - - {#if rawData?.length === insiderTradingList?.length} - - {/if} - - - - - - {/if} - - - {:else} -
-
- -
-
- - {/if} - - - -
+ {/each} + +
-
-
+ {#if rawData?.length === insiderTradingList?.length} + + {/if} - \ No newline at end of file + + {/if} + {:else} +
+
+ +
+
+ {/if} +
+
+
+
+ +