Hi!

Thank you for providing a wonder environment to investigate the wonderful world of market data.

I run on Linux and would like to use the REST external API so I can edit in emacs, and such.  My first test has been unsuccessful and I'm betting someone else spot the problem.   I looked at jorgemanbia ruby implemention and tried to do the same thing..  It didn't work.. lol

import reqests, hashlib, time

authTok = "string from my accounts page"

user = 12345 # number from by accounts page

hasher = hashlib.sha256()
hasher.update(authTok)

ts = int(time.time())

authStr = hasher.hexdigest()

payload = {"Timestamp" : ts}

resp = requests.get("https://www.quantconnect.com/api/v2/projects/read", auth = (user, authTok), params = payload)

print resp.status_code
print resp.text

#################

when run, the printing the resp.text gives the following string

{"errors":["Hash doesn't match. UID: 123455 Hash: the string from hexdigest Timestamp: ''"],"success":false}

 

Any clues, pointers, help?

Thanks, Bill Bitner

Author