wardbradt / peregrine

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

Run time error in Multiple Exchanges #52

Closed parthi2929 closed 5 years ago

parthi2929 commented 5 years ago

Hi

When I try to run the given example, I get run time error as below.

from peregrinearb import create_weighted_multi_exchange_digraph, bellman_ford_multi, print_profit_opportunity_for_path_multi

graph = create_weighted_multi_exchange_digraph(['kraken', 'bittrex', 'gemini'], log=True)
graph, paths = bellman_ford_multi(graph, 'ETH')
for path in paths:
    print_profit_opportunity_for_path_multi(graph, path)

Error:
2019-05-11_19h27_22

As noted in another similar issue, I tried installing your networkx as below explicitly ( I already ran your pip install which should have taken this networkx as per requirements.txt)

git+git://github.com/wardbradt/networkx.git#egg=networkx

And I still get the same above error.

Win 10 OS, Anaconda 4.6.4. Python 3.7.1

parthi2929 commented 5 years ago

Hi

Doing without that egg at the end solved the issue.

git+git://github.com/wardbradt/networkx.git