use chrono_tz::Europe;
use super::super::StaticHoursProfile;
use super::REG_0900_1730;
use crate::calendar::SessionRule;
use crate::calendar::rule::MON_FRI;
static EURONEXT_EXTENDED: &[SessionRule] = &[
SessionRule {
days: MON_FRI,
open_ssm: 8 * 3600 + 45 * 60,
close_ssm: 9 * 3600,
},
SessionRule {
days: MON_FRI,
open_ssm: 17 * 3600 + 30 * 60,
close_ssm: 17 * 3600 + 35 * 60,
},
SessionRule {
days: MON_FRI,
open_ssm: 17 * 3600 + 35 * 60,
close_ssm: 17 * 3600 + 40 * 60,
},
];
static DUBLIN_REGULAR: &[SessionRule] = &[SessionRule {
days: MON_FRI,
open_ssm: 9 * 3600,
close_ssm: 17 * 3600 + 28 * 60,
}];
static DUBLIN_EXTENDED: &[SessionRule] = &[
SessionRule {
days: MON_FRI,
open_ssm: 8 * 3600 + 45 * 60,
close_ssm: 9 * 3600,
},
SessionRule {
days: MON_FRI,
open_ssm: 17 * 3600 + 28 * 60,
close_ssm: 17 * 3600 + 30 * 60,
},
SessionRule {
days: MON_FRI,
open_ssm: 17 * 3600 + 30 * 60,
close_ssm: 17 * 3600 + 40 * 60,
},
];
pub(crate) static EURONEXT_PARIS_PROFILE: StaticHoursProfile = StaticHoursProfile {
tz: Europe::Paris,
regular: REG_0900_1730,
extended: EURONEXT_EXTENDED,
has_daily_close: true,
has_weekend_close: true,
};
pub(crate) static EURONEXT_AMS_PROFILE: StaticHoursProfile = StaticHoursProfile {
tz: Europe::Amsterdam,
regular: REG_0900_1730,
extended: EURONEXT_EXTENDED,
has_daily_close: true,
has_weekend_close: true,
};
pub(crate) static EURONEXT_BRU_PROFILE: StaticHoursProfile = StaticHoursProfile {
tz: Europe::Brussels,
regular: REG_0900_1730,
extended: EURONEXT_EXTENDED,
has_daily_close: true,
has_weekend_close: true,
};
pub(crate) static EURONEXT_LIS_PROFILE: StaticHoursProfile = StaticHoursProfile {
tz: Europe::Lisbon,
regular: REG_0900_1730,
extended: EURONEXT_EXTENDED,
has_daily_close: true,
has_weekend_close: true,
};
pub(crate) static EURONEXT_DUB_PROFILE: StaticHoursProfile = StaticHoursProfile {
tz: Europe::Dublin,
regular: DUBLIN_REGULAR,
extended: DUBLIN_EXTENDED,
has_daily_close: true,
has_weekend_close: true,
};
pub(crate) static EURONEXT_MIL_PROFILE: StaticHoursProfile = StaticHoursProfile {
tz: Europe::Rome,
regular: REG_0900_1730,
extended: EURONEXT_EXTENDED,
has_daily_close: true,
has_weekend_close: true,
};