Skip to content

mounan/Crypto-Trader-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auto Trader Bot

スクリーンショット 2021-05-26 19.37.04スクリーンショット 2021-05-26 19.42.12

Description

Tracking a specific Twitter user's tweet, and trigger the BUY and SELL order in Binance.

Expectation

  • Expect this bot to help you earn money in the short-term operations.

  • Don't hesitate to ask questions, open issues, and making comments.

Motivation

スクリーンショット 2021-05-26 19.19.23

スクリーンショット 2021-05-26 19.23.57

Wrokflow Example

For instance of tracking Alice's tweet and you let the bot to listen keywords like 'doge' or 'btc' from Alice's new tweet. And you preset the bot to buy 300 DOGEs using USDTs at the price when Alice tweets some triggers. And you want to sell them when the price of DOGE go up by like 10%.

And then Alice tweeted like this:

IMG_9909

Then, your Binance account will do two things automaticlly below:

  1. Order to buy 300 doges at current price (let's say buying_price) in seconds
  2. If buying succeeds then it will set another order to sell 300 doges at buying_price*1.1 (1.1 times much than buying price)

Fortunately, you will earn 30*buying_price which is a 10% profits.

After all of this, the bot will keep tracking.

Warnings

  • Always use the test mode at first when you activate the bot 🤖.
  • Try a little money first.
  • The bot will keep running unless you terminate it manually.
  • The setting of the bot is immutable in the runtime.
  • Long is always better than short.

Table of Contents

Installation

In your shell, cd to a proper place and type:

git clone https://github.com/mounan/Auto-Trader-Bot.git

Usage

Make sure you already download the whole project locally.

Preparation

  1. Python version >= 3.8

  2. Python dependencies

    In your shell, cd to the project directory and type:

    cd Auto-Trader-Bot
    pip install requirements.txt
  3. API keys

    1. Apply your own Twitter API bearer token and Binance API key pair:

      *Note: Do not tell anyone any of your own keys and please save them properly.

    2. Add your own keys into the config.yaml file in to proper place.

      *Note: This file will only be saved to your local location

      • e.g.
    スクリーンショット 2021-05-26 17.16.05
  4. Some faits or cryptos in your Binance wallet.

Activate the bot

  1. In your shell, cd to the src directory and type:

    cd src
    python main.py	
  2. Input the required parameters and make the bot alive 🤖

    スクリーンショット 2021-05-26 17.25.57

What else ?

  • You can download the Caffeine to keep your screen on while runing program.

Coming features

  • Tweets text checking with the sentiment analysis.
  • Recognize the images within the tweets and make this a trigger.

Authors

  • Munan Zou - Owner/maintainer - :octocat: mounan

    Looking for maintainers!

    This project is for my loving babe Caroline.

Buy Me A Coffee! ☕

If you want to support me, thank you !

My crypto adresses :

DOGE : D85LSY7sUgZneZpmmzkc4A4GR9ZFicEkoC

ETH : 0x863AB67C1f1B11Afe91e83dAAdCE9d6AfCaAcB4C

USDT : 0x863AB67C1f1B11Afe91e83dAAdCE9d6AfCaAcB4C

BTC : 17Kyg52xqnG53sH43sbSRezT2sWk4Aoubh

License

This project is licensed under the MIT License - see the LICENSE file for details.

Reference

About

A bot to trade cryptocurrency based on tweets.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages