๐Ÿ“ˆ Scan biotech news for catalyst trades with FinBERT, Alpaca, and Gemini

โšก 78 views ยท ๐Ÿ“ˆ Crypto Trading & Stock Market

Description

Automatically scan major financial newswires for biotech catalyst events, score them with AI sentiment analysis, and surface ranked trade candidates โ€” all without manual monitoring.

Whoโ€™s it for

Traders and quant hobbyists who follow biotech stocks and want an automated pipeline to flag high-probability catalyst events (FDA approvals, Phase 3 readouts, M&A) before the market fully reacts.

How it works

The workflow runs four layers on a scheduled loop. Layer 0 polls PRNewswire, GlobeNewswire, and BusinessWire every minute and stores new articles in a data table. Layer 1 filters for biotech keywords, classifies the event type, and runs FinBERT sentiment analysis via HuggingFace โ€” only PROCEED events advance. Layer 2 pulls real-time quotes and 20-day volume bars from Alpaca to calculate spread percentage and relative volume. Layer 3 sends qualifying candidates through a Gemini LLM prompt for final trade scoring and stores results.

How to set up

  1. Add your HuggingFace API credential in n8n
  2. Add your Google Gemini API credential in n8n
  3. Open the Alpaca - latest bars node and paste your Alpaca API key and secret
  4. Create five data tables: news_events, processed_events, trade_candidates, llm_analysis, market_snapshots
  5. Activate each schedule trigger

Requirements

How to customize

Swap the GlobeNewswire RSS feed URL to target a different sector. Adjust the biotech keyword list in the Biotech Keyword Filter node. Tune the spread % and relative volume thresholds in Eligibility Check to tighten or loosen your trade criteria.

๐Ÿ”— Nodes Used

HTTP Request, RSS Read, Webhook, Schedule Trigger, AI Agent, Basic LLM Chain

๐Ÿ“ฅ Import

Download workflow.json and import into n8n: Workflow menu โ†’ Import from File

๐Ÿ“– Importing guide ยท ๐Ÿ”‘ Credential setup