Based on supply/demand, so yeah trading.
Buyers/sellers set bid/offer each candidate to the current equilibrium of where those odds are expected by the market. So the market expects a 66% chance Trump wins based on how much has been bet on him to win.