classes for trade functions