condense the trader api