Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[strategy] allow sale as first operation #10

Open
alex-dp opened this issue May 7, 2021 · 2 comments
Open

[strategy] allow sale as first operation #10

alex-dp opened this issue May 7, 2021 · 2 comments

Comments

@alex-dp
Copy link

alex-dp commented May 7, 2021

It should be possible for the bot to start with a sell operation, when balance is available in the target currency.

@rogerthomas84
Copy link
Contributor

@alex-dp - I personally don't think this is a good idea. The code doesn't know enough about the current balance in the account to make a call on. For example, if you'd spent $5k on Bitcoin back in May and launched this as a brand new user right now, the code would sell the balance and you'd lose nearly half of what you bought it for (if that makes sense). I'm new to using it and just accepted that I need to make the first sell decision of my existing coins before it could buy because I know what I spent on it.

I see an argument for there being a manual 'Sell all' button or something similar though, but that would need the user to provide the figure to sell at.

@drkevorkian
Copy link

been following this for a bit, since jan. I've not had time to add in, but checking first for a purchase date/price and if not found asking manually is the only viable option i see, without adding in support for other exchanges to check there for a purchase/price history. Possibly adding in a portfolio.json file with the required information would do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants