/moon-bot-binance

Script for BTC trading. Bot to automate buying and selling of BTC taking into account the lunar phases.

Primary LanguagePython

Binance Moon Bot

This is a bot programed in Python and the idea is to optimize SELL and BUY orders taking into account the moon state:

  • FULL MOON: Buy BTC 🌕
  • NEW MOON: Sell BTC 🌑

However, guided by the motto "better to gain a little than to lose a lot", if between the full moon and the new moon the price of BTC increases by 10% since the last purchase, then the bot is programmed to sell and thus obtain a considerable profit (more than 10%).

Moon trading

⚠️ ALERT!: This is an academic task and NOT AN INVEST ADVISE ⚠️

Menu 💻

By executing the menu.py script, an interactive menu opens in the console, allowing the user to make a series of checks quickly and easily.

Keys 🔑

Plese add you own keys and paths in config.py file

  • API_KEY & API_SECRET -> Obtained in Binance web
  • EMAIL_FROM -> Mail that sends the notifications
  • EMAIL_TO -> Mail where notifications are received
  • EMAIL_PASS -> This is not your email account password, is a "key" obtained in your email settings to allow you send messages from external API
  • HISTORIC_PATH, LOGS_PATH, FLAG_PATH & DIFF_PATH -> Complete path that you save those files
  • BUY_PATH & SELL_PATH -> Complete path that you save those files. These files are use to calculare earns
  • TELEGRAM_TOKEN & TELEGRAM_CHAT_ID -> These are Telegram information. To get the token, you must create a Telegram Bot. I recommend BotFather

Email 📧

Allows you to send an email with a notification once bot make an operation. This is a second way to save a history

Telegram 📱

Allows you to send a Telegram message with a notification once bot make an operation. This is a third way to save a history

Crontab ⏱️

You MUST include the following line in you crontab file to run the script every day at 4:00 AM (You can schedule as you wish)

0 4 * * * project path

Test orders ❗

This script will never buy or sell BTC because only run "test_order". In case you want to work with real operations, please comment test_order lines and delete "#" before "order_market_sell" and "order_market_buy" lines

"Buy Me A Coffee"

Note: Please take into account that this repository is still in progress of improvements