fetch data for stock

def fetch(cls, client, symbol):
        """
        fetch data for stock
        """
        assert(type(symbol) is str)

        url = ("https://api.robinhood.com/instruments/?symbol={0}".
               format(symbol))
        data = client.get(url)
        return data["results"][0]