unterstein / binance-trader

Experimental trading bot for crypto currency on Binance.com
Apache License 2.0
276 stars 145 forks source link

5 times trying to buy then Cancel #14

Open stevengehner opened 6 years ago

stevengehner commented 6 years ago

nothing bought, let`s check 2018-01-15 11:26:55.852 INFO 15 --- [pool-1-thread-1] io.github.unterstein.BinanceTrader : Buy detected 2018-01-15 11:26:55.852 INFO 15 --- [pool-1-thread-1] io.github.unterstein.TradingClient : Buying 110 for 0.00009706

2018-01-15 11:26:58.856 INFO 15 --- [pool-1-thread-1] io.github.unterstein.BinanceTrader : buyPrice:0.00009707 sellPrice:0.00009821 bid:0.00009822 ask:0.00009822 price:0.00009792 profit:0.00009814 diff:0.00000008

2018-01-15 11:26:59.622 INFO 15 --- [pool-1-thread-1] io.github.unterstein.BinanceTrader : Tradingbalance: AssetBalance[asset=XVG,free=0.00000000,locked=0.00000000] 2018-01-15 11:26:59.623 INFO 15 --- [pool-1-thread-1] io.github.unterstein.BinanceTrader : order still new, time 1

2018-01-15 11:27:01.839 INFO 15 --- [pool-1-thread-1] io.github.unterstein.BinanceTrader : buyPrice:0.00009707 sellPrice:0.00009831 bid:0.00009832 ask:0.00009832 price:0.00009832 profit:0.00009814 diff:0.00000018

2018-01-15 11:27:02.416 INFO 15 --- [pool-1-thread-1] io.github.unterstein.BinanceTrader : Tradingbalance: AssetBalance[asset=XVG,free=0.00000000,locked=0.00000000] 2018-01-15 11:27:02.416 INFO 15 --- [pool-1-thread-1] io.github.unterstein.BinanceTrader : order still new, time 2

2018-01-15 11:27:04.850 INFO 15 --- [pool-1-thread-1] io.github.unterstein.BinanceTrader : buyPrice:0.00009707 sellPrice:0.00009829 bid:0.00009830 ask:0.00009830 price:0.00009832 profit:0.00009814 diff:0.00000016

2018-01-15 11:27:05.450 INFO 15 --- [pool-1-thread-1] io.github.unterstein.BinanceTrader : Tradingbalance: AssetBalance[asset=XVG,free=0.00000000,locked=0.00000000] 2018-01-15 11:27:05.450 INFO 15 --- [pool-1-thread-1] io.github.unterstein.BinanceTrader : order still new, time 3

2018-01-15 11:27:07.853 INFO 15 --- [pool-1-thread-1] io.github.unterstein.BinanceTrader : buyPrice:0.00009707 sellPrice:0.00009828 bid:0.00009829 ask:0.00009829 price:0.00009832 profit:0.00009814 diff:0.00000015

2018-01-15 11:27:08.447 INFO 15 --- [pool-1-thread-1] io.github.unterstein.BinanceTrader : Tradingbalance: AssetBalance[asset=XVG,free=0.00000000,locked=0.00000000] 2018-01-15 11:27:08.448 INFO 15 --- [pool-1-thread-1] io.github.unterstein.BinanceTrader : order still new, time 4

2018-01-15 11:27:10.836 INFO 15 --- [pool-1-thread-1] io.github.unterstein.BinanceTrader : buyPrice:0.00009707 sellPrice:0.00009827 bid:0.00009828 ask:0.00009828 price:0.00009829 profit:0.00009814 diff:0.00000014

2018-01-15 11:27:11.436 INFO 15 --- [pool-1-thread-1] io.github.unterstein.BinanceTrader : Tradingbalance: AssetBalance[asset=XVG,free=0.00000000,locked=0.00000000] 2018-01-15 11:27:11.436 INFO 15 --- [pool-1-thread-1] io.github.unterstein.BinanceTrader : order still new, time 5

2018-01-15 11:27:11.436 INFO 15 --- [pool-1-thread-1] io.github.unterstein.TradingClient : Cancelling order 7688776 2018-01-15 11:27:13.855 INFO 15 --- [pool-1-thread-1] io.github.unterstein.BinanceTrader : buyPrice:0.00009707 sellPrice:0.00009826 bid:0.00009827 ask:0.00009827 price:0.00009827 profit:0.00009814 diff:0.00000013

It tries to buy 5 times and then cancels the order? Do I need to do something in my binance account? I have ETH and some BNB for Fees.

stevengehner commented 6 years ago

Do I need to enable api withdrawals?

stevengehner commented 6 years ago

I changed the withdrawals settings but is still keeps canceling my orders?

stevengehner commented 6 years ago

Thanks it's working now