bitcoin-arbitrage

所属分类:虚拟/增强现实-VR/AR
开发工具:Python
文件大小:88KB
下载次数:0
上传日期:2022-07-26 04:30:36
上 传 者sh-1993
说明:  比特币套利-机会检测器
(Bitcoin arbitrage - opportunity detector)

文件列表:
.flake8 (117, 2019-12-09)
.travis.yml (607, 2019-12-09)
LICENSE (1069, 2019-12-09)
MANIFEST.in (40, 2019-12-09)
arbitrage (0, 2019-12-09)
arbitrage\__init__.py (50, 2019-12-09)
arbitrage\arbitrage.py (4394, 2019-12-09)
arbitrage\arbitrer.py (7936, 2019-12-09)
arbitrage\config.py-example (1103, 2019-12-09)
arbitrage\fiatconverter.py (2016, 2019-12-09)
arbitrage\observers (0, 2019-12-09)
arbitrage\observers\__init__.py (0, 2019-12-09)
arbitrage\observers\detailedlogger.py (503, 2019-12-09)
arbitrage\observers\emailer.py (1188, 2019-12-09)
arbitrage\observers\historydumper.py (716, 2019-12-09)
arbitrage\observers\logger.py (462, 2019-12-09)
arbitrage\observers\observer.py (435, 2019-12-09)
arbitrage\observers\specializedtraderbot.py (4146, 2019-12-09)
arbitrage\observers\traderbot.py (3616, 2019-12-09)
arbitrage\observers\traderbotsim.py (2679, 2019-12-09)
arbitrage\observers\xmppmessager.py (1649, 2019-12-09)
arbitrage\private_markets (0, 2019-12-09)
arbitrage\private_markets\__init__.py (0, 2019-12-09)
arbitrage\private_markets\bitstampusd.py (2397, 2019-12-09)
arbitrage\private_markets\market.py (1968, 2019-12-09)
arbitrage\private_markets\paymium.py (3112, 2019-12-09)
arbitrage\public_markets (0, 2019-12-09)
arbitrage\public_markets\__init__.py (0, 2019-12-09)
arbitrage\public_markets\_binance.py (1019, 2019-12-09)
arbitrage\public_markets\_bitfinex.py (1101, 2019-12-09)
arbitrage\public_markets\_bitflyer.py (1424, 2019-12-09)
arbitrage\public_markets\_bitstamp.py (1252, 2019-12-09)
arbitrage\public_markets\_btcc.py (1228, 2019-12-09)
arbitrage\public_markets\_cex.py (1212, 2019-12-09)
arbitrage\public_markets\_gdax.py (1221, 2019-12-09)
arbitrage\public_markets\_gemini.py (1236, 2019-12-09)
arbitrage\public_markets\_kraken.py (1295, 2019-12-09)
... ...

# bitcoin-arbitrage - opportunity detector and automated trading It gets order books from supported exchanges and calculate arbitrage opportunities between each markets. It takes market depth into account. Currently supported exchanges to get data: - Bitstamp (USD, EUR) - Paymium (EUR) - Bitfinex (USD, EUR) - bitFlyer (USD, EUR) - Kraken (USD, EUR) - OkCoin (CNY) - Gemini (USD) - BTCC (CNY) - GDAX (USD, EUR) - CEX.io (USD, EUR) - Binance (USD) Currently supported exchanges to automate trade: - Bitstamp (USD) - Paymium (EUR) ## WARNING **Real trading bots are included. Don't put your API keys in config.py if you don't know what you are doing.** ## Installation And Configuration ```sh cp arbitrage/config.py-example arbitrage/config.py ``` Then edit config.py file to setup your preferences: watched markets and observers You need Python3 to run this program. To install on Debian, Ubuntu, or variants of them, use: ```sh sudo apt-get install python3 python3-pip python-nose ``` To use the observer XMPPMessager you will need to install sleekxmpp: ```sh pip3 install sleekxmpp ``` ## Run To run the opportunity watcher: ```sh $ python3 -m arbitrage -v 2013-03-12 03:52:14,341 [INFO] profit: 30.539722 EUR with volume: 10 BTC - buy at 29.3410 (MtGoxEUR) sell at29.4670 (Bitcoin24EUR) ~10.41% 2013-03-12 03:52:14,356 [INFO] profit: 66.283***2 EUR with volume: 10 BTC - buy at 29.3410 (MtGoxEUR) sell at30.0000 (PaymiumEUR) ~22.59% 2013-03-12 03:52:14,357 [INFO] profit: 31.811390 EUR with volume: 10 BTC - buy at 29.3410 (MtGoxEUR) sell at30.0000 (IntersangoEUR) ~10.84% 2013-03-12 03:52:45,090 [INFO] profit: 9.774324 EUR with volume: 10 BTC - buy at 35.3630 (Bitcoin24EUR) sellat 35.4300 (PaymiumEUR) ~2.76% ``` To check your balance on an exchange (also a good way to check your accounts configuration): ```sh python3 -m arbitrage -m Paymium get-balance python3 -m arbitrage -m Paymium,BitstampUSD get-balance ``` Run tests ```sh nosetests arbitrage/ ``` ### Alternative usage List supported public markets: ```sh python3 -m arbitrage list-public-markets ``` Help: ```sh python3 -m arbitrage -h ``` ## TODO - Tests - Write documentation - Add other exchanges: - icbit - Update order books with a WebSocket client for supported exchanges (Kraken, Bitfinex, Paymium) - Better history handling for observer "HistoryDumper" (Redis ?) - Move EUR / USD from a market to an other: - Coupons - Ripple ? - Stable coins - Negative Operations - Add support for other cryptocurrencies and triangular arbitrage ## LICENSE MIT Copyright (c) 2013 Maxime Biais Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

近期下载者

相关文件


收藏者