auto_trade_sys/frontend
薇薇安 42480ef886 feat(trades): 添加时间筛选功能以优化交易记录查询
在 `trades.py` 中新增 `time_filter` 参数,允许用户按平仓时间或开仓时间筛选交易记录。更新 `Trade.get_all` 方法以支持该功能,并调整查询逻辑以符合新的时间筛选需求。同时,前端组件 `TradeList.jsx` 也进行了相应更新,增加了时间筛选按钮,提升了用户体验和数据查询的灵活性。
2026-02-17 08:01:35 +08:00
..
src feat(trades): 添加时间筛选功能以优化交易记录查询 2026-02-17 08:01:35 +08:00
.gitignore
index.html
package-lock.json a 2026-02-01 22:36:52 +08:00
package.json a 2026-02-01 22:36:52 +08:00
README.md
REDUX_SETUP.md
vite.config.js
山寨币策略快速应用说明.md

前端应用 (Frontend)

币安自动交易系统前端界面

技术栈

  • React 18
  • Vite
  • React Router
  • Recharts (图表)
  • Axios (HTTP请求)

安装

cd frontend
npm install

开发

npm run dev

访问 http://localhost:3000

构建

npm run build

构建产物在 dist/ 目录

环境变量

创建 .env 文件:

VITE_API_URL=http://localhost:8000

功能

  • 配置管理:可视化配置交易参数
  • 交易记录:查看历史交易和统计
  • 仪表板:实时查看账户和持仓信息