pandas-market-calendars 4.1.3__py3-none-any.whl → 4.2.0__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- {pandas_market_calendars-4.1.3.dist-info → pandas_market_calendars-4.2.0.dist-info}/METADATA +200 -187
- pandas_market_calendars-4.2.0.dist-info/NOTICE +206 -0
- pandas_market_calendars-4.2.0.dist-info/RECORD +6 -0
- {pandas_market_calendars-4.1.3.dist-info → pandas_market_calendars-4.2.0.dist-info}/WHEEL +1 -1
- pandas_market_calendars/__init__.py +0 -37
- pandas_market_calendars/calendar_registry.py +0 -47
- pandas_market_calendars/calendar_utils.py +0 -225
- pandas_market_calendars/class_registry.py +0 -111
- pandas_market_calendars/exchange_calendar_asx.py +0 -63
- pandas_market_calendars/exchange_calendar_bmf.py +0 -227
- pandas_market_calendars/exchange_calendar_bse.py +0 -409
- pandas_market_calendars/exchange_calendar_cboe.py +0 -115
- pandas_market_calendars/exchange_calendar_cme.py +0 -240
- pandas_market_calendars/exchange_calendar_cme_globex_agriculture.py +0 -109
- pandas_market_calendars/exchange_calendar_cme_globex_base.py +0 -106
- pandas_market_calendars/exchange_calendar_cme_globex_energy_and_metals.py +0 -146
- pandas_market_calendars/exchange_calendar_cme_globex_equities.py +0 -104
- pandas_market_calendars/exchange_calendar_cme_globex_fixed_income.py +0 -114
- pandas_market_calendars/exchange_calendar_cme_globex_fx.py +0 -78
- pandas_market_calendars/exchange_calendar_eurex.py +0 -119
- pandas_market_calendars/exchange_calendar_hkex.py +0 -408
- pandas_market_calendars/exchange_calendar_ice.py +0 -65
- pandas_market_calendars/exchange_calendar_iex.py +0 -98
- pandas_market_calendars/exchange_calendar_jpx.py +0 -98
- pandas_market_calendars/exchange_calendar_lse.py +0 -91
- pandas_market_calendars/exchange_calendar_nyse.py +0 -1127
- pandas_market_calendars/exchange_calendar_ose.py +0 -150
- pandas_market_calendars/exchange_calendar_sifma.py +0 -300
- pandas_market_calendars/exchange_calendar_six.py +0 -114
- pandas_market_calendars/exchange_calendar_sse.py +0 -290
- pandas_market_calendars/exchange_calendar_tase.py +0 -119
- pandas_market_calendars/exchange_calendar_tsx.py +0 -159
- pandas_market_calendars/exchange_calendars_mirror.py +0 -114
- pandas_market_calendars/holidays_cme.py +0 -341
- pandas_market_calendars/holidays_cme_globex.py +0 -169
- pandas_market_calendars/holidays_cn.py +0 -1436
- pandas_market_calendars/holidays_jp.py +0 -362
- pandas_market_calendars/holidays_nyse.py +0 -1474
- pandas_market_calendars/holidays_oz.py +0 -65
- pandas_market_calendars/holidays_sifma.py +0 -321
- pandas_market_calendars/holidays_uk.py +0 -177
- pandas_market_calendars/holidays_us.py +0 -364
- pandas_market_calendars/jpx_equinox.py +0 -147
- pandas_market_calendars/market_calendar.py +0 -770
- pandas_market_calendars-4.1.3.dist-info/RECORD +0 -45
- {pandas_market_calendars-4.1.3.dist-info → pandas_market_calendars-4.2.0.dist-info}/LICENSE +0 -0
- {pandas_market_calendars-4.1.3.dist-info → pandas_market_calendars-4.2.0.dist-info}/top_level.txt +0 -0
@@ -1,91 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Copyright 2016 Quantopian, Inc.
|
3
|
-
#
|
4
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
# you may not use this file except in compliance with the License.
|
6
|
-
# You may obtain a copy of the License at
|
7
|
-
#
|
8
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
#
|
10
|
-
# Unless required by applicable law or agreed to in writing, software
|
11
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
# See the License for the specific language governing permissions and
|
14
|
-
# limitations under the License.
|
15
|
-
|
16
|
-
from datetime import time
|
17
|
-
|
18
|
-
from pandas.tseries.holiday import AbstractHolidayCalendar, EasterMonday, GoodFriday
|
19
|
-
from pytz import timezone
|
20
|
-
|
21
|
-
from .holidays_uk import (
|
22
|
-
BoxingDay, Christmas, ChristmasEve, LSENewYearsDay, LSENewYearsEve,
|
23
|
-
MayBank_pre_1995, MayBank_post_1995_pre_2020, MayBank_post_2020,
|
24
|
-
SpringBank_pre_2002, SpringBank_post_2002_pre_2012, SpringBank_post_2012_pre_2022, SpringBank_post_2022,
|
25
|
-
SummerBank, WeekendBoxingDay, WeekendChristmas, UniqueCloses,
|
26
|
-
)
|
27
|
-
from .market_calendar import MarketCalendar
|
28
|
-
|
29
|
-
|
30
|
-
class LSEExchangeCalendar(MarketCalendar):
|
31
|
-
"""
|
32
|
-
Exchange calendar for the London Stock Exchange
|
33
|
-
|
34
|
-
Open Time: 8:00 AM, GMT
|
35
|
-
Close Time: 4:30 PM, GMT
|
36
|
-
|
37
|
-
Regularly-Observed Holidays:
|
38
|
-
- New Years Day (observed on first business day on/after)
|
39
|
-
- Good Friday
|
40
|
-
- Easter Monday
|
41
|
-
- Early May Bank Holiday (first Monday in May)
|
42
|
-
- Spring Bank Holiday (last Monday in May)
|
43
|
-
- Summer Bank Holiday (last Monday in August)
|
44
|
-
- Christmas Day
|
45
|
-
- Dec. 27th (if Christmas is on a weekend)
|
46
|
-
- Boxing Day
|
47
|
-
- Dec. 28th (if Boxing Day is on a weekend)
|
48
|
-
"""
|
49
|
-
aliases = ['LSE']
|
50
|
-
regular_market_times = {
|
51
|
-
"market_open": ((None, time(8)),),
|
52
|
-
"market_close": ((None, time(16,30)),),
|
53
|
-
|
54
|
-
}
|
55
|
-
|
56
|
-
@property
|
57
|
-
def name(self):
|
58
|
-
return "LSE"
|
59
|
-
|
60
|
-
@property
|
61
|
-
def tz(self):
|
62
|
-
return timezone('Europe/London')
|
63
|
-
|
64
|
-
@property
|
65
|
-
def regular_holidays(self):
|
66
|
-
return AbstractHolidayCalendar(rules=[
|
67
|
-
LSENewYearsDay,
|
68
|
-
GoodFriday,
|
69
|
-
EasterMonday,
|
70
|
-
MayBank_pre_1995, MayBank_post_1995_pre_2020, MayBank_post_2020,
|
71
|
-
SpringBank_pre_2002, SpringBank_post_2002_pre_2012, SpringBank_post_2012_pre_2022, SpringBank_post_2022,
|
72
|
-
SummerBank,
|
73
|
-
Christmas,
|
74
|
-
WeekendChristmas,
|
75
|
-
BoxingDay,
|
76
|
-
WeekendBoxingDay
|
77
|
-
])
|
78
|
-
|
79
|
-
@property
|
80
|
-
def adhoc_holidays(self):
|
81
|
-
return UniqueCloses
|
82
|
-
|
83
|
-
@property
|
84
|
-
def special_closes(self):
|
85
|
-
return [(
|
86
|
-
time(12, 30),
|
87
|
-
AbstractHolidayCalendar(rules=[
|
88
|
-
ChristmasEve,
|
89
|
-
LSENewYearsEve,
|
90
|
-
])
|
91
|
-
)]
|