phase-10.5: screener enhancements
This commit is contained in:
@@ -40,6 +40,13 @@ export class DataMapper {
|
||||
|
||||
const currentPrice = pr.regularMarketPrice ?? 0;
|
||||
const sharesOutstanding = ks.sharesOutstanding ?? 0;
|
||||
|
||||
// Today's % change — powers the sector drill-down "Today" sort
|
||||
const prevClose = pr.regularMarketPreviousClose ?? null;
|
||||
const dayChangePct =
|
||||
prevClose != null && prevClose > 0 && (currentPrice as number) > 0
|
||||
? +((((currentPrice as number) - prevClose) / prevClose) * 100).toFixed(2)
|
||||
: null;
|
||||
const operatingCashflow = fd.operatingCashflow ?? 0;
|
||||
const freeCashflow = fd.freeCashflow ?? 0;
|
||||
|
||||
@@ -131,6 +138,7 @@ export class DataMapper {
|
||||
? (sd.trailingAnnualDividendYield as number) * 100
|
||||
: null,
|
||||
beta: sd.beta ?? null,
|
||||
dayChangePct,
|
||||
week52High,
|
||||
week52Low,
|
||||
week52Change,
|
||||
|
||||
Reference in New Issue
Block a user