This question already has an answer here:
- can a contract on blockchain get outside data like "current dollar/ether exchange rate" using api like call??
- If yes, how can it be done? and is there any technique to control the behaviour of the contract depending on outside factors like fluctuations in ether/ dollar currency?