Skip to content

Commit

Permalink
fix: update code
Browse files Browse the repository at this point in the history
  • Loading branch information
HaoZhengZhao committed Nov 23, 2024
1 parent 4654cc3 commit f09568c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
### Change Log

## v0.0.47
- 修复bug
- 更新 ui

## v0.0.46
- 订单增加对币安订单的 orderId 关联
- 增加自定义策略的测试结果集
Expand Down
2 changes: 1 addition & 1 deletion feature/feature.go
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ func StartTrade() {
/*************************************************检查当前仓位数量 start************************************************************ */
allMyCount := positionCount + len(allOpenOrders)
if allMyCount >= systemConfig.FutureMaxCount {
logs.Info("position+open order: %d, is over max%d, stop open new order", allMyCount, systemConfig.FutureMaxCount)
logs.Info("position+open order: %d, is over max %d, stop open new order", allMyCount, systemConfig.FutureMaxCount)
return
}
/*************************************************检查当前仓位数量 end************************************************************ */
Expand Down
6 changes: 5 additions & 1 deletion feature/feature_test_strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ func NoticeAllSymbolByStrategy() {
}
return
}
exclude_symbols_map := getExcludeSymbols()
if len(exclude_symbols_map) > systemConfig.FutureMaxCount {
logs.Info("test position order: %d, is over max %d, stop open new test order", exclude_symbols_map, systemConfig.FutureMaxCount)
return
}

logs.Info("offsetId: ", offsetId)
var coins []*models.Symbols
Expand All @@ -58,7 +63,6 @@ func NoticeAllSymbolByStrategy() {
offsetId += 10 // 避免无限处于循环
}

exclude_symbols_map := getExcludeSymbols()
for _, coin := range coins {
if _, exist := exclude_symbols_map[coin.Symbol]; exist {
continue
Expand Down

0 comments on commit f09568c

Please sign in to comment.