python-bittrex
python-bittrex copied to clipboard
Getting an error trying to initialize the library
I'm getting the following error:
TypeError: 'module' object is not callable
Not doing anything special yet, just trying to connect to Bittrex like so:
#!/usr/bin/env python
from bittrex import bittrex
api = bittrex(api_key, api_secret)
Are you sure you're doing from bittrex import bittrex
, not just import bittrex
?
First of all download bittrex.py and paste it to the project directory. Then you should change signature = hmac.new(self.secret, url, hashlib.sha512).hexdigest() to signature = hmac.new(self.secret.encode('utf-8'), url.encode('utf-8'), hashlib.sha512).hexdigest()