pyEX/premium/stocktwits/__init__.py
def socialSentiment(symbol,
                    type='daily',
                    date='',
                    token='',
                    version='',
                    filter=''):
    '''This endpoint provides social sentiment data from StockTwits. Data can be viewed as a daily value, or by minute for a given date.

    https://iexcloud.io/docs/api/#social-sentiment

    Args:
        symbol (str): Symbol to look up
        type (Optional[str]): Can only be daily or minute. Default is daily.
        date (Optional[str]): Format YYYYMMDD date to fetch sentiment data. Default is today.
        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)

    if type not in ('daily', 'minute'):
        raise PyEXception('`type` must be in (daily, minute). Got: {}'.format(type))
    base_url = 'stock/{}/sentiment/{}'.format(symbol, type)

    if date:
        date = _strOrDate(date)
        base_url += '/{}'.format(date)
    return _getJson(base_url, token, version, filter)
This endpoint provides social sentiment data from StockTwits. Data can be viewed as a daily value, or by minute for a given date.

    https://iexcloud.io/docs/api/#social-sentiment

    Args:
        symbol (str): Symbol to look up
        type (Optional[str]): Can only be daily or minute. Default is daily.
        date (Optional[str]): Format YYYYMMDD date to fetch sentiment data. Default is today.
        token (str): Access token
        version (str): API version
        filter (str): filters: https://iexcloud.io/docs/api/#filter-results

    Returns:
        dict or DataFrame: result
    
This endpoint provides social sentiment data from StockTwits. Data can be viewed as a daily value, or by minute for a given date.
This endpoint provides social sentiment data from StockTwits . Data can be viewed as a daily value or by minute for a given date .
def socialSentiment(symbol,
                    type='daily',
                    date='',
                    token='',
                    version='',
                    filter=''):
    _raiseIfNotStr(symbol)
    if type not in ('daily', 'minute'):
        raise PyEXception('`type` must be in (daily, minute). Got: {}'.format(type))
    base_url = 'stock/{}/sentiment/{}'.format(symbol, type)
    if date:
        date = _strOrDate(date)
        base_url += '/{}'.format(date)
    return _getJson(base_url, token, version, filter)
def socialSentiment ( symbol , type = 'daily' , date = '' , token = '' , version = '' , filter = '' ) : _raiseIfNotStr ( symbol ) if type not in ( 'daily' , 'minute' ) : raise PyEXception ( '`type` must be in (daily, minute). Got: {}' . format ( type ) ) base_url = 'stock/{}/sentiment/{}' . format ( symbol , type ) if date : date = _strOrDate ( date ) base_url += '/{}' . format ( date ) return _getJson ( base_url , token , version , filter )
This endpoint provides social sentiment data from StockTwits.
This endpoint provides social sentiment data from StockTwits .
'''This endpoint provides social sentiment data from StockTwits. Data can be viewed as a daily value, or by minute for a given date.

    https://iexcloud.io/docs/api/#social-sentiment

    Args:
        symbol (str): Symbol to look up
        type (Optional[str]): Can only be daily or minute. Default is daily.
        date (Optional[str]): Format YYYYMMDD date to fetch sentiment data. Default is today.
        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
Symbol to look up
Symbol to look up
type
Can only be daily or minute. Default is daily.
Can only be daily or minute . Default is daily .
date
Format YYYYMMDD date to fetch sentiment data. Default is today.
Format YYYYMMDD date to fetch sentiment data . Default is today .
token
None
version
None
filter
None