Sample Client (Python)

The sample code below shows how to get the trade history of all the users belong to your exchange.

import requests

api_token = "XXXXXXX"

headers = {
    'Authorization': 'Bearer %s' % api_token,
    'Accept':'application/json'
}

data = {
    'app_id': 'Bitrue'
}

base_url = 'https://sandboxapi.legendtrading.com/'

response = requests.get(base_url + 'pairs', json=data, headers=headers)
response_data = response.json()

print(response_data)