diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 4c7b160a..f38a6968 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -12,17 +12,6 @@ import { screenWidth, numberOfUnreadNotification } from "$lib/store"; - /* - import { Chart } from 'svelte-echarts' - import { init, use } from 'echarts/core' - import { BarChart } from 'echarts/charts' - import { GridComponent } from 'echarts/components' - import { CanvasRenderer } from 'echarts/renderers' - - // now with tree-shaking - use([BarChart, GridComponent, CanvasRenderer]) - */ - export let data; let isLoaded = false; let optionsMode = "premium"; @@ -82,6 +71,7 @@ let gainersList = data?.getDashboard?.marketMovers?.gainers || []; let losersList = data?.getDashboard?.marketMovers?.losers || []; let marketStatus = data?.getDashboard?.marketStatus ?? 0; + let analystReport = data?.getDashboard?.analystReport || {}; function changeTable(state) { optionsMode = state; @@ -559,78 +549,99 @@ >
-
+
Dividend Announcement (NYSE Time) + >AI Analyst report + + {#if analystReport?.date} + + + + {/if}
+ {#if analystReport?.date} + + {/if}
- {#if data?.getDashboard?.recentDividends?.length !== 0} -
    - {#each data?.getDashboard?.recentDividends as item} - {item?.name} () has announced its upcoming dividend details as of {convertTimestamp( - item?.updated, - )}: + {#if Object?.keys(analystReport)?.length > 0} + {analystReport?.insight} -
  • + According to 29 analyst ratings, the average rating for + stock is "{analystReport?.consensusRating}" The 12-month stock + price forecast is ${analystReport?.medianPriceTarget}, which + is an {analystReport?.medianPriceChange > 0 + ? "increase" + : "decreas"} of {analystReport?.medianPriceChange}% from the + latest price. +
+ + + + + + + + + + - Dividend: ${item?.dividend} - per share ({item?.dividend / item?.dividendPrior - 1 > 0 - ? "+" - : ""}{( - (item?.dividend / item?.dividendPrior - 1) * - 100 - )?.toFixed(2)}% YoY) - -
  • - Dividend Yield: - {item?.dividendYield?.toFixed(2)}% -
  • -
  • - Ex-Dividend Date: - {new Date(item?.exDividendDate)?.toLocaleString("en-US", { - month: "short", - day: "numeric", - year: "numeric", - daySuffix: "2-digit", - })} -
  • -
  • - Payable Date: - {new Date(item?.payableDate)?.toLocaleString("en-US", { - month: "short", - day: "numeric", - year: "numeric", - daySuffix: "2-digit", - })} -
  • -
  • - Record Date: - {new Date(item?.recordDate)?.toLocaleString("en-US", { - month: "short", - day: "numeric", - year: "numeric", - daySuffix: "2-digit", - })} -
  • - {/each} - + + + + + +
    Target LowAverageMedianHigh
    Price${analystReport?.lowPriceTarget}${analystReport?.avgPriceTarget}${analystReport?.medianPriceTarget}${analystReport?.highPriceTarget}
    Change 0 + ? "before:content-['+'] text-[#00FC50]" + : "text-[#FF2F1F]"} + >{analystReport?.lowPriceChange}% 0 + ? "before:content-['+'] text-[#00FC50]" + : "text-[#FF2F1F]"} + >{analystReport?.avgPriceChange}% 0 + ? "before:content-['+'] text-[#00FC50]" + : "text-[#FF2F1F]"} + >{analystReport?.medianPriceChange}% 0 + ? "before:content-['+'] text-[#00FC50]" + : "text-[#FF2F1F]"} + >{analystReport?.highPriceChange}%
    {:else}
    - Currently, there are no dividend announcement reports available. + Currently, there are no new analyst reports available.
    {/if} diff --git a/src/routes/stocks/[tickerID]/forecast/+page.svelte b/src/routes/stocks/[tickerID]/forecast/+page.svelte index 3c00c977..5892ae9b 100644 --- a/src/routes/stocks/[tickerID]/forecast/+page.svelte +++ b/src/routes/stocks/[tickerID]/forecast/+page.svelte @@ -606,7 +606,7 @@ >
    -

    Latest Analyst Report

    +

    AI Analyst Report

    {#if latestInfoDate(data?.getAnalystInsight?.date)}