An event-driven research and analysis platform for Chinese A-share stock traders, integrating real market data, news, announcements, and AI-powered analysis without simulated data or automated trading.

Stars

14

7-day growth

No data

Forks

1

Open issues

0

License

MIT

Last updated

2026-07-23

AI repository intelligence
FR-AI / ANALYSIS

Why it is worth attention

It provides a complete, production-ready pipeline from raw data to event scoring and signal generation with backtesting, all using real Chinese market sources, and is deployable both via Docker and locally.

Who it is for

  • Individual Chinese stock investors
  • Lightweight research teams
  • Developers building stock analysis tools
  • Quantitative traders needing event-driven signals

Use cases

  • Real-time event-driven stock signal generation and scoring
  • AI-powered Q&A on stock announcements and news with cited facts
  • Backtesting signal performance over 1-20 trading days
  • Unified data interface for market quotes, news, and corporate events

Strengths

  • No fake or simulated data – all pipelines use real AKShare and official sources
  • Modular architecture with clear separation of concerns (Laravel API, Nuxt frontend, FastAI services)
  • Comprehensive event processing chain: extraction, normalization, aggregation, scoring, explanation, and backtesting
  • Supports both Docker Compose and manual local installation with detailed scripts

Considerations

  • AI workflow module is not yet implemented (planned for future phases)
  • Requires running multiple services (four terminals) and local database setup
  • No simulated or demo data available for quick testing without real market connections

README quick start

ideaseek-trading-studio

Trading Studio 是一个面向中国股票交易者的事件驱动型投研平台,不做模拟数据演示,不做自动交易终端,重点建设:

  • A 股股票主数据、行情、新闻、公告、事件的统一数据底座
  • 基于事实引用的 AI 分析与问答
  • 面向个人投资者与轻量投研团队的可运行 SaaS 平台

仓库结构

apps/
  api/            Laravel 10 业务后端
  web/            Nuxt 4 前端
services/
  intelligence/   FastAPI 数据与 AI 服务
scripts/          本地安装与启动脚本
doc/              产品、接口、数据库与运维文档

当前开发阶段

当前已完成三个基础模块:

  • 模块 00:工程基线与运行基线
  • 模块 01:股票主数据模块
  • 模块 02:行情接入模块
  • 模块 03:新闻源接入模块
  • 模块 03.1:公告全文解析与附件抽取
  • 模块 03.2:公告结构化抽取
  • 模块 03.3:公告实体归一化与事件事实标准化
  • 模块 03.4:事件聚合与时间线标准化
  • 模块 04:事件评分与信号引擎
  • 模块 04.1:信号解释与回测基线

这十部分已经把真实代码、真实数据库结构、真实同步链路、新闻事件抽取、公告全文解析、公告结构化抽取、事件事实标准化、事件链聚合、交易信号生成、信号解释与回测基线和基础缓存层串起来,为后续 AI 模块铺路。

技术栈

  • PHP 8.1 + Laravel 10
  • Python 3.12 + FastAPI
  • Node 24 LTS + Nuxt 4
  • MySQL 8
  • Redis 7
  • Qdrant

非 Docker 本地安装

1. 环境要求

  • PHP 8.1+
  • Composer 2.8+
  • Python 3.12+
  • Node 24.11+
  • MySQL 8.0+
  • Redis 7+

2. 创建数据库

mysql -u root -p < scripts/setup-mysql.sql

3. 初始化

cp .env.example .env
./scripts/bootstrap-local.sh

4. 启动服务

终端 1:

./scripts/run-api.sh

终端 2:

./scripts/run-intelligence.sh

终端 3:

./scripts/run-web.sh

终端 4:

./scripts/run-scheduler.sh

调度器会默认每 10 分钟自动执行一次“一键刷新热点雷达”,串联行情、热点新闻、个股公告、事件链、信号生成和解释刷新。可通过根目录 .envapps/api/.env 调整:

OPS_AUTO_RADAR_ENABLED=true
OPS_RADAR_REFRESH_INTERVAL_MINUTES=10
OPS_RADAR_SYMBOLS=300059,000001,002311,300687,601127
OPS_RADAR_LIMIT=50

Docker Compose 安装

cp .env.example .env
docker compose up --build

访问地址

  • Web:http://localhost:3000
  • Laravel API:http://localhost:8000/api/v1/health
  • FastAPI Intelligence:http://localhost:8080/internal/v1/health

数据同步命令

当 MySQL、Laravel API、FastAPI Intelligence 都启动后,执行:

cd apps/api
php artisan market:sync-securities
php artisan market:sync-quotes 000001 600000
php artisan market:sync-daily-bars 000001 --start=2025-01-01 --end=2026-07-12
php artisan market:sync-indices
php artisan market:sync-index-daily-bars sh000001 --start=2025-01-01 --end=2026-07-12

系统会调用 FastAPI 的真实同步接口,并通过 AKShare 把主数据、行情快照、日线和指数数据写入 MySQL。

新闻模块同步命令:

cd apps/api
php artisan news:sync-sources
php artisan news:sync --scope=global --scope=notice --limit=20
php artisan news:sync --scope=stock --symbols=300059,000001 --limit=20
php artisan news:sync --scope=disclosu

Description

Trading Studio is an open-source, event-driven AI investment research platform for China's A-share market. It unifies market data, news, announcements, and corporate events with fact-based AI analysis and Q&A. Built for individual investors and small research teams.

Related repositories

Similar projects matched by category, topics, and programming language.

1227cwx
1227cwx GitHub avatar

HDupay

HDupay is an open-source demo platform for accepting stablecoin payments (USDC/USDT) on EVM networks using hierarchical deterministic wallets, built with Webman (PHP) and Vue 3.

PHP
22
islam-re
islam-re GitHub avatar

Algeria-wilayas

A dataset of all 69 Algerian wilayas (provinces) following the 2026 administrative reform, provided in multiple data formats.

Data & DatabasesDatabases & Storage
15
tigusigalpa
tigusigalpa GitHub avatar

coinglass-php

A PHP client for the Coinglass API v4 with typed REST and WebSocket support and first-class Laravel integration.

PHP
14