binance-trader icon indicating copy to clipboard operation
binance-trader copied to clipboard

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

Open kfiresmith opened this issue 7 years ago • 1 comments

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

kfiresmith avatar Jan 21 '18 21:01 kfiresmith

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

Wrexen avatar Jan 22 '18 10:01 Wrexen