Bybt
Search…
Api Key
All api require permission validation.you need to add "bybtSecret" in http request header.
1
Python Code:
2
3
import requests
4
5
url = "http://open-api.bybt.com/api/pro/v1/futures/openInterest?interval={interval}&symbol={symbol}"
6
7
params = {}
8
headers = {
9
'bybtSecret': 'apiKey'
10
}
11
12
response = requests.request("GET", url, headers=headers, data = params)
13
14
print(response.text.encode('utf8'))
15
Copied!
1
Curl Code:
2
3
curl --location --request GET 'http://open-api.bybt.com/' \
4
--header 'bybtSecret: apiKey'
Copied!
Last modified 5mo ago
Copy link