Open DokRaphael opened 6 years ago
As a temporary workaround you could use BNB coins to pay for fees (see binance settings), so the fee is not subtracted from the coins when you buy them. This way the buy amount will equal the sell amount.
I have the same problem...and I'm using BNB but still got that error when selling and buying and most of the times exception happens when I'm low on funds... I think that calculates fees somewhere.
as workaround (for BTC trading too) you can change in TradingClient.java:
NewOrder order = new NewOrder(symbol, OrderSide.SELL, OrderType.LIMIT, TimeInForce.GTC, "" + quantity, priceString);
to:
NewOrder order = new NewOrder(symbol, OrderSide.SELL, OrderType.LIMIT, TimeInForce.GTC, "" + Double.valueOf(getTradingBalance().getFree()).intValue(), priceString);
But note: After the change, all currencies >1 gets sold, so i you want to hold funds than do not change TradingClient.java.
Hi The bot bought 500 XVG When he tries to sell I get :