Skip to content

xiangking/HiStock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

๐Ÿš€ HiStock AI

HiStock AI Logo

"Quantifying Wisdom, Democratizing Alpha."

ไธญๆ–‡ๆ–‡ๆกฃ โ€ข Quick Start โ€ข Features โ€ข Architecture

License Python Frontend


HiStock AI is a next-generation Multi-Agent Investment Research & Debate Platform tailored for the A-share market. It's your personal "AI Investment Boardroom" โ€” simulating professional debates between legendary investors (Buffett, Munger, Soros, and more) to help you navigate market noise and uncover hidden risks and opportunities.


home_page

โœจ Features

๐ŸŽฏ Multi-Agent Investment Debate

  • AI Boardroom: Multi-round debates moderated by an AI Host with diverse investment personas

  • Master Personas: Pre-configured legendary investors including Buffett, Wood, Soros, Lynch, and more

  • Context-Aware Dialog: Agents respond to each other, forming a dynamic "think tank"

    boardroom

๐Ÿ“Š Quantitative Factor Analysis Agent

  • Percentile-Based Scoring: Factors scored relative to market distribution (0-100), objectively reflecting stock position

  • Weighted Factors: Configurable weights for PE, ROE, Debt Ratio, etc., supporting personalized scoring models

  • Multi-Dimension Analysis: Value, Growth, Quality dimensions with customizable weights

  • Industry Normalization: (In Development) Relative scoring within industry sectors to eliminate valuation bias

    factor_analysis

๐Ÿ” Factor Market

  • Real-Time Data: Integrated with AkShare and BaoStock for quotes, valuations, and news

  • Factor Analysis: Technical indicators (MA, RSI, MACD) and fundamental metrics (PE/PB, ROE)

  • Custom Factors: Create your own quantitative factors using formula DSL

    market

๐Ÿงฉ Other Specialized Agents

  • News Agent: Tracks real-time market dynamics and extracts key bullish/bearish signals from massive information

    news_agent

  • Research Agent: Deep dives into company filings and financial reports to provide comprehensive fundamental analysis

    research_agent

  • Master Agent: Support custom personas, simulating the thinking style and investment logic of legendary investors

    master_agent

    yz_master_agent

โš™๏ธ Comprehensive Settings

  • Model Management: Configure DeepSeek, OpenAI, Google, and more with custom Base URL support

  • Agent Configuration: Visually configure agent parameters and prompts

  • Appearance: Red/Green up/down color switching to suit different market habits

  • Privacy First: All API keys stored locally, with one-click factory reset

    model_setting

    setting

โšก๏ธ Ultimate User Experience

  • Streaming Response: Real-time debate stream with progress indicators, making the thinking process visible
  • Dark Mode: Carefully designed Dark/Light themes that perfectly adapt to system settings
  • Interaction Optimized: Interface and workflows tailored for A-share investors

๐Ÿš€ Quick Start

Prerequisites

  • Python 3.12+
  • uv (Recommended package manager)
  • Node.js 18+ (for frontend)

Installation

# Clone the repository
git clone https://github.com/HiStock-ai/histock.git
cd histock

# Install Python dependencies
uv sync --group dev

# Install frontend dependencies (optional, for development)
cd frontend && npm install && cd ..

Launch

# Mac / Linux
bash start.sh

# Windows (PowerShell)
.\start.ps1

Access the application at http://localhost:1420

Configure LLM

HiStock AI supports multiple LLM providers:

  • DeepSeek (Recommended for cost-performance)
  • OpenAI (GPT-4o, GPT-4)
  • Google (Gemini)
  • Anthropic (Claude)
  1. Go to Settings (bottom left)
  2. Add your API Key

๐Ÿ—๏ธ Architecture

histock/
โ”œโ”€โ”€ python/                    # Backend (Python)
โ”‚   โ””โ”€โ”€ histock/
โ”‚       โ”œโ”€โ”€ agents/            # AI Agents (Master, Quantitative, News)
โ”‚       โ”œโ”€โ”€ core/              # Core Framework (Agent, Session, Message)
โ”‚       โ”œโ”€โ”€ services/          # Business Services (Factor, Scoring, Stream)
โ”‚       โ”œโ”€โ”€ server/            # FastAPI Application & Routes
โ”‚       โ”œโ”€โ”€ adapters/          # Data Adapters (AkShare, BaoStock)
โ”‚       โ”œโ”€โ”€ config/            # Configuration Management
โ”‚       โ””โ”€โ”€ utils/             # Utility Functions
โ”œโ”€โ”€ frontend/                  # Frontend (React)
โ”‚   โ”œโ”€โ”€ src/app/               # App Routes & Pages
โ”‚   โ”œโ”€โ”€ src/components/        # UI Components
โ”‚   โ””โ”€โ”€ src/lib/               # Frontend Utilities
โ””โ”€โ”€ assets/                    # Branding Assets

Tech Stack

Layer Technology
Backend FastAPI, Agno Framework, SQLAlchemy
Frontend React Router 7, Vite, Tailwind CSS, shadcn/ui, Zustand
Data AkShare, BaoStock, TA-Lib
AI Multi-Agent Orchestration, Streaming SSE

๐Ÿ”ฎ Roadmap

  • Industry Normalization: Relative scoring within industry sectors (SW/CITIC classification)
  • Backtesting Module: Historical factor performance analysis
  • Portfolio Optimization: Multi-stock portfolio construction
  • Mobile App: React Native companion app

๐Ÿ™ Acknowledgements

HiStock AI is proudly built upon the foundation of the ValueCell project. We extend our gratitude to the original creators for their pioneering contributions to the AI investment community.


๐Ÿค Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines.


โš ๏ธ Disclaimer

HiStock AI is for educational and technical research purposes only. All insights are generated by AI models and do not constitute financial advice. Investing in the stock market involves significant risk.


๐Ÿ“„ License

This project is licensed under the Apache License 2.0.


If you find this project helpful, give us a โญ

About

Quantifying Wisdom. Your personal AI investment boardroom with master personas and professional quantitative scoring tools.

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors