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.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9e249bb15a0304f5d361fcf9172ca20596ff981e67cc399658708e1182d5bc0 |
|
MD5 | 0b9f10f3cd0a85ad961b30f38a42efe2 |
|
BLAKE2b-256 | ce20ed3197058578f4118a3eb3b85d47ffa7e8098cdb02c984c48638cb051e4d |