askmike / gekko

A bitcoin trading bot written in node - https://gekko.wizb.it/
MIT License
10.08k stars 3.93k forks source link

executing exact amount #2830

Closed chriscrutt closed 5 years ago

chriscrutt commented 5 years ago

Note: this is the technical bug tracker, please use other platforms for getting support and starting a (non technical) discussion. See the getting help page for details.

I'm submitting a ... [ ] bug report [x ] question about the decisions made in the repository

Action taken (what you did)

I attempted to create trades with a certain amount of money, for example whenever Bitcoin drops 5% I purchase $100 worth.

I tried editing createOrder() so the amount would be 100 in the trader.js file - but I am not exactly sure on how to do this

Expected result (what you hoped would happen)

Gekko executes a buy order for $100 everytime bitcoin drops 5%

Actual result (unexpected outcome)

Gekko executes a buy order for this.portfolio.currency / this.price * 0.95 even after attempting to change amount to 100.

Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc)

I found some info on issues #2434 #937 #491 #484

I just want to know if there is any way to set an exact trading amount using Gekko

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If you feel this is very a important issue please reach out the maintainer of this project directly via e-mail: gekko at mvr dot me.