How to copy/replicate an order or do an exchange

How to copy/replicate an order or do an exchange