yasinkuyu / binance-trader

💰 Cryptocurrency Trading Bot for Binance (Experimental)
2.51k stars 828 forks source link

Buy order filled... Try sell... #134

Open walruzperil opened 6 years ago

walruzperil commented 6 years ago

Hi, after buy and sell. Bot say: Buy order filled... Try sell... m: Account has insufficient balance for requested action. But balance is OK..

tapir1 commented 6 years ago

price:0.00010190 buyp:0.00010192 sellp:0.00010242-bid:0.00010191 ask:0.00010243 m: UNKNOWN_ORDER Buy order created id:2533731, q:25.00000000, p:0.00010192 m: UNKNOWN_ORDER m: UNKNOWN_ORDER Buy order filled... Try sell... m: UNKNOWN_ORDER Sell order create id: 2533739 m: UNKNOWN_ORDER Buy order filled... Try sell... m: Account has insufficient balance for requested action.

Exact same problem. Once it successfully buys & sells, it basically crashes the bot because it gets stuck in an insufficient balance loop.

yasinkuyu commented 6 years ago

Bot continues to work. Warning is trivial for now. Message will be fix later.

tapir1 commented 6 years ago

@yasinkuyu I don't think that's necessarily true bro. It does still work for around 2 trades, but then it gets completely stuck. No more profit screening.

Buy order filled... Try sell... m: Account has insufficient balance for requested action.

Log screenshot: https://gyazo.com/2e0cedce8bdf29b28139c06d7a0c54fc

6r6 commented 6 years ago

[BEGIN] 2018/1/21 14:33:58 price:0.00010750 buyp:0.00010710 sellp:0.00010763-bid:0.00010709 ask:0.00010752 price:0.00010750 buyp:0.00010715 sellp:0.00010768-bid:0.00010714 ask:0.00010752 price:0.00010800 buyp:0.00010753 sellp:0.00010806-bid:0.00010752 ask:0.00010820 Buy order created id:8423071, q:106.00000000, p:0.00010753 Profit loss, called order, 8423071 Buy order fail (Not filled) Cancel order... price:0.00010800 buyp:0.00010758 sellp:0.00010811-bid:0.00010757 ask:0.00010820 m: UNKNOWN_ORDER Buy order created id:8423081, q:106.00000000, p:0.00010758 m: UNKNOWN_ORDER Buy order filled... Try sell... Sell order create id: 8423093 Buy order filled... Try sell... m: Account has insufficient balance for requested action. Buy order filled... Try sell... m: Account has insufficient balance for requested action. [END] 2018/1/21 14:34:24

It does generate the sell-order after the warning message happend , whether the sell-order finished or not , the bot printed "Account has insufficient balance for requested action".

--profit lower than 0.5 may cause above question , maybe because of the waving price make the sell-order down in mud.

VasTShadowZz commented 6 years ago

@yasinkuyu so the bot still will trade if this error occurs?

yasinkuyu commented 6 years ago

@VasTShadowZz Absolutely

ekran resmi 2018-01-20 17 04 24
kfiresmith commented 6 years ago

It seems like this thing still doesn't actually ever end up doing anything other than make buys. It never posts a sell order after it buys. Just makes more buy orders. Each of these runs just bought stuff, repeatedly, and never sold. Just buy buy buy.

52 python2 trader.py --stop_loss 0 --symbol XVGETH 100 --profit 0.7

53 python2 trader.py --stop_loss 0 --symbol XVGETH --quantity 100 --profit 0.7

54 python2 trader.py --stop_loss 0 --symbol XVGETH --quantity 150 --profit 0.7

55 python2 trader.py --stop_loss 0 --symbol NAVETH --quantity 20 --profit 0.9

56 python2 trader.py --stop_loss 0 --symbol NAVETH --quantity 10 --profit 0.7

57 python2 trader.py --stop_loss 0 --symbol XVGETH --quantity 150 --profit 0.6

58 python2 trader.py --stop_loss 0 --symbol XVGETH --quantity 150 --profit 0.7

59 python2 trader.py --stop_loss 0 --symbol XVGETH --quantity 120 --profit 1.2

Latest WSC commit, by the way.

Stop loss always set to zero because prior to that option, the bot just bought things to immediately sell at a loss right afterward.

VasTShadowZz commented 6 years ago

@yasinkuyu what specific settings are you using? Mine won't seem to trade that often with profit only on 0.7%

yasinkuyu commented 6 years ago

I usually use --profit 0.4 - --profit 0.7 Pump during --profit 0.8 - --profit 1.3 And the result is like in the screen image. At the right time, you need to play the right coin.

VasTShadowZz commented 6 years ago

@yasinkuyu how can I tell if a coin is good to trade with? Usually I use trx or xvg or xrp

yasinkuyu commented 6 years ago

You should choose coin with high instantaneous transaction volume. There must be enough profit between ask and bid.

matteo-pennisi commented 6 years ago

@yasinkuyu We can open a server on discord for instant support/chat. This could be possible? In this way, we can move Discussions/ Q&A from Issues to Chat and use Github only for dev purposes

yasinkuyu commented 6 years ago

Sure it can be.

nealgentry commented 6 years ago

made a server....

lets keep this community going!

https://discord.gg/QfztrvG

norova commented 6 years ago

Looks like the Discord link is expired. Can someone please share a new link? Thanks!

kfiresmith commented 6 years ago

https://discord.gg/FacMHd

linhndd commented 6 years ago

That's expired, please share new link again

ref-dat commented 4 years ago

is there someone who can fix this bot to work perfectly well for some agreed budget? for all who interested and can do it, please contact me here: a.himite@gmail.com