adding slightly broken version of trade_parse.hs, trying to add conditional check of result