shunjizhan / Coinbot

A smart bot for easy cryptocurrency trading/viewing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introduction

Coinbot is a cryptocurrency trading bot, which aims to manage accounts across all exchanges, and provide efficient view/trade/monitor/transfer operations, ALL IN ONE PLACE.

On top of these basic operations, we can conveniently build our own high level strategies, such as stop-limit order, batch buy/sell, hedging, and quantitative trading.

Note

Being a cryptocurrency lover and technology enthusiast, I implemented this cute bot for researching and learning purpose (also for fun ^_^). Using it arbitrarily could be risky, and could potentially lose real money, so be vigilant!

If you are looking for a public library with more robust and comprehensive functionality, check ccxt out!

Functionalities

Basic

  • view current exchange rate of any token pair in any exchange
  • view quoted depths of any token pair in any exchange
  • view any of your cryptocurrency balance in any exchange
  • view your combined cryptocurrency balances in some/all exchanges
  • calculate your fiat currency balance in any exchange
  • calculate your combined fiat currency balances in some/all exchanges

Advanced

  • buy/sell any cryptocurrency in any exchange
  • batch buy/sell cryptocurrencies in any exchange
  • monitor price difference of any pair of tokens across some/all exchanges
  • transfer your token from one exchange to another (highly risky! manual transfer recommended)

Pro (alpha)

  • interest arbitrage across some/all exchanges, with different strategies, such as "brick moving" (low efficiency) or hedging (high efficiency)
  • quantitative trading in any exchange, with customized parameters

Supported Exchanges

Logo Exchange Location Fiat Currency Support Remark
Coinbase U.S. Yes
Bittrex U.S. No
Huobi China No
Binance Japan No
Dew ? No
Bitfinex British Virgin Islands Yes coming soon
Gate China No
Bithumb South Korea Yes
Kraken U.S. Yes coming soon
Okex China No coming soon

credit: some icons are from ccxt.

Run

import API keys

in root folder create a keys.json with format:

{
    "coinbase": {
        "key": "",
        "secret": "",
        "pass": ""
    },
    "bittrex": {
        "key": "",
        "secret": ""
    },
    "binance": {
        "key": "",
        "secret": ""
    },
    "gate": {
        "key": "",
        "secret": ""
    },
    "bithumb": {
        "key": "",
        "secret": ""
    },
    "huobi": {
        "key": "",
        "secret": ""
    }
}

install

make install

view/trade

  • get USD balance in all exchanges
    make

  • get detailed tokens and USD balances in all exchanges
    make full

  • start to monitor price difference
    make diff

  • start the command line interface
    make run

  • other functionalities
    Makefile only wrapped some most commonly used operations, for other functionalities we can modify the code and call them directly!

Author

Shunji Zhan

About

A smart bot for easy cryptocurrency trading/viewing


Languages

Language:Python 99.9%Language:Makefile 0.1%