eth_portfolio.protocols.lending package
Submodules
eth_portfolio.protocols.lending.compound module
- class eth_portfolio.protocols.lending.compound.Compound[source]
Bases:
LendingProtocol
- async _debt(address, block=None)[source]
- Parameters:
address (str | HexBytes | AnyAddress | EthAddress)
block (int | BlockNumber | None)
- Return type:
- debt = <_ASyncFutureInstanceMethod for <function LendingProtocol.debt> bound to None>
- Parameters:
fn_args (~P)
fn_kwargs (~P)
- Return type:
T
- markets = <_ASyncFutureInstanceMethod for <function Compound.markets> bound to None>
- Parameters:
fn_args (~P)
fn_kwargs (~P)
- Return type:
T
- underlyings = <_ASyncFutureInstanceMethod for <async_lru._LRUCacheWrapper object> bound to None>
- Parameters:
fn_args (~P)
fn_kwargs (~P)
- Return type:
T
eth_portfolio.protocols.lending.liquity module
- class eth_portfolio.protocols.lending.liquity.Liquity[source]
Bases:
LendingProtocolWithLockedCollateral
- async _balances(address, block=None)[source]
- Parameters:
address (str | HexBytes | AnyAddress | EthAddress)
block (int | BlockNumber | None)
- Return type:
- async _debt(address, block=None)[source]
- Parameters:
address (str | HexBytes | AnyAddress | EthAddress)
block (int | BlockNumber | None)
- Return type:
- balances = <_ASyncFutureInstanceMethod for <function ProtocolABC.balances> bound to None>
- Parameters:
fn_args (~P)
fn_kwargs (~P)
- Return type:
T
- debt = <_ASyncFutureInstanceMethod for <function LendingProtocol.debt> bound to None>
- Parameters:
fn_args (~P)
fn_kwargs (~P)
- Return type:
T
- get_trove = <async_lru._LRUCacheWrapperInstanceMethod object>[source]
- Parameters:
address (str | HexBytes | AnyAddress | EthAddress)
block (int | BlockNumber)
- Return type:
- networks = [Network.<function Network.name at 0x7efd1bf37be0>]
eth_portfolio.protocols.lending.maker module
- class eth_portfolio.protocols.lending.maker.Maker[source]
Bases:
LendingProtocolWithLockedCollateral
- async _balances(address, block=None)[source]
- Parameters:
address (str | HexBytes | AnyAddress | EthAddress)
block (int | BlockNumber | None)
- Return type:
- async _debt(address, block=None)[source]
- Parameters:
address (str | HexBytes | AnyAddress | EthAddress)
block (int | None)
- Return type:
- _cdp = <async_lru._LRUCacheWrapperInstanceMethod object>[source]
- Parameters:
address (str | HexBytes | AnyAddress | EthAddress)
- Return type:
str | HexBytes | AnyAddress | EthAddress
- _proxy = <async_lru._LRUCacheWrapperInstanceMethod object>[source]
- Parameters:
address (str | HexBytes | AnyAddress | EthAddress)
- Return type:
str | HexBytes | AnyAddress | EthAddress
- _urn = <async_lru._LRUCacheWrapperInstanceMethod object>[source]
- Parameters:
address (str | HexBytes | AnyAddress | EthAddress)
- Return type:
str | HexBytes | AnyAddress | EthAddress
- balances = <_ASyncFutureInstanceMethod for <function ProtocolABC.balances> bound to None>
- Parameters:
fn_args (~P)
fn_kwargs (~P)
- Return type:
T
- debt = <_ASyncFutureInstanceMethod for <function LendingProtocol.debt> bound to None>
- Parameters:
fn_args (~P)
fn_kwargs (~P)
- Return type:
T
- networks = [Network.<function Network.name at 0x7efd1bf37be0>]
- eth_portfolio.protocols.lending.maker.encode_bytes(bytestring)
eth_portfolio.protocols.lending.unit module
- class eth_portfolio.protocols.lending.unit.UnitXyz[source]
Bases:
LendingProtocolWithLockedCollateral
- async _balances(address, block=None)[source]
- Parameters:
address (str | HexBytes | AnyAddress | EthAddress)
block (int | BlockNumber | None)
- Return type:
- async _debt(address, block=None)[source]
- Parameters:
address (str | HexBytes | AnyAddress | EthAddress)
block (int | BlockNumber | None)
- Return type:
- balances = <_ASyncFutureInstanceMethod for <function ProtocolABC.balances> bound to None>
- Parameters:
fn_args (~P)
fn_kwargs (~P)
- Return type:
T
- debt = <_ASyncFutureInstanceMethod for <function LendingProtocol.debt> bound to None>
- Parameters:
fn_args (~P)
fn_kwargs (~P)
- Return type:
T
- networks = [Network.<function Network.name at 0x7efd1bf37be0>]
Module contents
- eth_portfolio.protocols.lending.has_collateral(protocol)