mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 00:35:15 +00:00
fix market error
This commit is contained in:
parent
72f18c1057
commit
9af58b07ec
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue
Block a user