Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting an error trying to initialize the library #6

Open
faridelnasire opened this issue Oct 10, 2017 · 2 comments
Open

Getting an error trying to initialize the library #6

faridelnasire opened this issue Oct 10, 2017 · 2 comments

Comments

@faridelnasire
Copy link

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)
@ndri
Copy link
Owner

ndri commented Oct 10, 2017

Are you sure you're doing from bittrex import bittrex, not just import bittrex?

@alexsktl
Copy link

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()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants