Added file for trade functions