Refactored status of trade and getting trade via single function to prevent repeating myself