TradingView Ultimate icon

TradingView Ultimate

Ultimate TradingView integration with AI analysis, real-time data, and comprehensive market insights

News → Search

AI-generated

Summary

Search news articles on TradingView matching a given query and optional filters, with results optionally enriched by AI analysis, cached, and stored in a MongoDB database.

Inputs

  • Authentication — Choose authentication method: Email & Password or OAuth2.
  • Search Query (required) — Text query string to search for news articles.
  • News Filters — Optional filters including Providers (Reuters, Bloomberg, etc.), Priority (All, High, Medium, Low), Markets (Crypto, Stocks, Forex, Commodities, Economics), and Limit for maximum results.
  • Options — Execution options such as Use AI Analysis (default true), Store in Database (MongoDB storage), Cache Results (Redis caching), Cache TTL (expiration seconds), MongoDB Connection string, and Redis Connection string.

Output shape

a single JSON object containing an array of news articles matching the query and filters

The output includes fields: type ('news'), operation ('search'), query string, results array with news items, count of items, and timestamp. If enabled, AI analysis results are added as 'aiAnalysis'. If caching is enabled, cached results include _cached and _cacheTime fields. Errors during AI analysis or storage are reported in output fields 'aiAnalysisError' or 'storageError'. Results are optionally stored in MongoDB and cached in Redis for the configured TTL.

Examples

Example 1: Search for 'bitcoin' news from Bloomberg and Reuters with high priority, limit 20 results, enable AI analysis and caching, store results in DB.

Authentication: Email & Password; Query: 'bitcoin'; News Filters: Providers=['bloomberg','reuters'], Priority='high', Limit=20; Options: Use AI Analysis=true, Store in Database=true, Cache Results=true, Cache TTL=3600; MongoDB and Redis connection strings configured.

Discussion