fix market error

This commit is contained in:
なるみ 2022-09-13 23:35:29 +08:00
parent 72f18c1057
commit 9af58b07ec

View File

@ -116,6 +116,9 @@ func (s *Strategy) generateSubmitOrders(ctx context.Context, session *bbgo.Excha
currentWeights := marketValues.Normalize()
for currency, targetWeight := range targetWeights {
if currency == s.BaseCurrency {
continue
}
symbol := currency + s.BaseCurrency
currentWeight := currentWeights[currency]
currentPrice := prices[currency]