mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
adjust volume for balance
This commit is contained in:
parent
ef622b0c7c
commit
79f9d078b6
|
@ -37,6 +37,11 @@ func (trader *Trader) RunStrategy(ctx context.Context, strategy Strategy) (chan
|
|||
}
|
||||
|
||||
trader.Context.Balances = balances
|
||||
for _, balance := range balances {
|
||||
if util.NotZero(balance.Available) {
|
||||
log.Infof("[trader] balance %s %f", balance.Currency, balance.Available)
|
||||
}
|
||||
}
|
||||
|
||||
if err := strategy.Init(trader) ; err != nil {
|
||||
return nil, err
|
||||
|
|
Loading…
Reference in New Issue
Block a user