exchange-hours 1.2.2

Exchange trading hours, session boundaries, and calendar-aware bar boundaries. UTC in, UTC out.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
// SPDX-License-Identifier: MIT-0

//! Fixed-current profile values behind [`super::session_profile`].

use chrono_tz::{America, Asia, Australia, Europe, US, UTC};

use super::{FuturesSessionProfile, MarketHoursKey};
use crate::calendar::schedules::ALWAYS_OPEN_RULE;
use crate::calendar::schedules::futures::international::{
    ASX_SPI_200_EXTENDED_DST, ASX_SPI_200_ORDER_ENTRY, ASX_SPI_200_REGULAR,
    BME_IBEX_ORDER_ENTRY_CURRENT, BME_IBEX_REGULAR_CURRENT, EUREX_CURRENT_EXTENDED,
    EUREX_CURRENT_ORDER_ENTRY, EUREX_CURRENT_REGULAR, EUREX_FIXED_INCOME_EXTENDED_CURRENT,
    EUREX_FIXED_INCOME_ORDER_ENTRY_CURRENT, EUREX_FIXED_INCOME_REGULAR_CURRENT,
    EUREX_SMI_ORDER_ENTRY_CURRENT, EUREX_SMI_REGULAR_CURRENT, EURONEXT_INDEX_FUTURES_REGULAR,
    HKEX_INDEX_1630_REGULAR, HKEX_INDEX_AHT_0300_EXTENDED, HKEX_INDEX_PHASE2_ORDER_ENTRY,
    ICE_EUROPE_GILTS_ORDER_ENTRY_CURRENT, ICE_EUROPE_GILTS_REGULAR_CURRENT, OANDA_BRENT_REGULAR,
    OANDA_CHINA50_EXTENDED, OANDA_FX_REGULAR, OANDA_METALS_REGULAR, OANDA_SINGAPORE30_EXTENDED,
    OANDA_TRY_FX_REGULAR, OANDA_US_CONTINUOUS_REGULAR, SGX_CURRENT_EXTENDED,
    SGX_CURRENT_ORDER_ENTRY, SGX_CURRENT_REGULAR, SGX_EQUITY_INDEX_CHINA_EXTENDED_CURRENT,
    SGX_EQUITY_INDEX_CHINA_ORDER_ENTRY_CURRENT, SGX_EQUITY_INDEX_CHINA_REGULAR_CURRENT,
    SGX_EQUITY_INDEX_JAPAN_EXTENDED_CURRENT, SGX_EQUITY_INDEX_JAPAN_ORDER_ENTRY_CURRENT,
    SGX_EQUITY_INDEX_JAPAN_REGULAR_CURRENT, SGX_EQUITY_INDEX_NTR_USD_EXTENDED_CURRENT,
    SGX_EQUITY_INDEX_NTR_USD_ORDER_ENTRY_CURRENT, SGX_EQUITY_INDEX_NTR_USD_REGULAR_CURRENT,
    SGX_EQUITY_INDEX_SINGAPORE_EXTENDED_CURRENT, SGX_EQUITY_INDEX_SINGAPORE_ORDER_ENTRY_CURRENT,
    SGX_EQUITY_INDEX_SINGAPORE_REGULAR_CURRENT, SGX_EQUITY_INDEX_TAIWAN_EXTENDED_CURRENT,
    SGX_EQUITY_INDEX_TAIWAN_ORDER_ENTRY_CURRENT, SGX_EQUITY_INDEX_TAIWAN_REGULAR_CURRENT,
};
use crate::calendar::schedules::futures::us::{
    BITCOIN_EVENT_CONTRACTS_EXTENDED_CURRENT, BITCOIN_EVENT_CONTRACTS_ORDER_ENTRY_CURRENT,
    CBOT_EXTENDED_CURRENT, CBOT_ORDER_ENTRY_CURRENT, CBOT_REGULAR_CURRENT, CFE_EXTENDED,
    CFE_ORDER_ENTRY, CFE_REGULAR, CME_EXTENDED_CURRENT, CME_ORDER_ENTRY_CURRENT, CME_REGULAR,
    COCOA_EXTENDED_CURRENT, COCOA_ORDER_ENTRY_CURRENT, COCOA_REGULAR_CURRENT,
    COFFEE_EXTENDED_CURRENT, COFFEE_ORDER_ENTRY_CURRENT, COFFEE_REGULAR_CURRENT,
    COPPER_TAS_EXTENDED_CURRENT, COTTON_EXTENDED_CURRENT, COTTON_ORDER_ENTRY_CURRENT,
    COTTON_REGULAR_CURRENT, CRYPTOCURRENCY_CURRENT, ENERGY_METALS_EXTENDED_CURRENT,
    ENERGY_METALS_ORDER_ENTRY_CURRENT, EVENT_CONTRACTS_EXTENDED_CURRENT,
    EVENT_CONTRACTS_ORDER_ENTRY_CURRENT, FCOJ_EXTENDED_CURRENT, FCOJ_ORDER_ENTRY_CURRENT,
    FCOJ_REGULAR_CURRENT, FX_CURRENT, GOLD_TAS_EXTENDED_CURRENT, ICE_US_FANG_EXTENDED_CURRENT,
    ICE_US_FANG_ORDER_ENTRY_CURRENT, ICE_US_FANG_REGULAR_CURRENT, ICE_USDX_EXTENDED_CURRENT,
    ICE_USDX_ORDER_ENTRY_CURRENT, ICE_USDX_REGULAR_CURRENT, INTEREST_RATES_CURRENT,
    LIVESTOCK_CURRENT, METALS_TAS_ORDER_ENTRY_2016_01_03, MINI_EXTENDED_CURRENT,
    MINI_ORDER_ENTRY_CURRENT, MINI_REGULAR_CURRENT, NKD_EXTENDED_CURRENT, NKD_ORDER_ENTRY_CURRENT,
    NKD_REGULAR_CURRENT, PALLADIUM_TAS_EXTENDED_CURRENT, PGM_TAS_ORDER_ENTRY_CURRENT,
    PLATINUM_TAS_EXTENDED_CURRENT, ROUGH_RICE_EXTENDED_CURRENT, ROUGH_RICE_ORDER_ENTRY_CURRENT,
    ROUGH_RICE_REGULAR_CURRENT, SILVER_100OZ_EXTENDED_CURRENT, SILVER_TAS_EXTENDED_CURRENT,
    SPOT_QUOTED_EXTENDED_CURRENT, SPOT_QUOTED_ORDER_ENTRY_CURRENT, SUGAR_EXTENDED_CURRENT,
    SUGAR_ORDER_ENTRY_CURRENT, SUGAR_REGULAR_CURRENT, WEATHER_EXTENDED_CURRENT,
    WEATHER_ORDER_ENTRY_CURRENT,
};

