A cryptocurrency trading bot and framework supporting multiple exchanges written in Golang.
Go
3,461
2,594 commits
updated Oct 14, 2026
A cryptocurrency trading bot supporting multiple exchanges written in Golang.
Please note that this bot is under development and is not ready for production!
Join our slack to discuss all things related to GoCryptoTrader! GoCryptoTrader Slack
| Exchange | REST API | Websocket API | FIX API |
|---|---|---|---|
| Binance.US | Yes | Yes | NA |
| Binance | Yes | Yes | NA |
| Bitfinex | Yes | Yes | NA |
| Bitflyer | Yes | No | NA |
| Bithumb | Yes | Yes | NA |
| Bitstamp | Yes | Yes | No |
| BTCMarkets | Yes | Yes | NA |
| BTSE | Yes | Yes | NA |
| Bybit | Yes | Yes | NA |
| Coinbase | Yes | Yes | No |
| COINUT | Yes | Yes | NA |
| Deribit | Yes | Yes | No |
| GateIO | Yes | Yes | NA |
| Gemini | Yes | Yes | No |
| HitBTC | Yes | Yes | No |
| Huobi.Pro | Yes | Yes | NA |
| Kraken | Yes | Yes | NA |
| Kucoin | Yes | Yes | NA |
| Lbank | Yes | No | NA |
| Okx | Yes | Yes | NA |
| Poloniex | Yes | Yes | NA |
| Yobit | Yes | NA | NA |
We are aiming to support the top 30 exchanges sorted by average liquidity as ranked by CoinMarketCap. However, we welcome pull requests for any exchange which does not match this criterion. If you need help with this, please join us on Slack.
** NA means not applicable as the exchange does not support the feature.
Our Kanban board provides updates on:
Follow our progress as we continuously improve GoCryptoTrader.
Please feel free to submit any pull requests or suggest any desired features to be added.
When submitting a PR, please abide by our coding guidelines.
Download and install Go from Go Downloads for your platform.
git clone https://github.com/thrasher-corp/gocryptotrader.git
cd gocryptotrader
go build
mkdir ~/.gocryptotrader
cp config_example.json ~/.gocryptotrader/config.json
git clone https://github.com/thrasher-corp/gocryptotrader.git
cd gocryptotrader
go build
mkdir %AppData%\GoCryptoTrader
copy config_example.json %APPDATA%\GoCryptoTrader\config.json
config.json file.gocryptotrader binary file.GoCryptoTrader can optionally use the Sonic JSON library for improved performance, as a drop in replacement for golang.org/encoding/json. Please see sonic Requirements for supported platforms.
To enable sonic, build with the sonic_on tag:
go build -tags=sonic_on
GoCryptoTrader uses shopspring/decimal by default through the shared types/decimal package. Build with udecimal_on to use udecimal instead:
go build -tags=udecimal_on
The tag changes both the implementation and some decimal behaviour. Before enabling it, note these differences:
1e-19 becomes zero. Parsing does not truncate: NewFromString rejects inputs requiring more than 19 fractional digits.Pow exponents are rejected.Decimal occupies 32 bytes instead of 16 bytes. Its binary encoding is not compatible with shopspring's and rejects values whose native encoding would exceed its one-byte length field.Without the tag, Decimal remains an alias of shopspring's type.
Run the same benchmark suite against both implementations with:
make decimal_bench
The suite defaults to five 500 ms samples per operation. Override these with DECIMAL_BENCH_COUNT and DECIMAL_BENCH_TIME when collecting longer benchmark runs.
BenchmarkDecimalInexactFloat64 measures conversion to a plain float64; BenchmarkDecimalFloat64 separately measures conversion with the exactness flag required by Float64().
If this framework helped you in any way, or you would like to support the developers working on it, please donate Bitcoin to:
bc1qk0jareu4jytc0cfrhr5wgshsq8282awpavfahc
Binaries will be published once the codebase reaches a stable condition.
305 followers · starred Feb 2025
260 followers · starred Jan 2026
33 followers · starred Nov 2018
201 followers · starred Sep 2017
A cryptocurrency trading bot and framework supporting multiple exchanges written in Golang.
Go
3,461
2,594 commits
updated Oct 14, 2026
A cryptocurrency trading bot supporting multiple exchanges written in Golang.
Please note that this bot is under development and is not ready for production!
Join our slack to discuss all things related to GoCryptoTrader! GoCryptoTrader Slack
| Exchange | REST API | Websocket API | FIX API |
|---|---|---|---|
| Binance.US | Yes | Yes | NA |
| Binance | Yes | Yes | NA |
| Bitfinex | Yes | Yes | NA |
| Bitflyer | Yes | No | NA |
| Bithumb | Yes | Yes | NA |
| Bitstamp | Yes | Yes | No |
| BTCMarkets | Yes | Yes | NA |
| BTSE | Yes | Yes | NA |
| Bybit | Yes | Yes | NA |
| Coinbase | Yes | Yes | No |
| COINUT | Yes | Yes | NA |
| Deribit | Yes | Yes | No |
| GateIO | Yes | Yes | NA |
| Gemini | Yes | Yes | No |
| HitBTC | Yes | Yes | No |
| Huobi.Pro | Yes | Yes | NA |
| Kraken | Yes | Yes | NA |
| Kucoin | Yes | Yes | NA |
| Lbank | Yes | No | NA |
| Okx | Yes | Yes | NA |
| Poloniex | Yes | Yes | NA |
| Yobit | Yes | NA | NA |
We are aiming to support the top 30 exchanges sorted by average liquidity as ranked by CoinMarketCap. However, we welcome pull requests for any exchange which does not match this criterion. If you need help with this, please join us on Slack.
** NA means not applicable as the exchange does not support the feature.
Our Kanban board provides updates on:
Follow our progress as we continuously improve GoCryptoTrader.
Please feel free to submit any pull requests or suggest any desired features to be added.
When submitting a PR, please abide by our coding guidelines.
Download and install Go from Go Downloads for your platform.
git clone https://github.com/thrasher-corp/gocryptotrader.git
cd gocryptotrader
go build
mkdir ~/.gocryptotrader
cp config_example.json ~/.gocryptotrader/config.json
git clone https://github.com/thrasher-corp/gocryptotrader.git
cd gocryptotrader
go build
mkdir %AppData%\GoCryptoTrader
copy config_example.json %APPDATA%\GoCryptoTrader\config.json
config.json file.gocryptotrader binary file.GoCryptoTrader can optionally use the Sonic JSON library for improved performance, as a drop in replacement for golang.org/encoding/json. Please see sonic Requirements for supported platforms.
To enable sonic, build with the sonic_on tag:
go build -tags=sonic_on
GoCryptoTrader uses shopspring/decimal by default through the shared types/decimal package. Build with udecimal_on to use udecimal instead:
go build -tags=udecimal_on
The tag changes both the implementation and some decimal behaviour. Before enabling it, note these differences:
1e-19 becomes zero. Parsing does not truncate: NewFromString rejects inputs requiring more than 19 fractional digits.Pow exponents are rejected.Decimal occupies 32 bytes instead of 16 bytes. Its binary encoding is not compatible with shopspring's and rejects values whose native encoding would exceed its one-byte length field.Without the tag, Decimal remains an alias of shopspring's type.
Run the same benchmark suite against both implementations with:
make decimal_bench
The suite defaults to five 500 ms samples per operation. Override these with DECIMAL_BENCH_COUNT and DECIMAL_BENCH_TIME when collecting longer benchmark runs.
BenchmarkDecimalInexactFloat64 measures conversion to a plain float64; BenchmarkDecimalFloat64 separately measures conversion with the exactness flag required by Float64().
If this framework helped you in any way, or you would like to support the developers working on it, please donate Bitcoin to:
bc1qk0jareu4jytc0cfrhr5wgshsq8282awpavfahc
Binaries will be published once the codebase reaches a stable condition.
305 followers · starred Feb 2025
260 followers · starred Jan 2026
33 followers · starred Nov 2018
201 followers · starred Sep 2017