Parameters for buy order on BTC-E Using the BTC-E API 'm getting an error of You incorrectly entered one of fields. when I post this as the data in a buy order.

{'pair': 'btc_usd', 'amount': 0.1, 'rate': 44.7084704, 'type': 'buy', 'method': 'Trade'}


Does anyone know where I'm going wrong?
Problem solved. The error is caused by too many decimal places in the rate parameter. It would be good if the API returned a more informative error message though.

There is an API call to find the correct maximum number of places, as well as the minimum order for each currency pair. https://btc-e.com/api/3/info returns a list of currencies and information. The documentation is in Russian but translates easily with Google Translate.