mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 00:35:15 +00:00
Merge pull request #1291 from c9s/c9s/strategy-deposit2transfer
FIX: [max] Fix QuerySpotAccount method
This commit is contained in:
commit
ca698f8a2c
|
@ -587,8 +587,7 @@ func (e *Exchange) QuerySpotAccount(ctx context.Context) (*types.Account, error)
|
|||
return nil, err
|
||||
}
|
||||
a.UpdateBalances(balances)
|
||||
|
||||
return nil, nil
|
||||
return a, nil
|
||||
}
|
||||
|
||||
func (e *Exchange) QueryAccount(ctx context.Context) (*types.Account, error) {
|
||||
|
|
|
@ -149,7 +149,7 @@ func (s *Strategy) checkDeposits(ctx context.Context) {
|
|||
if service, ok := s.session.Exchange.(spotAccountQueryService); ok {
|
||||
account, err2 := service.QuerySpotAccount(ctx)
|
||||
if err2 != nil {
|
||||
log.WithError(err2).Errorf("unable to update account")
|
||||
log.WithError(err2).Errorf("unable to query spot account")
|
||||
continue
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user