A golang implementation of a console-based trading bot for cryptocurrency exchanges.
Bittrex, Poloniex, Binance, Bitfinex and Kraken, other in progress.
Download a release or directly build the code from this repository.
$ go get github.com/saniales/golang-crypto-trading-bot
If you need to, you can create a strategy and bind it to the bot:
import bot "github.com/saniales/golang-crypto-trading-bot/cmd"
bot.AddCustomStrategy(myStrategy)
bot.Execute()
For strategy reference see the Godoc documentation.
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
websocket_enabled: true
- exchange: binance
public_key: your_binance_public_key
secret_key: your_binance_secret_key
websocket_enabled: true
- exchange: bitfinex
public_key: your_bitfinex_public_key
secret_key: your_bitfinex_secret_key
websocket_enabled: true
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
- 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
Feel free to donate:
METHOD | ADDRESS |
---|---|
Paypal | https://paypal.me/AlessandroSanino |
BTC | 1DVgmv6jkUiGrnuEv1swdGRyhQsZjX9MT3 |
XVG | DFstPiWFXjX8UCyUCxfeVpk6JkgaLBSNvS |
ETH | 0x2fe7bd8a41e91e9284aada0055dbb15ecececf02 |
USDT | 18obCEVmbT6MHXDcPoFwnUuCmkttLbK5Xo |