MCPcopy Create free account

hub / github.com/rsheftel/pandas_market_calendars / functions

Functions828 in github.com/rsheftel/pandas_market_calendars

↓ 168 callersMethodschedule
Generates the schedule DataFrame. The resulting DataFrame will have all the valid business days as the index and columns for the requ
pandas_market_calendars/market_calendar.py:717
↓ 141 callersFunction_test_holidays
(holidays, start, end)
tests/test_nyse_calendar_early_years.py:29
↓ 95 callersFunctiondate_range_htf
Returns a Normalized DatetimeIndex from the start-date to End-Date for Time periods of 1D and Higher. Unless using a custom calendar, it is
pandas_market_calendars/calendar_utils.py:878
↓ 90 callersMethodopen_at_time
Determine if a given timestamp is during an open time for the market. If the timestamp is before the first open time or after the las
pandas_market_calendars/market_calendar.py:972
↓ 71 callersFunction_test_no_special_opens_closes
(start, end)
tests/test_nyse_calendar_early_years.py:50
↓ 62 callersFunction_test_has_early_closes
(early_closes, start, end)
tests/test_nyse_calendar_early_years.py:79
↓ 59 callersMethodvalid_days
Get a DatetimeIndex of valid open business days. :param start_date: start date :param end_date: end date :param tz:
pandas_market_calendars/market_calendar.py:591
↓ 42 callersFunction_test_no_special_opens
(start, end)
tests/test_nyse_calendar_early_years.py:42
↓ 40 callersMethodholidays
Returns the complete CustomBusinessDay object of holidays that can be used in any Pandas function that take that input. :ret
pandas_market_calendars/market_calendar.py:574
↓ 28 callersFunction_make_session_list
Create a list of (Session Start, Session End) Tuples
pandas_market_calendars/calendar_utils.py:501
↓ 28 callersFunction_test_has_late_opens
(late_opens, start, end)
tests/test_nyse_calendar_early_years.py:63
↓ 23 callersMethodchange_time
Changes the specified market time in regular_market_times and makes the necessary adjustments. :param market_time: the market_time t
pandas_market_calendars/market_calendar.py:273
↓ 23 callersFunctiondate_range
Interpolates a Market's Schedule at the desired frequency and returns the result as a DatetimeIndex. This function is only valid for periods
pandas_market_calendars/calendar_utils.py:351
↓ 20 callersMethodadd_time
Adds the specified market time to regular_market_times and makes the necessary adjustments. :param market_time: the market_time to a
pandas_market_calendars/market_calendar.py:293
↓ 17 callersMethodearly_closes
Get a DataFrame of the dates that are an early close. :param schedule: schedule DataFrame :return: schedule DataFrame with r
pandas_market_calendars/market_calendar.py:1073
↓ 17 callersMethodget_time
(self, market_time: str, all_times: bool = False)
pandas_market_calendars/market_calendar.py:338
↓ 17 callersMethodvalid_days
Get a DatetimeIndex of valid open business days. :param start_date: start date :param end_date: end date :param tz:
pandas_market_calendars/calendars/nyse.py:1318
↓ 15 callersFunctionget_calendar
Retrieves an instance of an MarketCalendar whose name is given. :param name: The name of the MarketCalendar to be retrieved. :param open
pandas_market_calendars/calendar_registry.py:48
↓ 14 callersMethoddate_range_htf
( self, frequency: Union[str, pd.Timedelta, int, float], start: Union[str, pd.Timestam
pandas_market_calendars/calendars/nyse.py:1375
↓ 13 callersFunction_extend_statement
(session: str, parts: set[str])
pandas_market_calendars/calendar_utils.py:81
↓ 13 callersFunction_test_holidays
(cal, holidays, start, end)
tests/test_sifma_calendars.py:15
↓ 13 callersMethodclose_time_on
(self, date: Any)
pandas_market_calendars/market_calendar.py:370
↓ 11 callersFunction_test_no_special_opens
(cal, start, end)
tests/test_sifma_calendars.py:28
↓ 11 callersMethodlate_opens
Get a DataFrame of the dates that are an late opens. :param schedule: schedule DataFrame :return: schedule DataFrame with ro
pandas_market_calendars/market_calendar.py:1082
↓ 10 callersFunction_test_has_early_closes
(cal, early_closes, start, end)
tests/test_sifma_calendars.py:65
↓ 9 callersMethodholidays_pre_1952
NYSE Market open on Saturdays pre 5/24/1952. CustomBusinessDay object that can be used inplace of holidays() for dates prior to cross
pandas_market_calendars/calendars/nyse.py:844
↓ 9 callersMethodis_custom
(self, market_time: str)
pandas_market_calendars/market_calendar.py:324
↓ 9 callersMethodremove_time
Removes the specified market time from regular_market_times and makes the necessary adjustments. :param market_time: the market_time
pandas_market_calendars/market_calendar.py:308
↓ 8 callersFunction_test_no_special_closes
(start, end)
tests/test_nyse_calendar_early_years.py:46
↓ 8 callersFunction_test_year_holiday
(year, bad_dates)
tests/test_eurex_fixed_income_calendar.py:14
↓ 8 callersMethodcopy
(self)
pandas_market_calendars/class_registry.py:113
↓ 8 callersFunctionfilter_date_range_warnings
Adjust the behavior of the date_range() warnings to the desired action. :param action: - The desired change to the warning behavior
pandas_market_calendars/calendar_utils.py:282
↓ 8 callersMethodget_time_on
(self, market_time: str, date: Any)
pandas_market_calendars/market_calendar.py:353
↓ 7 callersMethod_set
(self, key: str, value: Any)
pandas_market_calendars/class_registry.py:78
↓ 7 callersMethodclean_dates
Strips the inputs of time and time zone information :param start_date: start date :param end_date: end date :return:
pandas_market_calendars/market_calendar.py:1055
↓ 7 callersMethoddays_at_time
Create an index of days at time ``t``, interpreted in timezone ``tz``. The returned index is localized to UTC. In the example below,
pandas_market_calendars/market_calendar.py:606
↓ 7 callersMethodspecial_dates
Calculate a datetimeindex that only contains the specail times of the requested market time. :param market_time: market_time referen
pandas_market_calendars/market_calendar.py:683
↓ 6 callersFunction_normalize_datetime_resolution
Convert datetime columns/index to a common resolution for comparison.
tests/conftest.py:18
↓ 6 callersMethodget_offset
(self, market_time: str)
pandas_market_calendars/market_calendar.py:475
↓ 6 callersFunctionget_sources
Get source references for a calendar by name. :param calendar_name: The calendar name (e.g., 'NYSE', 'XNYS', 'LSE') :return: Tuple of So
pandas_market_calendars/sources.py:575
↓ 6 callersFunctionparse_insufficient_schedule_warning
Parses the information from an Insufficient Schedule Warning. :returns Tuple[bool, pd.Timestamp, pd.Timestamp]: bool: True == Range i
pandas_market_calendars/calendar_utils.py:322
↓ 5 callersMethod__init__
(self, arg0, kw0=None)
tests/test_class_registry.py:22
↓ 5 callersMethoddays_at_time
(self, days: Any, market_time: Any, day_offset: int = 0)
pandas_market_calendars/calendars/nyse.py:1363
↓ 5 callersMethodfactory
:param name: The name of the MarketCalendar to be retrieved. :param *args/**kwargs: passed to requested MarketCalendar.__init__
pandas_market_calendars/market_calendar.py:120
↓ 5 callersMethodopen_time_on
(self, date: Any)
pandas_market_calendars/market_calendar.py:367
↓ 4 callersMethod_del
(self, key: str)
pandas_market_calendars/class_registry.py:81
↓ 4 callersMethod_get_holidays_for_weekmask
Create a CustomBusinessDay with the specified weekmask.
pandas_market_calendars/calendars/mirror.py:189
↓ 4 callersMethod_tdelta
(t: Union[time, tuple], day_offset: int = 0)
pandas_market_calendars/market_calendar.py:98
↓ 4 callersFunction_test_no_special_opens
(start, end)
tests/test_exchange_calendar_cme_globex_energy_and_metals.py:43
↓ 4 callersMethodbreak_end_on
(self, date: Any)
pandas_market_calendars/market_calendar.py:376
↓ 4 callersMethodis_different
(self, col: pd.Series, diff: Any = None)
pandas_market_calendars/market_calendar.py:1067
↓ 4 callersMethodtest
(self)
tests/test_class_registry.py:144
↓ 4 callersFunctiontest_protected_dictionary
(cal=None)
tests/test_market_calendar.py:182
↓ 3 callersFunction_cal_WMQY_range
Return A DateRangeIndex of the Weekdays that mark either the start or end of each business week based on the 'closed' parameter. ** Argu
pandas_market_calendars/calendar_utils.py:1103
↓ 3 callersFunction_convert_index_to_us
Convert a DatetimeIndex to microsecond resolution.
tests/conftest.py:21
↓ 3 callersMethod_off
(tple: Any)
pandas_market_calendars/market_calendar.py:106
↓ 3 callersMethod_prepare_regular_market_times
(self)
pandas_market_calendars/market_calendar.py:192
↓ 3 callersFunction_test_has_early_closes
(early_closes, start, end)
tests/test_exchange_calendar_cme_globex_energy_and_metals.py:80
↓ 3 callersFunction_test_holidays
(holidays, start, end)
tests/test_exchange_calendar_cme_globex_energy_and_metals.py:30
↓ 3 callersFunction_test_no_special_opens_closes
(cal, start, end)
tests/test_sifma_calendars.py:36
↓ 3 callersFunctionis_first_friday
Check if date is the first Friday of the month
pandas_market_calendars/holidays/sifma.py:97
↓ 3 callersFunctionparse_missing_session_warning
Parses a Missing Session Warning's Error Message. :returns Tuple[set[str], set[str]]: Set #1: The Missing Sessions Set #2: Th
pandas_market_calendars/calendar_utils.py:309
↓ 2 callersMethod__init__
(self, open_time: Optional[Any] = None, close_time: Optional[Any] = None)
pandas_market_calendars/calendars/mirror.py:65
↓ 2 callersFunction_convert_series_to_us
Convert a datetime Series to microsecond resolution.
tests/conftest.py:30
↓ 2 callersMethod_get_dynamic_gf_rules
(self)
pandas_market_calendars/calendars/sifma.py:125
↓ 2 callersMethod_get_market_times
(self, start: str, end: str)
pandas_market_calendars/market_calendar.py:602
↓ 2 callersFunction_num_bars_ltf
Calculate the number of timestamps needed for each trading session.
pandas_market_calendars/calendar_utils.py:718
↓ 2 callersFunction_regmeta_register_class
:param cls(RegisteryMeta): registration base class :param regcls(class): class to be registered :param name(str): name of the class to
pandas_market_calendars/class_registry.py:21
↓ 2 callersMethod_set_time
(self, market_time: str, times: Any, opens: Any)
pandas_market_calendars/market_calendar.py:232
↓ 2 callersFunctionassert_same
(one, two)
tests/test_market_calendar.py:1486
↓ 2 callersFunctionautumnal_equinox_for_year
(year: int)
pandas_market_calendars/holidays/jpx_equinox.py:489
↓ 2 callersMethoddate_range_htf
Returns a Normalized DatetimeIndex from the start-date to End-Date for Time periods of 1D and Higher. PARAMETERS: :param fr
pandas_market_calendars/market_calendar.py:912
↓ 1 callersMethod__delitem__
(self, key: Any)
pandas_market_calendars/class_registry.py:93
↓ 1 callersMethod__init__
(cls, name: str, bases: Any, attr: Any)
pandas_market_calendars/class_registry.py:52
↓ 1 callersMethod__init__
:param open_time: Market open time override as datetime.time object. If None then default is used. :param close_time: Market close ti
pandas_market_calendars/market_calendar.py:128
↓ 1 callersMethod__setitem__
(self, key: Any, value: Any)
pandas_market_calendars/class_registry.py:84
↓ 1 callersMethod_apply_special_times
Apply special times to a schedule. A market time's own special value is authoritative. Open/close specials can still confor
pandas_market_calendars/market_calendar.py:772
↓ 1 callersFunction_cal_day_range
Returns a Normalized DateTimeIndex of Open Business Days. Exactly two of the (start, end, periods) arguments must be given. ** Arguments
pandas_market_calendars/calendar_utils.py:1054
↓ 1 callersFunction_calc_time_series
Interpolate each session into a datetime series at the desired frequency.
pandas_market_calendars/calendar_utils.py:781
↓ 1 callersFunction_course_trim_to_period_count
Course Trim the Session times to the desired period count. Large enough of a sub-routine to merit its own function call.
pandas_market_calendars/calendar_utils.py:728
↓ 1 callersFunction_days_per_week
Used to get a more accurate estimate of the number of days per week
pandas_market_calendars/calendar_utils.py:1036
↓ 1 callersFunction_error_check_htf_range
Standardize and Error Check Start, End, and period params
pandas_market_calendars/calendar_utils.py:975
↓ 1 callersFunction_error_check_sessions
( session_times: pd.DataFrame, timestep: pd.Timedelta, closed: Literal["left", "right", "both"] |
pandas_market_calendars/calendar_utils.py:679
↓ 1 callersMethod_get_current_time
()
pandas_market_calendars/market_calendar.py:1036
↓ 1 callersFunction_reconfigure_schedule
Reconfigure a schedule into a sorted dataframe of [start, end] times for each session
pandas_market_calendars/calendar_utils.py:621
↓ 1 callersMethod_special_dates
Union an iterable of pairs of the forms (time, calendar), (time, [dates]), and (time, int). If the second item in the pair is
pandas_market_calendars/market_calendar.py:658
↓ 1 callersFunction_standardize_htf_freq
Standardize the frequency multiplier and Code, throwing errors as needed.
pandas_market_calendars/calendar_utils.py:1006
↓ 1 callersFunction_standardize_times
Standardize start and end into a timestamp of the relevant timezone
pandas_market_calendars/calendar_utils.py:571
↓ 1 callersFunction_test_no_special_closes
(start, end)
tests/test_exchange_calendar_cme_globex_energy_and_metals.py:47
↓ 1 callersFunction_test_no_special_closes
(cal, start, end)
tests/test_sifma_calendars.py:32
↓ 1 callersFunction_test_verify_early_close_time
(schedule, timestamp)
tests/test_exchange_calendar_cme_globex_energy_and_metals.py:72
↓ 1 callersFunction_test_verify_early_close_time
(schedule, timestamp)
tests/test_nyse_calendar_early_years.py:71
↓ 1 callersFunction_test_verify_early_close_time
(schedule, timestamp)
tests/test_sifma_calendars.py:57
↓ 1 callersFunction_test_verify_late_open_time
(schedule, timestamp)
tests/test_exchange_calendar_cme_globex_energy_and_metals.py:56
↓ 1 callersFunction_test_verify_late_open_time
(schedule, timestamp)
tests/test_nyse_calendar_early_years.py:55
↓ 1 callersFunction_test_verify_late_open_time
(schedule, timestamp)
tests/test_sifma_calendars.py:41
↓ 1 callersMethod_tryholidays
(self, cal: AbstractHolidayCalendar, s: Any, e: Any)
pandas_market_calendars/market_calendar.py:643
↓ 1 callersFunctionautumnal_citizen_dates
(start: int = 2003, end: int = 2099)
pandas_market_calendars/holidays/jpx_equinox.py:500
↓ 1 callersMethodcalendar_names
All Market Calendar names and aliases that can be used in "factory" :return: list(str)
pandas_market_calendars/market_calendar.py:113
↓ 1 callersFunctiondat
(day, day_offset, time_offset, cal, expected)
tests/test_market_calendar.py:479
next →1–100 of 828, ranked by callers