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
- Host: GitHub
- URL: https://github.com/praneshasp/crypto-trading-bot
- Owner: PraneshASP
- Created: 2021-06-24T20:50:05.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-06-25T18:52:32.000Z (almost 5 years ago)
- Last Synced: 2024-04-12T21:57:18.480Z (about 2 years ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

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
```