WrBug
1087591ff6
Merge pull request #59 from WrBug/dev
...
fix: 支持部署时连接宿主机 MySQL
v2.5.1
2026-05-11 10:38:34 +08:00
WrBug
21c570c64c
Merge pull request #55 from codychen123/feat/real-pnl-statistics
...
feat: 修正跟单盈亏统计,加入未实现盈亏和持仓市值
2026-05-11 10:37:49 +08:00
codychen123
83432cf1c4
fix: run leader research asynchronously
2026-05-10 16:26:35 +08:00
codychen123
017c58d5bf
fix: preserve real degraded research failures
2026-05-10 15:54:45 +08:00
codychen123
1ce2f5d273
fix: avoid false partial research failures
2026-05-10 15:48:52 +08:00
WrBug
727fa7ed58
fix: 支持部署时连接宿主机 MySQL
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-05-10 01:02:55 +08:00
codyhhchen
4057b3f611
fix: gate research pool trial creation
2026-05-05 23:17:32 +08:00
codyhhchen
7c8761a049
fix: map leader research enums as varchar
2026-05-05 18:52:49 +08:00
codyhhchen
a3f74b8567
feat: add leader research agent
2026-05-05 18:17:51 +08:00
codyhhchen
82ecf31867
chore: ignore gstack qa artifacts
2026-05-04 17:06:54 +08:00
codyhhchen
e114312c0c
fix(qa): ISSUE-001 localize leader pool statuses
2026-05-04 16:34:03 +08:00
codyhhchen
e7894480f3
Merge remote-tracking branch 'fork/feat/real-pnl-statistics' into feat/real-pnl-statistics
2026-05-04 09:58:15 +08:00
codychen123
6cc7cfde10
feat: add copy trading safety and leader pool
2026-05-04 09:56:53 +08:00
codyhhchen
a7bfe660fc
feat: add copy trading safety and leader pool
2026-05-04 09:53:07 +08:00
codyhhchen
09f6e5346d
Merge remote-tracking branch 'origin/main' into feat/real-pnl-statistics
2026-04-30 23:32:53 +08:00
codychen123
bea0c0e6f0
Merge branch 'main' into feat/real-pnl-statistics
2026-04-30 20:25:27 +08:00
github-actions[bot]
cc6375104c
Merge branch 'WrBug:main' into main
2026-04-29 05:27:23 +00:00
WrBug
4b58b7cd46
Merge pull request #57 from WrBug/dev
2026-04-28 22:32:45 +08:00
WrBug
8ab8ae5205
style: 全局将 USDC 展示替换为 $ 符号
...
前端所有金额展示从 "100.00 USDC" 改为 "$100.00" 格式,
后端 Telegram 通知模板和错误提示同步更新。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
v2.5.0
2026-04-28 22:23:49 +08:00
WrBug
0769022878
feat: 添加 CLOB 2.0 迁移弹窗提醒与账户页迁移引导
...
登录后首次进入显示迁移提醒弹窗,引导用户前往账户页;
账户页首次进入时显示 Alert 提示 USDC.e → pUSD 迁移按钮;
移动端账户卡片补充 swap 操作按钮。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-04-28 21:59:15 +08:00
WrBug
06a122dd34
fix: 迁移链路外统一改为仅识别 pUSD
...
移除链上监听中对 USDC.e 的抵押品匹配,并将解包与审批相关说明统一为 pUSD 语义,避免在非 swap/wrap 流程继续使用 USDC.e。
Made-with: Cursor
2026-04-28 21:40:41 +08:00
WrBug
fb6b469e9f
fix: 修复 CLOB V2 下代理交易与链上成交解析问题
...
调整 CLOB API 地址并优化 Magic Proxy 的执行与 gas 限制,避免 wrap 与 relay 调用在 V2 环境下异常回滚。同时补充 pUSD/USDC.e 兼容与 ERC1155-only 成交价格回填逻辑,提升链上成交解析稳定性。
Made-with: Cursor
2026-04-28 21:34:43 +08:00
codychen123
504d0bbe36
perf: cache position quotes for PnL statistics
2026-04-26 17:07:54 +08:00
codychen123
ac1d6d64f2
feat: add real copy-trading pnl statistics
2026-04-26 15:32:06 +08:00
codychen123
5470b4dab6
ci: sync fork with upstream
2026-04-26 15:24:46 +08:00
WrBug
22a6544373
feat: CLOB V1 → V2 完整迁移
...
- 更新 EIP-712 签名结构: domain version "1"→"2", 移除 taker/expiration/nonce/feeRateBps, 新增 timestamp/metadata/builder
- 更新合约地址为 V2 (CTF_EXCHANGE, NEG_RISK_EXCHANGE)
- CLOB URL 切换到 clob-v2.polymarket.com
- 抵押品代币 USDC.e → pUSD (0xC011a7E12a19f7B1f670d46F03B03f3342E82DFB)
- 新增 USDC.e → pUSD wrap 功能 (CollateralOnramp 合约)
- SignedOrderObject 补充 API payload 必需的 taker/expiration 字段
- NewOrderRequest 补充 deferExec/postOnly 字段
- 前端账户管理新增 pUSD 迁移按钮
- 移除所有 feeRateBps 相关逻辑
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-04-20 22:24:50 +08:00
WrBug
04b7505094
Merge branch 'dev'
...
Made-with: Cursor
2026-03-30 12:55:20 +08:00
WrBug
2056417749
Merge pull request #41 from WrBug/ai_fix/n_39
...
fix: backtest equity curve bugs
v2.4.1
2026-03-30 11:32:36 +08:00
WrBug
748c871af4
fix: backtest equity curve bugs ( #39 )
...
- Fix SELL logic: correctly reduce position.quantity after selling (core bug)
Previously positions were never decremented, causing sold positions to be
settled again at backtest end, inflating final balance.
- Fix settleRemainingPositions: profitLoss now correctly computes
settlementValue - cost (was incorrectly using settlementValue.negate())
- Fix max drawdown calculation: use current balance instead of previous
iteration's runningBalance
- Frontend: add comment noting chart shows cash balance, not total equity
2026-03-28 18:06:06 +08:00
WrBug
53f1381c3b
chore: 移除 Bug 报告模板中手动添加 label 的文案
...
Made-with: Cursor
2026-03-10 12:53:06 +08:00
WrBug
4a3ebb674e
chore: 移除 Bug 报告模板中的 AI 自动修复确认复选框
...
Made-with: Cursor
2026-03-10 12:46:41 +08:00
WrBug
2b570a432a
fix(ci): 解析 Issue 编号时 grep 无匹配导致 step 退出
...
PR 描述中无 Closes/Fixes/Resolves #N 时,grep 返回 1,set -e 导致脚本
在未执行分支名回退逻辑前即退出。为管道添加 || true,使无匹配时继续
从分支名 ai_fix/N_xxx 解析 Issue 编号。
Made-with: Cursor
2026-03-10 12:44:52 +08:00
WrBug
5412a0eb49
Merge pull request #37 from WrBug/ai_fix/35_bug_1usdc
...
fix : #35 [Bug] / 价差策略按比例买入,购买的价值小于1usdc时,会下单失败
2026-03-10 12:40:12 +08:00
WrBug
7b4e702da9
ci(close-issue): add Telegram notification when AI-fixed issue is closed
...
- Get issue details (title, url) for TG message
- Send TG via TELEGRAM_BOT_TOKEN/TELEGRAM_CHAT_ID (same as docker-build)
- Use GH_TOKEN from GITHUB_TOKEN for gh CLI
Made-with: Cursor
2026-03-10 12:39:33 +08:00
WrBug
e32697e7ee
ci: add workflow to close issue when PR is merged
...
- Trigger on pull_request closed (merged) to main
- Parse issue number from PR body (Closes #N) or branch name (ai_fix/N_xxx)
- Close linked issue via GitHub API if still open
Made-with: Cursor
2026-03-10 12:34:35 +08:00
WrBug
d8a75fc8dd
fix : #35 [Bug] / 价差策略按比例买入,购买的价值小于1usdc时,会下单失败
2026-03-10 12:18:03 +08:00
WrBug
6cb48bb6cc
Update AI bug report template to bilingual (English/Chinese)
2026-03-10 02:59:34 +08:00
WrBug
e78785de7c
Add AI bug report template
2026-03-10 02:59:33 +08:00
WrBug
915d4570df
Update AI bug report template to bilingual (English/Chinese)
2026-03-10 02:39:50 +08:00
WrBug
48d6e82f43
Add AI bug report template
2026-03-10 02:30:26 +08:00
WrBug
46c32df421
fix(notification): 优化移动端消息设置页面交互体验
...
- 修复移动端 Tooltip 与点击事件冲突导致变量无法复制的问题
- 添加移动端备用复制方法(textarea + execCommand)
- 移除变量标签中的复制图标
- 移动端模板输入框调整为 15 行
- 调整系统设置菜单顺序
Made-with: Cursor
v2.4.0
2026-03-02 23:32:26 +08:00
WrBug
686d14b6e5
fix(account): 卖出订单通知与创建订单失败错误展示
...
- 手动卖出订单通知:side 固定为 SELL,outcome 使用 request.side(市场方向)
- 创建订单失败时从 API errorBody 解析 error 字段(Gson),用于 TG 通知展示
- 成功/失败分支均使用 NewOrderResponse.getErrorMessage() 获取错误文案
Made-with: Cursor
2026-03-02 23:08:23 +08:00
WrBug
561ebf0ce3
feat(订单推送/通知): 按实际成交价与 size_matched 展示价格与数量
...
- 实际成交价公式: original_size * price / size_matched,数量展示用 size_matched
- OrderPushService/OrderStatusUpdateService/CryptoTail: 用公式计算 avgFilledPrice,移除 getTrades 依赖
- TelegramNotificationService: 有 avgFilledPrice 时展示数量用 filled,ORDER_SUCCESS/CRYPTO_TAIL 一致
- 前端订单推送: 有成交时展示 size_matched;无 orderDetail 时用 WebSocket 数据计算价格与数量
- OrderDetailDto 增加 avgFilledPrice;PolymarketClobService 移除 getAvgFilledPriceFromTradeIds
Made-with: Cursor
2026-03-02 23:05:15 +08:00
WrBug
b8e10f340c
feat(skills): 添加 create-release skill 支持自动发布公告
...
- 将 create-release.sh 脚本改造为 Cursor skill
- 支持生成中英文 Release 内容
- 自动在 Issue #1 发布面向用户的公告
- 支持 commit 过滤(排除版本内修复)
Made-with: Cursor
2026-03-02 22:16:28 +08:00
WrBug
9c70dc762f
fix(frontend): 移除未使用变量与导入以消除 TS 报错
...
Made-with: Cursor
2026-03-02 22:07:04 +08:00
WrBug
8f0a49493c
refactor(notification): 优化模板配置布局并完善多语言支持
...
- 布局优化:模板类型改为顶部Tabs,内容区70%+变量面板30%
- 变量Tag UI优化:更精致的样式和悬浮效果
- 多语言:添加模板类型描述、变量label/description的i18n key(三语言)
- 后端精简:移除DTO中冗余的label/description/templateTypeName字段
- 清理:移除未使用的templates状态和fetchTemplates方法
Made-with: Cursor
2026-03-02 22:02:00 +08:00
WrBug
e7af4d4821
feat: 消息推送自定义模板与独立设置页
...
后端:
- 新增通知模板表与实体、DTO、Repository、NotificationTemplateService
- 支持 {{variable}} 模板语法,提供模板类型与变量接口
- TelegramNotificationService 改为通过模板渲染发送(ORDER_SUCCESS/ORDER_FAILED/ORDER_FILTERED/CRYPTO_TAIL_SUCCESS/REDEEM_SUCCESS/REDEEM_NO_RETURN)
- 模板 CRUD、重置默认、测试发送接口
- 补全订单过滤相关 i18n key(zh/en/zh-TW)
前端:
- 消息推送设置抽离为独立页 /system-settings/notification
- 系统设置概览改为入口卡片,侧栏增加「消息推送设置」菜单
- NotificationSettingsPage: 机器人配置 + 模板配置双卡片布局(与概览一致)
- 模板配置支持选择类型、编辑内容、变量面板(点击复制、悬停说明)、保存/重置/测试
- 多语言 key 补全(notificationSettings.templates.*、templateTypes.*)
Made-with: Cursor
2026-03-02 21:31:45 +08:00
WrBug
83bc209489
refactor(ci): simplify docker-build workflow and update TG notifications
...
- Remove package-only build type, unify to single build flow
- Add TG notification after package upload (before Docker build)
- Add TG notification after Docker image push
- Update notification messages to English
- Rename "Tag" to "Version" in notifications
Made-with: Cursor
2026-03-02 17:58:36 +08:00
WrBug
9b6cc63158
refactor(frontend): 优化仓位管理列表视图列结构
...
将12列精简为8列:
- 合并"数量"和"平均价格"为"持仓"列
- 合并"当前价格"、"当前价值"、"盈亏"、"已实现盈亏"为"当前价值/盈亏"列
- 减少列宽度,提升表格紧凑性
Made-with: Cursor
2026-03-02 17:54:03 +08:00
WrBug
96d224a5a3
fix(frontend): 移除 CryptoTailStrategyList 未使用的 useRef 导入
...
Made-with: Cursor
2026-03-02 17:44:10 +08:00