trading-app/scripts/check-news.mts
David 27a358038a
Some checks failed
Tick / tick (push) Failing after 1s
Cagnotte V1: IA news-driven trading sim, sandbox, PEA tracking, PWA
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 19:06:17 +01:00

11 lines
517 B
TypeScript

// Regarde la forme des actus Yahoo pour quelques actions (US et Europe).
// Usage : pnpm tsx scripts/check-news.mts
import YahooFinance from "yahoo-finance2";
const yf = new YahooFinance({ suppressNotices: ["yahooSurvey"] });
for (const q of ["AAPL", "MC.PA", "LVMH", "SAP.DE", "Airbus"]) {
const s = await yf.search(q, { newsCount: 6, quotesCount: 0 });
console.log("\n==", q);
for (const n of s.news) console.log(" -", n.relatedTickers?.join(","), "|", n.title, "|", n.providerPublishTime.toISOString());
}