CryptoCoinChartsApi/CryptoCoinChartsApi.py
def listcoins(self):
        '''
        Use this function to list all coins with their data which are available on cryptocoincharts.
        Usage: http://api.cryptocoincharts.info/listCoins
        '''
        url = self.API_PATH + 'listCoins'
        
        json_data = json.loads(self._getdata(url))
        
        coins = []
        for entry in json_data:
            coin = Coin()
            coin.id = entry['id']
            coin.name = entry['name']
            coin.website = entry['website']
            coin.price_btc = entry['price_btc']
            coin.volume_btc = entry['volume_btc']
            coins.append(coin)
        
        return coins
def listcoins(self):
        '''
        Use this function to list all coins with their data which are available on cryptocoincharts.
        Usage: http://api.cryptocoincharts.info/listCoins
        '''
        url = self.API_PATH + 'listCoins'
        
        json_data = json.loads(self._getdata(url))
        
        coins = []
        for entry in json_data:
            coin = Coin()
            coin.id = entry['id']
            coin.name = entry['name']
            coin.website = entry['website']
            coin.price_btc = entry['price_btc']
            coin.volume_btc = entry['volume_btc']
            coins.append(coin)
        
        return coins
def listcoins ( self ) : url = self . API_PATH + 'listCoins' json_data = json . loads ( self . _getdata ( url ) ) coins = [ ] for entry in json_data : coin = Coin ( ) coin . id = entry [ 'id' ] coin . name = entry [ 'name' ] coin . website = entry [ 'website' ] coin . price_btc = entry [ 'price_btc' ] coin . volume_btc = entry [ 'volume_btc' ] coins . append ( coin ) return coins
Use this function to list all coins with their data which are available on cryptocoincharts.
        Usage: http://api.cryptocoincharts.info/listCoins
Use this function to list all coins with their data which are available on cryptocoincharts . Usage : http : // api . cryptocoincharts . info / listCoins