Explore the post »
Report Bug
·
Request Feature
- 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.
- Node.js - JavaScript runtime built on Chrome's V8 JavaScript engine.
To get a local copy up and running follow these simple steps :
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.
-
Clone the repo :
git clone https://github.com/PraneshASP/crypto-trading-bot.git
-
Install dependencies (use
sudo
if required) :npm install
-
Copy
.env.example
file into.env
and add the specified keys/tokens : -
Start the bot :
npm start