pandas-market-calendars 5.1.0__py3-none-any.whl → 5.1.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pandas_market_calendars/__init__.py +39 -39
 - pandas_market_calendars/calendar_registry.py +58 -57
 - pandas_market_calendars/calendar_utils.py +1151 -1151
 - pandas_market_calendars/calendars/asx.py +100 -70
 - pandas_market_calendars/calendars/bmf.py +225 -219
 - pandas_market_calendars/calendars/bse.py +433 -425
 - pandas_market_calendars/calendars/cboe.py +153 -149
 - pandas_market_calendars/calendars/cme.py +417 -405
 - pandas_market_calendars/calendars/cme_globex_agriculture.py +172 -172
 - pandas_market_calendars/calendars/cme_globex_base.py +127 -119
 - pandas_market_calendars/calendars/cme_globex_crypto.py +166 -158
 - pandas_market_calendars/calendars/cme_globex_energy_and_metals.py +224 -216
 - pandas_market_calendars/calendars/cme_globex_equities.py +131 -123
 - pandas_market_calendars/calendars/cme_globex_fixed_income.py +136 -136
 - pandas_market_calendars/calendars/cme_globex_fx.py +101 -101
 - pandas_market_calendars/calendars/eurex.py +139 -131
 - pandas_market_calendars/calendars/eurex_fixed_income.py +106 -98
 - pandas_market_calendars/calendars/hkex.py +437 -431
 - pandas_market_calendars/calendars/ice.py +89 -81
 - pandas_market_calendars/calendars/iex.py +163 -155
 - pandas_market_calendars/calendars/jpx.py +125 -117
 - pandas_market_calendars/calendars/lse.py +126 -118
 - pandas_market_calendars/calendars/mirror.py +144 -144
 - pandas_market_calendars/calendars/nyse.py +1462 -1466
 - pandas_market_calendars/calendars/ose.py +124 -118
 - pandas_market_calendars/calendars/sifma.py +391 -383
 - pandas_market_calendars/calendars/six.py +144 -136
 - pandas_market_calendars/calendars/sse.py +305 -315
 - pandas_market_calendars/calendars/tase.py +232 -224
 - pandas_market_calendars/calendars/tsx.py +193 -185
 - pandas_market_calendars/class_registry.py +115 -115
 - pandas_market_calendars/holidays/cme.py +385 -385
 - pandas_market_calendars/holidays/cme_globex.py +214 -214
 - pandas_market_calendars/holidays/cn.py +1476 -1476
 - pandas_market_calendars/holidays/jp.py +401 -401
 - pandas_market_calendars/holidays/jpx_equinox.py +506 -506
 - pandas_market_calendars/holidays/nyse.py +1536 -1536
 - pandas_market_calendars/holidays/oz.py +82 -63
 - pandas_market_calendars/holidays/sifma.py +350 -350
 - pandas_market_calendars/holidays/uk.py +186 -186
 - pandas_market_calendars/holidays/us.py +376 -376
 - pandas_market_calendars/market_calendar.py +1006 -1008
 - {pandas_market_calendars-5.1.0.dist-info → pandas_market_calendars-5.1.3.dist-info}/METADATA +5 -4
 - pandas_market_calendars-5.1.3.dist-info/RECORD +50 -0
 - {pandas_market_calendars-5.1.0.dist-info → pandas_market_calendars-5.1.3.dist-info}/WHEEL +1 -1
 - pandas_market_calendars-5.1.0.dist-info/RECORD +0 -50
 - {pandas_market_calendars-5.1.0.dist-info → pandas_market_calendars-5.1.3.dist-info}/licenses/LICENSE +0 -0
 - {pandas_market_calendars-5.1.0.dist-info → pandas_market_calendars-5.1.3.dist-info}/licenses/NOTICE +0 -0
 - {pandas_market_calendars-5.1.0.dist-info → pandas_market_calendars-5.1.3.dist-info}/top_level.txt +0 -0
 
| 
         @@ -1,216 +1,224 @@ 
     | 
|
| 
       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 (
         
     | 
| 
       19 
     | 
    
         
            -
                AbstractHolidayCalendar,
         
     | 
| 
       20 
     | 
    
         
            -
            )  # , GoodFriday, USLaborDay, USPresidentsDay, USThanksgivingDay
         
     | 
| 
       21 
     | 
    
         
            -
             
     | 
| 
       22 
     | 
    
         
            -
             
     | 
| 
       23 
     | 
    
         
            -
             
     | 
| 
       24 
     | 
    
         
            -
             
     | 
| 
       25 
     | 
    
         
            -
                 
     | 
| 
       26 
     | 
    
         
            -
                 
     | 
| 
       27 
     | 
    
         
            -
             
     | 
