def batch(symbols, fields=None, range_='<STR_LIT>', last=<NUM_LIT:10>, token='<STR_LIT>', version='<STR_LIT>'):
fields = fields or _BATCH_TYPES[:<NUM_LIT:10>]  <EOL>if not isinstance(symbols, [].__class__):<EOL><INDENT>if not isinstance(symbols, str):<EOL><INDENT>raise PyEXception('<STR_LIT>')<EOL><DEDENT><DEDENT>if isinstance(fields, str):<EOL><INDENT>fields = [fields]<EOL><DEDENT>if range_ not in _TIMEFRAME_CHART:<EOL><INDENT>raise PyEXception('<STR_LIT>' % str(_TIMEFRAME_CHART))<EOL><DEDENT>if isinstance(symbols, str):<EOL><INDENT>route = '<STR_LIT>'.format(symbols, '<STR_LIT:U+002C>'.join(fields), range_, last)<EOL>return _getJson(route, token, version)<EOL><DEDENT>if len(symbols) > <NUM_LIT:100>:<EOL><INDENT>raise PyEXception('<STR_LIT>')<EOL><DEDENT>route = '<STR_LIT>'.format('<STR_LIT:U+002C>'.join(symbols), '<STR_LIT:U+002C>'.join(fields), range_, last)<EOL>return _getJson(route, token, version)<EOL>
Batch several data requests into one invocation

    https://iexcloud.io/docs/api/#batch-requests


    Args:
        symbols (list); List of tickers to request
        fields (list); List of fields to request
        range_ (string); Date range for chart
        last (int);
        token (string); Access token
        version (string); API version

    Returns:
        dict: results in json