buy_tokens

Documentation for eth_defi.vault.mass_buyer.buy_tokens function.

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)[source]

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