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

Ideas to improve arbitrage_config.json #8

Open
felipecaldas opened this issue Feb 15, 2018 · 1 comment
Open

Ideas to improve arbitrage_config.json #8

felipecaldas opened this issue Feb 15, 2018 · 1 comment

Comments

@felipecaldas
Copy link

Hey @kelvinau

First of all, great work on this project. I only started yesterday on it as I am trying to gain more knowledge on triangular arbitrage and found your repo. Did you base your triangular algorithm on anything else? Like, for example, I've been looking at the Bellman-Ford algorithm to find the cheapest path, but that doesn't seem to be a good candidate for triangular arb.

I am looking at the json file mention in the subject and can see that we are basically "stuck" with BTC/LTC/ETH. It would be a good idea to try to expand this file, maybe to be an array of possible routes, so we can potentially explore more opportunities.

For example, if we were to run Bittrex's: https://bittrex.com/api/v1.1/public/getmarkets we would get all markets available there and we could then have a massive list of potential markets we can work with.

Is this something you're looking at, maybe?

Thanks and regards
Felipe

@kelvinau
Copy link
Owner

kelvinau commented May 31, 2018

This is mentioned in #2 too. Checking multiple pairs will be a good enhancement, but it will take some times to redesign the structure and feed in the pairs.

For the algorithm, it is based on Bellman-Ford algorithm that I find the bid route and ask route starting here:

bidRoute_result = (1 / responses[0].parsed['ask']['price']) \

Then compare and find the maximum possible profit.

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

2 participants