Skip to content

thomasxnguy/golang-crypto-bot

Repository files navigation

golang-crypto-bot

GoDoc license

A golang implementation of a console-based trading bot for cryptocurrency exchanges.

Supported Exchanges

Bittrex, Poloniex, Binance, Bitfinex and Kraken, other in progress.

Usage

Download a release or directly build the code from this repository.

$ go get github.com/thomasxnguy/golang-crypto-bot

If you need to, you can create a strategy and bind it to the bot:

import bot "github.com/thomasxnguy/golang-crypto-bot/cmd"

bot.AddCustomStrategy(myStrategy)
bot.Execute()

For strategy reference see the Godoc documentation.

Configuration file template

Create a configuration file from this example or run the init command of the compiled executable.

exchange_configs: 
  - exchange: bittrex
    public_key: your_bittrex_public_key
    secret_key: your_bittrex_secret_key
  - exchange: binance
    public_key: your_binance_public_key
    secret_key: your_binance_secret_key
  - exchange: bitfinex
    public_key: your_bitfinex_public_key
    secret_key: your_bitfinex_secret_key
  - exchange: bitmex
    public_key: your_bitmex_public_key
    secret_key: your_bitmex_secret_key    
strategies:
  - strategy: your_strategy_name
    markets:
      - market: market_logical_name
        bindings:
        - exchange: bittrex
          market_name: market_name_on_bittrex
        - exchange: binance
          market_name: market_name_on_binance
        - exchange: bitfinex
          market_name: market_name_on_bitfinex
        - exchange: bitmex
          market_name: market_name_on_bitmex
      - market: another_market_logical_name
        bindings:
        - exchange: bittrex
          market_name: market_name_on_bittrex
        - exchange: binance
          market_name: market_name_on_binance
        - exchange: bitfinex
          market_name: market_name_on_bitfinex
        - exchange: bitmex
          market_name: market_name_on_bitmex          

About

My own version of golang crypto trading bot based on @saniales version

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages