{"authentication":{"description":"Include your API key in the X-API-Key header for all requests","header":"X-API-Key","type":"API Key"},"endpoints":{"/admin/batch-news-sentiment-update":{"auth_required":"True (X-API-Key header)","description":"Trigger a batch update of MongoDB documents with daily and weekly news sentiment scores","example":"curl -X POST -H 'X-API-Key: yShzsEQxzQS9vWpPfgyjVhr8' -H 'Content-Type: application/json' -d '{\"asset_type\":\"stock\"}' http://localhost:5002/admin/batch-news-sentiment-update","method":"POST","parameters":{"asset_type":"Asset type to update: 'stock', 'crypto', or 'forex' (default: 'stock')"}},"/admin/batch-update":{"auth_required":"True (X-API-Key header)","description":"Trigger a batch update of MongoDB documents with financial health/growth classifications","example":"curl -X POST -H 'X-API-Key: yShzsEQxzQS9vWpPfgyjVhr8' http://localhost:5002/admin/batch-update","method":"POST"},"/admin/daemon/start":{"auth_required":"True (X-API-Key header)","description":"Start the continuous news update daemon that periodically runs mongo_updater.py","example":"curl -X POST -H 'X-API-Key: yShzsEQxzQS9vWpPfgyjVhr8' -H 'Content-Type: application/json' -d '{\"interval_minutes\":15, \"asset_types\":[\"stock\", \"crypto\"], \"initial_scope\":\"week\"}' http://localhost:5002/admin/daemon/start","method":"POST","parameters":{"asset_types":"List of asset types to update (default: [\"stock\", \"crypto\", \"forex\"])","initial_scope":"Scope for the first run of an asset if no history (default: \"today\", options: [\"today\", \"week\"])","interval_minutes":"Update interval in minutes (default: 15)"}},"/admin/daemon/status":{"auth_required":"True (X-API-Key header)","description":"Get the status of the news update daemon","example":"curl -H 'X-API-Key: yShzsEQxzQS9vWpPfgyjVhr8' http://localhost:5002/admin/daemon/status","method":"GET"},"/admin/daemon/stop":{"auth_required":"True (X-API-Key header)","description":"Stop the news update daemon","example":"curl -X POST -H 'X-API-Key: yShzsEQxzQS9vWpPfgyjVhr8' http://localhost:5002/admin/daemon/stop","method":"POST"},"/analyze-batch":{"auth_required":"True (X-API-Key header)","description":"Analyze a batch of news items and return classification results for each","example":"curl -X POST -H 'X-API-Key: YOUR_API_KEY' -H 'Content-Type: application/json' -d '[{\"title\":\"Example Title\", \"text\":\"Example text content.\"}]' http://localhost:5002/analyze-batch?save_to_db=true","method":"POST","parameters":{"news_items":"JSON list of news items in request body, each containing at least 'title' and 'text'","save_to_db":"Query param: Whether to save analyzed news to ai_news collection (default: false)"}},"/analyze-text":{"auth_required":"True (X-API-Key header)","description":"Analyze a text string and return classification results","example":"curl -X POST -H 'X-API-Key: yShzsEQxzQS9vWpPfgyjVhr8' -H 'Content-Type: application/json' -d '{\"text\":\"Nvidia announced a $5.5 billion charge\"}' http://localhost:5002/analyze-text","method":"POST","parameters":{"text":"Text string to analyze (in request body)"}},"/economic-calendar":{"auth_required":"True (X-API-Key header)","description":"Get analysis of economic calendar events and their potential market impact","example":"curl -H 'X-API-Key: yShzsEQxzQS9vWpPfgyjVhr8' http://localhost:5002/economic-calendar","method":"GET","parameters":{"entity_names":"Optional comma-separated list of entity names (e.g., 'AAPL,MSFT')","entity_types":"Optional comma-separated list of entity types (e.g., 'company,forex')","language":"Optional language for analysis output ('english' or 'spanish', default: 'english')","sector":"Optional sector or industry to focus on (e.g., 'technology')"}},"/news-document/{symbol}":{"auth_required":"True (X-API-Key header)","description":"Fetch a raw news analysis document for a given symbol from the 'ai_news' MongoDB collection.","example":"curl -H 'X-API-Key: yShzsEQxzQS9vWpPfgyjVhr8' http://localhost:5002/news-document/AAPL","method":"GET"},"/news-summary/{symbol}":{"auth_required":"True (X-API-Key header)","description":"Get news summary and analysis for a company","method":"GET","parameters":{"max_insights":"Query param: Maximum number of insights to include (default: 5)","max_pages":"Query param: Maximum number of news pages to fetch (default: 5)","timeframe":"Query param: 'today' or 'week' (default: 'today')"}},"/predict/{symbol}":{"auth_required":"True (X-API-Key header)","description":"Get financial health and growth calculations based on metric analysis","method":"GET"}},"name":"Financial Health & Growth Predictor API","version":"1.0.0"}