// OANDA's own book: one grid each, no dated change, no seasonal switch.
static FUTURES_OANDA_CHINA50: FuturesSessionProfile = FuturesSessionProfile {
    tz: Asia::Singapore,
    regular: &[],
    extended: OANDA_CHINA50_EXTENDED,
    order_entry: &[],
    has_daily_close: true,
    has_weekend_close: true,
};
static FUTURES_ASX_SPI_200: FuturesSessionProfile = FuturesSessionProfile {
    tz: Australia::Sydney,
    regular: ASX_SPI_200_REGULAR,
    extended: ASX_SPI_200_EXTENDED_DST,
    order_entry: ASX_SPI_200_ORDER_ENTRY,
    has_daily_close: true,
    has_weekend_close: true,
};

static FUTURES_HKEX_INDEX: FuturesSessionProfile = FuturesSessionProfile {
    tz: Asia::Hong_Kong,
    regular: HKEX_INDEX_1630_REGULAR,
    extended: HKEX_INDEX_AHT_0300_EXTENDED,
    order_entry: HKEX_INDEX_PHASE2_ORDER_ENTRY,
    has_daily_close: true,
    has_weekend_close: true,
};

static FUTURES_OANDA_SINGAPORE30: FuturesSessionProfile = FuturesSessionProfile {
    tz: Asia::Singapore,
    regular: &[],
    extended: OANDA_SINGAPORE30_EXTENDED,
    order_entry: &[],
    has_daily_close: true,
    has_weekend_close: true,
};

