create_execution_model#
API documentation for tradeexecutor.cli.bootstrap.create_execution_model Python function.
- create_execution_model(routing_hint, tx_builder, confirmation_timeout, confirmation_block_count, max_slippage, min_gas_balance, mainnet_fork=False)[source]#
Set up the code transaction building logic.
Choose between Uniswap v2 and v3 trade routing.
- Parameters:
routing_hint (Optional[TradeRouting]) –
tx_builder (Optional[TransactionBuilder]) –
confirmation_timeout (timedelta) –
confirmation_block_count (int) –
max_slippage (float) –