Skip to main content

Scrape the latest APY rates for BlockFi Interest Accounts

Project description

PyPI - Python Version

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, create and merge to the master branch on Github and push the new version to PyPi:

git push -u origin master

poetry version patch

poetry publish --build --username $PYPI_USERNAME --password $PYPI_PASSWORD

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

BlockFiRates-0.3.4.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

BlockFiRates-0.3.4-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file BlockFiRates-0.3.4.tar.gz.

File metadata

  • Download URL: BlockFiRates-0.3.4.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.10 Linux/5.10.16.3-microsoft-standard-WSL2

File hashes

Hashes for BlockFiRates-0.3.4.tar.gz
Algorithm Hash digest
SHA256 ca3ae6e3a6b560df2f419cdd6b2725b2a2d0282f5b5d52c6364eb768906b7d05
MD5 7eaa73a3360391f1b3ba11c52896c966
BLAKE2b-256 a88facdc07ce4021e29d395f0d398ac79f9229c4e831a488f229a9f356d9a5f1

See more details on using hashes here.

File details

Details for the file BlockFiRates-0.3.4-py3-none-any.whl.

File metadata

  • Download URL: BlockFiRates-0.3.4-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.10 Linux/5.10.16.3-microsoft-standard-WSL2

File hashes

Hashes for BlockFiRates-0.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e5184526c2e44a9479429e5b15773e5d4a7b1d4574b70b97c22b564a737e3395
MD5 c957f4fa397d7d4c38cb3fdde32fb938
BLAKE2b-256 9874dd5a0cfc973429010fb2602357a158657095f10d2f27a17726b56bd5830d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page