python-binance icon indicating copy to clipboard operation
python-binance copied to clipboard

OCO order on margin side

Open denisprovost opened this issue 5 years ago • 3 comments

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!

denisprovost avatar Jun 18 '20 20:06 denisprovost

Did you figure out how to do it . I am also looking for the same.

ankitmaurya001 avatar Sep 27 '20 14:09 ankitmaurya001

Any update about this ?

canache avatar Mar 10 '21 10:03 canache

Did you manage to find a solution?

Karlheinzniebuhr avatar Jul 15 '22 20:07 Karlheinzniebuhr