Python wrapper for coingecko.com v3 api
Project description
coingeckopy
⚠️ This package is actively being developed and accepting PRs (see TODO section)!
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 endpoints
Features
- ✏️ MyPy Fully typed using most recent versions
- ⚒️ Modern tooling like uv, ruff, and pre-commit
- 📥 GitHub Actions CI/CD to automate everything
- ↩️ Code Coverage Fully tested using tools like Codecov
Usage
For demo (free)
>>> from coingeckopy import CoinGecko
>>> coingecko = CoinGecko(api_key=<YOUR_API_KEY>)
>>> coingecko.simple.coin_price_by_id(ids="bitcoin")
{
"bitcoin": {
"usd": 67187.3358936566,
"usd_market_cap": 1317802988326.25,
"usd_24h_vol": 31260929299.5248,
"usd_24h_change": 3.63727894677354,
"last_updated_at": 1711356300
}
}
Pro
>>> from coingeckopy import CoinGecko
>>> coingecko = CoinGecko(api_key=<YOUR_API_KEY>, is_pro=True)
>>> coingecko.coins.recently_added()
[
{
"id": "long-johnson",
"symbol": "olong",
"name": "Long Johnson",
"activated_at": 1712562430
},
{
"id": "dogita",
"symbol": "doga",
"name": "DOGITA",
"activated_at": 1712562282
},
{
"id": "bebe-on-base",
"symbol": "bebe",
"name": "Bebe on Base",
"activated_at": 1712561709
}
]
TODO
APIs
- Ping ✅
Check API server status
- Simple ✅
Coin PriceToken Address PriceSupported Currencies
- Coins ✅
Coins ListCoins List With Market DataCoin DataCoin TickersCoin Historical DataCoin Historical Chart DataCoin Historical Chart Data Within Time RangeCoin OHLC Chart
- Contract ✅
Coin DataCoin Historical Chart DataCoin Historical Chart Data Within Time Range
- Asset Platforms ✅
Asset List
- Categories ✅
List CategoriesMarket Data by Category
- Exchanges ✅
List ExchangesExchange DataTickersVolume Chart
- Derivatives ✅
TickersDerivative ExchangesDerivative Data
- NFTs (Beta)
- List NFTs
- Collection Data
- Exchange Rates ✅
BTC to Currency Rates
- Search ✅
General Search
- Trending ✅
Trending Search
- Global ✅
Global Market DataDeFi Market Data
- Companies (Beta)
- Public Companies Holdings
Pro- Enterprise
- On Chain
Ops
CI for coverage and codecov
Docs
Update README- Add sphinx
Package
- Add polrs
100% coverage
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
python_coingecko-0.0.1.tar.gz
(15.5 kB
view details)
Built Distribution
File details
Details for the file python_coingecko-0.0.1.tar.gz
.
File metadata
- Download URL: python_coingecko-0.0.1.tar.gz
- Upload date:
- Size: 15.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f1da0e369e637e71a1a08ed1539f80eac51bc881f2ee5e5137ca5d9a6e32bc5 |
|
MD5 | 009e45dc8735c8b5192484a21557cb9f |
|
BLAKE2b-256 | 5be7257f43060022e4576ae1a484c14c4fca895f44100ba4097b72167f2a2e4c |
File details
Details for the file python_coingecko-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: python_coingecko-0.0.1-py3-none-any.whl
- Upload date:
- Size: 30.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a899b3be96d0c725220ca9d9b035bf0e6895f43928fa2cf22dca653ed4e1b785 |
|
MD5 | f832ee06c40930896863970331741002 |
|
BLAKE2b-256 | 5614ea37ed269d24c15f74c33ed7adf9706439a9f7c0c429fea79908f637b472 |