wardbradt / peregrine

Detects arbitrage opportunities across 131 cryptocurrency exchanges in 50 countries
MIT License
1.18k stars 339 forks source link

How to save the bellman_ford algorithm running time ? thanks. #50

Closed littleworm2018 closed 4 years ago

littleworm2018 commented 5 years ago

Hi, Thank you for your work. In One Exchange/ Multiple Currencies,if find a first path of setting profit (like large than 1%),how to stop the function of bellman_ford and return the path? (I want to save algorithm time) thanks.

LPX55 commented 5 years ago

Not sure what you are trying to achieve here, can you clarify? You want to stop the script everytime a certain threshold of profit is met? My suggestion would be save the path and have a secondary script take care of performing the arbitrage buys, while keep the script running.

wardbradt commented 4 years ago

I am closing the issue as it is unclear what the problem is or what functionality is desired. Please open a new issue if you are still interested in changes to the project.