Other endpoints retruns 200 success but the /sapi/v1/c2c/chat/retrieveChatCredential endpoint returns an “illegal parameter” noteice. I am not sure why. As per the document, it requires no parameter. Below is a snippet of my script
import requests, json, time, hashlib,hmac
from urllib.parse import urlencode
import time
apikey = ""
secret = ""
servertime = requests.get("https://api.binance.com/api/v3/time")
servertimeobject = json.loads(servertime.text)
servertimeint = servertimeobject['serverTime']
params = urlencode({
"timestamp" : servertimeint,
})
hashedsig = hmac.new(secret.encode('utf-8'), params.encode('utf-8'),
hashlib.sha256).hexdigest()
credendpoin= "https://api.binance.com/sapi/v1/c2c/chat/retrieveChatCredential"
mpparam={
}
res = requests.get(url=credendpoin,data=mpparam,
headers = {
"X-MBX-APIKEY" : apikey,
},
params = {
#"recvWindow" : 5000,
"timestamp" : servertimeint,
"signature" : hashedsig,
}
)
print (res.text , hashedsig)
any help to resolve this {“code”:-1102,“msg”:“illegal parameter”}
would be much appreciated