mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
xfunding: fix syncSpotPosition cancel order issue
This commit is contained in:
parent
2813ede7ed
commit
34d42afbec
|
@ -826,7 +826,7 @@ func (s *Strategy) syncSpotPosition(ctx context.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
log.Infof("spot/futures positions: %s (spot) <=> %s (futures)", spotBase.String(), futuresBase.String())
|
||||
log.Infof("syncSpotPosition: spot/futures positions: %s (spot) <=> %s (futures)", spotBase.String(), futuresBase.String())
|
||||
|
||||
if futuresBase.Sign() > 0 {
|
||||
// unexpected error
|
||||
|
@ -834,7 +834,7 @@ func (s *Strategy) syncSpotPosition(ctx context.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
_ = s.futuresOrderExecutor.GracefulCancel(ctx)
|
||||
_ = s.spotOrderExecutor.GracefulCancel(ctx)
|
||||
|
||||
ticker, err := s.spotSession.Exchange.QueryTicker(ctx, s.Symbol)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue
Block a user