Skip to content

Python script to fetch and analyze cryptocurrency trades from the Binance exchange

License

Notifications You must be signed in to change notification settings

abidzzz/binance-journal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

binance-journal

This repository contains a Python script to fetch and analyze cryptocurrency trades from the Binance exchange. The script fetches all orders for a specified trading pair, processes the data to match buy and sell trades, and calculates profits or losses. The results are saved into an Excel file with enhanced formatting.

NOTE : This script works only if you buy and sell one after the other. It assumes that each buy order is followed by a corresponding sell order.


Screenshots

Getting Started

Prerequisites

Python 3.x
binance library
openpyxl library

Install the required libraries using pip:

pip install python-binance openpyxl

Setup

Clone the repository:

git clone https://github.com/abidzzz/binance-journal.git
cd binance-trade-analyzer

Add your Binance API credentials:

Create a file named credentials.txt in the repository directory.
Add your API key and secret, each on a new line:

your_api_key
your_api_secret

Run the script:

python main.py

License

This project is licensed under the MIT License.

Contributions

Contributions are welcome! If you find a bug or have an enhancement in mind, feel free to open an issue or submit a pull request.

Donate

"Buy Me A Coffee"

About

Python script to fetch and analyze cryptocurrency trades from the Binance exchange

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages