closeTrade in API