一个面向中国A股股票交易者的事件驱动型投研平台,整合真实行情、新闻、公告和事件数据,提供基于事实引用的AI分析,而不包含模拟数据或自动交易。

Stars

14

7 天增长

暂无数据

Fork 数

1

开放 Issue

0

开源协议

MIT

最近更新

2026-07-23

AI 仓库情报摘要
FR-AI / ANALYSIS

为什么值得关注

该仓库提供了一个从原始数据到事件评分和信号生成并附带回测的完整生产级流水线,全部使用真实的中国市场数据源,并且支持Docker和本地两种部署方式。

适合谁使用

  • 中国个人股票投资者
  • 轻量级投研团队
  • 构建股票分析工具的开发者
  • 需要事件驱动信号的量化交易员

典型使用场景

  • 基于真实事件驱动的股票信号生成和评分
  • 在公告和新闻上提供带事实引用的AI问答
  • 对信号进行1至20个交易日的回测表现分析
  • 统一接口获取市场行情、新闻和公司事件数据

项目优势

  • 不使用假数据或模拟数据——所有流水线使用真实的AKShare和官方数据源
  • 模块化架构,Laravel API、Nuxt前端和FastAI服务职责清晰
  • 完整的事件处理链:抽取、归一化、聚合、评分、解释和回测
  • 同时支持Docker Compose和本地手动安装,并提供详细脚本

使用前须知

  • AI工作流模块尚未实现(计划在后续阶段完成)
  • 需要运行多个服务(四个终端)并配置本地数据库
  • 没有提供模拟或演示数据,无法在不连接真实市场的情况下快速测试

README 快速开始

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

项目描述

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.

相关仓库与替代方案

根据分类、Topic 和编程语言匹配的相似项目。

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.

数据与数据库数据库与存储
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