https://github.com/nickatnight/python-coingecko
đĒ Python wrapper for coingecko.com v3 api
https://github.com/nickatnight/python-coingecko
api api-wrapper coingecko cryptocurrency pre-commit pytest python ruff uv
Last synced: 2 months ago
JSON representation
đĒ Python wrapper for coingecko.com v3 api
- Host: GitHub
- URL: https://github.com/nickatnight/python-coingecko
- Owner: nickatnight
- License: mit
- Created: 2024-11-02T19:49:04.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-03-06T04:59:44.000Z (7 months ago)
- Last Synced: 2025-07-13T05:59:21.058Z (3 months ago)
- Topics: api, api-wrapper, coingecko, cryptocurrency, pre-commit, pytest, python, ruff, uv
- Language: Python
- Homepage:
- Size: 261 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Authors: AUTHORS
Awesome Lists containing this project
README
# python-coingecko
## Features
- đĒ **CoinGecko** [api routes](https://docs.coingecko.com/reference/introduction), including current beta
- âģī¸ **Retry Strategy** Sensible defaults to reliably retry/back-off fetching data from coingecko
- âī¸ **Code Formatting** Fully typed with [mypy](https://mypy-lang.org/) and code formatters [black](https://github.com/psf/black) / [isort](https://pycqa.github.io/isort/)
- âī¸ **Modern tooling** using [uv](https://docs.astral.sh/uv/), [ruff](https://docs.astral.sh/ruff/), and [pre-commit](https://pre-commit.com/)
- đĨ **GitHub Actions** CI/CD to automate [everything](.github/workflows/main.yml)
- âŠī¸ **Code Coverage** Fully tested using tools like [Codecov](https://about.codecov.io/)
- đ **Python Support** All minor [versions](https://www.python.org/downloads/) from 3.9 are supported## Installation
```sh
$ pip install python-coingecko
```## Usage
```python
from pycoingecko import CoinGeckoclient = CoinGecko()
client.simple.price_by_id(ids="bitcoin", vs_currencies="usd")
```## Documentation
See full documentation [here](https://python-coingecko.readthedocs.io/en/stable/).---
If you would like to support development efforts, tips are greatly appreciated. SOL wallet address: HKmUpKBCcZGVX8RqLRcKyjYuY23hQHwnFSHXzdon4pCH