Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
F

FinnewsHunter

> AI 编程
Open source

FinnewsHunter: Multi-agent financial intelligence platform powered by AgenticX. Real-time news analysis, sentiment fusion, and alpha factor mining.

1.5K stars0 likes1 views
WebsiteGitHub

About

FinnewsHunter: Multi-agent financial intelligence platform powered by AgenticX. Real-time news analysis, sentiment fusion, and alpha factor mining.

FinnewsHunter: Multi-Agent Investment Decision Platform Driven by Financial News

An enterprise-grade financial news analysis system built on the AgenticX framework, integrating real-time news streams, deep quantitative analysis, and multi-agent debate mechanisms.

FinnewsHunter goes beyond traditional text classification by deploying multi-agent teams (NewsAnalyst, Researcher, etc.) to monitor multiple financial news sources in real-time, including Sina Finance, National Business Daily, Financial World, Securities Times, and more. It leverages large language models for deep interpretation, sentiment analysis, and market impact assessment, combined with knowledge graphs to mine potential investment opportunities and risks, providing decision-level alpha signals for quantitative trading.


Project Features

  • ✅ AgenticX Native: Deeply integrated with AgenticX framework, using core abstractions like Agent, Tool, and Workflow
  • ✅ AgenticX Component Integration: Direct use of AgenticX's BailianEmbeddingProvider and MilvusStorage, avoiding reinventing the wheel
  • ✅ Agent-Driven: NewsAnalyst agent automatically analyzes news sentiment and market impact
  • ✅ Multi-Provider LLM Support: Supports 5 major LLM providers (Bailian, OpenAI, DeepSeek, Kimi, Zhipu), switchable with one click in the frontend
  • ✅ Batch Operations: Supports batch selection, batch deletion, and batch analysis of news, improving operational efficiency
  • ✅ Stock K-Line Analysis: Integrated with akshare real market data, supporting daily/minute K-line multi-period display
  • ✅ Intelligent Stock Search: Supports code and name fuzzy queries, pre-loaded with 5000+ A-share data
  • ✅ Complete Tech Stack: FastAPI + PostgreSQL + Milvus + Redis + React
  • ✅ Real-time Search: Supports multi-dimensional search by title, content, stock code, with keyword highlighting
  • ✅ Async Vectorization: Background async vectorization execution, non-blocking analysis flow
  • ✅ Production Ready: One-click deployment with Docker Compose, complete logging and monitoring

️ System Architecture

The system adopts a layered architecture design:

  • M6 Frontend Interaction Layer: React + TypeScript + Shadcn UI
  • M1 Platform Service Layer: FastAPI Gateway + Task Manager
  • M4/M5 Agent Collaboration Layer: AgenticX Agent + Debate Workflow
  • M2/M3 Infrastructure Layer: Crawler Service + LLM Service + Embedding
  • M7-M11 Storage & Learning Layer: PostgreSQL + Milvus + Redis + ACE Framework

Quick Start

Prerequisites

  • Python 3.11+
  • Docker & Docker Compose
  • (Optional) OpenAI API Key or local LLM
  • Node.js 18+ (for frontend development)

1. Install AgenticX

bash
cd /Users/damon/myWork/AgenticX
pip install -e .

2. Install Backend Dependencies

bash
cd FinnewsHunter/backend
pip install -r requirements.txt

3. Configure Environment Variables

bash
cd FinnewsHunter/backend
cp env.example .env
# Edit .env file and fill in LLM API Key and other configurations

Multi-Provider LLM Configuration:

The system supports 5 LLM providers, at least one needs to be configured:

Provider Environment Variable Registration URL
Bailian (Alibaba Cloud) DASHSCOPE_API_KEY https://dashscope.console.aliyun.com/
OpenAI OPENAI_API_KEY https://platform.openai.com/api-keys
DeepSeek DEEPSEEK_API_KEY https://platform.deepseek.com/
Kimi (Moonshot) MOONSHOT_API_KEY https://platform.moonshot.cn/
Zhipu ZHIPU_API_KEY https://open.bigmodel.cn/

Example Configuration (Recommended: Bailian):

bash
# Bailian (Alibaba Cloud) - Recommended, fast access in China
DASHSCOPE_API_KEY=sk-your-dashscope-key
DASHSCOPE_BASE_URL=https://dashscope.aliyuncs.com/compatible-mode/v1
BAILIAN_MODELS=qwen-plus,qwen-max,qwen-turbo

