Skip to content
This repository has been archived by the owner on Apr 24, 2021. It is now read-only.

thiago-scherrer/gotrader

Repository files navigation

GoTrader bot

Project to create a trade bot for bitmex trade platform.

Go Report Card Build Status GoDoc

gopher

Requirements

  • docker => 19.03.8
  • docker-compose => 1.25.4
  • bitmex account

How it works

Its purpose is to automate a rule created by the trader.

Caution

This bot still under construction and does not guarantee anything, it may not even work properly. You can lose money with it! Test the gotrader bot in the test network first! But if you have good results, PR the logic =)

Don't panic!

Enabled

  • New and close order, buy or sell
  • leverage
  • Able to use custom logic

Supported Contracts

  • XBTUSD
  • ETHUSD

Runing

Add your settings to the file configs/config.yml

Go back to the root dir and follow the steps below:

docker-compose build

After test and build, run the bot (background):

docker-compose up -d

You can see the logs with docker logs command, like:

docker logs -f gotrader

To stop the bot, run:

docker-compose down

Using other logic

The acual logic can be changed on internal/logic/. Some examples can be found on examples/.

Go to the example/ folder and then, choose or create a strategy. Copy the file like martingale_go to the internal/logic/logic.go.

ENVs

  • GOTRADER_MODE
    • prod (default): load config.yml
    • testnet: load config-testnet.yml
  • REDISURL
    • redis:6379 (default): endpoint to use redis

References