CoinGecko connector for the parsimony framework
Project description
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 (~15 000 rows) for catalog indexing. |
Install
pip install parsimony-coingecko
Pulls in parsimony-core>=0.4,<0.5 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 asyncio
from parsimony_coingecko import CONNECTORS
async def main():
connectors = CONNECTORS.bind_env()
result = await connectors["coingecko_price"](ids="bitcoin", vs_currencies="usd")
print(result.data.head())
asyncio.run(main())
For multi-plugin composition:
from parsimony import discover
connectors = discover.load_all().bind_env()
Provider
- Homepage: https://www.coingecko.com
- API docs: https://docs.coingecko.com/v3.0.1/reference/introduction
License
See LICENSE.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file parsimony_coingecko-0.5.0.tar.gz.
File metadata
- Download URL: parsimony_coingecko-0.5.0.tar.gz
- Upload date:
- Size: 16.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0453b1cf0ffedd45733c9e7af26e71bb1ea69e234c2b4fb5e099b3396afa5b9
|
|
| MD5 |
63302da1b8ce3254714d7ea02e82df71
|
|
| BLAKE2b-256 |
05e64abfe678f30c0011eda5ae3d8e988c90c6e772842fe47d0b1f23a383a803
|
Provenance
The following attestation bundles were made for parsimony_coingecko-0.5.0.tar.gz:
Publisher:
release.yml on ockham-sh/parsimony-connectors
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
parsimony_coingecko-0.5.0.tar.gz -
Subject digest:
d0453b1cf0ffedd45733c9e7af26e71bb1ea69e234c2b4fb5e099b3396afa5b9 - Sigstore transparency entry: 1453271155
- Sigstore integration time:
-
Permalink:
ockham-sh/parsimony-connectors@db37b495a6c7b7c5a4e5bfdfa5b5b4d74ac4b1b6 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ockham-sh
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@db37b495a6c7b7c5a4e5bfdfa5b5b4d74ac4b1b6 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file parsimony_coingecko-0.5.0-py3-none-any.whl.
File metadata
- Download URL: parsimony_coingecko-0.5.0-py3-none-any.whl
- Upload date:
- Size: 18.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
042a14cf2bb8b7bffd823cd7eb560cdaa0bf6685e7dd29bfb57cc2a88fa07cfc
|
|
| MD5 |
24d226daaf3a39954598d950451e266a
|
|
| BLAKE2b-256 |
1c1032768adce46b4e4fc9683493889acfa904cc3a58145313d15b527a2d65a5
|
Provenance
The following attestation bundles were made for parsimony_coingecko-0.5.0-py3-none-any.whl:
Publisher:
release.yml on ockham-sh/parsimony-connectors
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
parsimony_coingecko-0.5.0-py3-none-any.whl -
Subject digest:
042a14cf2bb8b7bffd823cd7eb560cdaa0bf6685e7dd29bfb57cc2a88fa07cfc - Sigstore transparency entry: 1453271196
- Sigstore integration time:
-
Permalink:
ockham-sh/parsimony-connectors@db37b495a6c7b7c5a4e5bfdfa5b5b4d74ac4b1b6 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ockham-sh
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@db37b495a6c7b7c5a4e5bfdfa5b5b4d74ac4b1b6 -
Trigger Event:
workflow_dispatch
-
Statement type: