Diego Schwartzman, a former world number eight, ended his professional tennis career on Thursday in the second round of the Argentina Open.