def chartDF(symbol, timeframe='<STR_LIT>', date=None, token='<STR_LIT>', version='<STR_LIT>'):
c = chart(symbol, timeframe, date, token, version)<EOL>df = pd.DataFrame(c)<EOL>_toDatetime(df)<EOL>if timeframe is not None and timeframe != '<STR_LIT>':<EOL><INDENT>_reindex(df, '<STR_LIT:date>')<EOL><DEDENT>else:<EOL><INDENT>if not df.empty:<EOL><INDENT>df.set_index(['<STR_LIT:date>', '<STR_LIT>'], inplace=True)<EOL><DEDENT>else:<EOL><INDENT>return pd.DataFrame()<EOL><DEDENT><DEDENT>return df<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:
        DataFrame: result