Miranda also played for the New York Yankees from 2008 to 2010 before being traded to the Arizona Diamondbacks for Scott Allen . On November 18 , 2010 , Miranda was traded to the Arizona Diamondbacks for Scott Allen .