bourse.core.StepEnvNumpy.get_trades() list[tuple]

Get trade data

Get a list of trades executed in the environment.

Returns:

list – A list of tuple trade records with fields

  • Trade time

  • Side flag (True for bid side)

  • Trade price

  • Trade volume

  • Id of the aggressive order

  • Id of the passive order