You start with 1,000 coins. You earn more coins by:
Completing a lesson for the first time.
Passing a daily quiz for the first time.
Repeating a lesson or a quiz you have already completed does not give additional coins. You can spend coins on hearts during quizzes and on practice trades in your portfolio.