pyEX/stocks/fundamentals.py
def earnings(symbol, period='quarter', last=1, field='', token='', version='', filter=''):
    '''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 (str): Ticker to request
        period (str): Period, either 'annual' or 'quarter'
        last (int): Number of records to fetch, up to 12 for 'quarter' and 4 for 'annual'
        token (str): Access token
        version (str): API version
        filter (str): filters: https://iexcloud.io/docs/api/#filter-results

    Returns:
        dict or DataFrame: result
    '''
    _raiseIfNotStr(symbol)
    _checkPeriodLast(period, last)
    if not field:
        return _getJson('stock/{}/earnings?period={}&last={}'.format(symbol, period, last), token, version, filter)
    return _getJson('stock/{}/earnings/{}/{}?period={}'.format(symbol, last, field, period), token, version, filter)
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 (str): Ticker to request
        period (str): Period, either 'annual' or 'quarter'
        last (int): Number of records to fetch, up to 12 for 'quarter' and 4 for 'annual'
        token (str): Access token
        version (str): API version
        filter (str): filters: https://iexcloud.io/docs/api/#filter-results

    Returns:
        dict or DataFrame: result
    
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).
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 ) .
def earnings(symbol, period='quarter', last=1, field='', token='', version='', filter=''):
    _raiseIfNotStr(symbol)
    _checkPeriodLast(period, last)
    if not field:
        return _getJson('stock/{}/earnings?period={}&last={}'.format(symbol, period, last), token, version, filter)
    return _getJson('stock/{}/earnings/{}/{}?period={}'.format(symbol, last, field, period), token, version, filter)
def earnings ( symbol , period = 'quarter' , last = 1 , field = '' , token = '' , version = '' , filter = '' ) : _raiseIfNotStr ( symbol ) _checkPeriodLast ( period , last ) if not field : return _getJson ( 'stock/{}/earnings?period={}&last={}' . format ( symbol , period , last ) , token , version , filter ) return _getJson ( 'stock/{}/earnings/{}/{}?period={}' . format ( symbol , last , field , period ) , token , version , filter )
Earnings data for a given company including the actual EPS, consensus, and fiscal period.
Earnings data for a given company including the actual EPS consensus and fiscal period .
'''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 (str): Ticker to request
        period (str): Period, either 'annual' or 'quarter'
        last (int): Number of records to fetch, up to 12 for 'quarter' and 4 for 'annual'
        token (str): Access token
        version (str): API version
        filter (str): filters: https://iexcloud.io/docs/api/#filter-results

    Returns:
        dict or DataFrame: result
    '''
dict or DataFrame: result
dict or DataFrame : result
symbol
Ticker to request
Ticker to request
period
Period, either 'annual' or 'quarter'
Period either ' annual ' or ' quarter '
last
Number of records to fetch, up to 12 for 'quarter' and 4 for 'annual'
Number of records to fetch up to 12 for ' quarter ' and 4 for ' annual '
field
token
None
version
None
filter
None