There are two main order types.

Market order

Buys right away at the best price available. Fast, but you may pay a bit more in quiet markets.

Limit order

You set the most you'll pay. It waits in the order book until someone sells at that price.

Tip

Start small, use limit orders, and check the order book so you know what you'll really pay.