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.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48b6969ec81f907bce87b075048c0320c08a990c6576d85ad361c640cbe4577f |
|
MD5 | 9e3e4313603604b1ec416faccf987c62 |
|
BLAKE2b-256 | 3571c4396af7cfff17160e78a4a16cb36fdde7576b1b02b8b9a08bb4eb3a19f1 |