An open API service indexing awesome lists of open source software.

https://github.com/praneshasp/crypto-trading-bot

This is a customizable sentiment based cryptocurrency trading bot built using NodeJS
https://github.com/praneshasp/crypto-trading-bot

Last synced: 9 months ago
JSON representation

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

Awesome Lists containing this project

README

          

![Product Name Screen Shot](https://cdn-images-1.medium.com/max/2560/1*8OvHd4ONUtZLQFSMQ4kVwg.jpeg)


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](https://medium.com/geekculture/this-bot-can-trade-bitcoin-whenever-elon-musk-tweets-about-it-614b95633663) - 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](https://nodejs.org)

- npm :
```sh
npm install npm@latest -g
```
- [Twitter Developer Account](https://developer.twitter.com/en/apply/user.html): For getting the Bearer token to make valid requests to Twitter API.

- [Binance Testnet Keys](https://testnet.binance.vision): 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 :
```sh
git clone https://github.com/PraneshASP/crypto-trading-bot.git
```
2. Install dependencies (use `sudo` if required) :

```sh
npm install
```

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

4. Start the bot :
```sh
npm start
```