Skip to main content

parsimony-coingecko

CoinGecko connector — crypto market data via the CoinGecko v3 API and on-chain prices via GeckoTerminal.

Part of the parsimony-connectors monorepo. Distributed standalone on PyPI as parsimony-coingecko.

Connectors

11 connectors grouped by capability:

Name Kind Description
coingecko_search fetch Resolve coin names/symbols to CoinGecko IDs.
coingecko_trending fetch Top 7 trending coins by 24-h search volume.
coingecko_top_gainers_losers fetch Top gaining and losing coins over a window.
coingecko_price fetch Current price(s) for one or more coins in one or more vs-currencies.
coingecko_markets fetch Ranked market data (price, market cap, ATH/ATL, 24h change), paged.
coingecko_coin_detail fetch Full per-coin metadata (description, links, market data) — returns nested dict.
coingecko_market_chart fetch Historical price/market-cap/volume over the last N days.
coingecko_market_chart_range fetch Historical price/market-cap/volume between two ISO dates.
coingecko_ohlc fetch OHLC candlesticks for a coin.
coingecko_token_price_onchain fetch On-chain token price by contract address (GeckoTerminal).
enumerate_coingecko enumerator Full coin list (~17 000 rows) for catalog indexing.

coingecko_top_gainers_losers is PRO-only, and coingecko_market_chart_range beyond 365 days is restricted on the Demo plan — both return PaymentRequiredError on a Demo key.

Install

pip install parsimony-coingecko

Pulls in a compatible parsimony automatically. Verify discovery:

python -c "from parsimony import discover; print([p.name for p in discover.iter_providers()])"

Configuration

Set the following environment variable:

export COINGECKO_API_KEY="<your-key>"

Get a Demo key at https://www.coingecko.com/en/api/pricing.

Quick start

import os
from parsimony_coingecko import load

# Bind the key off the call surface (kept out of provenance and logs).
connectors = load(api_key=os.environ["COINGECKO_API_KEY"])
result = connectors["coingecko_price"](ids="bitcoin", vs_currencies="usd")
print(result.raw.head())

If the key is not bound, each connector falls back to COINGECKO_API_KEY from the environment, and a missing key fails fast with UnauthorizedError.

For multi-plugin composition:

from parsimony import discover

connectors = discover.load_all()

Provider

License

See LICENSE.

Metadata

Release files for parsimony-coingecko 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for parsimony-coingecko 0.0.2
File Size Uploaded
parsimony_coingecko-0.0.2.tar.gz 16.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for parsimony-coingecko 0.0.2
File Interpreter ABI Platform
parsimony_coingecko-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 33.6 kB

Release files / parsimony_coingecko-0.0.2.tar.gz

Download URL parsimony_coingecko-0.0.2.tar.gz
Size 16.3 kB
Tags Source
SHA-256 checksum
How to use checksums
c2b62a5dc4c284c8b7c5e49a0b3ecf735e9d175c6a828e83ccb562e7eb8fc484
BLAKE2b-256 checksum
How to use checksums
c056cecbaa48092b12282681668ef39a26c8573a069d9a11e9a0448b5007b1e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 10, 2026.

Transparency log

Release files / parsimony_coingecko-0.0.2-py3-none-any.whl

Download URL parsimony_coingecko-0.0.2-py3-none-any.whl
Size 17.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7ff65ade4d6c09a19bffb07cf93e3abd8243081dc58471cb4b0b640e817a3b38
BLAKE2b-256 checksum
How to use checksums
16e6fdfd037de62dee939ed7b9422c719cff5a5da4cbaf6e1be05eebb5b27673
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 10, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page