Python wrapper for coingecko.com v3 api
Project description
python-coingecko
A Python wrapper for coingecko.com V3 api. Other notable api wrappers that didn't satisfy my need:- pycoingecko has not been active in over two years and does not support the newer api endpoints
Features
- 🪙 CoinGecko api routes, including current beta
- ♻️ Retry Strategy Sensible defaults to reliably retry/back-off fetching data from coingecko
- ✏️ Code Formatting Fully typed with mypy and code formatters black / isort
- ⚒️ Modern tooling using uv, ruff, and pre-commit
- 📥 GitHub Actions CI/CD to automate everything
- ↩️ Code Coverage Fully tested using tools like Codecov
- 🐍 Python Support All minor versions from 3.9 are supported
Installation
$ pip install python-coingecko
Usage
from pycoingecko import CoinGecko
client = CoinGecko()
client.simple.price_by_id(ids="bitcoin", vs_currencies="usd")
Documentation
See full documentation here.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
python_coingecko-0.0.12.tar.gz
(17.9 kB
view details)
File details
Details for the file python_coingecko-0.0.12.tar.gz
.
File metadata
- Download URL: python_coingecko-0.0.12.tar.gz
- Upload date:
- Size: 17.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5fdfb4029138b228a2c9643066f69e56f1b496f1bab2e10f3eadfa2ddefa4697 |
|
MD5 | 259ea6ddb28997b7f03921f36c67b7fe |
|
BLAKE2b-256 | c13d67c72355f84d586a82a7f06a1dffad477854893251423fb1a6def8f3a04f |