import requests


def make_api_call(csv_target):
    """Make http request to IEX Trading API and return useful dataset"""
    my_string = ','.join(str(row['symbol']) for row in csv_target)
    url = "https://api.iextrading.com/1.0/tops/last?symbols={0}".format(my_string)
    response = requests.get(url)
    data = response.json()
    api_data = [
        (item['symbol'], item['price'], item['size'], item['time'])
        for item in data
    ]
    return api_data