Skip to content

Getting an error trying to initialize the library #6

Open

Description

@faridelnasire

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)

Activity

  1. ndri commented on Oct 10, 2017

    @ndri
    Owner

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

  2. alexsktl commented on Oct 25, 2017

    @alexsktl

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions