updated trade API