https://github.com/codemaster947/crypto-trading-bot

https://github.com/codemaster947/crypto-trading-bot

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (9.4%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

Basic Info
  • Host: GitHub
  • Owner: codemaster947
  • License: gpl-3.0
  • Language: Go
  • Default Branch: main
  • Size: 3.17 MB
Statistics
  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created 12 months ago · Last pushed 12 months ago
Metadata Files
Readme Funding License

README.md

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.

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

Owner

  • Login: codemaster947
  • Kind: user

GitHub Events

Total
  • Push event: 8
  • Pull request event: 2
  • Create event: 2
Last Year
  • Push event: 8
  • Pull request event: 2
  • Create event: 2

Dependencies

.github/workflows/go.yml actions
  • actions/checkout v2 composite
  • actions/setup-go v2 composite
go.mod go
  • github.com/adshao/go-binance/v2 v2.4.5
  • github.com/andybalholm/brotli v1.0.6
  • github.com/beldur/kraken-go-api-client v0.0.0-20230419090603-9d20ca5131b1
  • github.com/bitfinexcom/bitfinex-api-go v0.0.0-20210608095005-9e0b26f200fb
  • github.com/bitly/go-simplejson v0.5.1
  • github.com/bwmarrin/discordgo v0.27.1
  • github.com/chuckpreslar/emission v0.0.0-20170206194824-a7ddd980baf9
  • github.com/dgrr/fastws v1.0.4
  • github.com/fatih/structs v1.1.0
  • github.com/fiore/kucoin-go v0.0.0-20190107105632-5a814c26befa
  • github.com/franela/goblin v0.0.0-20211003143422-0a4f594942bf
  • github.com/franela/goreq v0.0.0-20171204163338-bcd34c9993f8
  • github.com/gofrs/uuid v4.4.0+incompatible
  • github.com/google/go-cmp v0.6.0
  • github.com/google/go-querystring v1.1.0
  • github.com/gorilla/websocket v1.5.1
  • github.com/inconshreveable/mousetrap v1.1.0
  • github.com/jpillora/backoff v1.0.0
  • github.com/json-iterator/go v1.1.12
  • github.com/juju/errors v1.0.0
  • github.com/k0kubun/colorstring v0.0.0-20150214042306-9440f1994b88
  • github.com/k0kubun/pp v3.0.1+incompatible
  • github.com/klauspost/compress v1.17.4
  • github.com/mattn/go-colorable v0.1.13
  • github.com/mattn/go-isatty v0.0.20
  • github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd
  • github.com/modern-go/reflect2 v1.0.2
  • github.com/onsi/gomega v1.30.0
  • github.com/pharrisee/poloniex-api v0.0.0-20200602104112-ce8fafd80b26
  • github.com/pkg/errors v0.9.1
  • github.com/recws-org/recws v1.4.0
  • github.com/robfig/cron v1.2.0
  • github.com/saniales/go-hitbtc v0.0.0-20190107211814-7468d66640dd
  • github.com/shomali11/commander v0.0.0-20230730023802-0b64f620037d
  • github.com/shomali11/proper v0.0.0-20190608032528-6e70a05688e7
  • github.com/shomali11/slacker v1.4.1
  • github.com/shopspring/decimal v1.3.1
  • github.com/sirupsen/logrus v1.9.3
  • github.com/slack-go/slack v0.12.3
  • github.com/smartystreets/goconvey v1.8.1
  • github.com/sourcegraph/jsonrpc2 v0.2.0
  • github.com/spf13/cobra v1.8.0
  • github.com/spf13/pflag v1.0.5
  • github.com/streamrail/concurrent-map v0.0.0-20160823150647-8bf1e9bacbf6
  • github.com/thebotguys/golang-bittrex-api v0.0.0-20210125125813-27a8629619aa
  • github.com/thebotguys/signalr v0.0.0-20190119054324-787ebe6729fc
  • github.com/toorop/go-bittrex v0.0.5
  • github.com/ugorji/go/codec v1.2.12
  • github.com/valyala/bytebufferpool v1.0.0
  • github.com/valyala/fasthttp v1.51.0
  • golang.org/x/crypto v0.17.0
  • golang.org/x/net v0.19.0
  • golang.org/x/sys v0.16.0
  • gopkg.in/beatgammit/turnpike.v2 v2.0.0-20170911161258-573f579df7ee
  • gopkg.in/tucnak/telebot.v2 v2.5.0
  • gopkg.in/yaml.v2 v2.4.0
go.sum go
  • 170 dependencies