{"repo":"roshameow/quantnight-frontend","free":true,"listed":false,"github":"https://github.com/roshameow/quantnight-frontend","clone":"git clone https://github.com/roshameow/quantnight-frontend.git","description":"A desktop application for quantitative research and simulation.","language":"Vue","stars":28,"topics":["desktop-app","quant","quantitative-finance","research","simulation","task-manager","tauri","vuejs"],"license":"MIT","category":"trading","readme_excerpt":"QuantNight 量化任务管理器 English QuantNight 是一款专为量化研究与模拟设计的桌面应用，旨在帮助您高效地管理、执行和分析各类量化任务。 --- 核心功能 - 统一的任务管理 ：在一个清晰的界面中查看所有普通、优先和超级任务。 - 灵活的任务创建 ：通过模板快速创建新任务，支持本地或远程执行。 - 便捷的任务操作 ：一键启动、暂停、更新或删除任务。 - 数据可视化与分析 ：内置数据浏览器，支持对结果集进行筛选、排序和关联性分析。 - 图形化应用配置 ：通过设置界面，轻松管理前后端的所有关键配置，无需手动修改文件。 --- 系统架构 ⚠️ 对开发者/Agent 最重要的一节 。量化回测是 状态驱动 的分布式系统：UI 与执行解耦，数据跨库流动。 \"本地/远程\"不是固定的机器，而是由设置（Settings）配置出来的概念 ——任何部署形态（单机、双机、异地）都通过配置表达，不要硬编码任何机器名/路径。 1. 配置驱动的\"本地/远程\"模型 配置项 位置 含义 --- --- --- mongodb.local uri Settings / config.toml 本地库连接（默认 mongodb://localhost:27017 ） mongodb.remote uri Settings / config.toml 远程库连接（如 mongodb://192.168.1.100:27017 = 执行机） env.working dir Settings / config.toml 后端 Python 脚本的工作目录 scripts.local workdir credentials.yaml 本地工作目录 scripts.remote host / remote workdir credentials.yaml 远程执行主机与目录 - 单机部署： remote uri 指向本机或留空， isRemote 永远 false。 - 双机部署（推荐）：桌面端负责 UI/任务管理，执行机（如 mac-mini）跑 Python 回测， remote uri / remote host 指向它。 2. 双数据库模型 应用同时持有 本地 与 远程 两个 MongoDB 客户端（ MongoClients { local, remote } ），按任务 isRemote 字段分流： 数据库 内容 读写位置 --- --- --- simulation mission.tasks 任务配置与状态（ 唯一权威来源 ） 永远在本地库 simulation db. 模拟 item 数据（settings/regular/feat/结果） 按 isRemote 分流：本地库 或 远程库 alpha db 核心 Alpha 结果 / PnL / 平台数据 本地库 3. 任务数据流 1. 创建任务 → 写本地库 simulation mission.tasks （前端任务列表从这里读）。 2. 生成列表 → 本地运行 mongo datum （模板生成 item 到 simulation db. ， 始终先写在本地库 ）。 3. 发送到远程 （可选，isRemote 任务）→ sync mission list.sh 把 simulation db. 推到 remote uri ，并标记 isRemote=true 。 4. 启动任务 → start task.sh ： - isRemote=false ：本地启动 Python。 - isRemote","default_branch":null,"files":null,"tree":[],"storefront":"/r/roshameow","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/roshameow/quantnight-frontend/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}