complete trade function