- Implemented by binance API (python binance-connector).
- Can calculate profit for each history trade.
- Use BFS to find the least trading times.
- Profit is calculate by current price, and include taker fee.
- Can show trade info by different currency standards.
- Future work: Can find the cheapest path for two coins
-
How to create Binance API key: https://www.binance.com/en/support/faq/c-6
-
Create a file named 'secret.py', and add the following in the file, remember to change to your own api key and secret.
// secret.py
my_api_key = 'YOUR_API_KEY'
my_api_secret = 'YOUR_API_SECRET'
- Install pip requirement in requirement.txt
pip3 install -r requirement.txt
- Now you can run the code
python3 my_trade.py
- Sample Output