bourse.core.StepEnv.modify_order(order_id: int, new_price: int = None, new_vol: int = None)

Submit an transaction to modify an order

Submit a transaction to modify the price and/or the volume of an order. Only reducing the volume of an order us done in place, otherwise the order will be replaced.

Parameters:
order_id: int

Id of the order to modify

new_price: int = None

Price to change the order to, if omitted the order will remain at its original price.

new_vol: int = None

Volume to change the order to, if omitted the order will remain at its current volume.