# Optional: Other providers
OPENAI_API_KEY=sk-your-openai-key
DEEPSEEK_API_KEY=sk-your-deepseek-key

4. Start Base Services (PostgreSQL, Redis, Milvus)

bash
cd FinnewsHunter
docker compose -f deploy/docker-compose.dev.yml up -d postgres redis milvus-etcd milvus-minio milvus-standalone

5. Initialize Database

bash
cd FinnewsHunter/backend
python init_db.py

5.1 Initialize Stock Data (Optional, for stock search functionality)

bash
cd FinnewsHunter/backend
python -m app.scripts.init_stocks
# Will fetch all A-share data (approximately 5000+ stocks) from akshare and save to database

6. Start Backend API Service

bash
cd FinnewsHunter/backend
uvicorn app.main:app --reload --host 0.0.0.0 --port 8000

7. Start Celery Worker and Beat (Auto Crawling)

bash
# Open a new terminal
cd FinnewsHunter
docker compose -f deploy/docker-compose.dev.yml up -d celery-worker celery-beat

8. Start Frontend Service

bash
# Open a new terminal
cd FinnewsHunter/frontend
npm install  # First time requires dependency installation
npm run dev

9. Access Application

  • Frontend Interface: http://localhost:3000
  • Backend API: http://localhost:8000
  • API Documentation: http://localhost:8000/docs

Service Management

View All Service Status

bash
cd FinnewsHunter
docker compose -f deploy/docker-compose.dev.yml ps

Restart All Services

bash
cd FinnewsHunter

# Restart Docker services (infrastructure + Celery)
docker compose -f deploy/docker-compose.dev.yml restart

# If backend API is started independently, manually restart it
# Press Ctrl+C to stop backend process, then rerun:
cd backend
uvicorn app.main:app --reload --host 0.0.0.0 --port 8000

Restart Specific Service

bash
cd FinnewsHunter

# Restart only Celery (after code changes)
docker compose -f deploy/docker-compose.dev.yml restart celery-worker celery-beat

# Restart only database
docker compose -f deploy/docker-compose.dev.yml restart postgres

# Restart only Redis
docker compose -f deploy/docker-compose.dev.yml restart redis

Stop All Services

bash
cd FinnewsHunter
docker compose -f deploy/docker-compose.dev.yml down

View Logs

bash
cd FinnewsHunter

# View Celery Worker logs
docker compose -f deploy/docker-compose.dev.yml logs -f celery-worker

# View Celery Beat logs (scheduled task dispatch)
docker compose -f deploy/docker-compose.dev.yml logs -f celery-beat

# View PostgreSQL logs
docker compose -f deploy/docker-compose.dev.yml logs -f postgres

# View all service logs
docker compose -f deploy/docker-compose.dev.yml logs -f

️ Reset Database

Method 1: Use One-Click Reset Script (Recommended) ⭐

bash
cd FinnewsHunter

# Execute reset script
./reset_all_data.sh

# Enter yes to confirm

The script will automatically complete:

  1. ✅ Clear all news and task data in PostgreSQL
  2. ✅ Clear Redis cache
  3. ✅ Reset database auto-increment IDs (restart from 1)
  4. ✅ Clear Celery schedule files
  5. ✅ Automatically restart Celery services

After execution, wait:

  • 5-10 minutes for the system to automatically re-crawl data
  • Access frontend to view new data

Method 2: Manual Reset (Advanced)

Step 1: Clear PostgreSQL Data

bash
# Enter PostgreSQL container
docker exec -it finnews_postgres psql -U finnews -d finnews_db

Execute in PostgreSQL command line:

sql
-- Clear news table
DELETE FROM news;

-- Clear task table
DELETE FROM crawl_tasks;

-- Clear analysis table
DELETE FROM analyses;

-- Reset auto-increment IDs
ALTER SEQUENCE news_id_seq RESTART WITH 1;
ALTER SEQUENCE crawl_tasks_id_seq RESTART WITH 1;
ALTER SEQUENCE analyses_id_seq RESTART WITH 1;

-- Verify results (should all be 0)
SELECT 'news table', COUNT(*) FROM news;
SELECT 'crawl_tasks table', COUNT(*) FROM crawl_tasks;
SELECT 'analyses table', COUNT(*) FROM analyses;

-- Exit
\q

Step 2: Clear Redis Cache

bash
cd FinnewsHunter
docker exec finnews_redis redis-cli FLUSHDB

Step 3: Clear Celery Schedule Files