static FUTURES_BME_IBEX: FuturesSessionProfile = FuturesSessionProfile {
    tz: Europe::Madrid,
    regular: BME_IBEX_REGULAR_CURRENT,
    extended: &[],
    order_entry: BME_IBEX_ORDER_ENTRY_CURRENT,
    has_daily_close: true,
    has_weekend_close: true,
};

static FUTURES_ICE_EUROPE_GILTS: FuturesSessionProfile = FuturesSessionProfile {
    tz: Europe::London,
    regular: ICE_EUROPE_GILTS_REGULAR_CURRENT,
    extended: &[],
    order_entry: ICE_EUROPE_GILTS_ORDER_ENTRY_CURRENT,
    has_daily_close: true,
    has_weekend_close: true,
};
static FUTURES_OANDA_FX: FuturesSessionProfile = FuturesSessionProfile {
    tz: America::New_York,
    regular: OANDA_FX_REGULAR,
    extended: &[],
    order_entry: &[],
    has_daily_close: true,
    has_weekend_close: true,
};

static FUTURES_OANDA_TRY_FX: FuturesSessionProfile = FuturesSessionProfile {
    tz: Europe::Berlin,
    regular: OANDA_TRY_FX_REGULAR,
    extended: &[],
    order_entry: &[],
    has_daily_close: true,
    has_weekend_close: true,
};

static FUTURES_OANDA_METALS: FuturesSessionProfile = FuturesSessionProfile {
    tz: America::New_York,
    regular: OANDA_METALS_REGULAR,
    extended: &[],
    order_entry: &[],
    has_daily_close: true,
    has_weekend_close: true,
};

static FUTURES_OANDA_US_INDEX: FuturesSessionProfile = FuturesSessionProfile {
    tz: America::New_York,
    regular: OANDA_US_CONTINUOUS_REGULAR,
    extended: &[],
    order_entry: &[],
    has_daily_close: true,
    has_weekend_close: true,
};

static FUTURES_OANDA_US_COMMODITY: FuturesSessionProfile = FuturesSessionProfile {
    tz: America::New_York,
    regular: OANDA_US_CONTINUOUS_REGULAR,
    extended: &[],
    order_entry: &[],
    has_daily_close: true,
    has_weekend_close: true,
};

static FUTURES_OANDA_BRENT: FuturesSessionProfile = FuturesSessionProfile {
    tz: Europe::London,
    regular: OANDA_BRENT_REGULAR,
    extended: &[],
    order_entry: &[],
    has_daily_close: true,
    has_weekend_close: true,
};

static FUTURES_GLOBEX_EQUITY_INDEX: FuturesSessionProfile = FuturesSessionProfile {
    tz: US::Central,
    regular: CME_REGULAR,
    extended: CME_EXTENDED_CURRENT,
    order_entry: CME_ORDER_ENTRY_CURRENT,
    has_daily_close: true,
    has_weekend_close: true,
};

static FUTURES_GLOBEX_ENERGY: FuturesSessionProfile = FuturesSessionProfile {
    tz: US::Central,
    regular: &[],
    extended: ENERGY_METALS_EXTENDED_CURRENT,
    order_entry: ENERGY_METALS_ORDER_ENTRY_CURRENT,
    has_daily_close: true,
    has_weekend_close: true,
};

// The 100-oz silver family's verified-current 24/7 grid (from 2026-09-12). No
// source states a Pre-Open queue for the 24/7 era, so `order_entry` is empty.
static FUTURES_GLOBEX_SILVER_100OZ: FuturesSessionProfile = FuturesSessionProfile {
    tz: US::Central,
    regular: &[],
    extended: SILVER_100OZ_EXTENDED_CURRENT,
    order_entry: &[],
    has_daily_close: true,
    has_weekend_close: false,
};

static FUTURES_GLOBEX_GRAINS: FuturesSessionProfile = FuturesSessionProfile {
    tz: US::Central,
    regular: CBOT_REGULAR_CURRENT,
    extended: CBOT_EXTENDED_CURRENT,
    order_entry: CBOT_ORDER_ENTRY_CURRENT,
    has_daily_close: true,
    has_weekend_close: true,
};

