balances

Documentation for eth_defi.balances Python module.

Token holding and portfolio for addresses.

Functions

convert_balances_to_decimal(web3, raw_balances)

Convert mapping of ERC-20 holdings to decimals.

fetch_erc20_balances_by_token_list(web3, ...)

Get all current holdings of an account for a limited set of ERC-20 tokens.

fetch_erc20_balances_by_transfer_event(web3, ...)

Get all current holdings of an account.

Classes

DecimalisedHolding

A helper class to represent token holdings.

Exceptions

BalanceFetchFailed

Could not read balances for an address.