add trade api handler