bourse.core.StepEnv.place_order(bid: bool, vol: int, trader_id: int, price: int = None) int

Submit a new-order transaction

Creates a new order and submit an instruction to place the order on the market.

Parameters:
bid: bool

If True the order will be placed on the bid side.

vol: int

Volume of the order.

trader_id: int

Id of the agent/trader placing the order.

price: int = None

Limit price of the order, if omitted then the order will be treated as a market order.