Problem with Poloniex API

Asked

Viewed 67 times

0

I’m having problems with the Poloniex API, when I run the code

polo = poloniex.Poloniex('key', 'secret')
polo.sell('BTC_MoedaX', 0.003, 3)
polo.buy('BTC_MoedaX', 0.003, 3)

Returns the error:

{'error': 'Amount must be at least 0.000001.'}

However the amount indicated in the third parameter is greater than 0.000001 and still returns this error.

Edit: API documentation: https://poloniex.com/support/api/ Code I am using: https://pastebin.com/fbkheaRb (the same as in the documentation, but instead of urllib I use the request.

  • Have you tried ('BTC_MoedaX', 0.003, (0.01*0.003)) ?

  • Yeah, make the same mistake

  • In order to answer your question, one would have to either have more context, or also use the poloniex api - -it has a lot of poiuco susuários, relative to who knows how to answer questions here (I myself have no record there, why they never released my account).

  • then you need to give more information: Can you succeed with other calls to the API? Can you use examples of calls that work? Are there any other numerical Apiś? Is there a link to the documentation of these "buy" and "sell" methods? - The way it is, we don’t know what each parameter is. And finally - it works by putting numbers directly into the API, or you should be sending numbers as strings?

  • I edited the post with the requested information

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.