Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-0101 committed Apr 14, 2022
2 parents 5e3d2c4 + 2f32a43 commit 6490a39
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

This Binance trading bot will check Elon Musks twitter feed for tweets about Dogecoin, if the tweet is positive, the bot will buy $25 of Dogecoin. You can also specify how long until you would like the bot to sell the $25 of Dogecoin that it bought.

## Requirements
## How it works & Usage

On startup, the bot checks for a new Elon Musk tweet every 60 seconds. If found, the bot analyzes the tweet and first checks if the tweet is positive, if it is, it checks if the tweet contains these 3 keywords; `['doge', 'dogecoin', 'crypto']`, if it does it sends a Binance order request. In the order request function we first get the price of DOGE and calculate how much of it $25 can buy, once that's done we send an order request to binance. The script will then cool down for exactly 4 minutes (this is to ensure the bot doesn't create multiple orders for the same tweet).

- Twitter Developer api.
- Binance account with an API
Expand All @@ -17,6 +19,23 @@ This Binance trading bot will check Elon Musks twitter feed for tweets about Dog

### 1. Install Dependencies

1. Install Dependencies

- Easy mode (might clash with current depends)
```sh
pip install -r requirements.txt
```
- Prefered Method (venv)

```sh
python3 -m venv .venv
source .venv/bin/activate # linux
.\.venv/scripts/activate # windows
pip install -r requirements.txt
```

- Easy mode (might clash with current depends)
```sh
pip install -r requirements.txt
Expand Down

0 comments on commit 6490a39

Please sign in to comment.