Bybt
  • General Info
  • General parameters
  • Api Key
  • futures
    • Exchange Open Interest
    • Exchange Open Interest Chart
    • Liquidation
    • Liquidation Chart
    • Long/Short Chart
    • Funding Rates
    • Exchange Vol
  • Options
    • Options Open Interest
    • Options Open Interest Chart
    • Exchange Vol
Powered by GitBook
On this page

Was this helpful?

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'
PreviousGeneral parametersNextExchange Open Interest

Last updated 3 years ago

Was this helpful?