First implementation of trade api