An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# python-coingecko



GitHub Actions status


Coverage


PyPi Shield


Python Versions Shield

Read The Docs Badge

Download Shield


License Shield

## 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 CoinGecko

client = 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