Closed lukasz-kaniowski closed 7 years ago
Hi, buy method parameter is an object, please call it as below:
tradingApi.buy({
currencyPair: 'BTC_DGB',
amount: 130,
rate: 0.000005
}).then(msg => console.log(msg.body))
.catch(err => console.log(err))
I updated the readme accordingly.
sure it is, I'm blind sometimes. thanks for reply.
it's okay, thanks.
I'm getting
body: '{"error":"Total must be at least 0.0001."}' }
error every time when I'm trying to buy. here is the code snippetI've tested the same amount with https://github.com/premasagar/poloniex.js and it works fine.
Any ideas?