/crypto-trading-bot

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

Primary LanguageTypeScriptMIT LicenseMIT

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