GithubHelp home page GithubHelp logo

teamwertarbyte / crypto-trading-bot Goto Github PK

View Code? Open in Web Editor NEW
30.0 6.0 18.0 548 KB

A trading bot that does what you order him to do (use at your own risk)

License: MIT License

JavaScript 3.90% TypeScript 96.10%
bitcoin bittrex bittrex-api trading-bot

crypto-trading-bot's Introduction

Cryptocurrency Trading Bot version

I'm using this bot for a long time now and wanted to share it.

Feel free to make it your own. PRs are welcome!

USE AT YOUR OWN RISK

A trading bot that does what you order him to do (use at your own risk) I'm not responsible for anything

EMA crossover strategy

It's using the ema crossover strategy

https://www.theforexchronicles.com/the-ema-5-and-ema-20-crossover-trading-strategy/

EMA crossing strategy

Donations

To support this project, you can make a donation to its current maintainer:

paypal

Requirements

Node.js

As package manager install yarn https://classic.yarnpkg.com/en/docs/install

Configuration

Bittrex API key and API secret

How to get: https://support.coinigy.com/hc/en-us/articles/360001123973-How-do-I-find-my-API-key-on-Bittrex-com-

Set BITTREX_API_KEY and BITTREX_API_SECRET as environment variables.

Easiest way is to add an .env file into the root project folder ./.env wit the content

BITTREX_API_KEY=YOUR_BITTREX_API_KEY
BITTREX_API_SECRET=YOUR_BITTREX_API_SECRET

otherwise see the provided .env.template file.

If no keys were found you'll get an error message No BITTREX_API_KEY and or BITTREX_API_SECRET found. Check your environment variables

Adapt the config

Change the configuration parameters to your liking config.json

For more details see the documentation in ./modules/configuration/Configuration.ts

(optional) Setup crash reporting with sentry

Create a free monitoring project https://sentry.io/

Set SENTRY_DSN as environment variable.

Run and development

Build and start

yarn
yarn start

This will create a /dist folder and start the containing /dist/index.js file

Build bundle

yarn
yarn build

This will create a /dist folder containing the created .js files. You could now deploy it on any server you like

Development

yarn
yarn start:dev

This will start the bot in a watch mode. On every code change it will recompile and restart

Discussion and wiki

Feel free to join the discussion and wiki here on github

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.