I will look into it later today, but my Java experience is very limited.
I think i only changed the amount value (in file ..tradingagent.js)
will test to round both to 3 decimal, but i dont think anymore that this is the issue.
The examples from BTC-E exteed the 3 decimals and Gekko bot uses 8 decimals as well...
I also found API Example from BTCE site:
Sample request:
https://btc-e.com/api/3/trades/btc_usd{"type":"bid","price":243.141,"amount":0.015,"tid":54711701,"timestamp":1431264485}
{"type":"ask","price":242.412,"amount":0.01002,"tid":54711707,"timestamp":1431264511}
according to this the type should be bid/ask...
while in the documentation they (BTCE) say the type is buy/sell
i think in your code it is buy sell too. Now the more i look into it the less i underestand
Is there an easy way to write the actual API request for buy sell in the logfile (the exact same thing as is send to btce api)?
Because then the problem should be found easy i guess.
EDIT:It just successfully bought and sold ...just did rounded to 3 decimals for both price and amount in tradingagent.js
for exampel: "this.orderDetails.price = tools.round(lowestAskWithSlippage, 3);"
but i think the amount can be up to 8 decimals, its should just be the price rounded to 3 decimals.