This release is a pre-release and may not be stable for production use.
cgPriceQuery
cgPriceQuery is an abstraction layer for calling the CoinGecko Price Query API. Since the densest data from CoinGecko is typically returned hourly, this package interpolates prices to each block time.
Query types
queryPricesInDuration: Get price data at each block time from timet_0tot_1queryPriceAtTime: Get price data at timetqueryPriceCurrent: Get the current price
Networks
Supported networks are currently:
- ethereum
- polygon
- arbitrum
- fantom
Additional networks are pretty trivial to add as long as they have a subgraph for block times and CoinGecko price feeds.
Sample
For a sample, see samples/sample.py
Metadata
Release files for cgPriceQuery 0.0.0a9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| cgPriceQuery-0.0.0a9.tar.gz | 7.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cgPriceQuery-0.0.0a9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.1 kB
Release files / cgPriceQuery-0.0.0a9.tar.gz
| Download URL | cgPriceQuery-0.0.0a9.tar.gz |
|---|---|
| Size | 7.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1f18943416ed51e89a46c7bd4ed035b3282c47c61d479b693384e61b06ecd04e
|
|
BLAKE2b-256 checksum How to use checksums |
de3602669c6e3f3b4e695e29eca8e97ef22ce218c72cee2b3f461613891651ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
|
Release files / cgPriceQuery-0.0.0a9-py3-none-any.whl
| Download URL | cgPriceQuery-0.0.0a9-py3-none-any.whl |
|---|---|
| Size | 8.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
27808ba199a2423176e9cd34fbd6210fdfe70191cb7baa8ab77727a25d5c0609
|
|
BLAKE2b-256 checksum How to use checksums |
5eb987cd0899a95aef5f02de6040ada40c1306d50cdf6aeb9f0a54b0dd1cce3b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
|
Security for cgPriceQuery 0.0.0a9
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.