def _query_order(self): if not self._order_status: log.warning("there is no order found!") return False query = BINANCE_INSTANCE.query_order(self._trading_pair, self._order_id) return query.get("status", "NEW")
def _cancel(self): if not self._order_status: log.warning("there is no order found!") return False return BINANCE_INSTANCE.cancel_order(self._trading_pair, self._order_id)