This is a DCA crypto trading bot built for Binance written in Python

Overview

binance-dca-crypto-trading-bot

This is a simple DCA crypto trading bot for Binance. It allows you to DCA any number of coins at a given interval. This DCA bot comes with better reporting than what you see on exchanges like Binance, by calculating your average DCA with each purchase. It also presents a historical graph of each DCA so you can compare against the market in the long run.

This crypto trading bot is meant to accumulate coins on Binance, and therefore has no sell strategy. This needs to be manually managed by the user.

QUICKSTART:

1. Clone the repo 2. add your API keys in auth/auth.example.yml and rename the file to be auth.yml 3. configure the settings on your bot in config/config.example.yml and rename the file to be config.yml 4. Remove the reporting examples in trades/dca-tracker

 

For a step-by-step guide on how to set it up and configure please see the guide here: DCA crypto trading bot Binance

 

See the video linked below for an explanation and rationale behind the bot. As well as the coding process

DCA crypto trading bot Binance

Want to talk trading bots? Join the discord https://discord.gg/Ga56KXUUNn

You might also like...
Trading bot - A Trading bot With Python
Trading bot - A Trading bot With Python

Trading_bot Trading bot intended for 1) Tracking current prices of tokens 2) Set

Trading through Binance's API using Python & sqlite

pycrypt Automate trading crypto using Python to pull data from Binance's API and analyse trends. May or may not consistently lose money but oh well it

Free python/telegram bot for easy execution and surveillance of crypto trading plans on multiple exchanges.
Free python/telegram bot for easy execution and surveillance of crypto trading plans on multiple exchanges.

EazeBot Introduction Have you ever traded cryptocurrencies and lost overview of your planned buys/sells? Have you encountered the experience that your

McTrade is a bot exploiting Binance API, open source! built in python !

Open Source Crypto Trading Bot using Binance API Report Bug ยท Request Feature Table of Contents About The Project Built With Getting Started Prerequis

Crypto trading bot that detects surges in the bitcoin price and executes trades.

The bot will be trading Bitcoin automatically if the price has increased by more than 3% in the last 10 minutes. We will have a stop loss of 5% and t

Trading strategy for the Freqtrade crypto bot

NostalgiaForInfinity Trading strategy for the Freqtrade crypto bot Change strategy Add strategies to the user_data/strategies folder and also in the d

trading strategy for freqtrade crypto bot it base on CDC-ActionZone

ft-action-zone trading strategy for freqtrade crypto bot it base on CDC-ActionZone Indicator by piriya33 Clone The Repository if you just clone this r

Automated crypto trading bot as adapted from Algovibes.

crypto-trading-bot Automated crypto trading bot as adapted from Algovibes. Pre-requisites Ensure that you have created a Binance API key before procee

Comments
  • NameError: name 'log' is not defined

    NameError: name 'log' is not defined

    When running in live mode:

    Traceback (most recent call last): File "/home/pi/crypto/binance-dca-crypto-trading-bot/main.py", line 97, in main() File "/home/pi/crypto/binance-dca-crypto-trading-bot/main.py", line 41, in main log.warning("RUNNING IN LIVE MODE! PAUSING FOR 1 MINUTE") NameError: name 'log' is not defined

    changing log.warning to logging.warning in main.py resolves the problem

    opened by waupdog 1
  • Various QoL improvements over the original

    Various QoL improvements over the original

    When an order fails (error returned by Binance API) the log now correctly reflects this Order quantity now always rounds up to nearest denomination of a coin allowed on Binance. This means DCA orders of the minimum amount (10 UDST) will no longer fail for falling below the minimum trade amount where the quantity has been rounded down Bot now uses spot market orders instead of margin orders as in the original Test trades now use the Binance API test trade request, giving authentic error codes for testing purposes Instead of using a sleep command for the full duration of the DCA wait period, I've incorporated a check every 15 minutes to see if enough time has passed since last trade. This way the script is crash and reboot resistant. In the original a restart of the script would mean an instant buy of all coins. This method allows you to restart and it will still wait the full duration. Also logs each attempt to clearly show script is still running. If DCA period is less than 15 minutes, the sleep time is reduced to the DCA period Buys are only logged if order was successfully placed on Binance, ensuring records are accurate. If a buy order failed in the original it would still be logged in the history

    opened by waupdog 0
  • Importing a couple of libraries error on Raspberry pi 4 running raspbian

    Importing a couple of libraries error on Raspberry pi 4 running raspbian

    Error and solution outlined here: https://numpy.org/devdocs/user/troubleshooting-importerror.html

    and: https://stackoverflow.com/questions/48012582/pillow-libopenjp2-so-7-cannot-open-shared-object-file-no-such-file-or-directo

    opened by waupdog 0
Owner
Andrei
Crypto enthusiast. Love nerding out on blockchain tech. I build and test crypto trading bots. Meme Savvy 69/10.
Andrei
Andrei 1.4k Dec 24, 2022
This is a crypto trading bot that scans the Binance Annoucements page for new coins, and places trades on Gateio

gateio-trading-bot-binance-announcements This Gateio x Binance cryptocurrency trading bot scans the Binance Announcements page and picks up on new coi

Andrei 1.2k Jan 1, 2023
Cryptocurrency Trading Bot - A trading bot to automate cryptocurrency trading strategies using Python, equipped with a basic GUI

Cryptocurrency Trading Bot - A trading bot to automate cryptocurrency trading strategies using Python, equipped with a basic GUI. Used REST and WebSocket API to connect to two of the most popular crypto exchanges in the world.

Francis 8 Sep 15, 2022
Crypto-trading-simulator - Cryptocurrency trading simulator using Python, Streamlit

Crypto Trading Simulator Run streamlit run main.py Dependency Python 3 streamli

Brad 12 Jul 2, 2022
Freqtrade is a free and open source crypto trading bot written in Python.

Freqtrade is a free and open source crypto trading bot written in Python. It is designed to support all major exchanges and be controlled via Telegram. It contains backtesting, plotting and money management tools as well as strategy optimization by machine learning.

Kazune Takeda 5 Dec 30, 2021
An advanced crypto trading bot written in Python

Jesse Jesse is an advanced crypto trading framework which aims to simplify researching and defining trading strategies. Why Jesse? In short, Jesse is

Jesse 4.4k Jan 9, 2023
Aio-binance-library - Async library for connecting to the Binance API on Python

aio-binance-library Async library for connecting to the Binance API on Python Th

GRinvest 10 Nov 21, 2022
This is a cryptocurrency trading bot that analyses Reddit sentiment and places trades on Binance based on reddit post and comment sentiment. If you like this project please consider donating via brave. Thanks.

This is a cryptocurrency trading bot that analyses Reddit sentiment and places trades on Binance based on reddit post and comment sentiment. The bot f

Andrei 157 Dec 15, 2022
A muti pairs martingle trading bot for Binance exchange.

multi_pairs_martingle_bot English Documentation A muti pairs martingle trading bot for Binance exchange. Configuration { "platform": "binance_futur

51bitquant 62 Nov 16, 2022