trader base class