Got as far as a working performance tracker without margin logic
Merged with get_orders revision