added parseTradeOffer functionality