Where exactly do these lines come from? Whether it be over/under, point spreads, money lines.

Is it the closing line right before the game started? And what online book (recent years) are they using for the closing line, I know they are similar for ML, but vary a few cents.