| 
       28 
     | 
    
         
            -
                 
     | 
| 
       29 
     | 
    
         
            -
                 
     | 
| 
       30 
     | 
    
         
            -
             
     | 
| 
       31 
     | 
    
         
            -
             
     | 
| 
       32 
     | 
    
         
            -
                 
     | 
| 
       33 
     | 
    
         
            -
                 
     | 
| 
       34 
     | 
    
         
            -
                 
     | 
| 
       35 
     | 
    
         
            -
                 
     | 
| 
       36 
     | 
    
         
            -
                 
     | 
| 
       37 
     | 
    
         
            -
                 
     | 
| 
       38 
     | 
    
         
            -
                 
     | 
| 
       39 
     | 
    
         
            -
                 
     | 
| 
       40 
     | 
    
         
            -
             
     | 
| 
       41 
     | 
    
         
            -
             
     | 
| 
       42 
     | 
    
         
            -
             
     | 
| 
       43 
     | 
    
         
            -
             
     | 
| 
       44 
     | 
    
         
            -
             
     | 
| 
       45 
     | 
    
         
            -
             
     | 
| 
       46 
     | 
    
         
            -
             
     | 
| 
       47 
     | 
    
         
            -
             
     | 
| 
       48 
     | 
    
         
            -
             
     | 
| 
       49 
     | 
    
         
            -
             
     | 
| 
       50 
     | 
    
         
            -
             
     | 
| 
       51 
     | 
    
         
            -
             
     | 
| 
       52 
     | 
    
         
            -
             
     | 
| 
       53 
     | 
    
         
            -
             
     | 
| 
       54 
     | 
    
         
            -
             
     | 
| 
       55 
     | 
    
         
            -
             
     | 
| 
       56 
     | 
    
         
            -
             
     | 
| 
       57 
     | 
    
         
            -
             
     | 
| 
       58 
     | 
    
         
            -
             
     | 
| 
       59 
     | 
    
         
            -
             
     | 
| 
       60 
     | 
    
         
            -
             
     | 
| 
       61 
     | 
    
         
            -
             
     | 
| 
       62 
     | 
    
         
            -
             
     | 
| 
       63 
     | 
    
         
            -
             
     | 
| 
       64 
     | 
    
         
            -
             
     | 
| 
       65 
     | 
    
         
            -
             
     | 
| 
       66 
     | 
    
         
            -
                   
     | 
| 
       67 
     | 
    
         
            -
                   
     | 
| 
       68 
     | 
    
         
            -
                  -  
     | 
| 
       69 
     | 
    
         
            -
                  -  
     | 
| 
       70 
     | 
    
         
            -
                  -  
     | 
| 
       71 
     | 
    
         
            -
             
     | 
| 
       72 
     | 
    
         
            -
             
     | 
| 
       73 
     | 
    
         
            -
                   
     | 
| 
       74 
     | 
    
         
            -
                  -  
     | 
| 
       75 
     | 
    
         
            -
                   
     | 
| 
       76 
     | 
    
         
            -
                  -  
     | 
| 
       77 
     | 
    
         
            -
                   
     | 
| 
       78 
     | 
    
         
            -
                  -  
     | 
| 
       79 
     | 
    
         
            -
             
     | 
| 
       80 
     | 
    
         
            -
             
     | 
| 
       81 
     | 
    
         
            -
                   
     | 
| 
       82 
     | 
    
         
            -
                  -  
     | 
| 
       83 
     | 
    
         
            -
                  -  
     | 
| 
       84 
     | 
    
         
            -
                  -  
     | 
| 
       85 
     | 
    
         
            -
             
     | 
| 
       86 
     | 
    
         
            -
                   
     | 
| 
       87 
     | 
    
         
            -
                   
     | 
| 
       88 
     | 
    
         
            -
                   
     | 
| 
       89 
     | 
    
         
            -
             
     | 
| 
       90 
     | 
    
         
            -
                   
     | 
| 
       91 
     | 
    
         
            -
             
     | 
| 
       92 
     | 
    
         
            -
             
     | 
| 
       93 
     | 
    
         
            -
             
     | 
| 
       94 
     | 
    
         
            -
             
     | 
| 
       95 
     | 
    
         
            -
             
     | 
| 
       96 
     | 
    
         
            -
             
     | 
| 
       97 
     | 
    
         
            -
             
     | 
| 
       98 
     | 
    
         
            -
             
     | 
| 
       99 
     | 
    
         
            -
             
     | 
| 
       100 
     | 
    
         
            -
             
     | 
| 
       101 
     | 
    
         
            -
             
     | 
| 
       102 
     | 
    
         
            -
                    " 
     | 
| 
       103 
     | 
    
         
            -
                    " 
     | 
