Skip to content

Commit 0a07a70

Browse files
authored
Merge pull request #943 from narumiruna/fix/marketcap-market-error
FIX: fix market error
2 parents 608f6b3 + 9af58b0 commit 0a07a70

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
@@ -117,6 +117,9 @@ func (s *Strategy) generateSubmitOrders(ctx context.Context, session *bbgo.Excha
117117
currentWeights := marketValues.Normalize()
118118

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

0 commit comments

Comments
 (0)