Api Key
All api require permission validation.you need to add "bybtSecret" in http request header.
Python Code:
import requests
url = "http://open-api.bybt.com/api/pro/v1/futures/openInterest?interval={interval}&symbol={symbol}"
params = {}
headers = {
'bybtSecret': 'apiKey'
}
response = requests.request("GET", url, headers=headers, data = params)
print(response.text.encode('utf8'))
Curl Code:
curl --location --request GET 'http://open-api.bybt.com/' \
--header 'bybtSecret: apiKey'
Last updated
Was this helpful?