news_app
mainsequence.virtualfundbuilder.contrib.apps.news_app
SentimentReport
Bases: BaseApp
Generates an HTML report summarizing news sentiment and headlines for a list of stock tickers using data from Polygon.io. Additionally, fetches the first 100 words of each article (if possible) and generates a single combined summary displayed below the combined chart.
run()
Orchestrates the report generation process: 1. Fetch data, 2. Create plots, 3. Attempt to retrieve article text (first 100 words) for all articles, 4. Generate a single combined summary from those snippets, 5. Render HTML, 6. Upload artifact.
SentimentReportConfig
Bases: BaseModel
Pydantic model defining parameters for the Sentiment Report.