How do I get bitcoin price without any external source?
The bitcoin price is determined by a free market of buyers and sellers. There is no way to calculate the price on your own without an external source. I suppose the only exception to this would be if you ran your own bitcoin exchange and you had enough users and volume to produce a fair market price.