- broadcast_and_resolve(web3, state, trades, confirmation_timeout=datetime.timedelta(seconds=60), confirmation_block_count=0, stop_on_execution_failure=False)#
Do the live trade execution.
Push trades to a live blockchain
Wait transactions to be mined
Based on the transaction result, update the state of the trade if it was success or not
Max time to wait for a confirmation.
We can use zero or negative values to simulate unconfirmed trades. See test_broadcast_failed_and_repair_state.