There are multiple factors that determine the price but you hit the nail of the head. Free market supply and demand!
Discussion
So I suppose people make buy and sell orders on exchanges and that determines the price level as with stocks and securities