asyncio cryptocurrency prices library
Project description
# aiocrypto_prices
Very early version - API WILL CHANGE!
## Install
$ pipenv install aiocrypto_prices
or
$ pip install aiocrypto_prices –user
## Usage
Behind the scenes we are (currently) using cryptocompare’s API, which means all of the symbols need to be in their format and supported by them.
### Simple
`python >> from aiocrypto_prices import currencies >> await currencies.ETH.prices.get('USD') 1053.28 `
### Advanced
Useful for loading things in parallel.
Careful, if you’re not accessing the target price through get, it might not reload after cache expires `python >> from aiocrypto_prices import currencies >> currencies.add(['BTC', 'ETH', 'IOT']) >> await currencies.load_all() >> currencies.IOT.prices.USD 2.79 `
Project details
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
Hashes for aiocrypto_prices-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 303b10488c9d6379cc6064e0c6e7704101740453a3bd9665d6287a7ec9dab75a |
|
MD5 | 28e71a8bc1fe770b509355fa16134dd7 |
|
BLAKE2b-256 | 513238086301b5db6e5197f905dc1a209d482def47ce9044a9723771f9566616 |