Reputation: 2842
I am writing python bot for poloniex.
polo = poloniex.Poloniex('key', 'secret')
polo.sell('BTC_ETH', 0.043, 0.01)
polo.buy('BTC_ETH', 0.043, 0.01)
Buy and sell functions raises error 'Total must be at least 0.0001.'
Why poloniex return this error? The balance is sufficient for the transaction. A similar transaction through web interface is successful.
Upvotes: 1
Views: 2407
Reputation: 78
The third parameter "amount" is not in BTC, but in your altcoin, so the correct code is:
polo.sell('BTC_ETH', 0.043, (0.01*0.043))
polo.buy('BTC_ETH', 0.043, (0.01*0.043))
Upvotes: 2