mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +00:00
binance: improve transfer logs
This commit is contained in:
parent
ea7af708f9
commit
feec194843
|
@ -381,7 +381,14 @@ func (e *Exchange) TransferFuturesAccountAsset(ctx context.Context, asset string
|
|||
}
|
||||
|
||||
resp, err := req.Do(ctx)
|
||||
log.Infof("futures transfer %s %s, transaction = %+v, err = %+v", amount.String(), asset, resp, err)
|
||||
|
||||
switch io {
|
||||
case types.TransferIn:
|
||||
log.Infof("internal transfer (spot) => (futures) %s %s, transaction = %+v, err = %+v", amount.String(), asset, resp, err)
|
||||
case types.TransferOut:
|
||||
log.Infof("internal transfer (futures) => (spot) %s %s, transaction = %+v, err = %+v", amount.String(), asset, resp, err)
|
||||
}
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
|
@ -162,6 +162,8 @@ func (s *Strategy) Defaults() error {
|
|||
s.MinHoldingPeriod = types.Duration(3 * 24 * time.Hour)
|
||||
}
|
||||
|
||||
s.positionType = types.PositionShort
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user