{"id":24374639,"url":"https://github.com/yuzaiakira/binance-python-candle-fetcher","last_synced_at":"2026-05-08T10:35:43.650Z","repository":{"id":272141320,"uuid":"915639749","full_name":"yuzaiakira/binance-python-candle-fetcher","owner":"yuzaiakira","description":"A Python-based tool for fetching historical candlestick data for various cryptocurrencies from the Binance API.","archived":false,"fork":false,"pushed_at":"2025-01-12T12:35:58.000Z","size":10997,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-21T09:07:28.678Z","etag":null,"topics":["binance","bitcoin","candelestick","cryptocurrency","ethereum","python"],"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/yuzaiakira.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":"2025-01-12T12:15:11.000Z","updated_at":"2025-01-12T12:36:01.000Z","dependencies_parsed_at":"2025-01-12T13:48:41.701Z","dependency_job_id":null,"html_url":"https://github.com/yuzaiakira/binance-python-candle-fetcher","commit_stats":null,"previous_names":["yuzaiakira/binance-python-candle-fetcher"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yuzaiakira/binance-python-candle-fetcher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuzaiakira%2Fbinance-python-candle-fetcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuzaiakira%2Fbinance-python-candle-fetcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuzaiakira%2Fbinance-python-candle-fetcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuzaiakira%2Fbinance-python-candle-fetcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yuzaiakira","download_url":"https://codeload.github.com/yuzaiakira/binance-python-candle-fetcher/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuzaiakira%2Fbinance-python-candle-fetcher/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261095309,"owners_count":23108784,"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","bitcoin","candelestick","cryptocurrency","ethereum","python"],"created_at":"2025-01-19T05:40:58.363Z","updated_at":"2026-05-08T10:35:38.621Z","avatar_url":"https://github.com/yuzaiakira.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Get Cryptocurrency Data from Binance\n\nThis project fetches historical candlestick data for Cryptocurrency (like BTC) from the Binance API and saves it to a CSV file. The data can be used for analysis, backtesting trading strategies, or any other purpose that requires historical price information.\n\n## Features\n\n- Fetches candlestick data for Cryptocurrency over a customizable date range.\n- Writes the data directly to a CSV file to minimize memory usage.\n- Handles pagination to ensure all available data is retrieved.\n\n## Requirements\n\n- Python 3.x\n- `requests` library\n- `pandas` library\n\n## Installation\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/yuzaiakira/binance-python-candle-fetcher.git\n   cd binance-python-candle-fetcher\n   ```\n\n2. Install the required libraries:\n\n    ``` bash\n    pip install requests pandas\n    ```\n\n## Usage\n\n1. Open the `get_price.py` file in your preferred code editor.\n   \n2.  Modify the following variables to suit your needs:\n   - **symbol**: Change this to the cryptocurrency symbol you want to fetch data for (e.g., 'BTCUSDT' for Bitcoin).\n   - **interval**: Set this to the desired candlestick interval (e.g., '15m' for 15 minutes).\n   - **start_year**: Update this to the year from which you want to start fetching historical data (e.g., 2017).\n\n3. After making your changes, save the file and run the script to fetch the data:\n\n    ```bash\n    python get_price.py\n    ```\n4. The script will create a CSV file named `{symbol}_15m_data_{start_year}_{end_time}.csv` in the same directory, containing the historical candlestick data.\n\n## TODO\n- [ ] Set Up Command-Line Interface\n- [ ] Make as linux Command\n- [ ] Modify Documentation\n- [ ] Write Test 😭","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuzaiakira%2Fbinance-python-candle-fetcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyuzaiakira%2Fbinance-python-candle-fetcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuzaiakira%2Fbinance-python-candle-fetcher/lists"}