Here we'll show how a simple trade works on the Stellar distributed exchange.
1: You submit an offer (using TransactionType "OfferCreate"), offering the currency you want to sell for another currency you want to buy. In this example, we'll put in an order that says "I'm selling 500 Stellar for 10 USD!" Now, you must specify the issuer (gateway) of USD you'd like to buy (a gateway you've already trusted).
$ curl -X POST https://test.stellar.org:9002 -d '
{