Actions21
- Alert Actions
- News Actions
- Chart Actions
- Screener Actions
- Symbol Actions
- Pine Script Actions
- Social Actions
- Analysis Actions
News → Get Latest
AI-generatedSummary
Retrieve the latest financial news items from TradingView, filtered by provider, priority, market sector, and limited in number.
Inputs
- Authentication — Choose the authentication method: Email & Password or OAuth2.
- News Filters — Optional filters for the news results, including selecting providers (e.g., Reuters, Bloomberg), priority levels (All, High, Medium, Low), markets (Crypto, Stocks, Forex, Commodities, Economics), and the maximum number of news items to return (default 50).
- Options — Additional options to use AI analysis on the retrieved news, store results in MongoDB, cache results in Redis, specify cache TTL in seconds, and provide connection strings for MongoDB and Redis.
Output shape
A single JSON object containing the news items array, count of items, applied filters, and timestamp of retrieval.
The output includes a 'type' field with value 'news' and 'operation' as 'getLatest'. If AI analysis is enabled and successful, an 'aiAnalysis' field with the analysis results is included. Results may be cached to speed up repeated executions. If enabled, results can be stored in MongoDB. The output includes metadata on filtering and operation timestamp.
Examples
Example 1: Getting latest high priority Crypto news from Reuters and Bloomberg providers, limited to 20 items, with AI analysis and caching enabled.
Set Authentication as needed; under News Filters select Providers: Reuters, Bloomberg; Priority: High; Markets: Crypto; Limit: 20; Options: Use AI Analysis enabled; Cache Results enabled with default TTL; Store in Database disabled.