ericsomdahl / python-bittrex

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

APISIGN_NOT_PROVIDED #113

Open SonerAbay opened 6 years ago

SonerAbay commented 6 years ago

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?

pigslayer12 commented 6 years ago

its buy_limit not buylimit, hope it works now

Super-Fly commented 6 years ago

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?

tarun1475 commented 6 years ago

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