Currently, the main Trade model has a stop_order_id column for tracking the stop loss order, however TWS reports statuses on the stop loss order separately. We should keep a track of this order separately so we can more accurately report the status of things.
We should either create a separate model for it, or (probably better) has child records (i.e add a parent_id column)
Currently, the main
Trade
model has astop_order_id
column for tracking the stop loss order, however TWS reports statuses on the stop loss order separately. We should keep a track of this order separately so we can more accurately report the status of things.We should either create a separate model for it, or (probably better) has child records (i.e add a parent_id column)