// The mini grid converged with the standard grain grid on 2022-10-02, so the
// tables are the shared ones under mini names; `mini_grains.rs` holds the
// diverged history that makes the separate key necessary.
static FUTURES_GLOBEX_MINI_GRAINS: FuturesSessionProfile = FuturesSessionProfile {
    tz: US::Central,
    regular: MINI_REGULAR_CURRENT,
    extended: MINI_EXTENDED_CURRENT,
    order_entry: MINI_ORDER_ENTRY_CURRENT,
    has_daily_close: true,
    has_weekend_close: true,
};

// No regular session: weather futures have never been pit-eligible, so the
// whole executable envelope is the CME Globex wrap. `weather.rs` holds the
// 15:15 CT close this family ran on until SER-9519, which is what makes the
// key necessary despite an envelope shared with FX and energy today.
static FUTURES_GLOBEX_WEATHER: FuturesSessionProfile = FuturesSessionProfile {
    tz: US::Central,
    regular: &[],
    extended: WEATHER_EXTENDED_CURRENT,
    order_entry: WEATHER_ORDER_ENTRY_CURRENT,
    has_daily_close: true,
    has_weekend_close: true,
};

// No regular session either: no CME document classifies any part of the
// spot-quoted session as RTH, so the whole Globex wrap is extended.
// `spot_quoted.rs` holds the 2025-06-29 launch and the closed era before it,
// which is what makes this key distinct from `globex_weather` despite an
// identical current envelope.
static FUTURES_GLOBEX_SPOT_QUOTED: FuturesSessionProfile = FuturesSessionProfile {
    tz: US::Central,
    regular: &[],
    extended: SPOT_QUOTED_EXTENDED_CURRENT,
    order_entry: SPOT_QUOTED_ORDER_ENTRY_CURRENT,
    has_daily_close: true,
    has_weekend_close: true,
};

// No regular session either: no CME document about this family splits its
// session into RTH and ETH, so the whole Globex wrap is extended. The 16:00 CT
// close is CME's published daily maintenance boundary, not any contract's
// termination-of-trading time — those are stated expiration times and vary by
// root. `event_contracts.rs` holds the 2022-09-18 launch, the closed era
// before it, and `ECBTC`'s 2026-05-29 departure from scope.
static FUTURES_GLOBEX_EVENT_CONTRACTS: FuturesSessionProfile = FuturesSessionProfile {
    tz: US::Central,
    regular: &[],
    extended: EVENT_CONTRACTS_EXTENDED_CURRENT,
    order_entry: EVENT_CONTRACTS_ORDER_ENTRY_CURRENT,
    has_daily_close: true,
    has_weekend_close: true,
};

// `ECBTC` alone: 24/7 on the sourced intersection of CME's two primaries, so
// the weekday executable leg ends at 15:00 CT and resumes at 16:02, with the
// 16:01 and Saturday 03:45 Pre-Opens as order-entry phases. The Saturday
// 02:00-04:00 window is agreed. `bitcoin_event_contracts.rs` holds the 2023
// listing, the 17:00-15:00 CT era, the 2026-05-29 transition day and six
// notice-dated Saturday extensions.
static FUTURES_GLOBEX_EVENT_CONTRACTS_BTC: FuturesSessionProfile = FuturesSessionProfile {
    tz: US::Central,
    regular: &[],
    extended: BITCOIN_EVENT_CONTRACTS_EXTENDED_CURRENT,
    order_entry: BITCOIN_EVENT_CONTRACTS_ORDER_ENTRY_CURRENT,
    has_daily_close: true,
    has_weekend_close: false,
};

// The five metals Trading at Settlement books. `regular` is empty on all of
// them: the TAS shape is Globex-only in CME's own Rule 524 route enumeration.
// Each opens 17:00 CT Sunday through Thursday and wraps to its own close with
// no Friday-evening reopen, so every inter-trade-date gap exceeds four hours
// and is `Closed`. COMEX gold, silver and copper share one queue in
// `metals_tas.rs`; `pgm_tas.rs` holds NYMEX platinum and palladium.
static FUTURES_GLOBEX_GOLD_TAS: FuturesSessionProfile = FuturesSessionProfile {
    tz: US::Central,
    regular: &[],
    extended: GOLD_TAS_EXTENDED_CURRENT,
    order_entry: METALS_TAS_ORDER_ENTRY_2016_01_03,
    has_daily_close: true,
    has_weekend_close: true,
};

