Skip to main content

Python wrapper for coingecko.com v3 api

Project description

python-coingecko

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

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


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)

Uploaded Source

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

Hashes for python_coingecko-0.0.12.tar.gz
Algorithm Hash digest
SHA256 5fdfb4029138b228a2c9643066f69e56f1b496f1bab2e10f3eadfa2ddefa4697
MD5 259ea6ddb28997b7f03921f36c67b7fe
BLAKE2b-256 c13d67c72355f84d586a82a7f06a1dffad477854893251423fb1a6def8f3a04f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page