{"id":28223416,"url":"https://github.com/alrza2003/binancetrader","last_synced_at":"2026-04-12T17:51:22.571Z","repository":{"id":223486948,"uuid":"760427195","full_name":"AlrzA2003/BinanceTrader","owner":"AlrzA2003","description":"AI-powered trading bot using Python, pandas, scikit-learn, NumPy, and TensorFlow. Interacts with Binance API for cryptocurrency trading based on ZigZag indicator and AI predictions.","archived":false,"fork":false,"pushed_at":"2024-09-12T20:30:10.000Z","size":146,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-18T08:09:36.135Z","etag":null,"topics":["binance","ccxt","cryptocurrency","data-analysis","numpy","pandas","python","statistics","tensorflow","trading","trading-algorithms","trading-strategies","tradingbot"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AlrzA2003.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-20T12:00:39.000Z","updated_at":"2025-05-02T20:58:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"2801c83d-d7b9-449e-88e2-a3d2b31cbffe","html_url":"https://github.com/AlrzA2003/BinanceTrader","commit_stats":null,"previous_names":["autotradingace/binancetrader","alrza2003/binancetrader"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AlrzA2003/BinanceTrader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlrzA2003%2FBinanceTrader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlrzA2003%2FBinanceTrader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlrzA2003%2FBinanceTrader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlrzA2003%2FBinanceTrader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlrzA2003","download_url":"https://codeload.github.com/AlrzA2003/BinanceTrader/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlrzA2003%2FBinanceTrader/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259370001,"owners_count":22847194,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["binance","ccxt","cryptocurrency","data-analysis","numpy","pandas","python","statistics","tensorflow","trading","trading-algorithms","trading-strategies","tradingbot"],"created_at":"2025-05-18T08:09:35.833Z","updated_at":"2026-04-12T17:51:17.534Z","avatar_url":"https://github.com/AlrzA2003.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BinanceTrader\n\nBinanceTrader is a Python class that utilizes Deep Neural Networks (DNN) for making predictions and executing demo/real trades on the Binance platform. This project aims to provide a framework for algorithmic trading in the cryptocurrency market.\n\n## Table of Contents\n\n- [Features](#features)\n- [Prerequisites](#prerequisites)\n- [Installation](#installation)\n- [Setup](#setup)\n- [Usage](#usage)\n- [How It Works](#how-it-works)\n- [Risk Disclaimer](#risk-disclaimer)\n- [Resources](#resources)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Features\n\n- Leverages Deep Neural Networks for price predictions\n- Supports both demo (testnet) and real trading environments (mainnet)\n- Automated trading with customizable parameters\n- Real-time data fetching and preprocessing\n- Integration with Binance API\n\n## Prerequisites\n\n- Python 3.7+\n- Binance account (with API access)\n- Basic understanding of cryptocurrency trading and Python programming\n\n## Installation\n\n1. Clone this repository:\n```\ngit clone https://github.com/AlrzA2003/BinanceTrader.git\ncd BinanceTrader\n```\n\n2. Install the required packages:\n```\npip install -r requirements.txt\n```\n\nFor specific versions to ensure compatibility:\n```\npip install -r requirements_specific.txt\n```\n\n## Setup\n\n1. Data Preparation:\n- Run `Downloades.py` to fetch historical data from Binance.\n- Execute `Preprocessing.py` to train and save the model and scaler.\n\nNote: While pre-trained models are provided, it's recommended to train your own for the most up-to-date data.\n\n2. Configuration:\n- Open `credentials.txt` and replace `API_KEY` and `SECRET` with your Binance API credentials. [How to get Binance API keys](https://support.coinigy.com/hc/en-us/articles/360001144614-How-do-I-find-my-API-key-on-Binance-com-)\n- In `BinanceTrader.py` set `testnet` to `True` if you want to use Binance Testnet for demo trading.\n- Update `model_path` and `scaler_path` with the correct paths to your model and scaler files.\n\n## Usage\n\nAfter completing the setup, run the BinanceTrader:\n```\npython BinanceTrader.py\n```\nThe script will connect to your Binance account and start trading based on the DNN predictions.\n\n## How It Works\n\nBinanceTrader operates by:\n\n1. Connecting to your Binance account using the provided API keys.\n2. Making trades with leverage based on predictions from the Deep Neural Network model.\n3. Using all available funds in the futures section for trades.\n\n## Risk Disclaimer\n\nTrading cryptocurrencies, especially with leverage, carries significant financial risk. By using BinanceTrader, you acknowledge and accept these risks. Please note:\n\n- This software is for educational and experimental purposes only.\n- Never trade with funds you cannot afford to lose.\n- The author is not responsible for any financial losses incurred while using this software.\n- Always monitor your trades and be prepared to intervene manually if necessary.\n\n## Resources\n\nThis project was developed with the help of the following educational resources:\n\n1. **Data Analysis with Pandas and Python**\n   - Platform: Udemy\n   - [Course Link](https://www.udemy.com/course/data-analysis-with-pandas/)\n   - Description: Comprehensive course on data manipulation and analysis using Pandas.\n\n2. **Python for Data Science and Machine Learning Bootcamp**\n   - Platform: Udemy\n   - [Course Link](https://www.udemy.com/course/python-for-data-science-and-machine-learning-bootcamp/)\n   - Description: Extensive course covering various machine learning algorithms and their implementation in Python.\n\n3. **Algorithmic Trading A-Z with Python, Machine Learning \u0026 AWS**\n   - Platform: Udemy\n   - [Course Link](https://www.udemy.com/course/algorithmic-trading-with-python-and-machine-learning/)\n   - Description: Comprehensive overview of algorithmic trading, from basic concepts to advanced strategies.\n\n4. **Cryptocurrency Algorithmic Trading with Python and Binance**\n   - Platform: Udemy\n   - [Course Link](https://www.udemy.com/course/cryptocurrency-algorithmic-trading-with-python-and-binance/)\n   - Description: Focused course on cryptocurrency trading using the Binance API.\n\n5. **Performance Optimization and Risk Management for Trading**\n   - Platform: Udemy\n   - [Course Link](https://www.udemy.com/course/performance-optimization-and-risk-management-for-trading/)\n   - Description: Course on optimizing trading strategies and managing risk in trading systems.\n\n6. **Python for Finance: Mastering Data-Driven Finance**\n   - Author: Yves Hilpisch\n   - Publisher: O'Reilly Media\n   - [Book Link](https://www.oreilly.com/library/view/python-for-finance/9781492024323/)\n   - Description: Comprehensive book covering various aspects of financial analysis and algorithmic trading using Python.\n\n## Contributing\n\nContributions to improve BinanceTrader are welcome! Please feel free to submit pull requests or open issues to discuss potential enhancements.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falrza2003%2Fbinancetrader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falrza2003%2Fbinancetrader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falrza2003%2Fbinancetrader/lists"}