I am trying to download historical futures but get an permission error
“code”:-1002,“msg”:“You are not authorized to execute this request.”
what can I do to troubleshoot this issue further?
$python Futures-order-book-Level2-data-download.py
response status code: 401
response content: b'{"code":-1002,"msg":"You are not authorized to execute this request."}'
Traceback (most recent call last):
File "/binance-public-data/Futures_Order_Book_Download/Futures-order-book-Level2-data-download.py", line 99, in <module>
downloadID = download_response.json()["id"]
KeyError: 'id'
# Specify the api_key and secret_key with your API Key and secret_key
api_key = "ZRXXXX"
secret_key = "7IuXXX"
# Specify the four input parameters below:
symbol = "BTCUSDT" # specify the symbol name
startTime = 1711497600000 # specify the starttime
endTime = 1712102400000 # specify the endtime
dataType = "T_DEPTH" # specify the dataType to be downloaded
I can see in the comments that you need to be a VIP member now to have access?