{"id":34077438,"url":"https://github.com/diego-cores/backpy","last_synced_at":"2025-12-14T10:04:04.694Z","repository":{"id":227575874,"uuid":"755774147","full_name":"diego-cores/BackPy","owner":"diego-cores","description":"BackPy is a library made in python for back testing in financial markets.","archived":false,"fork":false,"pushed_at":"2025-11-02T20:44:45.000Z","size":7850,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-02T22:15:07.777Z","etag":null,"topics":["matplotlib","python3","strategy","test","testing","trading"],"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/diego-cores.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-02-11T02:16:52.000Z","updated_at":"2025-10-26T18:09:17.000Z","dependencies_parsed_at":"2024-07-14T03:28:56.353Z","dependency_job_id":"dc6c5c81-604c-4a72-8a36-d5d6cda00adf","html_url":"https://github.com/diego-cores/BackPy","commit_stats":null,"previous_names":["diego-cores/backpy"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/diego-cores/BackPy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diego-cores%2FBackPy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diego-cores%2FBackPy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diego-cores%2FBackPy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diego-cores%2FBackPy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/diego-cores","download_url":"https://codeload.github.com/diego-cores/BackPy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diego-cores%2FBackPy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27725942,"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","status":"online","status_checked_at":"2025-12-14T02:00:11.348Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["matplotlib","python3","strategy","test","testing","trading"],"created_at":"2025-12-14T10:04:03.562Z","updated_at":"2025-12-14T10:04:04.688Z","avatar_url":"https://github.com/diego-cores.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![BackPy logo](images/logo.png)  \n![Version](https://img.shields.io/badge/version-0.9.69b3-blue)\n![Status](https://img.shields.io/badge/status-beta-orange)\n\n# BackPy\n\n**BackPy** is a Python library for backtesting strategies in financial markets.  \nYou can provide your own historical data or use the built-in integration with the `yfinance` or `binance-connector` modules.\n\n## ⚠️ Important Notices\n\nPlease make sure to read the following before using this software:\n\n- [Risk Notice](Risk_notice.txt)\n- [License](LICENSE)\n\nBy using this software, you acknowledge that you have read and agree to the terms outlined in these documents.\n\n## 📦 How to install backpy with pip\n\n1. Download the latest version from GitHub\n- Go to this project GitHub page.\n- Download the ZIP file of the latest version of the project.\n2. Unzip the ZIP file\n- Unzip the ZIP file you downloaded.\n- This will give you a folder containing the project files.\n3. Open the terminal\n- Open the terminal in your operating system.\n- Navigate to the folder you just unzipped. You can use the cd command to change directories.\n4. Install the module\n- Once you are in the project folder in terminal, run the following command: 'pip install .'.\n- This command will install the Python module using the setup.py file located in the project folder.\n5. Verify installation\n- After the installation process finishes without errors, you can verify if the module has been installed correctly by running some code that imports the newly installed module.\n6. Clean downloaded files\n- After you have verified that the module is working correctly, you can delete the downloaded ZIP file and unzipped folder if you wish.\n\n## 🚀 Code example\n![simple code image](images/code1.png)\n\nWith Backpy, you can design your strategies quickly, easily, and in just a few lines.\n\n![strategy code image](images/code2.png)\n\nDon't forget to graph!\nDraw any chart and see your strategy inputs and outputs with a single function.\n\n![BTC graph image](images/graph1.png)\n\nGraph your results, profit equity chart or whatever you want.\n\n![statistics graph image](images/graph2.png)\n\nCreate your custom chart in just a few lines and plot it with a single function.\n\n![graph code image](images/code3.png)\n\nBy the way, don't forget to check the stats in the console.\n\n![console statistics image](images/stats.png)\n\n### Disclaimer\nSome images have been edited to highlight specific parts of the code or output, and may not represent the actual output exactly.\nExamples shown are for demonstration purposes only. Any strategy used is simplified and should not be considered financial or investment advice.\nAlso, note that any aspect of the examples may change in future versions.\nAlways perform your own research and analysis before trading.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiego-cores%2Fbackpy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiego-cores%2Fbackpy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiego-cores%2Fbackpy/lists"}