finished TradeOrder class