I get the following message when trying to send a buy/sell order through btc-e api using a variable:
"you incorrectly entered one of the fields"
.
This is the line of code I use for sending an order:
APIMain.Trade(BtcePair.BtcUsd, TradeType.Sell, Math.Round(myAskP, 4), Math.Round(myAskQ, 4));
Sending an order via api does work when I enter it like this:
APIMain.Trade(BtcePair.BtcUsd, TradeType.Sell, 800m, 0.5m);
How do I force a decimal variable to be formatted like the line above? Anybody experienced similar problems?