def bulkMinuteBars(symbol, dates, token='', version=''):
    '''fetch many dates worth of minute-bars for a given symbol'''
    _raiseIfNotStr(symbol)
    dates = [_strOrDate(date) for date in dates]
    list_orig = dates.__class__

    args = []
    for date in dates:
        args.append((symbol, '1d', date, token, version))

    pool = ThreadPool(20)
    rets = pool.starmap(chart, args)
    pool.close()

    return list_orig(itertools.chain(*rets))
def bulkMinuteBars(symbol, dates, token='', version=''):
    '''fetch many dates worth of minute-bars for a given symbol'''
    _raiseIfNotStr(symbol)
    dates = [_strOrDate(date) for date in dates]
    list_orig = dates.__class__

    args = []
    for date in dates:
        args.append((symbol, '1d', date, token, version))

    pool = ThreadPool(20)
    rets = pool.starmap(chart, args)
    pool.close()

    return list_orig(itertools.chain(*rets))
def bulkMinuteBars ( symbol , dates , token = '' , version = '' ) : _raiseIfNotStr ( symbol ) dates = [ _strOrDate ( date ) for date in dates ] list_orig = dates . __class__ args = [ ] for date in dates : args . append ( ( symbol , '1d' , date , token , version ) ) pool = ThreadPool ( 20 ) rets = pool . starmap ( chart , args ) pool . close ( ) return list_orig ( itertools . chain ( * rets ) )
fetch many dates worth of minute-bars for a given symbol
fetch many dates worth of minute - bars for a given symbol