Added TradeEventType enum

poll() now uses TradeEventType instead of integers.