Skip to main content
Pre-release

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 time t_0 to t_1
  • queryPriceAtTime: Get price data at time t
  • queryPriceCurrent: 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)

Source distribution for cgPriceQuery 0.0.0a9
File Size Uploaded
cgPriceQuery-0.0.0a9.tar.gz 7.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cgPriceQuery 0.0.0a9
File Interpreter ABI Platform
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
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