class bourse.step_sim.agents.random_agent.RandomAgent(bourse.step_sim.agents.base_agent.BaseAgent)

Agent that place randomly sampled orders

Agent that places orders on a random side with random volume and price within given ranges, where values are sampled from uniform distributions.

Warning

The behaviour of this agent is not intended to represent any ‘realistic’ behaviour, so should really be used for testing or benchmarking.

RandomAgent Methods

RandomAgent(i: int, activity_rate: float, tick_range, ...)

Initialise a RandomAgent

update(rng: Generator, env: StepEnv)

Cancel a live order or place a new random one