python-binance
python-binance copied to clipboard
Get, check and cancel OCO orders
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!
Hi there... still trying to figure out how, using "get_order" with the "orderListId" returns "APIError(code=-2013): Order does not exist."
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()