def earnings(symbol, token='<STR_LIT>', version='<STR_LIT>'):
_raiseIfNotStr(symbol)<EOL>return _getJson('<STR_LIT>' + symbol + '<STR_LIT>', token, version)<EOL>
Earnings data for a given company including the actual EPS, consensus, and fiscal period. Earnings are available quarterly (last 4 quarters) and annually (last 4 years).

    https://iexcloud.io/docs/api/#earnings
    Updates at 9am, 11am, 12pm UTC every day

    Args:
        symbol (string); Ticker to request
        token (string); Access token
        version (string); API version

    Returns:
        dict: result