bash
cd FinnewsHunter/backend
rm -f celerybeat-schedule*

Step 4: Restart Celery Services

bash
cd FinnewsHunter
docker compose -f deploy/docker-compose.dev.yml restart celery-worker celery-beat

Step 5: Verify Data Cleared

bash
# Check news count (should be 0)
docker exec finnews_postgres psql -U finnews -d finnews_db -c "SELECT COUNT(*) FROM news;"

# Check Redis (should be 0 or very small)
docker exec finnews_redis redis-cli DBSIZE

# Check if Celery has started crawling
docker compose -f deploy/docker-compose.dev.yml logs -f celery-beat
# Should see 10 crawl tasks triggered per minute

Method 3: Use Python Script Reset

bash
cd FinnewsHunter/backend
python reset_database.py
# Enter yes to confirm

Method 4: Quick Manual Cleanup (One-Line Commands)

Use Case: When reset script doesn't work, this is the fastest method

…

Immediately refresh browser after execution:

  • Mac: Command + Shift + R
  • Windows: Ctrl + Shift + R

️ Clear Frontend Cache (Important!)

After data is cleared, frontend may still display old data due to browser cache.

Method 1: Hard Refresh Browser (Recommended) ⭐

Mac System:

Press Command + Shift + R
or Command + Option + R

Windows/Linux System:

Press Ctrl + Shift + R
or Ctrl + F5

Method 2: Developer Tools Clear Cache

  1. Press F12 to open developer tools
  2. Right-click the refresh button (next to address bar)
  3. Select "Empty Cache and Hard Reload"

Method 3: Clear Browser Cache

  1. Chrome/Edge:

    • Command + Shift + Delete (Mac) or Ctrl + Shift + Delete (Windows)
    • Check "Cached images and files"
    • Time range select "All time"
    • Click "Clear data"
  2. After refreshing page, hard refresh again

    • Ensure React Query cache is also cleared

Method 4: Restart Frontend Dev Server (Most Thorough)

bash
# Press Ctrl+C in frontend terminal to stop service
# Then restart
cd FinnewsHunter/frontend
npm run dev

Data Recovery Timeline After Reset

Time Event Expected Result
0 min Execute reset script Database cleared, Redis cleared
1 min Celery Beat starts scheduling 10 crawl tasks triggered
2-5 min First batch of news saved Database starts having data
5-10 min All sources have data Frontend can see 100+ news
30 min Data continues growing 500+ news
1 hour Stable operation 1000-2000 news

Notes:

  • Need to wait 5-10 minutes after reset to see new data
  • Frontend must hard refresh (Command+Shift+R / Ctrl+Shift+R) to clear cache
  • Don't reset frequently, affects system stability

Steps to immediately hard refresh frontend after reset:

  1. Execute reset command
  2. Immediately press Command + Shift + R (Mac) or Ctrl + Shift + R (Windows) in browser
  3. Wait 5-10 minutes then refresh again to view new data

⚠️ Crawler Status Check

Check Which Sources Are Working

bash
cd FinnewsHunter

# View news count by source
docker exec finnews_postgres psql -U finnews -d finnews_db -c "
SELECT source, COUNT(*) as count 
FROM news 
WHERE created_at > NOW() - INTERVAL '1 hour'
GROUP BY source 
ORDER BY count DESC;
"

# View recent crawl task status
docker exec finnews_postgres psql -U finnews -d finnews_db -c "
SELECT source, 
       crawled_count, 
       saved_count, 
       status,
       error_message 
FROM crawl_tasks 
WHERE created_at > NOW() - INTERVAL '10 minutes'
ORDER BY created_at DESC 
LIMIT 20;
"

View Crawl Errors

bash
cd FinnewsHunter

# View ERROR logs
docker compose -f deploy/docker-compose.dev.yml logs celery-worker | grep ERROR

# View specific source issues
docker compose -f deploy/docker-compose.dev.yml logs celery-worker | grep "jwview"

User Guide

Auto Crawl Mode (Recommended) ⭐

**System is configured with automatic c

Issues· 11 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Pythonagentic-aialpha-signalsfintechmulti-agent

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
CategoryAI 编程
PricingOpen source

> Related tools

G
GitHub Copilot
GitHub 官方 AI 编程助手,覆盖补全、Chat 与 Agent 模式。
C
Cursor
AI 原生代码编辑器,对话改代码、多文件 Agent 与规则体系是其核心。
S
skills
Skills for Real Engineers. Straight from my .agents directory.