def getOpenOrders(self,url,comand, market):
nonce = int(time.time())
print(comand)
urlrequest = url + '?apikey=' + self.apiKey +'&command='+comand + '&nonce=' +str(nonce) + '¤cyPair=' + str(market)
print(urlrequest)
param = 'command='+comand + '&nonce=' +str(nonce) + "¤cyPair=" +str(market)
signature = hmac.new(self.Secret.encode(),param.encode(), hashlib.sha512).hexdigest()
headers = {
'Sign':signature,
'Key': self.apiKey
}
self.r = requests.post(urlrequest,headers= headers,)
print(self.r)
print(self.r.json())
You must remove the striked line and add the line below mentioned above.
WHY?
Simple! It seems that you have not formatted the post data correctly in your param variable.
Hope this helps!
If not, just pm me