Giter Site home page Giter Site logo

btcearbitrage's Introduction

BTCeArbitrage

A tool for detecting cross-currency arbitrage oportunities within the BTC-e bitcoin exchange

This tool uses the python api from https://github.com/alanmcintyre/btce-api.git

usage: BTCeArbitrage.py [-h] [-i INPUT] [-o OUTPUT] [-v VOL] [-t INTERVAL]
                        [-l LOG]

optional arguments:
  -h, --help            show this help message and exit
  -i INPUT, --input INPUT
                        Input file for BTCe price map
  -o OUTPUT, --output OUTPUT
                        Output file for BTCe price map
  -v VOL, --vol VOL     Starting volume for trades
  -t INTERVAL, --interval INTERVAL
                        Number of seconds between updates
  -l LOG, --log LOG     Log file

Check the log file for more information on what trade paths are computed and how the pricing and oportunities are evaluated. An example of what you might see:

$ ./BTCeArbitrage.py 
2013-10-30 16:46:38,920 INFO: Downloading BTC-e fee map
2013-10-30 16:46:50,727 INFO: Downloading BTC-e price map
2013-10-30 16:47:06,443 INFO: Saving updated BTC-e price map to BTCeArbitrage.dat
2013-10-30 16:47:06,492 INFO: Constructing possible trade loops
2013-10-30 16:47:06,656 INFO: 404 possible trade loops detected
2013-10-30 16:47:06,656 INFO: Calculating viable trade paths based on volume
2013-10-30 16:47:06,817 INFO: Determining arbitrage oportunities
2013-10-30 16:47:06,817 INFO: No arbitrage opotunities detected :-(
...
2013-10-30 17:04:07,575 INFO: Downloading BTC-e price map
2013-10-30 17:04:44,493 INFO: Saving BTC-e price map to BTCeArbitrage.dat
2013-10-30 17:04:44,541 INFO: Calculating viable trade paths based on volume
2013-10-30 17:04:44,698 INFO: Determining arbitrage oportunities
2013-10-30 17:04:44,698 INFO: Arbitrage oportunities detected :-D !!!
2013-10-30 17:04:44,698 INFO: ========================================
2013-10-30 17:04:44,698 INFO: usd -> ltc -> btc -> usd
2013-10-30 17:04:44,698 INFO:   1.000000 usd -> ltc @ 0.459833 * 0.9980
2013-10-30 17:04:44,698 INFO:   0.458913 ltc -> btc @ 0.011290 * 0.9980
2013-10-30 17:04:44,698 INFO:   0.005171 btc -> usd @ 194.000000 * 0.9980
2013-10-30 17:04:44,698 INFO:   1.001123 usd
2013-10-30 17:04:44,698 INFO: 
2013-10-30 17:04:44,698 INFO: ltc -> btc -> usd -> ltc
2013-10-30 17:04:44,699 INFO:   1.000000 ltc -> btc @ 0.011290 * 0.9980
2013-10-30 17:04:44,699 INFO:   0.011267 btc -> usd @ 194.000000 * 0.9980
2013-10-30 17:04:44,699 INFO:   2.181508 usd -> ltc @ 0.459826 * 0.9980
2013-10-30 17:04:44,699 INFO:   1.001107 ltc
2013-10-30 17:04:44,699 INFO: 
2013-10-30 17:05:06,725 INFO: 
2013-10-30 17:05:06,725 INFO: Downloading BTC-e price map
2013-10-30 17:05:43,804 INFO: Saving BTC-e price map to BTCeArbitrage.dat
2013-10-30 17:05:43,852 INFO: Calculating viable trade paths based on volume
2013-10-30 17:05:44,008 INFO: Determining arbitrage oportunities
2013-10-30 17:05:44,008 INFO: No arbitrage opotunities detected :-(

If you like this tool and happen to think it's useful, donations are always welcome :-)

BTC 1cjmB1YMsm8BqXjUKjBtJu5BprnCdy71K

Also, I'm always open to features or pull requests :-)

btcearbitrage's People

Stargazers

 avatar Sherman avatar  avatar Oktay Ozturk avatar Samuel Holt avatar  avatar Igor Kroitor avatar  avatar schopenhauer avatar  avatar Ian Madlenya avatar Aaron Ghent avatar Rajesh Koilpillai avatar  avatar Gary  avatar  avatar

Watchers

Chuck Atkins avatar James Cloos avatar Evan Surdam avatar Cau5tic avatar Gary  avatar  avatar Ian Madlenya avatar  avatar

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.