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

DexBot - King of the Hill - Bot trades with itself if spread is = 0 #668

Closed
NemesisZAUK opened this issue Aug 24, 2019 · 5 comments
Closed
Assignees

Comments

@NemesisZAUK
Copy link

##Strategy
King of the Hill

Expected Behavior

When spread = 0 then bot should stop trading.

Actual Behavior

When spread = 0 bot continues to trade with itself.

@bitphage
Copy link
Collaborator

TODO:

  • add check for own buy/sell price crossing
  • add test

@bitphage
Copy link
Collaborator

bitphage commented Sep 1, 2019

Fixing this brings a one question: what the bot should do if it detects it's order will cross the other side? I mean, it cannot place an order on-top because it will cross. If the bot will place an order one step before crossing, it will not be on top, this may appear to the user as bot working incorrectly not placing a top order.

I'm thinking about adding a warning like "Cannot place top xxx order because it will cross the other side; increase your order size to lower price step".

@PermieBTS
Copy link
Collaborator

Adding a warning is a good solution

@fractalnode
Copy link

fractalnode commented Sep 10, 2019

Fixing this brings a one question: what the bot should do if it detects it's order will cross the other side? I mean, it cannot place an order on-top because it will cross. If the bot will place an order one step before crossing, it will not be on top, this may appear to the user as bot working incorrectly not placing a top order.

I'm thinking about adding a warning like "Cannot place top xxx order because it will cross the other side; increase your order size to lower price step".

imo it is worth adding a minimum spread to the configuration
the race cannot last forever

@bitphage
Copy link
Collaborator

Totally agree, minimum allowed spread is good idea. Please open a separate issue. Because of market fee, there is always aome minimal profitable spread. Crossing it means taking some loss.

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

No branches or pull requests

4 participants