{"id":28170650,"url":"https://github.com/okthought/cryptocmp","last_synced_at":"2025-05-15T18:14:41.215Z","repository":{"id":62565484,"uuid":"144249231","full_name":"OkThought/cryptocmp","owner":"OkThought","description":"Python3 Wrapper for CryptoCompare's public API","archived":false,"fork":false,"pushed_at":"2018-08-17T04:08:50.000Z","size":106,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-15T18:14:39.884Z","etag":null,"topics":["api-wrapper","crypto","cryptocompare","cryptocompare-api","crytpocurrency","python3"],"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/OkThought.png","metadata":{"files":{"readme":"README.rst","changelog":"HISTORY.rst","contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-10T07:00:05.000Z","updated_at":"2018-08-17T04:08:53.000Z","dependencies_parsed_at":"2022-11-03T16:46:08.306Z","dependency_job_id":null,"html_url":"https://github.com/OkThought/cryptocmp","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OkThought%2Fcryptocmp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OkThought%2Fcryptocmp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OkThought%2Fcryptocmp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OkThought%2Fcryptocmp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OkThought","download_url":"https://codeload.github.com/OkThought/cryptocmp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254394721,"owners_count":22063984,"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":["api-wrapper","crypto","cryptocompare","cryptocompare-api","crytpocurrency","python3"],"created_at":"2025-05-15T18:14:39.701Z","updated_at":"2025-05-15T18:14:41.190Z","avatar_url":"https://github.com/OkThought.png","language":"Python","readme":"cryptocmp\n=========\n\n.. image:: https://img.shields.io/pypi/v/cryptocmp.svg\n        :target: https://pypi.python.org/pypi/cryptocmp\n\n.. image:: https://img.shields.io/travis/OkThought/cryptocmp.svg\n        :target: https://travis-ci.org/OkThought/cryptocmp\n\n.. image:: https://readthedocs.org/projects/cryptocmp/badge/?version=latest\n        :target: https://cryptocmp.readthedocs.io/en/latest/?badge=latest\n        :alt: Documentation Status\n\n.. image:: https://pyup.io/repos/github/OkThought/cryptocmp/shield.svg\n     :target: https://pyup.io/repos/github/OkThought/cryptocmp/\n     :alt: Updates\n\n\nPython wrapper for `CryptoCompare API`_\n\nDescription\n-----------\n\n``cryptocmp`` provides to the `CryptoCompare API`_ in two ways:\n\n-  Straight wrappers of the API calls in ``cryptocmp.api`` package.\n-  A more user friendly mapping to these wrappers in object-oriented\n   style via the following classes:\n\n   -  ``cryptocmp.coin.Coin`` represents a crypto coin.\n\nInstallation\n------------\n\n::\n\n   pip3 install cryptocmp\n\nor this can also work if you have only python3 installed (the symlink\n``pip`` pointing to ``pip3`` is created)\n\n::\n\n   pip install cryptocmp\n\nUsage\n-----\n\nExamples\n~~~~~~~~\n\nIn object-oriented style:\n\n-  Get a set of all available crypto coins:\n\n   \u003e\u003e\u003e from cryptocmp.coin import Coin\n   \u003e\u003e\u003e Coin.all()\n   {'EOSDAC', 'GAP', 'ARN', 'SERA', 'ICASH', 'STAR*', 'AC3', ...}\n\n\n-  Get a current price of BTC in USD:\n\n   \u003e\u003e\u003e from cryptocmp.coin import Coin\n   \u003e\u003e\u003e bitcoin = Coin('BTC')\n   \u003e\u003e\u003e bitcoin.price('USD')\n   6318.35``\n\n-  Get a current price of BTC in USD, EUR and GBP at the same time\n   (produces single API call under the hood):\n\n   \u003e\u003e\u003e from cryptocmp.coin import Coin\n   \u003e\u003e\u003e bitcoin = Coin('BTC')\n   \u003e\u003e\u003e bitcoin.price(('USD', 'EUR', 'GBP'))\n   {'USD': 6316.17, 'EUR': 5540.34, 'GBP': 4977.23}``\n\n-  Get last 2 candles of BTC/USD daily historical data::\n\n    \u003e\u003e\u003e CoinPair('BTC', 'USD').price_history(points_num=2)\n    [\n        {\n            'time': 1534291200,\n            'close': 6274.22,\n            'high': 6620.07,\n            'low': 6193.63,\n            'open': 6199.63,\n            'volumefrom': 132926.33,\n            'volumeto': 852103141.83\n        },\n        {\n            'time': 1534377600,\n            'close': 6439.39,\n            'high': 6439.39,\n            'low': 6217.33,\n            'open': 6274.22,\n            'volumefrom': 24013.18,\n            'volumeto': 152446768.26\n        }\n    ]\n\nCredit\n------\n\nThanks to `CryptoCompare`_ for providing this service and building a\nnice community around everything crypto related.\n\nProject was partially patched with files generated by `Cookiecutter`_\nusing `cookiecutter-pypackage`_ project template. Thanks to `Audrey Roy\nGreenfeld`_ and contributors who made python package creation so easy.\n\n.. _CryptoCompare API: https://min-api.cryptocompare.com/\n.. _CryptoCompare: https://www.cryptocompare.com/\n.. _Cookiecutter: https://github.com/audreyr/cookiecutter-pypackage\n.. _cookiecutter-pypackage: https://github.com/audreyr/cookiecutter-pypackage\n.. _Audrey Roy Greenfeld: https://github.com/audreyr\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fokthought%2Fcryptocmp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fokthought%2Fcryptocmp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fokthought%2Fcryptocmp/lists"}