binance: remove isMargin check

This commit is contained in:
c9s 2023-08-08 12:01:30 +08:00
parent c7845477b4
commit 241ce657c3
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54
2 changed files with 0 additions and 5 deletions

View File

@ -379,10 +379,6 @@ func (e *Exchange) QueryMarginBorrowHistory(ctx context.Context, asset string) e
//
// to call this method, you must set the IsMargin = true
func (e *Exchange) TransferMarginAccountAsset(ctx context.Context, asset string, amount fixedpoint.Value, io types.TransferDirection) error {
if !e.IsMargin {
return errors.New("you can not operate margin transfer on a non-margin session")
}
if e.IsIsolatedMargin {
return e.transferIsolatedMarginAccountAsset(ctx, asset, amount, io)
}

View File

@ -1 +0,0 @@
package deposit2transfer