adjust volume for balance

This commit is contained in:
c9s 2020-07-14 00:38:52 +08:00
parent ef622b0c7c
commit 79f9d078b6

View File

@ -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