PHILADELPHIA — LHP Cole Hamels knew the moment he walked off the mound to a standing ovation after allowing five runs in his last start that he was staying with the Phillies. "Words can't really describe the emotions that you get, and the way the fans were standing and cheering, that was ultimately the deciding point to be here," said Hamels, who signed a six-year deal worth $144 million on Wednesday. The contract prevents the 28-year-old from becoming a free agent in November, and it includes a club vesting option for 2019 and a limited no-trade provision. The contract is the largest signed by a Philadelphia athlete and second-highest for a pitcher behind the $161 million, seven-year deal the Yankees gave CC Sabathia in December 2008. "It was long and laborious," GM Ruben Amaro Jr. said about negotiations, which started last May. "We finally got to the finish line. (Six years) is unprecedented for the Phillies, but we did it with the right person." "I wanted to give the Phillies every opportunity," said Hamels, who 11-4 with a 3.23 ERA this season and 85-58 with a 3.38 ERA in seven years in Philadelphia. "It's very hard to leave a place that you've had so many great memories. You don't want to miss it and not be a part of it. I know the organization has always done a good job of going out to win."Marlins deal Ramirez: Former NL batting champion Hanley Ramirez was traded from the Marlins to the Dodgers, part of what appears to be the third big fire sale in team history. Left-handed reliever Randy Choate also was dealt to the Dodgers. The Marlins received RHP Nathan Eovaldi and minor-league pitcher Scott McGough. The trade came two days after the Marlins sent P Anibal Sanchez and INF Omar Infante to the Tigers for pitching prospect Jacob Turner and two minor-leaguers. "We weren't winning with the group we had and we want to make changes," Marlins president of baseball operations Larry Beinfest said. "Be careful with what you think, what you say, and how you smile because you might be next (to get traded)," manager Ozzie Guillen said. "That's the way it has to go if you don't perform. That's business." Dempster mulls future: Cubs RHP Ryan Dempster said he is strongly considering whether to accept a trade to Atlanta but added he is "keeping all my options open." Dempster, as a player with at least 10 years of major-league service time, including at least five with his current team, can veto any trade. "I know (Braves GM) Frank Wren from my days in Florida when he was the assistant GM there," Dempster said. "I have a lot of respect for (manager) Fredi Gonzalez. …I have a few days to think about it before (Tuesday's) trading deadline."A-rod out: Yankees 3B Alex Rodriguez suffered broken bone in his left wrist when he was hit by a pitch Tuesday. He does not need surgery, but he will be out 6-8 weeks. Jayson Nix and Eric Chavez are the likely candidates to handle the position.Angels: Slugger Albert Pujols was out of the lineup a day after being hit on the right elbow by a pitch he swung at Tuesday. … Manager Mike Scioscia said struggling RHP Ervin Santana will be pushed back in the rotation in favor of bullpen sessions and won't start again until next week's series against the Rangers, with the same 15-out limit he is working with now.Giants: 3B Pablo Sandoval sat out with a strained left hamstring he injured Tuesday stretching for a catch when he was at first base. The team will wait until Friday to decide whether he needs to be put on the disabled list.