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

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

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

    return content