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

Unable to create OTOCO/OCO?, orders in binace futures #643

Open bashman opened 3 years ago

bashman commented 3 years ago

I am using binance futures, but I dont make orders/positions of otoco type.

At moment I am poling in the exchange for order status, puted by api rest, but, if I make operations from the binance futures dashboard, my websocket detect OTOCO orders type. If take profit or stoploss are triggered, all orders and positions closes inmediatly.

Positions and orders puted by api rest, It is mandatory to sense the orders and close them manually if/tp/sl are tiggered. :-(

Some advice?.

MrGeorge2 commented 3 years ago

Any update?

migueltg commented 3 years ago

I am thinking do it with websocket using user data stream https://dev.binance.vision/t/how-to-implement-otoco-tp-sl-orders-using-api/1622

Saahil-exe commented 2 years ago

I am thinking do it with websocket using user data stream https://dev.binance.vision/t/how-to-implement-otoco-tp-sl-orders-using-api/1622

can you post the code you used?