static FUTURES_GLOBEX_SILVER_TAS: FuturesSessionProfile = FuturesSessionProfile {
    tz: US::Central,
    regular: &[],
    extended: SILVER_TAS_EXTENDED_CURRENT,
    order_entry: METALS_TAS_ORDER_ENTRY_2016_01_03,
    has_daily_close: true,
    has_weekend_close: true,
};

static FUTURES_GLOBEX_COPPER_TAS: FuturesSessionProfile = FuturesSessionProfile {
    tz: US::Central,
    regular: &[],
    extended: COPPER_TAS_EXTENDED_CURRENT,
    order_entry: METALS_TAS_ORDER_ENTRY_2016_01_03,
    has_daily_close: true,
    has_weekend_close: true,
};

static FUTURES_GLOBEX_PLATINUM_TAS: FuturesSessionProfile = FuturesSessionProfile {
    tz: US::Central,
    regular: &[],
    extended: PLATINUM_TAS_EXTENDED_CURRENT,
    order_entry: PGM_TAS_ORDER_ENTRY_CURRENT,
    has_daily_close: true,
    has_weekend_close: true,
};

// No 16:00-17:00 CT break: the specification clause that once implied one is
// inherited boilerplate from the outright row, and CME deleted it in 2020.
static FUTURES_GLOBEX_PALLADIUM_TAS: FuturesSessionProfile = FuturesSessionProfile {
    tz: US::Central,
    regular: &[],
    extended: PALLADIUM_TAS_EXTENDED_CURRENT,
    order_entry: PGM_TAS_ORDER_ENTRY_CURRENT,
    has_daily_close: true,
    has_weekend_close: true,
};

static FUTURES_GLOBEX_ROUGH_RICE: FuturesSessionProfile = FuturesSessionProfile {
    tz: US::Central,
    regular: ROUGH_RICE_REGULAR_CURRENT,
    extended: ROUGH_RICE_EXTENDED_CURRENT,
    order_entry: ROUGH_RICE_ORDER_ENTRY_CURRENT,
    has_daily_close: true,
    has_weekend_close: true,
};

static FUTURES_CFE_VIX: FuturesSessionProfile = FuturesSessionProfile {
    tz: US::Central,
    regular: CFE_REGULAR,
    extended: CFE_EXTENDED,
    order_entry: CFE_ORDER_ENTRY,
    has_daily_close: true,
    has_weekend_close: true,
};

static FUTURES_EUREX: FuturesSessionProfile = FuturesSessionProfile {
    tz: Europe::Berlin,
    regular: EUREX_CURRENT_REGULAR,
    extended: EUREX_CURRENT_EXTENDED,
    order_entry: EUREX_CURRENT_ORDER_ENTRY,
    has_daily_close: true,
    has_weekend_close: true,
};

static FUTURES_ICE_US: FuturesSessionProfile = FuturesSessionProfile {
    tz: America::New_York,
    regular: ICE_US_FANG_REGULAR_CURRENT,
    extended: ICE_US_FANG_EXTENDED_CURRENT,
    order_entry: ICE_US_FANG_ORDER_ENTRY_CURRENT,
    has_daily_close: true,
    has_weekend_close: true,
};

static FUTURES_ICE_US_SUGAR: FuturesSessionProfile = FuturesSessionProfile {
    tz: America::New_York,
    regular: SUGAR_REGULAR_CURRENT,
    extended: SUGAR_EXTENDED_CURRENT,
    order_entry: SUGAR_ORDER_ENTRY_CURRENT,
    has_daily_close: true,
    has_weekend_close: true,
};

static FUTURES_COFFEE: FuturesSessionProfile = FuturesSessionProfile {
    tz: America::New_York,
    regular: COFFEE_REGULAR_CURRENT,
    extended: COFFEE_EXTENDED_CURRENT,
    order_entry: COFFEE_ORDER_ENTRY_CURRENT,
    has_daily_close: true,
    has_weekend_close: true,
};

static FUTURES_COCOA: FuturesSessionProfile = FuturesSessionProfile {
    tz: America::New_York,
    regular: COCOA_REGULAR_CURRENT,
    extended: COCOA_EXTENDED_CURRENT,
    order_entry: COCOA_ORDER_ENTRY_CURRENT,
    has_daily_close: true,
    has_weekend_close: true,
};

