user1941407
user1941407

Reputation: 2842

Poloniex api 'Total must be at least 0.0001' error

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

Answers (1)

jalso
jalso

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

Related Questions