| 
       104 
     | 
    
         
            -
                    " 
     | 
| 
       105 
     | 
    
         
            -
                    " 
     | 
| 
       106 
     | 
    
         
            -
                    " 
     | 
| 
       107 
     | 
    
         
            -
                    " 
     | 
| 
       108 
     | 
    
         
            -
                    " 
     | 
| 
       109 
     | 
    
         
            -
                    " 
     | 
| 
       110 
     | 
    
         
            -
                    " 
     | 
| 
       111 
     | 
    
         
            -
                    " 
     | 
| 
       112 
     | 
    
         
            -
                    " 
     | 
| 
       113 
     | 
    
         
            -
                    " 
     | 
| 
       114 
     | 
    
         
            -
                    " 
     | 
| 
       115 
     | 
    
         
            -
                    " 
     | 
| 
       116 
     | 
    
         
            -
                    " 
     | 
| 
       117 
     | 
    
         
            -
                    " 
     | 
| 
       118 
     | 
    
         
            -
                    " 
     | 
| 
       119 
     | 
    
         
            -
                    " 
     | 
| 
       120 
     | 
    
         
            -
                    " 
     | 
| 
       121 
     | 
    
         
            -
                    " 
     | 
| 
       122 
     | 
    
         
            -
                    " 
     | 
| 
       123 
     | 
    
         
            -
                    " 
     | 
| 
       124 
     | 
    
         
            -
                    " 
     | 
| 
       125 
     | 
    
         
            -
                    " 
     | 
| 
       126 
     | 
    
         
            -
                    " 
     | 
| 
       127 
     | 
    
         
            -
                    " 
     | 
| 
       128 
     | 
    
         
            -
                    " 
     | 
| 
       129 
     | 
    
         
            -
                    " 
     | 
| 
       130 
     | 
    
         
            -
                    " 
     | 
| 
       131 
     | 
    
         
            -
                    " 
     | 
| 
       132 
     | 
    
         
            -
                    " 
     | 
| 
       133 
     | 
    
         
            -
                    " 
     | 
| 
       134 
     | 
    
         
            -
                    " 
     | 
| 
       135 
     | 
    
         
            -
                    " 
     | 
| 
       136 
     | 
    
         
            -
                    " 
     | 
| 
       137 
     | 
    
         
            -
                    " 
     | 
| 
       138 
     | 
    
         
            -
                    " 
     | 
| 
       139 
     | 
    
         
            -
                    " 
     | 
| 
       140 
     | 
    
         
            -
                    " 
     | 
| 
       141 
     | 
    
         
            -
                    " 
     | 
| 
       142 
     | 
    
         
            -
                    " 
     | 
| 
       143 
     | 
    
         
            -
                    " 
     | 
| 
       144 
     | 
    
         
            -
                    " 
     | 
| 
       145 
     | 
    
         
            -
                    " 
     | 
| 
       146 
     | 
    
         
            -
                    " 
     | 
| 
       147 
     | 
    
         
            -
                    " 
     | 
| 
       148 
     | 
    
         
            -
                    " 
     | 
| 
       149 
     | 
    
         
            -
                    " 
     | 
| 
       150 
     | 
    
         
            -
                    " 
     | 
| 
       151 
     | 
    
         
            -
                    " 
     | 
| 
       152 
     | 
    
         
            -
                    " 
     | 
| 
       153 
     | 
    
         
            -
                    " 
     | 
| 
       154 
     | 
    
         
            -
             
     | 
| 
       155 
     | 
    
         
            -
             
     | 
| 
       156 
     | 
    
         
            -
             
     | 
| 
       157 
     | 
    
         
            -
                    " 
     | 
| 
       158 
     | 
    
         
            -
                    " 
     | 
| 
       159 
     | 
    
         
            -
             
     | 
| 
       160 
     | 
    
         
            -
             
     | 
| 
       161 
     | 
    
         
            -
             
     | 
| 
       162 
     | 
    
         
            -
                 
     | 
| 
       163 
     | 
    
         
            -
             
     | 
| 
       164 
     | 
    
         
            -
             
     | 
| 
       165 
     | 
    
         
            -
             
     | 
| 
       166 
     | 
    
         
            -
             
     | 
| 
       167 
     | 
    
         
            -
             
     | 
| 
       168 
     | 
    
         
            -
             
     | 
| 
       169 
     | 
    
         
            -
             
     | 
| 
       170 
     | 
    
         
            -
             
     | 
| 
       171 
     | 
    
         
            -
             
     | 
| 
       172 
     | 
    
         
            -
             
     | 
| 
       173 
     | 
    
         
            -
             
     | 
| 
       174 
     | 
    
         
            -
             
     | 
