UT0903 / Binance_trade_history_formatter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Binance_trade_history_formatter

Introduction

  • 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

pic1

How to Use

  1. How to create Binance API key: https://www.binance.com/en/support/faq/c-6

  2. 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'
  1. Install pip requirement in requirement.txt
pip3 install -r requirement.txt
  1. Now you can run the code
python3 my_trade.py
  1. Sample Output

demo1

demo2

demo

About


Languages

Language:Python 100.0%