In practice

When you buy (go long) or close a sell position, your order is filled at the ask price. The ask minus the bid is the spread.