feat: 完成模拟交易闭环、App 与 A 股行情接入
Checks / verify (push) Failing after 9m52s

统一单入口 Go 工程与前端依赖目录,增加后台供应商配置、候选审核、计划预算、成交冲正、持仓复盘和站内通知。接入策略版本、Python 回测、可配置 A 股公开行情及 zap 文件轮转日志,补充迁移、契约与验证。
This commit is contained in:
2026-10-08 22:58:52 +08:00
parent bffdb3858b
commit 92329ddce2
145 changed files with 18593 additions and 587 deletions
+9 -1
View File
@@ -33,4 +33,12 @@ func ParseMoney(value string) (int64, error) {
return amount, nil
}
func FormatMoney(minor int64) string { return fmt.Sprintf("%d.%02d", minor/100, minor%100) }
func FormatMoney(minor int64) string {
sign := ""
absolute := uint64(minor)
if minor < 0 {
sign = "-"
absolute = uint64(-(minor + 1)) + 1
}
return fmt.Sprintf("%s%d.%02d", sign, absolute/100, absolute%100)
}