Skip to content

nickatnight/python-coingecko

Repository files navigation

python-coingecko

GitHub Actions status Coverage PyPi Shield Python Versions Shield Read The Docs Badge Download Shield License Shield

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.