static FUTURES_COTTON: FuturesSessionProfile = FuturesSessionProfile {
    tz: America::New_York,
    regular: COTTON_REGULAR_CURRENT,
    extended: COTTON_EXTENDED_CURRENT,
    order_entry: COTTON_ORDER_ENTRY_CURRENT,
    has_daily_close: true,
    has_weekend_close: true,
};

static FUTURES_FCOJ: FuturesSessionProfile = FuturesSessionProfile {
    tz: America::New_York,
    regular: FCOJ_REGULAR_CURRENT,
    extended: FCOJ_EXTENDED_CURRENT,
    order_entry: FCOJ_ORDER_ENTRY_CURRENT,
    has_daily_close: true,
    has_weekend_close: true,
};

static FUTURES_ICE_USDX: FuturesSessionProfile = FuturesSessionProfile {
    tz: America::New_York,
    regular: ICE_USDX_REGULAR_CURRENT,
    extended: ICE_USDX_EXTENDED_CURRENT,
    order_entry: ICE_USDX_ORDER_ENTRY_CURRENT,
    has_daily_close: true,
    has_weekend_close: true,
};

static FUTURES_NKD: FuturesSessionProfile = FuturesSessionProfile {
    tz: US::Central,
    regular: NKD_REGULAR_CURRENT,
    extended: NKD_EXTENDED_CURRENT,
    order_entry: NKD_ORDER_ENTRY_CURRENT,
    has_daily_close: true,
    has_weekend_close: true,
};

static FUTURES_EUREX_FIXED_INCOME: FuturesSessionProfile = FuturesSessionProfile {
    tz: Europe::Berlin,
    regular: EUREX_FIXED_INCOME_REGULAR_CURRENT,
    extended: EUREX_FIXED_INCOME_EXTENDED_CURRENT,
    order_entry: EUREX_FIXED_INCOME_ORDER_ENTRY_CURRENT,
    has_daily_close: true,
    has_weekend_close: true,
};

static FUTURES_EUREX_SMI: FuturesSessionProfile = FuturesSessionProfile {
    tz: Europe::Zurich,
    regular: EUREX_SMI_REGULAR_CURRENT,
    extended: &[],
    order_entry: EUREX_SMI_ORDER_ENTRY_CURRENT,
    has_daily_close: true,
    has_weekend_close: true,
};

static FUTURES_EURONEXT_INDEX_FUTURES: FuturesSessionProfile = FuturesSessionProfile {
    tz: Europe::Paris,
    regular: EURONEXT_INDEX_FUTURES_REGULAR,
    extended: &[],
    order_entry: &[],
    has_daily_close: true,
    has_weekend_close: true,
};

static FUTURES_SGX_EQUITY_INDEX_JAPAN: FuturesSessionProfile = FuturesSessionProfile {
    tz: Asia::Singapore,
    regular: SGX_EQUITY_INDEX_JAPAN_REGULAR_CURRENT,
    extended: SGX_EQUITY_INDEX_JAPAN_EXTENDED_CURRENT,
    order_entry: SGX_EQUITY_INDEX_JAPAN_ORDER_ENTRY_CURRENT,
    has_daily_close: true,
    has_weekend_close: true,
};

static FUTURES_SGX_EQUITY_INDEX_CHINA: FuturesSessionProfile = FuturesSessionProfile {
    tz: Asia::Singapore,
    regular: SGX_EQUITY_INDEX_CHINA_REGULAR_CURRENT,
    extended: SGX_EQUITY_INDEX_CHINA_EXTENDED_CURRENT,
    order_entry: SGX_EQUITY_INDEX_CHINA_ORDER_ENTRY_CURRENT,
    has_daily_close: true,
    has_weekend_close: true,
};

static FUTURES_SGX_EQUITY_INDEX_SINGAPORE: FuturesSessionProfile = FuturesSessionProfile {
    tz: Asia::Singapore,
    regular: SGX_EQUITY_INDEX_SINGAPORE_REGULAR_CURRENT,
    extended: SGX_EQUITY_INDEX_SINGAPORE_EXTENDED_CURRENT,
    order_entry: SGX_EQUITY_INDEX_SINGAPORE_ORDER_ENTRY_CURRENT,
    has_daily_close: true,
    has_weekend_close: true,
};

