Closed rchaud99 closed 6 years ago
Are your credentials valid?
In [9]: b = Bittrex(None, None)
In [10]: b.get_balance('BTC')
Out[10]: {'message': 'APIKEY_INVALID', 'result': None, 'success': False}
Thanks skyl. I spent hours trying to change the source code bittrex.py but just realized I had an extra space in my API key. :)
No problemo.
which key do we need to insert(secret or key) to get the balance in json format through this url
https://bittrex.com/api/v1.1/account/getbalances?apikey=API_KEY
I tried putting both the keys and I received this response in both cases
{"success":false,"message":"NONCE_NOT_PROVIDED","result":null}
You need to add an apisign header param ( hash_hmac('sha512', $url, <private key>)
)and use the public key in het url
@gaethofs give me more information. what is $url and which parameter url api key then from hash_hmac?
Hi, Here is a little snippet of my code:
bapi = Bittrex(bittrex_key, bittrex_secret)
balance = 0
def updateBalance(): global balance balance = bapi.get_balance("BTC")['result']['Available'] print(balance, "BTC left.")
updateBalance()
However, when running the api call, it is returning "none" because Nonce is not provided. I don't see a place to enter the nonce in the function arguments/parameters, and I tried changing it in bittrex.py, but no luck. Can someone please help me? thanks