The Yankees have acquired veteran infielder Rougned Odor in a trade with the Rangers.