

Github GitHub - edeng23/binance-trade-bot: Automated cryptocurrency trading bot
source link: https://github.com/edeng23/binance-trade-bot
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md
binance-trade-bot
Automated cryptocurrency trading bot
This script was inspired by the observation that all cryptocurrencies pretty much behave in the same way. When one spikes, they all spike, and when one takes a dive, they all do. Pretty much. Moreover, all coins follow Bitcoin's lead; the difference is their phase offset.
So, if coins are basically oscillating with respect to each other, it seems smart to trade the rising coin for the falling coin, and then trade back when the ratio is reversed.
The trading is done in the Binance market platform, which of course does not have markets for every altcoin pair. The workaround for this is to use Tether (USDT), which is stable by design, as a bridge currency.
Coin A → USDT → Coin B
The way the bot takes advantage of this behaviour is to always downgrade from the "strong" coin to the "weak" coin, under the assumption that at some point the tables will turn. It will then return to the original coin, ultimately holding more of it than it did originally. This is done while taking into consideration the trading fees.
Coin A → USDT → Coin B
Coin B → USDT → Coin C
Coin C → USDT → Coin A
The bot jumps between a configured set of coins on the condition that it does not return to a coin unless it is profitable in respect to the amount held last. This means that we will never end up having less of a certain coin. The risk is that one of the coins may freefall relative to the others all of a sudden, attracting our reverse greedy algorithm.
Binance Setup
- Create a Binance account.
- Enable Two-factor Authentication.
- Create a new API key.
- Get a cryptocurrency. If its symbol is not in the default list, add it.
Tool Setup
Install Python dependencies
Run the following line in the terminal: pip install -r requirements.txt
.
Create user configuration
Create a .ini file named user.cfg
based off .user.cfg.example
, then add your API keys and current coin.
Integration with Telegram Bots
You can integrate the bot with a Telegram bot that will notify you with log information. This is done by creating a bot using Telegram's BotFather and inserting the Telegram Bot's TOKEN and the corresponding CHAT_ID in the configuration file. For more information about Telegram bots refer to Telegram's official documentation.
./crypto_trading.py
Docker
docker-compose up
Join the Chat
- Discord: Invite Link
Disclaimer
The code within this repository comes with no guarantee. Run it at your own risk. Do not risk money which you are afraid to lose. There might be bugs in the code - this software does not come with any warranty.
Recommend
-
82
Crypto Trading Bot A work in progress Cryptocurrency for common exchanges like Bitfinex, Bitmex and Binance. As most trading bots just provide basic buy and sell signals they provide many stuff to get profitable eg e...
-
15
README.md ...
-
60
Binance Trading Bot Automated Binance trading bot with trailing buy/sell strategy This is a test project. I am just testing my code. Warnings I cannot guarantee whether...
-
13
gateio-trading-bot-binance-announcements This Gateio x Binance cryptocurrency trading bot scans the Binance Announcements page and picks up on new coin listings. It then goes to Gateio and places a buy order on the coin that's due to...
-
8
Binance CEO expects ‘very high volatility’ in crypto. Here’s how to trade it – HodlalertBinance CEO expects ‘very high volatility’ in crypto. Here’s how to trade it...
-
7
Trading In Your iPhone? Here Are 9 Reasons to Trade In With Apple By Quina Baterna Published 10 hours ago You’ve got l...
-
4
$FBT – FibitPro Exchange token now available for trading on DEX-Trade, CAT.EX $FBT has made its way to international exchanges – Cat.Ex & Dex-Trade and is now available...
-
11
As we have furnished an impressive NFT Marketplace like Binance, it is the right time for an entrepreneur and business aspirant to own a worthy NFT Marketplace. Get in touch with the best NFT Marketplace company and encounter rapid growth.
-
11
Where traders collaborate, track, share, & copy tradesTrade Hub - The Social Trading AppWhere traders collaborate, track, share, & copy tradesFollow & copy trade to...
-
5
Crypto giant Binance hit with US charges for breaking trade rules
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK