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

Get, check and cancel OCO orders

Open mayhem7 opened this issue 3 years ago • 2 comments

Hi guys, i'm trying to figure out how to get an active OCO order, if i use get_order which one i get? i mean... an OCO has TWO orders, how can i check both? and how can i cancel it? (both)? thanks!

mayhem7 avatar Jul 19 '21 22:07 mayhem7

Hi there... still trying to figure out how, using "get_order" with the "orderListId" returns "APIError(code=-2013): Order does not exist."

mayhem7 avatar Sep 13 '21 23:09 mayhem7

You can get the open OCO orders with get_open_margin_orders(). What I haven't yet figured out is how to cancel an OCO order with cancel_margin_oco_order()

Karlheinzniebuhr avatar Jul 17 '22 20:07 Karlheinzniebuhr