DeviaVir / zenbot

Zenbot is a command-line cryptocurrency trading bot using Node.js and MongoDB.
MIT License
8.23k stars 2.04k forks source link

--order_type=auto #268

Open vitorego opened 7 years ago

vitorego commented 7 years ago

Hi, I missed the pull the request of the --order_type parameter, but I would like to share this idea. How about an automatic order_type? The bot will start with no fee type (maker), when if the slippage cross one defined value the bot will make the fee order (taker). In most cases the bot sell/buy without any slippage and sometimes with positive slippage, which is nice. We could for example set a maximum slippage of -0.01%, and if the slippage cross that value the bot will sell/buy with the taker type order.

What do you think?

Bruttagente commented 7 years ago

I was just thinking about exactly the same feature, the possibility to switch to taker when a % slippage threshold is passed. Sometimes the price is increasing or dropping so fast that is impossible for the bot to close an order, and closing it as a taker could be an option

Bruttagente commented 7 years ago

This is what has just happened: https://puu.sh/xB28l/2d64ba2c6e.JPG

A slippage of 1% wasn't enough for the big drop and the bot didn't sell, losing a lot. This is a typical situation where it should enable a taker order