Currently all our API endpoints are private, you need a token to access these endpoints.
Please contact us to get the token.
Make sure the Bearer token is included in the HTTP header for every API request.
目前所有的API接口都是私有接口,您需要使用分配的token来访问。
请将Bearer token放置于每一个HTTP请求的 header中。
HTTP Header
Authorization: Bearer 1b44b61399c61bcf9416ad846dd0e4
Accept:application/jsonPython Example
import requests
url = 'https://sandboxapi.legendtrading.com'
api_token = '1b44b61399c61bcf9416ad846dd0e4'
headers = {'Authorization': 'Bearer %s' % api_token,'Accept':'application/json'}
response = requests.get(url + '/pairs/', headers=headers)