nunoloureiro / birdtradebot

Cryptocurrency Bot that receives trading advice and performs transactions (manages wallets)
MIT License
13 stars 3 forks source link

set "post_only" for limit orders to avoid fees. #7

Closed abmantis closed 6 years ago

abmantis commented 6 years ago

This increases the probability of the order failing, thus going to market, but usually the "post_only" order completes.

nunoloureiro commented 6 years ago

Hi Abilio,

We have tried using post_order but we didn't get any good results.

Anyway, you can set it in the rules files under 'orders': 'post_order': True,

No need to change code for that. :)

nunoloureiro commented 6 years ago

Sorry, it's not post_order, it's post_only 'post_only': True

Thanks for the PR though.

abmantis commented 6 years ago

Oh, I didn't know that I could just add it to the rules! Thanks. Did it fail too many times with post_only, or was there another issue?

nunoloureiro commented 6 years ago

Yep, and cancels the order immediately. We got better results by setting the price as the lowest in the order book for selling or buying depending if you're short or long.