def get_result(type): PAYLOAD = api.PAYLOAD PAYLOAD["type"] = type content = api.get_response(URL, PAYLOAD) content = json.loads(content) return content
def get_result(currency): PAYLOAD = api.PAYLOAD PAYLOAD["currency"] = currency content = api.get_response(URL, PAYLOAD) content = json.loads(content) return content
def get_result(order_id, currency): PAYLOAD = api.PAYLOAD PAYLOAD["currency"] = currency PAYLOAD["order_id"] = order_id content = api.get_response(URL, PAYLOAD) content = json.loads(content) return content
def get_result(price, qty, currency): PAYLOAD = api.PAYLOAD PAYLOAD["price"] = price PAYLOAD["qty"] = qty PAYLOAD["currency"] = currency content = api.get_response(URL, PAYLOAD) content = json.loads(content) return content
def get_result(order_id, price, qty, is_ask, currency): PAYLOAD = api.PAYLOAD PAYLOAD["order_id"] = order_id PAYLOAD["price"] = price PAYLOAD["qty"] = qty PAYLOAD["is_ask"] = is_ask PAYLOAD["currency"] = currency content = api.get_response(URL, PAYLOAD) content = json.loads(content) return content
def check(img_path1, img_path2): response = get_response(img_path1, img_path2) #print(response) return response['confidence'] > 80
def get_result(): PAYLOAD = api.PAYLOAD content = api.get_response(URL, PAYLOAD) content = json.loads(content) return content