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

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.


If you would like to support development efforts, tips are greatly appreciated. SOL wallet address: HKmUpKBCcZGVX8RqLRcKyjYuY23hQHwnFSHXzdon4pCH

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.15.tar.gz (18.0 kB view details)

Uploaded Source

File details

Details for the file python_coingecko-0.0.15.tar.gz.

File metadata

  • Download URL: python_coingecko-0.0.15.tar.gz
  • Upload date:
  • Size: 18.0 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.15.tar.gz
Algorithm Hash digest
SHA256 8aa4e1e4466b3cece13f42e498215a05ff7831567ec71b9278128749a06d39ea
MD5 1b066ca8fcb2705960c905c30323dfc4
BLAKE2b-256 ba5ffa998ec41cfae04ba0ea2974c9a4af9c62b758f5d3309118d7a356c7caad

See more details on using hashes here.

Supported by

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