mcardillo55 / cbpro-trader

Automated cryptocurrency trading on Coinbase Pro (formerly gdax-trader)
GNU General Public License v3.0
218 stars 72 forks source link

Market order vs Limit #6

Closed ghost closed 6 years ago

ghost commented 6 years ago

I just have a quick question. why did you decide to make the bot trade with market instead of limit? Every market order has a fee most limit orders have no fee. is better to pay the fee?

mcardillo55 commented 6 years ago

It starts by trying limit orders, then if the price slips past max_slippage (set in config), it will do a market order. I was noticing a few times where the price slipped way past the amount of fees and decided to add this option. It's a relatively new change, and I'm planning on adding the option to disable it. If you want to disable market orders for now, just set max_slippage to something very high that it'll never reach.