{"id":21578301,"url":"https://github.com/stephanakkerman/crypto-ohlcv","last_synced_at":"2025-04-10T17:33:24.110Z","repository":{"id":157307863,"uuid":"385911570","full_name":"StephanAkkerman/crypto-ohlcv","owner":"StephanAkkerman","description":"Gets historical OHLCV data from supported exchanges and converts it into dataframe readable by TensorTrade.","archived":false,"fork":false,"pushed_at":"2023-08-09T14:32:40.000Z","size":33,"stargazers_count":19,"open_issues_count":1,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-24T15:11:15.659Z","etag":null,"topics":["binance","bitcoin","crypto","cryptocurrency","data","ethereum","ftx","ohlcv","ohlcv-data"],"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/StephanAkkerman.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}},"created_at":"2021-07-14T11:11:01.000Z","updated_at":"2025-03-24T03:34:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"8c51b8ba-0434-48d8-9068-3ddfcd10db11","html_url":"https://github.com/StephanAkkerman/crypto-ohlcv","commit_stats":null,"previous_names":["stephanakkerman/crypto-ohlcv"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StephanAkkerman%2Fcrypto-ohlcv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StephanAkkerman%2Fcrypto-ohlcv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StephanAkkerman%2Fcrypto-ohlcv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StephanAkkerman%2Fcrypto-ohlcv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StephanAkkerman","download_url":"https://codeload.github.com/StephanAkkerman/crypto-ohlcv/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248261993,"owners_count":21074229,"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","crypto","cryptocurrency","data","ethereum","ftx","ohlcv","ohlcv-data"],"created_at":"2024-11-24T13:10:06.055Z","updated_at":"2025-04-10T17:33:24.072Z","avatar_url":"https://github.com/StephanAkkerman.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Crypto OHLCV (Open High Low Close Volume)\n[![Python 3.8](https://img.shields.io/badge/python-3.7-blue.svg)](https://www.python.org/downloads/release/python-370/)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n[![MIT License](https://img.shields.io/github/license/StephanAkkerman/Crypto_OHLCV.svg?color=brightgreen)](https://opensource.org/licenses/MIT)\n\n---\n\ncrypto-ohlcv is a simple Python script that lets you fetch historical OHLCV data from ccxt supported exchanges.\nI wrote this script, because my other script focussed solely on Binance, whereas this one supports many exchanges.\nIt consists of one simple function called `fetch_data()`, that returns a pandas Dataframe, readible by TensorTrade.\n\n## How to use\n- Add `ohlcv.py` located in src to same directory you're working in.\n- Write: `from ohlcv import fetch_data`.\n- To get the latest 500 daily data points of OHLCV on the BTC/USDT pair from Binance, write: `fetch_data(exchange='binance', symbol=\"BTC/USDT\", timeframe='1d', limit=500)`.\n- The result will be a pandas DataFrame consisting of the latest 500 daily candles of BTC/USDT on Binance.\n\n## Supported exchanges\nThe `exchange` parameter should be one of the exchanges supported by ccxt, you can find the supported exchanges [here](https://github.com/ccxt/ccxt/wiki/Exchange-Markets).\n\n## Symbols\n`Symbol` can be any pair available on the specified exchange.\n\n## Time frames\nSupported time frames are: '1m', '3m', '5m', '15m', '30m', '1h', '2h', '4h', '6h', '8h', '12h', '1d', '3d', '1w', '1M'.\n\n## Limit\n`Limit` is the number of rows you would like to have returned, leaving this unspecified will return most available.\nUsing `since` as parameter will change the starting point of gathering the data, this is an integer consisting of UTC timestamp in milliseconds. You can also specify it as a string or datetime object, it will automatically be converted to the right format.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephanakkerman%2Fcrypto-ohlcv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstephanakkerman%2Fcrypto-ohlcv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephanakkerman%2Fcrypto-ohlcv/lists"}