/crypto-trading-bot

This is a customizable sentiment based cryptocurrency trading bot built using NodeJS

Primary LanguageJavaScript

Product Name Screen Shot

Sentiment based Cryptocurrency trading Bot

Explore the post »

Report Bug · Request Feature

What's inside this repo?

  • NodeJS bot that trades the cryptocurrency on Binance
  • Customization Possible - check config.js file
  • Uses Twitter API
  • Ability to record the trades in trade.logs file.

For a more detailed explanation of the code, you can refer to my medium post associated with this repository.

Visit blog - This bot can trade Bitcoin whenever Elon Musk tweets about it.

Built With

  • Node.js - JavaScript runtime built on Chrome's V8 JavaScript engine.

Getting Started

To get a local copy up and running follow these simple steps :

Prerequisites

To run this project, you'll need to have the following installed:

  • Node.js : https://nodejs.org

  • npm :

    npm install npm@latest -g
  • Twitter Developer Account: For getting the Bearer token to make valid requests to Twitter API.

  • Binance Testnet Keys: The keys are required to place orders programatically on the Binance Testnet exchange. It can be obtained by signing in with your GitHub account.

Installation

  1. Clone the repo :

    git clone https://github.com/PraneshASP/crypto-trading-bot.git
  2. Install dependencies (use sudo if required) :

    npm install
  3. Copy .env.example file into .env and add the specified keys/tokens :

  4. Start the bot :

    npm start