static FUTURES_SGX_EQUITY_INDEX_TAIWAN: FuturesSessionProfile = FuturesSessionProfile {
    tz: Asia::Singapore,
    regular: SGX_EQUITY_INDEX_TAIWAN_REGULAR_CURRENT,
    extended: SGX_EQUITY_INDEX_TAIWAN_EXTENDED_CURRENT,
    order_entry: SGX_EQUITY_INDEX_TAIWAN_ORDER_ENTRY_CURRENT,
    has_daily_close: true,
    has_weekend_close: true,
};

static FUTURES_SGX_EQUITY_INDEX_NTR_USD: FuturesSessionProfile = FuturesSessionProfile {
    tz: Asia::Singapore,
    regular: SGX_EQUITY_INDEX_NTR_USD_REGULAR_CURRENT,
    extended: SGX_EQUITY_INDEX_NTR_USD_EXTENDED_CURRENT,
    order_entry: SGX_EQUITY_INDEX_NTR_USD_ORDER_ENTRY_CURRENT,
    has_daily_close: true,
    has_weekend_close: true,
};

static FUTURES_SGX: FuturesSessionProfile = FuturesSessionProfile {
    tz: Asia::Singapore,
    regular: SGX_CURRENT_REGULAR,
    extended: SGX_CURRENT_EXTENDED,
    order_entry: SGX_CURRENT_ORDER_ENTRY,
    has_daily_close: true,
    has_weekend_close: true,
};

