Giter VIP home page Giter VIP logo

arbitrage-chances's Introduction

arbitrage-chances

Finding the best arbitrage opportunities for the top 100 cryptocurrencies.

Dependencies

  • Cython - python3 -m pip install cython
  • Pymarketcap - python3 -m pip install pymarketcap

Settings

start [--pairs -p] [--exchanges -e] [--minimum_volume -m] [--simple -s] [--coins_shown -c] [--top -t] [--coin_list -l]

  • trading_pairs = ALL
    • sets what trading pairs are accepted
  • exchanges = ALL
    • sets what exchanges are accepted
  • minimum_volume = 1%
    • sets minimum coin percent volume on exchange
  • simple = False
    • hides information and errors
  • coins_shown = 10
    • sets the number of coins shown
  • coin_list = []
    • If set, runs on a set of specified currencies instead of the top X currencies
  • top = 100
    • sets the number of top currencies to use. It gets buggy towards the bottom (700s), so be warned.

I usually run it with these settings:

Recommended settings

python3 ./start --exchanges Binance Kucoin Etherdelta Cryptopia Bittrex Bitfinex Poloniex --pairs ETH BTC LTC

If this library helped you at all, you can donate ETH to 0x293a25bc3e1da86bb3322cf940e7baf49f52cae4.

Warning

  • Arbitrage usually exists for a reason. Usually this is:
    • No wallet withdrawal / Deposit for a coin
    • High withdrawal fees or long wait time
    • Very low volume
  • This library does not take any of these factors

arbitrage-chances's People

Contributors

deepserket avatar reteps avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

arbitrage-chances's Issues

json error

hi when i try to start it i get the following error. used to work well in january/february.

C:\Users\Aldo\AppData\Local\Programs\Python\Python36>python.exe ./start --exchanges Binance Kucoin Etherdelta Cryptopia Bittrex Bitfinex Poloniex --pairs ETH BTC LTC Traceback (most recent call last): File "./start", line 20, in <module> cmc = pymarketcap.Pymarketcap() File "C:\Users\Aldo\AppData\Local\Programs\Python\Python36\lib\site-packages\pymarketcap\core.py", line 54, in __init__ self.correspondences = self._cache_symbols() File "C:\Users\Aldo\AppData\Local\Programs\Python\Python36\lib\site-packages\pymarketcap\core.py", line 87, in _cache_symbols currencies = self.session.get(url).json() File "C:\Users\Aldo\AppData\Local\Programs\Python\Python36\lib\site-packages\requests\models.py", line 884, in json self.content.decode(encoding), **kwargs File "C:\Users\Aldo\AppData\Local\Programs\Python\Python36\lib\json\__init__.py", line 354, in loads return _default_decoder.decode(s) File "C:\Users\Aldo\AppData\Local\Programs\Python\Python36\lib\json\decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\Users\Aldo\AppData\Local\Programs\Python\Python36\lib\json\decoder.py", line 357, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

TypeError: string indices must be integers

Hi, i run the test cmd and get the following error:
Traceback (most recent call last):
File "./start", line 33, in
markets = cmc.markets(coin["id"])
TypeError: string indices must be integers

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "./start", line 35, in
markets = cmc.markets(coin["symbol"])
TypeError: string indices must be integers
I try to use the pymarketcap's ticker(100) directly, it seems the data structure outer is just data?
Is there anything wrong?
Thanks

Error

A:\Documents\arbitrage-moments-master>python3 start.py
Traceback (most recent call last):
File "start.py", line 25, in
if market['percent_volume'] >= MINIMUM_PERCENT_VOL and market['is_updated'] and (trades_into in ACCEPTABLE_TRADING_PAIRS or ALL_PAIRS):
KeyError: 'is_updated'

not to sure what's causing this error

Removing certain exchanges / currencies from the bot?

Is there a way to get rid of the korean won entries, for example? I want to see all U.S. supported exchanges, including ones I might not know about at the moment, but I don't want to see ones that I can't use, such as the Chinese and Korean ones.

Newbie question - how to get running on windows?

I downloaded python and your code but I'm confused about how to get it running from there. I tried navigating to the directory I have the folder in and typing start into a python command prompt, but that doesn't seem to work. I also tried using a regular command prompt, but that didn't seem to work either.

I'm sure there's some kind of build process that I'm missing here, and I was wondering if you could give me some step by step instructions to help me get this running. I know this is a script kiddie question but I'd really appreciate your help since I don't understand python very well.

Thanks in advance!

AttributeError: 'NoneType' object has no attribute 'find'

Hi,

Running the script with Python 3.6.3, I have an attribute error:

Traceback (most recent call last):
  File "./start", line 33, in <module>
    markets = cmc.markets(coin["id"])
  File "/home/u/arbitrage-chances/lib/python3.6/site-packages/pymarketcap/core.py", line 296, in markets
    marks = html.find(id="markets-table").find("tbody").find_all('tr')
AttributeError: 'NoneType' object has no attribute 'find'

I attach the complete output, including the command line used: output-arbitrage-chances.txt

TypeError: string indices must be integers

Hi,

Running the script with Python 3.6.4 on Windows 10, I have a type error:

Traceback (most recent call last): File "start.py", line 45, in <module> trades_into = market["pair"].replace(coin["symbol"],"").replace("-","") TypeError: string indices must be integers

I attach the complete output, including the command line used: output-arbitrage-chances.txt

Syntax @line 60

print('[{}/100]'.format(count),end='\r')

I had the idea to search for crypto arbitrages, but i have nearly no skills in python. Sorry.
I was not able to scan the CMC-API for different prices on different exchanges.
Searching for a solution i found this sweet little peace of stuff. Thank you for your work!

But my console output and the Python linter at pythonbuddy.com tell me something about a syntax error in line 60.

Is this really a problem or am i wrong?

Error with install

I'm sorry i know this isn't your package but really want to use your script and ive tried installing pymarketcap with pip and from source and I keep getting this dependency error if anyone knows a solution. Thank you either way!

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.