yasinkuyu / binance-trader

💰 Cryptocurrency Trading Bot for Binance (Experimental)
2.54k stars 833 forks source link

--buyprice / --sellprice: Are they broken or do I misunderstand #143

Open kfiresmith opened 6 years ago

kfiresmith commented 6 years ago

Hello, I was hoping these options would provide me with a way to use the bot for standard buy-low, sell-high trades, where the bot would execute a buy at the --buyprice once the market makes the buyprice available, then sell at the --sellprice once the sellprice is demanded by the market.

I had the following bot thread running and watched the market dip far below the --buyprice with no action taken by the bot: $ python2 trader.py --stop_loss 0 --symbol XVGETH --quantity 600 --buyprice 0.00009826 --sellprice 0.00009937 It dropped to the low 0.000097xx, and nothing happened. I watched the order book in real time and no orders were attempted to be placed. I had to place an order manually.

Do I misunderstand the point of how the --buyprice/--sellprice options work? Thanks

Wrexen commented 6 years ago

You have to put --mode range

Example: $ python2 trader.py --stop_loss 0 --symbol XVGETH --mode range --quantity 600 --buyprice 0.00009826 --sellprice 0.00009937

Greeting