{"repo":"miguelvazsilva/binance-portfolio-rebalancing-bot","free":true,"listed":false,"github":"https://github.com/miguelvazsilva/binance-portfolio-rebalancing-bot","clone":"git clone https://github.com/miguelvazsilva/binance-portfolio-rebalancing-bot.git","description":"This Python script, allows you to mantain a portfolio of binance coins, using the Threshold Rebalancing Strategy","language":"Python","stars":34,"topics":["binance","python","portfolio","rebalancing-bot","threshold"],"license":"MIT","category":"trading","readme_excerpt":"binance-portfolio-rebalancing-bot A Python bot that maintains a BTC-based crypto portfolio on Binance using the Threshold Rebalancing Strategy . Configuration is fully external via tr-bot-config.xml — no code edits required. Requirements Install the Binance Exchange API Python client: Strategy The bot buys altcoins (any number, configured in XML) using all available BTC, each with a target percentage of the total portfolio value (denominated in BTC). It continuously monitors deviation from target allocations and rebalances when any coin exceeds the configured deviation threshold. Example Configuration in tr-bot-config.xml : Coin Target % ------ ---------- ETH 20% BNB 20% XRP 20% SOL 20% TRX 20% Rebalance percentage: 8% Before rebalancing: After market movement: ETH is sold (deviation 8%), and BTC proceeds are used to buy BNB and TRX. A buy only executes if the order value exceeds the configured minimumOrder (in BTC). Email notifications are sent on every buy/sell. Configuration Copy the example config and fill in your credentials: Edit tr-bot-config.xml (never commit this file — it is in .gitignore ): Execution Run the rebalancing bot: To check current balances at any time: Disclaimer - This bot does not guarantee profits. - This bot works with Market Orders (buy and sell). - Use at your own risk.","default_branch":null,"files":null,"tree":[],"storefront":"/r/miguelvazsilva","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/miguelvazsilva/binance-portfolio-rebalancing-bot/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}