Bitcoin Forum

Economy => Exchanges => Topic started by: Bitlele on September 27, 2016, 02:11:38 PM



Title: Bittrex api problem
Post by: Bitlele on September 27, 2016, 02:11:38 PM


Hello i am a young developer this is my first time with the api of bittrex,
I am developing a python bot for bittrex, but is all the day that i try
to make a request to get the open ordera but it fails..
I dont know, why it dosent works the request status is 200 but this is
the reply:
{'success': False, 'message': 'INVALID_SIGNATURE', 'result': None}

this is my code:
https://codetidy.com/9172/

coudl you please help me?

Ps I have already red thedocumentation but there aren't so much
information..


Title: Re: Bittrex api problem
Post by: Pursuer on September 28, 2016, 07:48:10 AM
if you read the bittrex documentation here: https://bittrex.com/Home/Api carefully there is a python api wrapper already created: https://github.com/ericsomdahl/python-bittrex

I am not familiar with python to help you there but here are my suggestions to fix your own code:
- check your "urlrequest" to see if it is correct address or not. for example to getOpenOrders it should be like this
https://bittrex.com/api/v1.1/market/getopenorders?apikey=BlahBlahApiKeyString&nonce=1475048767
nonce is not time it is epoch time (google it) the time of this comment is: 1475048767