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

Implement partial path with final trade mode #4

Open
Reidmcc opened this issue Feb 4, 2019 · 2 comments
Open

Implement partial path with final trade mode #4

Reidmcc opened this issue Feb 4, 2019 · 2 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@Reidmcc
Copy link
Owner

Reidmcc commented Feb 4, 2019

Describe the solution you'd like

I want to have a mode where the path payment is two of the three trades and leave the last step as an actual offer. This would allow the bot to take advantage of the spread on the last step; taker-taker-maker instead of taker-taker-taker. It may also make the path payments more reliable since they will have fewer steps.

Requirements:

  • Generalize the path-payment functions to create n-step paths instead of hard coded three-step paths
  • Add ability to place and track the final-step trades
  • Implement fill tracking
  • This mode should be able to manage trades for n assets
@Reidmcc Reidmcc self-assigned this Feb 4, 2019
@Reidmcc Reidmcc added the enhancement New feature or request label Feb 4, 2019
@Reidmcc Reidmcc changed the title [Planned feature] Implement partial path with final trade mode Implement partial path with final trade mode Feb 5, 2019
@Reidmcc Reidmcc modified the milestones: 0.4.0-alpha, 0.3.0-alpha Feb 7, 2019
@Reidmcc Reidmcc modified the milestones: 0.3.0-alpha, 0.4.0-alpha, Future Feb 20, 2019
@ilyacherevkov
Copy link

ilyacherevkov commented Jun 11, 2019

Better to make passive arbitrage on the first step.

You constantly move your offer at the edge of the spread while maintaining final target margin given you execute last two steps at market at current bid/ask.

This is a less riskier approach, which greatly reduces the risk to end up in some shitty coin with no chance of recovery which I did a lot with all-steps-active arbitrage.

Since stellar has tiny commissions which have almost no impact on margin, it can actually work, at least it works on waves dex to generate some tiny income.

You can also whitelist assets with great liquidity to almost completely eliminate risk, but it might impact frequency of trades.

@Reidmcc
Copy link
Owner Author

Reidmcc commented Jun 11, 2019

@ilyacherevkov good point on making the first step the passive step. As for white-listing, Rockfish currently requires you to specify assets, and I plan to keep that in place for any future modes.

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

No branches or pull requests

2 participants