Skip to content

Commit 9af58b0

Browse files
committed
fix market error
1 parent 72f18c1 commit 9af58b0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/strategy/marketcap/strategy.go

+3
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ func (s *Strategy) generateSubmitOrders(ctx context.Context, session *bbgo.Excha
116116
currentWeights := marketValues.Normalize()
117117

118118
for currency, targetWeight := range targetWeights {
119+
if currency == s.BaseCurrency {
120+
continue
121+
}
119122
symbol := currency + s.BaseCurrency
120123
currentWeight := currentWeights[currency]
121124
currentPrice := prices[currency]

0 commit comments

Comments
 (0)