| 
       175 
     | 
    
         
            -
             
     | 
| 
       176 
     | 
    
         
            -
             
     | 
| 
       177 
     | 
    
         
            -
             
     | 
| 
       178 
     | 
    
         
            -
             
     | 
| 
       179 
     | 
    
         
            -
             
     | 
| 
       180 
     | 
    
         
            -
             
     | 
| 
       181 
     | 
    
         
            -
                     
     | 
| 
       182 
     | 
    
         
            -
             
     | 
| 
       183 
     | 
    
         
            -
             
     | 
| 
       184 
     | 
    
         
            -
             
     | 
| 
       185 
     | 
    
         
            -
             
     | 
| 
       186 
     | 
    
         
            -
             
     | 
| 
       187 
     | 
    
         
            -
             
     | 
| 
       188 
     | 
    
         
            -
             
     | 
| 
       189 
     | 
    
         
            -
             
     | 
| 
       190 
     | 
    
         
            -
             
     | 
| 
       191 
     | 
    
         
            -
             
     | 
| 
       192 
     | 
    
         
            -
             
     | 
| 
       193 
     | 
    
         
            -
             
     | 
| 
       194 
     | 
    
         
            -
             
     | 
| 
       195 
     | 
    
         
            -
             
     | 
| 
       196 
     | 
    
         
            -
             
     | 
| 
       197 
     | 
    
         
            -
             
     | 
| 
       198 
     | 
    
         
            -
             
     | 
| 
       199 
     | 
    
         
            -
                                     
     | 
| 
       200 
     | 
    
         
            -
                                ]
         
     | 
| 
       201 
     | 
    
         
            -
                            ),
         
     | 
| 
       202 
     | 
    
         
            -
                        ),
         
     | 
