mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
binance: remove isMargin check
This commit is contained in:
parent
c7845477b4
commit
241ce657c3
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
package deposit2transfer
|
Loading…
Reference in New Issue
Block a user