static FUTURES_ALWAYS_OPEN: FuturesSessionProfile = FuturesSessionProfile {
    tz: UTC,
    regular: ALWAYS_OPEN_RULE,
    extended: &[],
    order_entry: &[],
    has_daily_close: false,
    has_weekend_close: false,
};
/// Returns the fixed-current normal-week futures session profile for `key`.
///
/// This is the static current table, not a time selection: it is the family's
/// **summer** grid and is selected by no instant. For most keys that is also
/// the revision timeline's selection at every instant on or after the family's
/// knowledge-bound row (the 2026-08-22 repository review for families whose
/// current order-entry queues have no sourced onset day).
///
/// Two keys are the documented exception, and they are **seasonal**: their
/// grids follow a foreign clock, so the profile in force changes with the
/// venue's own offset even though no revision row dates the change. `Eurex`
/// and `EurexFixedIncome` each ship two grids, and
/// [`super::hours_for_market_hours_key`] selects between them by the Berlin
/// offset — so on a CET (winter) day every morning phase sits one hour off this
/// table ([#77](https://github.com/SharurTrading/exchange-hours-rs/issues/77)).
/// Use [`super::hours_for_market_hours_key`] to resolve the family at a
/// caller's instant, and
/// [`crate::calendar::calendar_for_market_hours_key`], which reselects the
/// product-family profile for every candidate opening day, for scans that
/// cross a transition.
#[must_use]
pub fn session_profile(key: MarketHoursKey) -> &'static FuturesSessionProfile {
    match key {
        MarketHoursKey::GlobexEquityIndex => &FUTURES_GLOBEX_EQUITY_INDEX,
        MarketHoursKey::GlobexEnergy => &FUTURES_GLOBEX_ENERGY,
        MarketHoursKey::GlobexSilver100Oz => &FUTURES_GLOBEX_SILVER_100OZ,
        MarketHoursKey::GlobexGrains => &FUTURES_GLOBEX_GRAINS,
        MarketHoursKey::GlobexMiniGrains => &FUTURES_GLOBEX_MINI_GRAINS,
        MarketHoursKey::GlobexFx => &FX_CURRENT,
        MarketHoursKey::GlobexInterestRates => &INTEREST_RATES_CURRENT,
        MarketHoursKey::GlobexLivestock => &LIVESTOCK_CURRENT,
        MarketHoursKey::GlobexCryptocurrency => &CRYPTOCURRENCY_CURRENT,
        MarketHoursKey::CfeVix => &FUTURES_CFE_VIX,
        MarketHoursKey::Eurex => &FUTURES_EUREX,
        MarketHoursKey::IceUs => &FUTURES_ICE_US,
        MarketHoursKey::IceUsSugar => &FUTURES_ICE_US_SUGAR,
        MarketHoursKey::IceUsCoffee => &FUTURES_COFFEE,
        MarketHoursKey::IceUsCocoa => &FUTURES_COCOA,
        MarketHoursKey::IceUsCotton => &FUTURES_COTTON,
        MarketHoursKey::IceUsOrangeJuice => &FUTURES_FCOJ,
        MarketHoursKey::IceUsDollarIndex => &FUTURES_ICE_USDX,
        MarketHoursKey::GlobexNikkei225Dollar => &FUTURES_NKD,
        MarketHoursKey::EurexFixedIncome => &FUTURES_EUREX_FIXED_INCOME,
        MarketHoursKey::EurexSmi => &FUTURES_EUREX_SMI,
        MarketHoursKey::EuronextIndexFutures => &FUTURES_EURONEXT_INDEX_FUTURES,
        MarketHoursKey::SgxEquityIndexJapan => &FUTURES_SGX_EQUITY_INDEX_JAPAN,
        MarketHoursKey::SgxEquityIndexChina => &FUTURES_SGX_EQUITY_INDEX_CHINA,
        MarketHoursKey::SgxEquityIndexSingapore => &FUTURES_SGX_EQUITY_INDEX_SINGAPORE,
        MarketHoursKey::SgxEquityIndexTaiwan => &FUTURES_SGX_EQUITY_INDEX_TAIWAN,
        MarketHoursKey::SgxEquityIndexNtrUsd => &FUTURES_SGX_EQUITY_INDEX_NTR_USD,
        MarketHoursKey::GlobexRoughRice => &FUTURES_GLOBEX_ROUGH_RICE,
        MarketHoursKey::GlobexWeather => &FUTURES_GLOBEX_WEATHER,
        MarketHoursKey::GlobexSpotQuoted => &FUTURES_GLOBEX_SPOT_QUOTED,
        MarketHoursKey::GlobexEventContracts => &FUTURES_GLOBEX_EVENT_CONTRACTS,
        MarketHoursKey::GlobexEventContractsBtc => &FUTURES_GLOBEX_EVENT_CONTRACTS_BTC,
        MarketHoursKey::GlobexGoldTas => &FUTURES_GLOBEX_GOLD_TAS,
        MarketHoursKey::GlobexSilverTas => &FUTURES_GLOBEX_SILVER_TAS,
        MarketHoursKey::GlobexCopperTas => &FUTURES_GLOBEX_COPPER_TAS,
        MarketHoursKey::GlobexPlatinumTas => &FUTURES_GLOBEX_PLATINUM_TAS,
        MarketHoursKey::GlobexPalladiumTas => &FUTURES_GLOBEX_PALLADIUM_TAS,
        MarketHoursKey::OandaFx => &FUTURES_OANDA_FX,
        MarketHoursKey::OandaTryFx => &FUTURES_OANDA_TRY_FX,
        MarketHoursKey::OandaMetals => &FUTURES_OANDA_METALS,
        MarketHoursKey::OandaUsIndexCfd | MarketHoursKey::OandaUsBondCfd => &FUTURES_OANDA_US_INDEX,
        MarketHoursKey::OandaUsCommodityCfd => &FUTURES_OANDA_US_COMMODITY,
        MarketHoursKey::OandaBrent => &FUTURES_OANDA_BRENT,
        MarketHoursKey::OandaChina50Cfd => &FUTURES_OANDA_CHINA50,
        MarketHoursKey::OandaSingapore30Cfd => &FUTURES_OANDA_SINGAPORE30,
        MarketHoursKey::AsxSpi200 => &FUTURES_ASX_SPI_200,
        MarketHoursKey::BmeIbex => &FUTURES_BME_IBEX,
        MarketHoursKey::HkexIndexFutures => &FUTURES_HKEX_INDEX,
        MarketHoursKey::IceEuropeGilts => &FUTURES_ICE_EUROPE_GILTS,
        MarketHoursKey::Sgx => &FUTURES_SGX,
        MarketHoursKey::AlwaysOpen => &FUTURES_ALWAYS_OPEN,
    }
}