| 
       203 
     | 
    
         
            -
                        (
         
     | 
| 
       204 
     | 
    
         
            -
                            time( 
     | 
| 
       205 
     | 
    
         
            -
                            AbstractHolidayCalendar(
         
     | 
| 
       206 
     | 
    
         
            -
                                rules=[
         
     | 
| 
       207 
     | 
    
         
            -
                                     
     | 
| 
       208 
     | 
    
         
            -
             
     | 
| 
       209 
     | 
    
         
            -
             
     | 
| 
       210 
     | 
    
         
            -
             
     | 
| 
       211 
     | 
    
         
            -
             
     | 
| 
       212 
     | 
    
         
            -
             
     | 
| 
       213 
     | 
    
         
            -
             
     | 
| 
       214 
     | 
    
         
            -
             
     | 
| 
       215 
     | 
    
         
            -
             
     | 
| 
       216 
     | 
    
         
            -
             
     | 
| 
      
 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 (
         
     | 
| 
      
 19 
     | 
    
         
            +
                AbstractHolidayCalendar,
         
     | 
| 
      
 20 
     | 
    
         
            +
            )  # , GoodFriday, USLaborDay, USPresidentsDay, USThanksgivingDay
         
     | 
| 
      
 21 
     | 
    
         
            +
            import sys
         
     | 
| 
      
 22 
     | 
    
         
            +
             
     | 
| 
      
 23 
     | 
    
         
            +
            # check python versiOn aNd import accordingly
         
     | 
| 
      
 24 
     | 
    
         
            +
            if sys.version_info >= (3, 9):
         
     | 
| 
      
 25 
     | 
    
         
            +
                # For Python 3.9 and later, import directly
         
     | 
| 
      
 26 
     | 
    
         
            +
                from zoneinfo import ZoneInfo
         
     | 
| 
      
 27 
     | 
    
         
            +
            else:
         
     | 
| 
      
 28 
     | 
    
         
            +
                # For Python 3.8 and earlier, import from backports
         
     | 
| 
      
 29 
     | 
    
         
            +
                from backports.zoneinfo import ZoneInfo
         
     | 
| 
      
 30 
     | 
    
         
            +
             
     | 
| 
      
 31 
     | 
    
         
            +
            from pandas_market_calendars.holidays.cme_globex import (
         
     | 
| 
      
 32 
     | 
    
         
            +
                USMartinLutherKingJrFrom2022,
         
     | 
| 
      
 33 
     | 
    
         
            +
                USMartinLutherKingJrPre2022,
         
     | 
| 
      
 34 
     | 
    
         
            +
                USNewYearsDay,
         
     | 
| 
      
 35 
     | 
    
         
            +
                USPresidentsDayFrom2022,
         
     | 
| 
      
 36 
     | 
    
         
            +
                USPresidentsDayPre2022,
         
     | 
| 
      
 37 
     | 
    
         
            +
                GoodFriday,
         
     | 
| 
      
 38 
     | 
    
         
            +
                USMemorialDayFrom2022,
         
     | 
| 
      
 39 
     | 
    
         
            +
                USMemorialDayPre2022,
         
     | 
| 
      
 40 
     | 
    
         
            +
                USJuneteenthFrom2022,
         
     | 
| 
      
 41 
     | 
    
         
            +
                USIndependenceDayFrom2022,
         
     | 
| 
      
 42 
     | 
    
         
            +
                USIndependenceDayPre2022,
         
     | 
| 
      
 43 
     | 
    
         
            +
                USLaborDay,
         
     | 
| 
      
 44 
     | 
    
         
            +
                USThanksgivingDayFrom2022,
         
     | 
| 
      
 45 
     | 
    
         
            +
                USThanksgivingDayPre2022,
         
     | 
| 
      
 46 
     | 
    
         
            +
                FridayAfterThanksgiving,
         
     | 
| 
      
 47 
     | 
    
         
            +
                ChristmasCME,
         
     | 
| 
      
 48 
     | 
    
         
            +
            )
         
     | 
| 
      
 49 
     | 
    
         
            +
            from .cme_globex_base import CMEGlobexBaseExchangeCalendar
         
     | 
| 
      
 50 
     | 
    
         
            +
             
     | 
| 
      
 51 
     | 
    
         
            +
             
     | 
| 
      
 52 
     | 
    
         
            +
            # from .holidays_us import (Christmas, ChristmasEveBefore1993, ChristmasEveInOrAfter1993, USBlackFridayInOrAfter1993,
         
     | 
| 
      
 53 
     | 
    
         
            +
            #                          USIndependenceDay, USMartinLutherKingJrAfter1998, USMemorialDay, USJuneteenthAfter2022,
         
     | 
| 
      
 54 
     | 
    
         
            +
            #                          USNationalDaysofMourning, USNewYearsDay)
         
     | 
| 
      
 55 
     | 
    
         
            +
             
     | 
| 
      
 56 
     | 
    
         
            +
             
     | 
| 
      
 57 
     | 
    
         
            +
            class CMEGlobexEnergyAndMetalsExchangeCalendar(CMEGlobexBaseExchangeCalendar):
         
     | 
| 
      
 58 
     | 
    
         
            +
                """
         
     | 
| 
      
 59 
     | 
    
         
            +
                Exchange calendar for CME for Energy and Metals products
         
     | 
| 
      
 60 
     | 
    
         
            +
             
     | 
| 
      
 61 
     | 
    
         
            +
                Both follow the same trading/holiday schedule
         
     | 
| 
      
 62 
     | 
    
         
            +
             
     | 
| 
      
 63 
     | 
    
         
            +
                NOT IMPLEMENTED: Dubai Mercantile Exchange (DME) follows this schedule but with holiday exceptions.
         
     | 
| 
      
 64 
     | 
    
         
            +
             
     | 
| 
      
 65 
     | 
    
         
            +
                Energy Products:
         
     | 
| 
      
 66 
     | 
    
         
            +
                  Crude and Refined: https://www.cmegroup.com/trading/energy/crude-and-refined-products.html
         
     | 
| 
      
 67 
     | 
    
         
            +
                  - HO NY Harbor ULSD Futures
         
     | 
| 
      
 68 
     | 
    
         
            +
                  - CL Crude Oil Futures
         
     | 
| 
      
 69 
     | 
    
         
            +
                  - RB RBOB Gasoline Futures
         
     | 
| 
      
 70 
     | 
    
         
            +
                  - MCL Micro WTI Crude Oil Futures
         
     | 
| 
      
 71 
     | 
    
         
            +
                  Natural Gas
         
     | 
| 
      
 72 
     | 
    
         
            +
                  - NG Henry Hub Natural Gas Futures
         
     | 
| 
      
 73 
     | 
    
         
            +
                  - TTF Dutch TTF Natural Gas Calendar Month Futures
         
     | 
| 
      
 74 
     | 
    
         
            +
                  - NN Henry Hub Natural Gas Last Day Financial Futures
         
     | 
| 
      
 75 
     | 
    
         
            +
                  Voluntary Carbon Emissions Offset Futures
         
     | 
| 
      
 76 
     | 
    
         
            +
                  - CGO CBL Core Global Emmissions Offset (C-GEO) Futures
         
     | 
| 
      
 77 
     | 
    
         
            +
                  - NGO CBL Nature-based Global Emissionns Offset Futures
         
     | 
| 
      
 78 
     | 
    
         
            +
                  - GEO CBL Global Emissions Offset Futures
         
     | 
| 
      
 79 
     | 
    
         
            +
             
     | 
| 
      
 80 
     | 
    
         
            +
                Metals Products: https://www.cmegroup.com/markets/metals.html
         
     | 
| 
      
 81 
     | 
    
         
            +
                  Precious Metals
         
     | 
| 
      
 82 
     | 
    
         
            +
                  - GC Gold Futures
         
     | 
| 
      
 83 
     | 
    
         
            +
                  - SI Silver Futures
         
     | 
| 
      
 84 
     | 
    
         
            +
                  - PL Platinum Futures
         
     | 
| 
      
 85 
     | 
    
         
            +
                  Base Metals
         
     | 
| 
      
 86 
     | 
    
         
            +
                  - HG Copper Futures
         
     | 
| 
      
 87 
     | 
    
         
            +
                  - ALI Aluminum Futures
         
     | 
| 
      
 88 
     | 
    
         
            +
                  - QC E-mini Copper Futures
         
     | 
| 
      
 89 
     | 
    
         
            +
                  Ferrous Metals
         
     | 
| 
      
 90 
     | 
    
         
            +
                  - HRC U.S. Midwest Domestic Hot-Rolled Coil Steel (CRU) Index Futures
         
     | 
| 
      
 91 
     | 
    
         
            +
                  - BUS U.S. Midwest Busheling Ferrous Scrap (AMM) Futures
         
     | 
| 
      
 92 
     | 
    
         
            +
                  - TIO Iron Ore 62% Fe, CFR China (Platts) Futures
         
     | 
| 
      
 93 
     | 
    
         
            +
             
     | 
| 
      
 94 
     | 
    
         
            +
                  Sample GLOBEX Trading Times
         
     | 
| 
      
 95 
     | 
    
         
            +
                  https://www.cmegroup.com/markets/energy/crude-oil/light-sweet-crude.contractSpecs.html
         
     | 
| 
      
 96 
     | 
    
         
            +
                  Sunday - Friday: 5:00pm - 4:00 pm CT
         
     | 
| 
      
 97 
     | 
    
         
            +
             
     | 
| 
      
 98 
     | 
    
         
            +
                  Calendar: http://www.cmegroup.com/tools-information/holiday-calendar.html
         
     | 
| 
      
 99 
     | 
    
         
            +
                """
         
     | 
| 
      
 100 
     | 
    
         
            +
             
     | 
| 
      
 101 
     | 
    
         
            +
                aliases = [
         
     | 
| 
      
 102 
     | 
    
         
            +
                    "CMEGlobex_EnergyAndMetals",
         
     | 
| 
      
 103 
     | 
    
         
            +
                    "CMEGlobex_Energy",
         
     | 
| 
      
 104 
     | 
    
         
            +
                    "CMEGlobex_CrudeAndRefined",
         
     | 
| 
      
 105 
     | 
    
         
            +
                    "CMEGlobex_NYHarbor",
         
     | 
| 
      
 106 
     | 
    
         
            +
                    "CMEGlobex_HO",
         
     | 
| 
      
 107 
     | 
    
         
            +
                    "HO",
         
     | 
| 
      
 108 
     | 
    
         
            +
                    "CMEGlobex_Crude",
         
     | 
| 
      
 109 
     | 
    
         
            +
                    "CMEGlobex_CL",
         
     | 
| 
      
 110 
     | 
    
         
            +
                    "CL",
         
     | 
| 
      
 111 
     | 
    
         
            +
                    "CMEGlobex_Gas",
         
     | 
| 
      
 112 
     | 
    
         
            +
                    "CMEGlobex_RB",
         
     | 
| 
      
 113 
     | 
    
         
            +
                    "RB",
         
     | 
| 
      
 114 
     | 
    
         
            +
                    "CMEGlobex_MicroCrude",
         
     | 
| 
      
 115 
     | 
    
         
            +
                    "CMEGlobex_MCL",
         
     | 
| 
      
 116 
     | 
    
         
            +
                    "MCL",
         
     | 
| 
      
 117 
     | 
    
         
            +
                    "CMEGlobex_NatGas",
         
     | 
| 
      
 118 
     | 
    
         
            +
                    "CMEGlobex_NG",
         
     | 
| 
      
 119 
     | 
    
         
            +
                    "NG",
         
     | 
| 
      
 120 
     | 
    
         
            +
                    "CMEGlobex_Dutch_NatGas",
         
     | 
| 
      
 121 
     | 
    
         
            +
                    "CMEGlobex_TTF",
         
     | 
| 
      
 122 
     | 
    
         
            +
                    "TTF",
         
     | 
| 
      
 123 
     | 
    
         
            +
                    "CMEGlobex_LastDay_NatGas",
         
     | 
| 
      
 124 
     | 
    
         
            +
                    "CMEGlobex_NN",
         
     | 
| 
      
 125 
     | 
    
         
            +
                    "NN",
         
     | 
| 
      
 126 
     | 
    
         
            +
                    "CMEGlobex_CarbonOffset",
         
     | 
| 
      
 127 
     | 
    
         
            +
                    "CMEGlobex_CGO",
         
     | 
| 
      
 128 
     | 
    
         
            +
                    "CGO",
         
     | 
| 
      
 129 
     | 
    
         
            +
                    "C-GEO",
         
     | 
| 
      
 130 
     | 
    
         
            +
                    "CMEGlobex_NGO",
         
     | 
| 
      
 131 
     | 
    
         
            +
                    "NGO",
         
     | 
| 
      
 132 
     | 
    
         
            +
                    "CMEGlobex_GEO",
         
     | 
| 
      
 133 
     | 
    
         
            +
                    "GEO",
         
     | 
| 
      
 134 
     | 
    
         
            +
                    "CMEGlobex_Metals",
         
     | 
| 
      
 135 
     | 
    
         
            +
                    "CMEGlobex_PreciousMetals",
         
     | 
| 
      
 136 
     | 
    
         
            +
                    "CMEGlobex_Gold",
         
     | 
| 
      
 137 
     | 
    
         
            +
                    "CMEGlobex_GC",
         
     | 
| 
      
 138 
     | 
    
         
            +
                    "GC",
         
     | 
| 
      
 139 
     | 
    
         
            +
                    "CMEGlobex_Silver",
         
     | 
| 
      
 140 
     | 
    
         
            +
                    "CMEGlobex_SI",
         
     | 
| 
      
 141 
     | 
    
         
            +
                    "SI",
         
     | 
| 
      
 142 
     | 
    
         
            +
                    "CMEGlobex_Platinum",
         
     | 
| 
      
 143 
     | 
    
         
            +
                    "CMEGlobex_PL",
         
     | 
| 
      
 144 
     | 
    
         
            +
                    "PL",
         
     | 
| 
      
 145 
     | 
    
         
            +
                    "CMEGlobex_BaseMetals",
         
     | 
| 
      
 146 
     | 
    
         
            +
                    "CMEGlobex_Copper",
         
     | 
| 
      
 147 
     | 
    
         
            +
                    "CMEGlobex_HG",
         
     | 
| 
      
 148 
     | 
    
         
            +
                    "HG",
         
     | 
| 
      
 149 
     | 
    
         
            +
                    "CMEGlobex_Aluminum",
         
     | 
| 
      
 150 
     | 
    
         
            +
                    "CMEGlobex_ALI",
         
     | 
| 
      
 151 
     | 
    
         
            +
                    "ALI",
         
     | 
| 
      
 152 
     | 
    
         
            +
                    "CMEGlobex_Copper",
         
     | 
| 
      
 153 
     | 
    
         
            +
                    "CMEGlobex_QC",
         
     | 
| 
      
 154 
     | 
    
         
            +
                    "QC",
         
     | 
| 
      
 155 
     | 
    
         
            +
                    "CMEGlobex_FerrousMetals",
         
     | 
| 
      
 156 
     | 
    
         
            +
                    "CMEGlobex_HRC",
         
     | 
| 
      
 157 
     | 
    
         
            +
                    "HRC",
         
     | 
| 
      
 158 
     | 
    
         
            +
                    "CMEGlobex_BUS",
         
     | 
| 
      
 159 
     | 
    
         
            +
                    "BUS",
         
     | 
| 
      
 160 
     | 
    
         
            +
                    "CMEGlobex_TIO",
         
     | 
| 
      
 161 
     | 
    
         
            +
                    "TIO",
         
     | 
| 
      
 162 
     | 
    
         
            +
                ]
         
     | 
| 
      
 163 
     | 
    
         
            +
             
     | 
| 
      
 164 
     | 
    
         
            +
                regular_market_times = {
         
     | 
| 
      
 165 
     | 
    
         
            +
                    "market_open": ((None, time(17), -1),),  # Sunday offset. Central Timezone (CT)
         
     | 
| 
      
 166 
     | 
    
         
            +
                    "market_close": ((None, time(16)),),
         
     | 
| 
      
 167 
     | 
    
         
            +
                }
         
     | 
| 
      
 168 
     | 
    
         
            +
             
     | 
| 
      
 169 
     | 
    
         
            +
                @property
         
     | 
| 
      
 170 
     | 
    
         
            +
                def name(self):
         
     | 
| 
      
 171 
     | 
    
         
            +
                    return "CMEGlobex_EnergyAndMetals"
         
     | 
| 
      
 172 
     | 
    
         
            +
             
     | 
| 
      
 173 
     | 
    
         
            +
                @property
         
     | 
| 
      
 174 
     | 
    
         
            +
                def regular_holidays(self):
         
     | 
| 
      
 175 
     | 
    
         
            +
                    return AbstractHolidayCalendar(
         
     | 
| 
      
 176 
     | 
    
         
            +
                        rules=[
         
     | 
| 
      
 177 
     | 
    
         
            +
                            USNewYearsDay,
         
     | 
| 
      
 178 
     | 
    
         
            +
                            GoodFriday,
         
     | 
| 
      
 179 
     | 
    
         
            +
                            ChristmasCME,
         
     | 
| 
      
 180 
     | 
    
         
            +
                        ]
         
     | 
| 
      
 181 
     | 
    
         
            +
                    )
         
     | 
| 
      
 182 
     | 
    
         
            +
             
     | 
| 
      
 183 
     | 
    
         
            +
                # @property
         
     | 
| 
      
 184 
     | 
    
         
            +
                # def adhoc_holidays(self):
         
     | 
| 
      
 185 
     | 
    
         
            +
                #     return USNationalDaysofMourning
         
     | 
| 
      
 186 
     | 
    
         
            +
             
     | 
| 
      
 187 
     | 
    
         
            +
                @property
         
     | 
| 
      
 188 
     | 
    
         
            +
                def special_closes(self):
         
     | 
| 
      
 189 
     | 
    
         
            +
                    return [
         
     | 
| 
      
 190 
     | 
    
         
            +
                        (
         
     | 
| 
      
 191 
     | 
    
         
            +
                            time(12, tzinfo=ZoneInfo("America/Chicago")),
         
     | 
| 
      
 192 
     | 
    
         
            +
                            AbstractHolidayCalendar(
         
     | 
| 
      
 193 
     | 
    
         
            +
                                rules=[
         
     | 
| 
      
 194 
     | 
    
         
            +
                                    USMartinLutherKingJrPre2022,
         
     | 
| 
      
 195 
     | 
    
         
            +
                                    USPresidentsDayPre2022,
         
     | 
| 
      
 196 
     | 
    
         
            +
                                    USMemorialDayPre2022,
         
     | 
| 
      
 197 
     | 
    
         
            +
                                    USIndependenceDayPre2022,
         
     | 
| 
      
 198 
     | 
    
         
            +
                                    USLaborDay,
         
     | 
| 
      
 199 
     | 
    
         
            +
                                    USThanksgivingDayPre2022,
         
     | 
| 
      
 200 
     | 
    
         
            +
                                ]
         
     | 
| 
      
 201 
     | 
    
         
            +
                            ),
         
     | 
| 
      
 202 
     | 
    
         
            +
                        ),
         
     | 
| 
      
 203 
     | 
    
         
            +
                        (
         
     | 
| 
      
 204 
     | 
    
         
            +
                            time(12, 45, tzinfo=ZoneInfo("America/Chicago")),
         
     | 
| 
      
 205 
     | 
    
         
            +
                            AbstractHolidayCalendar(
         
     | 
| 
      
 206 
     | 
    
         
            +
                                rules=[
         
     | 
| 
      
 207 
     | 
    
         
            +
                                    FridayAfterThanksgiving,
         
     | 
| 
      
 208 
     | 
    
         
            +
                                ]
         
     | 
| 
      
 209 
     | 
    
         
            +
                            ),
         
     | 
| 
      
 210 
     | 
    
         
            +
                        ),
         
     | 
| 
      
 211 
     | 
    
         
            +
                        (
         
     | 
| 
      
 212 
     | 
    
         
            +
                            time(13, 30, tzinfo=ZoneInfo("America/Chicago")),
         
     | 
| 
      
 213 
     | 
    
         
            +
                            AbstractHolidayCalendar(
         
     | 
| 
      
 214 
     | 
    
         
            +
                                rules=[
         
     | 
| 
      
 215 
     | 
    
         
            +
                                    USMartinLutherKingJrFrom2022,
         
     | 
| 
      
 216 
     | 
    
         
            +
                                    USPresidentsDayFrom2022,
         
     | 
| 
      
 217 
     | 
    
         
            +
                                    USMemorialDayFrom2022,
         
     | 
| 
      
 218 
     | 
    
         
            +
                                    USJuneteenthFrom2022,
         
     | 
| 
      
 219 
     | 
    
         
            +
                                    USIndependenceDayFrom2022,
         
     | 
| 
      
 220 
     | 
    
         
            +
                                    USThanksgivingDayFrom2022,
         
     | 
| 
      
 221 
     | 
    
         
            +
                                ]
         
     | 
| 
      
 222 
     | 
    
         
            +
                            ),
         
     | 
| 
      
 223 
     | 
    
         
            +
                        ),
         
     | 
| 
      
 224 
     | 
    
         
            +
                    ]
         
     |