mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 00:35:15 +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
|
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 {
|
if err := strategy.Init(trader) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
Loading…
Reference in New Issue
Block a user