set_up_simulated_execution_loop_one_delta#

API documentation for tradeexecutor.testing.simulated_execution_loop.set_up_simulated_execution_loop_one_delta Python function.

set_up_simulated_execution_loop_one_delta(*, web3, decide_trades, universe, routing_model, state, wallet_account=None)[source]#

Set up a simulated execution loop for 1delta.

Create a strategy execution that connects to in-memory blockchain simulation.

This allows us to step through trades block by block and have strategies to respodn to price action (e.g. stop loss)

See test_one_delta_live_short.py for an example.

Returns:

Execution loop you can manually poke forward tick by tick, block by block.

Parameters:
Return type:

ExecutionLoop