Exemplo n.º 1
0
def get_result(type):
    PAYLOAD = api.PAYLOAD
    PAYLOAD["type"] = type
    content = api.get_response(URL, PAYLOAD)
    content = json.loads(content)

    return content
Exemplo n.º 2
0
def get_result(currency):
	PAYLOAD = api.PAYLOAD
	PAYLOAD["currency"] = currency
	content = api.get_response(URL, PAYLOAD)
	content = json.loads(content)

	return content
Exemplo n.º 3
0
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
Exemplo n.º 4
0
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
Exemplo n.º 5
0
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
Exemplo n.º 6
0
def check(img_path1, img_path2):
    response = get_response(img_path1, img_path2)
    #print(response)
    return response['confidence'] > 80
Exemplo n.º 7
0
def get_result():
    PAYLOAD = api.PAYLOAD
    content = api.get_response(URL, PAYLOAD)
    content = json.loads(content)

    return content