This question already has an answer here:
- How do bitcoin exchanges work? 2 answers
I understand sites like koinex/coinbase/etc.. credit bit coins when we try to buy bitcoins from them.
How do they (koinex/coinbase/etc..) get bitcoins to give it to users when they buy? are they doing mining and getting coins? or do they buy bitcoins from somebody who is mining ?