ericsomdahl / python-bittrex

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

How to... connect? #154

Closed Sajam closed 6 years ago

Sajam commented 6 years ago

Hi,

In Bittrex API Keys section I can only see "Key" (no "Secret").

How to use it to authenticate? I've tried the following:

In [16]: e = Bittrex('myapikey', None, api_version=API_V1_1
    ...: )

In [17]: e.get_balances()
Out[17]: {'message': 'INVALID_SIGNATURE', 'result': None, 'success': False}

In [18]: e = Bittrex('myapikey', '', api_version=API_V1_1)

In [19]: e.get_balances()
Out[19]: {'message': 'INVALID_SIGNATURE', 'result': None, 'success': False}

In [20]: e = Bittrex(None, 'myapikey', api_version=API_V1_1
    ...: )

In [21]: e.get_balances()
Out[21]: {'message': 'myapikey', 'result': None, 'success': False}

In [22]: e = Bittrex('', 'myapikey', api_version=API_V1_1)

In [23]: e.get_balances()
Out[23]: {'message': 'APIKEY_INVALID', 'result': None, 'success': False}

Thanks!

Sajam commented 6 years ago

Oh got it. Sorry, the secret is displayed only once, after creation. Thanks and sorry for reporting!