vault.mass_buyer

Documentation for eth_defi.vault.mass_buyer Python module.

Create token buy lists for testing.

Functions

buy_tokens(web3, user, portfolio, ...[, ...])

Buy bunch of tokens on the wish list.

create_buy_portfolio(tokens, ...)

Create a portfolio of tokens to buy based on given Python.

Classes

BuyResult

BuyResult(needed_transactions: list[web3.contract.contract.ContractFunction], taken_routes: dict[eth_defi.token.TokenDetails, eth_defi.vault.valuation.Route])

class BuyResult

Bases: object

BuyResult(needed_transactions: list[web3.contract.contract.ContractFunction], taken_routes: dict[eth_defi.token.TokenDetails, eth_defi.vault.valuation.Route])

__init__(needed_transactions, taken_routes)
Parameters
Return type

None

create_buy_portfolio(tokens, amount_denomination_token)

Create a portfolio of tokens to buy based on given Python.

Parameters
Return type

eth_defi.vault.base.VaultPortfolio

buy_tokens(web3, user, portfolio, denomination_token, intermediary_tokens, quoters, multicall=None, block_identifier=None, multicall_gas_limit=10000000, buy_func=<function _default_buy_function>, uniswap_v2=None, uniswap_v3=None, multicall_batch_size=5)

Buy bunch of tokens on the wish list.

  • User for testing

  • Automatically resolve the routes with the best quote

Parameters
Return type

eth_defi.vault.mass_buyer.BuyResult