python-binance
python-binance copied to clipboard
OCO order on margin side
Hi,
I'm looking to know how to create an OCO order in margin, not in SPOT. I looked in the doc, without finding what I needed, any idea?
_.client = Client('mykey', 'mysecret')
_.client.create_oco_order(
symbol='ETHUSDT',
side='BUY',
stopLimitTimeInForce='GTC',
quantity= 0.05,
stopPrice= 243,
stopLimitPrice= 245,
price= 220
)
With this code, the OCO order is well created but in the SPOT part. In the same way, i'm looking for how to change the OCO order mode (normal, borrow, repay)
Thanks in advance!
Did you figure out how to do it . I am also looking for the same.
Any update about this ?
Did you manage to find a solution?