bug-or-feature / pysystemtrade-fsb

Systematic spread betting in Python
https://pysystemtrade-fsb.bugorfeature.net/
GNU General Public License v3.0
11 stars 2 forks source link

Add trade status to epic history #25

Closed bug-or-feature closed 1 year ago

bug-or-feature commented 1 year ago

Right now, epic history looks something like:

Date,Month1,Month2
2021-03-15 22:54:30,MAR-21 (2021-03-19 14:30:00),APR-21 (2021-04-16 13:30:00)
2021-03-19 21:41:27,MAY-21 (2021-05-21 13:30:00),APR-21 (2021-04-16 13:30:00)
....
2022-12-16 20:06:55,JAN-23 (2023-01-20 14:30:00),FEB-23 (2023-02-17 14:30:00)
2023-01-20 20:15:47,APR-23 (2023-04-21 13:30:00),FEB-23 (2023-02-17 14:30:00)

Should be updated to be something like:

Date,Month1,Month2
2021-03-15 22:54:30,MAR-21|2021-03-19 14:30:00|TRADEABLE,APR-21|2021-04-16 13:30:00|OFFLINE
2021-03-19 21:41:27,MAY-21|2021-05-21 13:30:00|EDITS ONLY,APR-21|2021-04-16 13:30:00|TRADEABLE
etc

old rows can be shown with

Date,Month1,Month2
2021-03-15 22:54:30,MAR-21|2021-03-19 14:30:00|UNKNOWN,APR-21|2021-04-16 13:30:00|UNKNOWN
etc

or for old/new changed epics

Date,Month1,Month2
2021-03-15 22:54:30,MAR-21|2021-03-19 14:30:00|UNMAPPED,APR-21|2021-04-16 13:30:00|UNMAPPED
etc
bug-or-feature commented 1 year ago

Done