xfunding: log spot balance

This commit is contained in:
c9s 2023-06-16 17:43:57 +08:00
parent a766d88d60
commit 12aad7b292
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -871,6 +871,8 @@ func (s *Strategy) syncSpotPosition(ctx context.Context) {
return
}
log.Infof("spot balance: %+v", b)
orderQuantity = fixedpoint.Min(b.Available, orderQuantity)
// avoid increase the order size