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

feat: improved sell logic #99

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Conversation

fdundjer
Copy link
Collaborator

@fdundjer fdundjer commented Apr 27, 2024

  • Add trailing stop loss
  • Add cache for filters
  • Add stop sell when the max loss occurred
  • Add option to handle multiple tokens at the time

bot.ts Outdated Show resolved Hide resolved
@studentofcoding
Copy link

studentofcoding commented Apr 29, 2024

I can't run this version on my end, and stuck with initial bot running, wonder why @fdundjer
Screenshot 2024-04-29 at 18 45 19

And when it's running, it's stuck after some time (15 minutes)

@fdundjer
Copy link
Collaborator Author

I can't run this version on my end, and stuck with initial bot running, wonder why @fdundjer Screenshot 2024-04-29 at 18 45 19

And when it's running, it's stuck after some time (15 minutes)

Tested, seems to work fine. Could be your RPC?

kapocius added a commit to kapocius/warp-trading-bot that referenced this pull request May 6, 2024

if (this.config.skipSellingIfLostMoreThan > 0) {
const stopSellingFraction = this.config.quoteAmount
.mul(this.config.skipSellingIfLostMoreThan)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be 100 - skipSellingIfLostMoreThan
If value is 90, stopSellingAmount is 90%

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll check and update the code.

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

Successfully merging this pull request may close these issues.

4 participants