python-bittrex
python-bittrex copied to clipboard
APISIGN_NOT_PROVIDED
I'm having this problem when I call limit buy method. I'm using bittrex API through python-bittrex.
buylimit(market, amount, price)
My script supposed to buy the coin saved in a .txt file. It checks every second whether something saved or not if yes, it should buy that coin via Bittrex API. It can get the latest price of the coing via api but limit buy doesn't work. No error etc. It just doesn't work. I gave proper permissions to my API on bittrex. And set up everything(key etc.) correctly. How can I solve this?
its buy_limit not buylimit, hope it works now
You can get this error when you even pass wrong parameters to the API, for example:
If you provide to amount param the number of BTC that you want to spend, not the amount of the currency that you want to buy, it will give you the APISIGN_NOT_PROVIDED error.
Maybe we have to mention that type of error in the readme file?
Look at this function it is working fine for me and tested.
function calculateSign(url){ var sign=crypto.createHmac('sha512',constants.bittrexCredentials.SECRET);
sign = sign.update(url,'ascii');
sign = sign.digest('hex');
return sign;
} Full Implementation repo : https://github.com/tarun1475/Nodejs-Bittrex-Client