mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +00:00
binance: fix error check
This commit is contained in:
parent
6c29e10caf
commit
23dd60728e
|
@ -254,6 +254,10 @@ func (e *Exchange) RepayMarginAsset(ctx context.Context, asset string, amount fi
|
|||
|
||||
log.Infof("repaying margin asset %s amount %f", asset, amount.Float64())
|
||||
resp, err := req.Do(ctx)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
log.Debugf("margin repayed %f %s, transaction id = %d", amount.Float64(), asset, resp.TranID)
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user