Giter Site home page Giter Site logo

fabricant's Introduction

Algotrading bot for EXMO cryptocurrency exchange

DISCLAIMER

This project created for demonstration of the use of the Golang EXMO lib github.com/vadiminshakov/exmo

The bot works very simply and does not use any trading strategies: the bot buys an asset at the current market price and sells when the selling price is at least somewhat profitable.

This project is not intended to make money, the author is not responsible for any damage caused by using this code

HOWTO

Configure config.yaml:

minprice: 400000.04 # minimum market price at which the bot makes transactions
maxprice: 800000.0  # maximum market price at which the bot makes transactions
gap: 1000.0            # the minimum difference between the purchase and sale price the bot reacts to
useredis: true      # use redis for storing orders (true) or just a go map (false)
dbaddr: localhost   # redis server address
dbport: 6379        # redis server port
dbpass:             # redis server pass
dbnum: 0            # redis server db index

Set env variables with public and private EXMO API keys:

export EXMO_PUBLIC=<YOUR PUB KEY>
export EXMO_SECRET=<YOUR SECRET>

Then start Redis and Fabricant:

docker run -p 6379:6379 --name redis -d redis redis-server --appendonly yes
go build && ./fabricant <args>

Args:

--config - path to config file
--withfund - boolean value, true means crypto already buyed, but sell order not created

fabricant's People

Contributors

vadiminshakov avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.