text: from . import cryptocurrencyapipuller
  
  try:
  	import urllib.request as url, json
  except:
  	import urllib as url, json
  
  class API_BlockChain(cryptocurrencyapipuller.CryptocurrencyApiPuller):
  
  	def get_name(self):
  		return "BlockChain"
  
  	def get_type(self):
  		return "BTC"
  
  	def get_price(self, country):
  		response = url.urlopen("https://blockchain.info/ticker");
  		data = json.loads(response.read().decode('utf-8'))
  
  		if country in data:
  			currentprice = data[country]['15m']
  			if currentprice != self.last_price:
  				self.last_price = currentprice
  			return currentprice