Metadata-Version: 2.1
Name: cgPriceQuery
Version: 0.0.0a3
Summary: Historical and current CoinGecko price queries
Home-page: https://github.com/gerrrg/cgPriceQuery
Author: gerrrg
Author-email: gerrrrrrrg@gmail.com
License: UNKNOWN
Project-URL: Bug Tracker, https://github.com/gerrrg/cgPriceQuery/issues
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown

# 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`


