sammchardy / python-binance

Binance Exchange API python implementation for automated trading
https://python-binance.readthedocs.io/en/latest/
MIT License
5.91k stars 2.19k forks source link

How to change Perpetual Margin Mode between Cross and Isolated when using client.futures_create_order? #1296

Closed elderwang9527 closed 1 year ago

elderwang9527 commented 1 year ago

I want to make all my futures orders using Isolated but not Cross, what should I do? I've try add the isIsolated='TRUE'into futures_create_order(), but it didn't works.

elderwang9527 commented 1 year ago

I've found the answer: client.futures_change_margin_type(symbol=_symbol, marginType="ISOLATED")