No project description provided
Project description
Scrape the latest APY rates for BlockFi Interest Accounts
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_info
get_all_rates
Printing info for all currencies:
rates = Client.get_all_rates()
for i in rates:
print(i)
get_info
Standard usage returns values for the "US" and for Tier 1:
Client.get_info(symbol="BTC")
To get non-US info (i.e. "row" values):
Client.get_info(symbol="BTC", category="row")
To get info about other tiers:
Client.get_info(symbol="BTC", tier=2)
Development
Create a virtual environment using virtualenv, activate it and install necessary dependencies:
python -m virtualenv env
source venv/bin/activate
pip install -r requirements.txt
pip install -r requirements_dev.txt
pip install -e .
Once changes have been committed, create and merge to the master branch on Github and push the new version to PyPi:
git push -u origin master
python -m build
twine check dist/*
twine upload dist/* -u $PYPI_USERNAME -p $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
Built Distribution
File details
Details for the file BlockFiRates-0.5.0.tar.gz
.
File metadata
- Download URL: BlockFiRates-0.5.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc6c4290cbf1936cbfe5d7a3f825be1012f4d89262149e5364050f65b821bca5 |
|
MD5 | 2e3a6a2a39699bdd75b17fba7d13d552 |
|
BLAKE2b-256 | 7786935566167a6e11c626a778bd0335417c389f458de11c7632021555e9bae5 |
File details
Details for the file BlockFiRates-0.5.0-py3-none-any.whl
.
File metadata
- Download URL: BlockFiRates-0.5.0-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d571ca7532eb09cd1258be28ae2e6197478db6e58e07cccedbc8fb2540f0ecd |
|
MD5 | 4debf4770caacbb46cc0db126c727946 |
|
BLAKE2b-256 | 9eb2540c8b7224225f0bb65ad7cddf9ef186c2c5b365217bd2088579498089a2 |