verbs_examples.uniswap.sim.runner#

runner(env, seed: int, n_steps: int, *, mu: float = 0.0, sigma: float = 0.3, uniswap_agent_type=<class 'verbs_examples.agents.uniswap_agent.UniswapAgent'>, show_progress=True) List[List][source]#

Uniswap simulation runner

Parameters:
  • env – Simulation environment

  • seed (int) – Random seed

  • n_steps (int) – Number of simulation steps

  • mu (float, optional) – GBM mu parameter, default 0.0

  • sigma (float, optional) – GBM sigma parameter, default 0.3

  • uniswap_agent_type (BaseUniswapAgent, optional) – Either UniswapAgent or DummyUniswapAgent, depending on whether the simulation is initialising the Cache or not

  • show_progress (bool, optional) – If True simulation progress will be printed

Returns:

list – List of agent states recorded over the simulation