RefData¶
-
pyEX.refdata.calendar.
calendar
(type='holiday', direction='next', last=1, startDate=None, token='', version='stable', filter='', format='json')[source] 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
Parameters: - type (str) – “holiday” or “trade”
- direction (str) – “next” or “last”
- last (int) – number to move in direction
- startDate (date) – start date for next or last, YYYYMMDD
- token (str) – Access token
- version (str) – API version
- filter (str) – filters: https://iexcloud.io/docs/api/#filter-results
- format (str) – return format, defaults to json
Returns: result
Return type: dict or DataFrame
-
pyEX.refdata.calendar.
calendarDF
(type='holiday', direction='next', last=1, startDate=None, token='', version='stable', filter='', format='json')[source] 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
Parameters: - type (str) – “holiday” or “trade”
- direction (str) – “next” or “last”
- last (int) – number to move in direction
- startDate (date) – start date for next or last, YYYYMMDD
- token (str) – Access token
- version (str) – API version
- filter (str) – filters: https://iexcloud.io/docs/api/#filter-results
- format (str) – return format, defaults to json
Returns: result
Return type: dict or DataFrame
-
pyEX.refdata.calendar.
holidays
(direction='next', last=1, startDate=None, token='', version='stable', filter='', format='json')[source] 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
Parameters: - direction (str) – “next” or “last”
- last (int) – number to move in direction
- startDate (date) – start date for next or last, YYYYMMDD
- token (str) – Access token
- version (str) – API version
- filter (str) – filters: https://iexcloud.io/docs/api/#filter-results
- format (str) – return format, defaults to json
Returns: result
Return type: dict or DataFrame
-
pyEX.refdata.calendar.
holidaysDF
(direction='next', last=1, startDate=None, token='', version='stable', filter='', format='json')[source] 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
Parameters: - direction (str) – “next” or “last”
- last (int) – number to move in direction
- startDate (date) – start date for next or last, YYYYMMDD
- token (str) – Access token
- version (str) – API version
- filter (str) – filters: https://iexcloud.io/docs/api/#filter-results
- format (str) – return format, defaults to json
Returns: result
Return type: dict or DataFrame