mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 16:25:16 +00:00
connect sync with deposit and withdraw services
This commit is contained in:
parent
54ba240317
commit
38b9baf340
|
@ -31,6 +31,18 @@ func (s *SyncService) SyncSessionSymbols(ctx context.Context, exchange types.Exc
|
|||
}
|
||||
}
|
||||
|
||||
if err := s.DepositService.Sync(ctx, exchange); err != nil {
|
||||
if err != ErrNotImplemented {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
if err := s.WithdrawService.Sync(ctx, exchange); err != nil {
|
||||
if err != ErrNotImplemented {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
if err := s.RewardService.Sync(ctx, exchange); err != nil {
|
||||
if err != ErrExchangeRewardServiceNotImplemented {
|
||||
return err
|
||||
|
|
Loading…
Reference in New Issue
Block a user