ericsomdahl / python-bittrex

Python bindings for bittrex
MIT License
585 stars 283 forks source link

error exception method call not available #115

Open NormanKonja opened 6 years ago

NormanKonja commented 6 years ago

from bittrex import Bittrex, API_V2_0

my_bittrex = Bittrex(None, None, api_version=API_V2_0) # or defaulting to v1.1 as Bittrex(None, None) my_bittrex.get_markets()

in _api_query raise Exception('method call not available under API version {}'.format(self.api_version)) Exception: method call not available under API version v2.0

PZdunczyk commented 6 years ago

I got the same thing Wondering how to get around it.

NormanKonja commented 6 years ago

Remove the version just do Bittrex(key,secret)

Sent from my iPhone

On Dec 26, 2017, at 1:59 AM, PZdunczyk notifications@github.com wrote:

I got the same thing Wondering how to get around it.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

skyl commented 6 years ago

get_markets is not available in 2.0. This exception is explicitly raised to indicate that.

NormanKonja commented 6 years ago

it also doesn work when on 1.1 but like i said I just removed version altogether and it worked