Scrape the latest APY rates for BlockFi Interest Accounts
Project description
DISCLAIMER
This package is in no way affiliated in any way, shape or form with BlockFi and as such its use is entirely at the user's own risk.
BlockFiRates
An unofficial API to easily obtain the interest rates of BlockFi Interest Accounts (BIA).
Getting Started
Installing
pip install blockfirates
Imports
from blockfirates import client
Client=client.BlockFiRates()
Available Functions
- get_all_rates
- get_amount
- get_apy
get_all_rates
Printing info for all currencies:
rates = Client.get_all_rates()
for i in rates:
print(i)
get_amount
Printing amount criteria for a specific currency:
Client.get_amount("BTC (Tier 1)")
get_apy
Printing APY rate for a specific currency:
Client.get_apy("BTC (Tier 1)")
Development
Use Poetry to create a virtual environment based on the pyproject.toml
file:
poetry init
Once changes have been committed the package can be updated on both Github and PyPi:
git push -u origin master
poetry publish --build --username $PYPI_USERNAME --password $PYPI_PASSWORD
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
BlockFiRates-0.2.4.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for BlockFiRates-0.2.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dccd181c032eb4d898e0b6fe0dc8c2eba1fea675ea43529664f082ca7ba3360b |
|
MD5 | 49f260aaa66a496510623ecb45c5f419 |
|
BLAKE2b-256 | 071c4bddcda66193a5450618e0e0482fa5bf90478228712632fd60e70dc7dba4 |