execute_trades_simple#
- execute_trades_simple(state, pair_universe, trades, web3, hot_wallet, uniswap, max_slippage=0.01, stop_on_execution_failure=True)[source]#
Execute trades on web3 instance.
A testing shortcut
Create BlockchainTransaction instances
Execute them on Web3 test connection (EthereumTester / Ganache)
Works with single Uniswap test deployment
- Parameters
state (State) –
pair_universe (PandasPairUniverse) –
trades (List[TradeExecution]) –
web3 (Web3) –
hot_wallet (HotWallet) –
uniswap (UniswapV2Deployment) –
- Return type