def calendarDF(type='<STR_LIT>', direction='<STR_LIT>', last=<NUM_LIT:1>, startDate=None, token='<STR_LIT>', version='<STR_LIT>'):
dat = pd.DataFrame(calendar(type, direction, last, startDate, token, version))<EOL>_toDatetime(dat)<EOL>return dat<EOL>
This call allows you to fetch a number of trade dates or holidays from a given date. For example, if you want the next trading day, you would call /ref-data/us/dates/trade/next/1.

    https://iexcloud.io/docs/api/#u-s-exchanges
    8am, 9am, 12pm, 1pm UTC daily

    Args:
        type (string); "holiday" or "trade"
        direction (string); "next" or "last"
        last (int); number to move in direction
        startDate (date); start date for next or last, YYYYMMDD
        token (string); Access token
        version (string); API version

    Returns:
        dict: result