Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/codemage66/trading-bot-golang
A console-based trading bot for cryptocurrency exchanges implemented in Golang
https://github.com/codemage66/trading-bot-golang
binance bittrex cryptocurrency-exchanges exchange go golang trading-bot trading-strategies yobit
Last synced: 15 days ago
JSON representation
A console-based trading bot for cryptocurrency exchanges implemented in Golang
- Host: GitHub
- URL: https://github.com/codemage66/trading-bot-golang
- Owner: codemage66
- License: gpl-3.0
- Created: 2024-02-29T07:56:52.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-02-29T08:18:28.000Z (11 months ago)
- Last Synced: 2024-11-19T06:00:04.731Z (3 months ago)
- Topics: binance, bittrex, cryptocurrency-exchanges, exchange, go, golang, trading-bot, trading-strategies, yobit
- Language: Go
- Homepage:
- Size: 3.17 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Golang Crypto Trading Bot
A golang implementation of a console-based trading bot for cryptocurrency exchanges.
## Usage
Download a release or directly build the code from this repository.
``` bash
go get github.com/saniales/golang-crypto-trading-bot
```If you need to, you can create a strategy and bind it to the bot:
``` go
import bot "github.com/saniales/golang-crypto-trading-bot/cmd"func main() {
bot.AddCustomStrategy(examples.MyStrategy)
bot.Execute()
}
```For strategy reference see the [Godoc documentation](https://godoc.org/github.com/saniales/golang-crypto-trading-bot).
## Simulation Mode
If enabled, the bot will do paper trading, as it will execute fake orders in a sandbox environment.
A Fake balance for each coin must be specified for each exchange if simulation mode is enabled.
## Supported Exchanges
| Exchange Name | REST Supported | Websocket Support |
| ------------- |------------------ | ----------------- |
| Bittrex | Yes | No |
| Poloniex | Yes | Yes |
| Kraken | Yes (no withdraw) | No |
| Bitfinex | Yes | Yes |
| Binance | Yes | Yes |
| Kucoin | Yes | No |
| HitBtc | Yes | Yes |## Configuration file template
Create a configuration file from this example or run the `init` command of the compiled executable.
``` yaml
simulation_mode: true # if you want to enable simulation mode.
exchange_configs:
- exchange: bitfinex
public_key: bitfinex_public_key
secret_key: bitfinex_secret_key
deposit_addresses:
BTC: bitfinex_deposit_address_btc
ETH: bitfinex_deposit_address_eth
ZEC: bitfinex_deposit_address_zec
fake_balances: # used only if simulation mode is enabled, can be omitted if not enabled.
BTC: 100
ETH: 100
ZEC: 100
ETC: 100
- exchange: hitbtc
public_key: hitbtc_public_key
secret_key: hitbtc_secret_key
deposit_addresses:
BTC : hitbtc_deposit_address_btc
ETH: hitbtc_deposit_address_eth
ZEC: hitbtc_deposit_address_zec
fake_balances:
BTC: 100
ETH: 100
ZEC: 100
ETC: 100
strategies:
- strategy: strategy_name
markets:
- market: ETH-BTC
bindings:
- exchange: bitfinex
market_name: ETHBTC
- exchange: hitbtc
market_name: ETHBTC
- market: ZEC-BTC
bindings:
- exchange: bitfinex
market_name: ZECBTC
- exchange: hitbtc
market_name: ZECBTC
- market: ETC-BTC
bindings:
- exchange: bitfinex
market_name: ETCBTC
- exchange: hitbtc
market_name: ETCBTC
```## Donate