def chart(symbol, timeframe='<STR_LIT>', date=None, token='<STR_LIT>', version='<STR_LIT>'):
_raiseIfNotStr(symbol)<EOL>if timeframe is not None and timeframe != '<STR_LIT>':<EOL><INDENT>if timeframe not in _TIMEFRAME_CHART:<EOL><INDENT>raise PyEXception('<STR_LIT>' % str(_TIMEFRAME_CHART))<EOL><DEDENT>return _getJson('<STR_LIT>' + symbol + '<STR_LIT>' + '<STR_LIT:/>' + timeframe, token, version)<EOL><DEDENT>if date:<EOL><INDENT>date = _strOrDate(date)<EOL>return _getJson('<STR_LIT>' + symbol + '<STR_LIT>' + '<STR_LIT>' + date, token, version)<EOL><DEDENT>return _getJson('<STR_LIT>' + symbol + '<STR_LIT>', token, version)<EOL>
Historical price/volume data, daily and intraday

    https://iexcloud.io/docs/api/#historical-prices
    Data Schedule
    1d: -9:30-4pm ET Mon-Fri on regular market trading days
        -9:30-1pm ET on early close trading days
    All others:
        -Prior trading day available after 4am ET Tue-Sat

    Args:
        symbol (string); Ticker to request
        timeframe (string); Timeframe to request e.g. 1m
        date (datetime): date, if requesting intraday
        token (string); Access token
        version (string); API version

    Returns:
        dict: result