pareeohnos / ktrade

A simple UI for managing your trades
MIT License
7 stars 5 forks source link

Create a separate model for stop orders #31

Open pareeohnos opened 3 years ago

pareeohnos commented 3 years ago

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)