wardbradt / peregrine

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

Having issues installing #51

Closed shivamgoyal01 closed 4 years ago

shivamgoyal01 commented 5 years ago

Hi, I'm running the example code and getting this error:


Traceback (most recent call last):
  File "multiple_coins_multiple_exchanges.py", line 1, in <module>
    from peregrinearb import create_weighted_multi_exchange_digraph, bellman_ford_multi, \
  File "/Library/Python/2.7/site-packages/peregrinearb/__init__.py", line 1, in <module>
    from .async_find_opportunities import *
  File "/Library/Python/2.7/site-packages/peregrinearb/async_find_opportunities.py", line 31
    async def _test_bid_and_ask(self, exchange):
            ^
SyntaxError: invalid syntax```
teodoryantcheff commented 5 years ago

You need python 3 for this syntax to work.