The Los Angeles Dodgers and Miami Marlins have agreed to a trade.

The Marlins will acquire Dee Gordon, while the Dodgers will receive Andrew Heaney.

Clark Spencer of the Miami Herald reports that in total the Marlins will receive Gordon and Dan Haren and the Dodgers will get Heaney, Kike Hernandez, Austin Barnes and Chris Hatcher.