mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
xfunding: log positionRisks
This commit is contained in:
parent
e4ababd39e
commit
bd347d5aa5
|
@ -714,7 +714,7 @@ func (s *Strategy) syncFuturesPosition(ctx context.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
log.Infof("position comparision: %s (spot) <=> %s (futures)", spotBase.String(), futuresBase.String())
|
||||
log.Infof("syncFuturesPosition: position comparision: %s (spot) <=> %s (futures)", spotBase.String(), futuresBase.String())
|
||||
|
||||
if futuresBase.Sign() > 0 {
|
||||
// unexpected error
|
||||
|
@ -1133,6 +1133,8 @@ func (s *Strategy) checkAndRestorePositionRisks(ctx context.Context) error {
|
|||
return err
|
||||
}
|
||||
|
||||
log.Infof("fetched futures position risks: %+v", positionRisks)
|
||||
|
||||
for _, positionRisk := range positionRisks {
|
||||
if positionRisk.Symbol != s.Symbol {
|
||||
continue
|
||||
|
|
Loading…
Reference in New Issue
Block a user