Skip to content
A Binance Exchange Portfolio Rebalancer
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Librio is a python script that rebalances your Binance Exchange Portfolio according to the percentage allocations in data.json

Getting Started

  • You will need python installed.
  • You need to have a Binance account with some $$$ in crypto.
  • You will also need to have an api key enabled. Please be very careful with this key.
  • Don't upload it to anything and if possible set the api setting to limit IP addresses.


Copy your API KEY and SECRET to the appropriate places in Using the python binance client from

pip install python-binance
git clone
cd librio

Running the script

Take some time to adjust the numbers and the symbols of your preferred portfolio composition in data.json.

Set OFFLINE to false in



If you want to help improve Librio please submit a Pull Request. Some possible suggestions on things to submit:

  • Improve rebalancing algorithm (current one is brute force simple)
  • Add support for more exchanges
  • Improve the user experience


Daniel Wang

See also the list of contributors who participated in this project.


This project is licensed under the MIT License.


You can’t perform that action at this time.