import datetime
import time
stock_calendar_it = [
    datetime.date(2017, 1, 2),
    datetime.date(2017, 1, 3),
    datetime.date(2017, 1, 4),
    datetime.date(2017, 1, 5),
    datetime.date(2017, 1, 6),
    datetime.date(2017, 1, 9),
    datetime.date(2017, 1, 10),
    datetime.date(2017, 1, 11),
    datetime.date(2017, 1, 12),
    datetime.date(2017, 1, 13),
    datetime.date(2017, 1, 16),
    datetime.date(2017, 1, 17),
    datetime.date(2017, 1, 18),
    datetime.date(2017, 1, 19),
    datetime.date(2017, 1, 20),
    datetime.date(2017, 1, 23),
    datetime.date(2017, 1, 24),
    datetime.date(2017, 1, 25),
    datetime.date(2017, 1, 26),
    datetime.date(2017, 1, 27),
    datetime.date(2017, 1, 30),
    datetime.date(2017, 1, 31),
    datetime.date(2017, 2, 1),
    datetime.date(2017, 2, 2),
    datetime.date(2017, 2, 3),
    datetime.date(2017, 2, 6),
    datetime.date(2017, 2, 7),
    datetime.date(2017, 2, 8),
    datetime.date(2017, 2, 9),
    datetime.date(2017, 2, 10),
    datetime.date(2017, 2, 13),
    datetime.date(2017, 2, 14),
    datetime.date(2017, 2, 15),
    datetime.date(2017, 2, 16),
    datetime.date(2017, 2, 17),
    datetime.date(2017, 2, 20),
    datetime.date(2017, 2, 21),
    datetime.date(2017, 2, 22),
    datetime.date(2017, 2, 23),
    datetime.date(2017, 2, 24),
    datetime.date(2017, 2, 27),
    datetime.date(2017, 2, 28),
    datetime.date(2017, 3, 1),
    datetime.date(2017, 3, 2),
    datetime.date(2017, 3, 3),
    datetime.date(2017, 3, 6),
    datetime.date(2017, 3, 7),
    datetime.date(2017, 3, 8),
    datetime.date(2017, 3, 9),
    datetime.date(2017, 3, 10),
    datetime.date(2017, 3, 13),
    datetime.date(2017, 3, 14),
    datetime.date(2017, 3, 15),
    datetime.date(2017, 3, 16),
    datetime.date(2017, 3, 17),
    datetime.date(2017, 3, 20),
    datetime.date(2017, 3, 21),
    datetime.date(2017, 3, 22),
    datetime.date(2017, 3, 23),
    datetime.date(2017, 3, 24),
    datetime.date(2017, 3, 27),
    datetime.date(2017, 3, 28),
    datetime.date(2017, 3, 29),
    datetime.date(2017, 3, 30),
    datetime.date(2017, 3, 31),
    datetime.date(2017, 4, 3),
    datetime.date(2017, 4, 4),
    datetime.date(2017, 4, 5),
    datetime.date(2017, 4, 6),
    datetime.date(2017, 4, 7),
    datetime.date(2017, 4, 10),
    datetime.date(2017, 4, 11),
    datetime.date(2017, 4, 12),
    datetime.date(2017, 4, 13),
    datetime.date(2017, 4, 15),
    datetime.date(2017, 4, 18),
    datetime.date(2017, 4, 19),
    datetime.date(2017, 4, 20),
    datetime.date(2017, 4, 21),
    datetime.date(2017, 4, 24),
    datetime.date(2017, 4, 25),
    datetime.date(2017, 4, 26),
    datetime.date(2017, 4, 27),
    datetime.date(2017, 4, 28),
    datetime.date(2017, 5, 2),
    datetime.date(2017, 5, 3),
    datetime.date(2017, 5, 4),
    datetime.date(2017, 5, 5),
    datetime.date(2017, 5, 8),
    datetime.date(2017, 5, 9),
    datetime.date(2017, 5, 10),
    datetime.date(2017, 5, 11),
    datetime.date(2017, 5, 12),
    datetime.date(2017, 5, 15),
    datetime.date(2017, 5, 16),
    datetime.date(2017, 5, 17),
    datetime.date(2017, 5, 18),
    datetime.date(2017, 5, 19),
    datetime.date(2017, 5, 22),
    datetime.date(2017, 5, 23),
    datetime.date(2017, 5, 24),
    datetime.date(2017, 5, 25),
    datetime.date(2017, 5, 26),
    datetime.date(2017, 5, 29),
    datetime.date(2017, 5, 30),
    datetime.date(2017, 5, 31),
    datetime.date(2017, 6, 1),
    datetime.date(2017, 6, 2),
    datetime.date(2017, 6, 5),
    datetime.date(2017, 6, 6),
    datetime.date(2017, 6, 7),
    datetime.date(2017, 6, 8),
    datetime.date(2017, 6, 9),
    datetime.date(2017, 6, 12),
    datetime.date(2017, 6, 13),
    datetime.date(2017, 6, 14),
    datetime.date(2017, 6, 15),
    datetime.date(2017, 6, 16),
    datetime.date(2017, 6, 19),
    datetime.date(2017, 6, 20),
    datetime.date(2017, 6, 21),
    datetime.date(2017, 6, 22),
    datetime.date(2017, 6, 23),
    datetime.date(2017, 6, 26),
    datetime.date(2017, 6, 27),
    datetime.date(2017, 6, 28),
    datetime.date(2017, 6, 29),
    datetime.date(2017, 6, 30),
    datetime.date(2017, 7, 3),
    datetime.date(2017, 7, 4),
    datetime.date(2017, 7, 5),
    datetime.date(2017, 7, 6),
    datetime.date(2017, 7, 7),
    datetime.date(2017, 7, 10),
    datetime.date(2017, 7, 11),
    datetime.date(2017, 7, 12),
    datetime.date(2017, 7, 13),
    datetime.date(2017, 7, 14),
    datetime.date(2017, 7, 17),
    datetime.date(2017, 7, 18),
    datetime.date(2017, 7, 19),
    datetime.date(2017, 7, 20),
    datetime.date(2017, 7, 21),
    datetime.date(2017, 7, 24),
    datetime.date(2017, 7, 25),
    datetime.date(2017, 7, 26),
    datetime.date(2017, 7, 27),
    datetime.date(2017, 7, 28),
    datetime.date(2017, 7, 31),
    datetime.date(2017, 8, 1),
    datetime.date(2017, 8, 2),
    datetime.date(2017, 8, 3),
    datetime.date(2017, 8, 4),
    datetime.date(2017, 8, 7),
    datetime.date(2017, 8, 8),
    datetime.date(2017, 8, 9),
    datetime.date(2017, 8, 10),
    datetime.date(2017, 8, 11),
    datetime.date(2017, 8, 14),
    datetime.date(2017, 8, 16),
    datetime.date(2017, 8, 17),
    datetime.date(2017, 8, 18),
    datetime.date(2017, 8, 21),
    datetime.date(2017, 8, 22),
    datetime.date(2017, 8, 23),
    datetime.date(2017, 8, 24),
    datetime.date(2017, 8, 25),
    datetime.date(2017, 8, 28),
    datetime.date(2017, 8, 29),
    datetime.date(2017, 8, 30),
    datetime.date(2017, 8, 31),
    datetime.date(2017, 9, 1),
    datetime.date(2017, 9, 4),
    datetime.date(2017, 9, 5),
    datetime.date(2017, 9, 6),
    datetime.date(2017, 9, 7),
    datetime.date(2017, 9, 8),
    datetime.date(2017, 9, 11),
    datetime.date(2017, 9, 12),
    datetime.date(2017, 9, 13),
    datetime.date(2017, 9, 14),
    datetime.date(2017, 9, 15),
    datetime.date(2017, 9, 18),
    datetime.date(2017, 9, 19),
    datetime.date(2017, 9, 20),
    datetime.date(2017, 9, 21),
    datetime.date(2017, 9, 22),
    datetime.date(2017, 9, 25),
    datetime.date(2017, 9, 26),
    datetime.date(2017, 9, 27),
    datetime.date(2017, 9, 28),
    datetime.date(2017, 9, 29),
    datetime.date(2017, 10, 2),
    datetime.date(2017, 10, 3),
    datetime.date(2017, 10, 4),
    datetime.date(2017, 10, 5),
    datetime.date(2017, 10, 6),
    datetime.date(2017, 10, 9),
    datetime.date(2017, 10, 10),
    datetime.date(2017, 10, 11),
    datetime.date(2017, 10, 12),
    datetime.date(2017, 10, 13),
    datetime.date(2017, 10, 16),
    datetime.date(2017, 10, 17),
    datetime.date(2017, 10, 18),
    datetime.date(2017, 10, 19),
    datetime.date(2017, 10, 20),
    datetime.date(2017, 10, 23),
    datetime.date(2017, 10, 24),
    datetime.date(2017, 10, 25),
    datetime.date(2017, 10, 26),
    datetime.date(2017, 10, 27),
    datetime.date(2017, 10, 30),
    datetime.date(2017, 10, 31),
    datetime.date(2017, 11, 1),
    datetime.date(2017, 11, 2),
    datetime.date(2017, 11, 3),
    datetime.date(2017, 11, 6),
    datetime.date(2017, 11, 7),
    datetime.date(2017, 11, 8),
    datetime.date(2017, 11, 9),
    datetime.date(2017, 11, 10),
    datetime.date(2017, 11, 13),
    datetime.date(2017, 11, 14),
    datetime.date(2017, 11, 15),
    datetime.date(2017, 11, 16),
    datetime.date(2017, 11, 17),
    datetime.date(2017, 11, 20),
    datetime.date(2017, 11, 21),
    datetime.date(2017, 11, 22),
    datetime.date(2017, 11, 23),
    datetime.date(2017, 11, 24),
    datetime.date(2017, 11, 27),
    datetime.date(2017, 11, 28),
    datetime.date(2017, 11, 29),
    datetime.date(2017, 11, 30),
    datetime.date(2017, 12, 1),
    datetime.date(2017, 12, 4),
    datetime.date(2017, 12, 5),
    datetime.date(2017, 12, 6),
    datetime.date(2017, 12, 7),
    datetime.date(2017, 12, 8),
    datetime.date(2017, 12, 11),
    datetime.date(2017, 12, 12),
    datetime.date(2017, 12, 13),
    datetime.date(2017, 12, 14),
    datetime.date(2017, 12, 15),
    datetime.date(2017, 12, 18),
    datetime.date(2017, 12, 19),
    datetime.date(2017, 12, 20),
    datetime.date(2017, 12, 21),
    datetime.date(2017, 12, 22),
    datetime.date(2017, 12, 23),
    datetime.date(2017, 12, 27),
    datetime.date(2017, 12, 28),
    datetime.date(2017, 12, 29)
]
stock_calendar_de = [
    datetime.date(2017, 1, 2),
    datetime.date(2017, 1, 3),
    datetime.date(2017, 1, 4),
    datetime.date(2017, 1, 5),
    datetime.date(2017, 1, 6),
    datetime.date(2017, 1, 9),
    datetime.date(2017, 1, 10),
    datetime.date(2017, 1, 11),
    datetime.date(2017, 1, 12),
    datetime.date(2017, 1, 13),
    datetime.date(2017, 1, 16),
    datetime.date(2017, 1, 17),
    datetime.date(2017, 1, 18),
    datetime.date(2017, 1, 19),
    datetime.date(2017, 1, 20),
    datetime.date(2017, 1, 23),
    datetime.date(2017, 1, 24),
    datetime.date(2017, 1, 25),
    datetime.date(2017, 1, 26),
    datetime.date(2017, 1, 27),
    datetime.date(2017, 1, 30),
    datetime.date(2017, 1, 31),
    datetime.date(2017, 2, 1),
    datetime.date(2017, 2, 2),
    datetime.date(2017, 2, 3),
    datetime.date(2017, 2, 6),
    datetime.date(2017, 2, 7),
    datetime.date(2017, 2, 8),
    datetime.date(2017, 2, 9),
    datetime.date(2017, 2, 10),
    datetime.date(2017, 2, 13),
    datetime.date(2017, 2, 14),
    datetime.date(2017, 2, 15),
    datetime.date(2017, 2, 16),
    datetime.date(2017, 2, 17),
    datetime.date(2017, 2, 20),
    datetime.date(2017, 2, 21),
    datetime.date(2017, 2, 22),
    datetime.date(2017, 2, 23),
    datetime.date(2017, 2, 24),
    datetime.date(2017, 2, 27),
    datetime.date(2017, 2, 28),
    datetime.date(2017, 3, 1),
    datetime.date(2017, 3, 2),
    datetime.date(2017, 3, 3),
    datetime.date(2017, 3, 6),
    datetime.date(2017, 3, 7),
    datetime.date(2017, 3, 8),
    datetime.date(2017, 3, 9),
    datetime.date(2017, 3, 10),
    datetime.date(2017, 3, 13),
    datetime.date(2017, 3, 14),
    datetime.date(2017, 3, 15),
    datetime.date(2017, 3, 16),
    datetime.date(2017, 3, 17),
    datetime.date(2017, 3, 20),
    datetime.date(2017, 3, 21),
    datetime.date(2017, 3, 22),
    datetime.date(2017, 3, 23),
    datetime.date(2017, 3, 24),
    datetime.date(2017, 3, 27),
    datetime.date(2017, 3, 28),
    datetime.date(2017, 3, 29),
    datetime.date(2017, 3, 30),
    datetime.date(2017, 3, 31),
    datetime.date(2017, 4, 3),
    datetime.date(2017, 4, 4),
    datetime.date(2017, 4, 5),
    datetime.date(2017, 4, 6),
    datetime.date(2017, 4, 7),
    datetime.date(2017, 4, 10),
    datetime.date(2017, 4, 11),
    datetime.date(2017, 4, 12),
    datetime.date(2017, 4, 13),
    datetime.date(2017, 4, 18),
    datetime.date(2017, 4, 19),
    datetime.date(2017, 4, 20),
    datetime.date(2017, 4, 21),
    datetime.date(2017, 4, 24),
    datetime.date(2017, 4, 25),
    datetime.date(2017, 4, 26),
    datetime.date(2017, 4, 27),
    datetime.date(2017, 4, 28),
    datetime.date(2017, 5, 2),
    datetime.date(2017, 5, 3),
    datetime.date(2017, 5, 4),
    datetime.date(2017, 5, 5),
    datetime.date(2017, 5, 8),
    datetime.date(2017, 5, 9),
    datetime.date(2017, 5, 10),
    datetime.date(2017, 5, 11),
    datetime.date(2017, 5, 12),
    datetime.date(2017, 5, 15),
    datetime.date(2017, 5, 16),
    datetime.date(2017, 5, 17),
    datetime.date(2017, 5, 18),
    datetime.date(2017, 5, 19),
    datetime.date(2017, 5, 22),
    datetime.date(2017, 5, 23),
    datetime.date(2017, 5, 24),
    datetime.date(2017, 5, 25),
    datetime.date(2017, 5, 26),
    datetime.date(2017, 5, 29),
    datetime.date(2017, 5, 30),
    datetime.date(2017, 5, 31),
    datetime.date(2017, 6, 1),
    datetime.date(2017, 6, 2),
    datetime.date(2017, 6, 6),
    datetime.date(2017, 6, 7),
    datetime.date(2017, 6, 8),
    datetime.date(2017, 6, 9),
    datetime.date(2017, 6, 12),
    datetime.date(2017, 6, 13),
    datetime.date(2017, 6, 14),
    datetime.date(2017, 6, 15),
    datetime.date(2017, 6, 16),
    datetime.date(2017, 6, 19),
    datetime.date(2017, 6, 20),
    datetime.date(2017, 6, 21),
    datetime.date(2017, 6, 22),
    datetime.date(2017, 6, 23),
    datetime.date(2017, 6, 26),
    datetime.date(2017, 6, 27),
    datetime.date(2017, 6, 28),
    datetime.date(2017, 6, 29),
    datetime.date(2017, 6, 30),
    datetime.date(2017, 7, 3),
    datetime.date(2017, 7, 4),
    datetime.date(2017, 7, 5),
    datetime.date(2017, 7, 6),
    datetime.date(2017, 7, 7),
    datetime.date(2017, 7, 10),
    datetime.date(2017, 7, 11),
    datetime.date(2017, 7, 12),
    datetime.date(2017, 7, 13),
    datetime.date(2017, 7, 14),
    datetime.date(2017, 7, 17),
    datetime.date(2017, 7, 18),
    datetime.date(2017, 7, 19),
    datetime.date(2017, 7, 20),
    datetime.date(2017, 7, 21),
    datetime.date(2017, 7, 24),
    datetime.date(2017, 7, 25),
    datetime.date(2017, 7, 26),
    datetime.date(2017, 7, 27),
    datetime.date(2017, 7, 28),
    datetime.date(2017, 7, 31),
    datetime.date(2017, 8, 1),
    datetime.date(2017, 8, 2),
    datetime.date(2017, 8, 3),
    datetime.date(2017, 8, 4),
    datetime.date(2017, 8, 7),
    datetime.date(2017, 8, 8),
    datetime.date(2017, 8, 9),
    datetime.date(2017, 8, 10),
    datetime.date(2017, 8, 11),
    datetime.date(2017, 8, 14),
    datetime.date(2017, 8, 16),
    datetime.date(2017, 8, 17),
    datetime.date(2017, 8, 18),
    datetime.date(2017, 8, 21),
    datetime.date(2017, 8, 22),
    datetime.date(2017, 8, 23),
    datetime.date(2017, 8, 24),
    datetime.date(2017, 8, 25),
    datetime.date(2017, 8, 28),
    datetime.date(2017, 8, 29),
    datetime.date(2017, 8, 30),
    datetime.date(2017, 8, 31),
    datetime.date(2017, 9, 1),
    datetime.date(2017, 9, 4),
    datetime.date(2017, 9, 5),
    datetime.date(2017, 9, 6),
    datetime.date(2017, 9, 7),
    datetime.date(2017, 9, 8),
    datetime.date(2017, 9, 11),
    datetime.date(2017, 9, 12),
    datetime.date(2017, 9, 13),
    datetime.date(2017, 9, 14),
    datetime.date(2017, 9, 15),
    datetime.date(2017, 9, 18),
    datetime.date(2017, 9, 19),
    datetime.date(2017, 9, 20),
    datetime.date(2017, 9, 21),
    datetime.date(2017, 9, 22),
    datetime.date(2017, 9, 25),
    datetime.date(2017, 9, 26),
    datetime.date(2017, 9, 27),
    datetime.date(2017, 9, 28),
    datetime.date(2017, 9, 29),
    datetime.date(2017, 10, 2),
    datetime.date(2017, 10, 4),
    datetime.date(2017, 10, 5),
    datetime.date(2017, 10, 6),
    datetime.date(2017, 10, 9),
    datetime.date(2017, 10, 10),
    datetime.date(2017, 10, 11),
    datetime.date(2017, 10, 12),
    datetime.date(2017, 10, 13),
    datetime.date(2017, 10, 16),
    datetime.date(2017, 10, 17),
    datetime.date(2017, 10, 18),
    datetime.date(2017, 10, 19),
    datetime.date(2017, 10, 20),
    datetime.date(2017, 10, 23),
    datetime.date(2017, 10, 24),
    datetime.date(2017, 10, 25),
    datetime.date(2017, 10, 26),
    datetime.date(2017, 10, 27),
    datetime.date(2017, 10, 30),
    datetime.date(2017, 11, 1),
    datetime.date(2017, 11, 2),
    datetime.date(2017, 11, 3),
    datetime.date(2017, 11, 6),
    datetime.date(2017, 11, 7),
    datetime.date(2017, 11, 8),
    datetime.date(2017, 11, 9),
    datetime.date(2017, 11, 10),
    datetime.date(2017, 11, 13),
    datetime.date(2017, 11, 14),
    datetime.date(2017, 11, 15),
    datetime.date(2017, 11, 16),
    datetime.date(2017, 11, 17),
    datetime.date(2017, 11, 20),
    datetime.date(2017, 11, 21),
    datetime.date(2017, 11, 22),
    datetime.date(2017, 11, 23),
    datetime.date(2017, 11, 24),
    datetime.date(2017, 11, 27),
    datetime.date(2017, 11, 28),
    datetime.date(2017, 11, 29),
    datetime.date(2017, 11, 30),
    datetime.date(2017, 12, 1),
    datetime.date(2017, 12, 4),
    datetime.date(2017, 12, 5),
    datetime.date(2017, 12, 6),
    datetime.date(2017, 12, 7),
    datetime.date(2017, 12, 8),
    datetime.date(2017, 12, 11),
    datetime.date(2017, 12, 12),
    datetime.date(2017, 12, 13),
    datetime.date(2017, 12, 14),
    datetime.date(2017, 12, 15),
    datetime.date(2017, 12, 18),
    datetime.date(2017, 12, 19),
    datetime.date(2017, 12, 20),
    datetime.date(2017, 12, 21),
    datetime.date(2017, 12, 22),
    datetime.date(2017, 12, 27),
    datetime.date(2017, 12, 28),
    datetime.date(2017, 12, 29)
]
stock_calendar_uk = [
    datetime.date(2017, 1, 2),
    datetime.date(2017, 1, 3),
    datetime.date(2017, 1, 4),
    datetime.date(2017, 1, 5),
    datetime.date(2017, 1, 6),
    datetime.date(2017, 1, 9),
    datetime.date(2017, 1, 10),
    datetime.date(2017, 1, 11),
    datetime.date(2017, 1, 12),
    datetime.date(2017, 1, 13),
    datetime.date(2017, 1, 16),
    datetime.date(2017, 1, 17),
    datetime.date(2017, 1, 18),
    datetime.date(2017, 1, 19),
    datetime.date(2017, 1, 20),
    datetime.date(2017, 1, 23),
    datetime.date(2017, 1, 24),
    datetime.date(2017, 1, 25),
    datetime.date(2017, 1, 26),
    datetime.date(2017, 1, 27),
    datetime.date(2017, 1, 30),
    datetime.date(2017, 1, 31),
    datetime.date(2017, 2, 1),
    datetime.date(2017, 2, 2),
    datetime.date(2017, 2, 3),
    datetime.date(2017, 2, 6),
    datetime.date(2017, 2, 7),
    datetime.date(2017, 2, 8),
    datetime.date(2017, 2, 9),
    datetime.date(2017, 2, 10),
    datetime.date(2017, 2, 13),
    datetime.date(2017, 2, 14),
    datetime.date(2017, 2, 15),
    datetime.date(2017, 2, 16),
    datetime.date(2017, 2, 17),
    datetime.date(2017, 2, 20),
    datetime.date(2017, 2, 21),
    datetime.date(2017, 2, 22),
    datetime.date(2017, 2, 23),
    datetime.date(2017, 2, 24),
    datetime.date(2017, 2, 27),
    datetime.date(2017, 2, 28),
    datetime.date(2017, 3, 1),
    datetime.date(2017, 3, 2),
    datetime.date(2017, 3, 3),
    datetime.date(2017, 3, 6),
    datetime.date(2017, 3, 7),
    datetime.date(2017, 3, 8),
    datetime.date(2017, 3, 9),
    datetime.date(2017, 3, 10),
    datetime.date(2017, 3, 13),
    datetime.date(2017, 3, 14),
    datetime.date(2017, 3, 15),
    datetime.date(2017, 3, 16),
    datetime.date(2017, 3, 17),
    datetime.date(2017, 3, 20),
    datetime.date(2017, 3, 21),
    datetime.date(2017, 3, 22),
    datetime.date(2017, 3, 23),
    datetime.date(2017, 3, 24),
    datetime.date(2017, 3, 27),
    datetime.date(2017, 3, 28),
    datetime.date(2017, 3, 29),
    datetime.date(2017, 3, 30),
    datetime.date(2017, 3, 31),
    datetime.date(2017, 4, 3),
    datetime.date(2017, 4, 4),
    datetime.date(2017, 4, 5),
    datetime.date(2017, 4, 6),
    datetime.date(2017, 4, 7),
    datetime.date(2017, 4, 10),
    datetime.date(2017, 4, 11),
    datetime.date(2017, 4, 12),
    datetime.date(2017, 4, 13),
    datetime.date(2017, 4, 18),
    datetime.date(2017, 4, 19),
    datetime.date(2017, 4, 20),
    datetime.date(2017, 4, 21),
    datetime.date(2017, 4, 24),
    datetime.date(2017, 4, 25),
    datetime.date(2017, 4, 26),
    datetime.date(2017, 4, 27),
    datetime.date(2017, 4, 28),
    datetime.date(2017, 5, 2),
    datetime.date(2017, 5, 3),
    datetime.date(2017, 5, 4),
    datetime.date(2017, 5, 5),
    datetime.date(2017, 5, 8),
    datetime.date(2017, 5, 9),
    datetime.date(2017, 5, 10),
    datetime.date(2017, 5, 11),
    datetime.date(2017, 5, 12),
    datetime.date(2017, 5, 15),
    datetime.date(2017, 5, 16),
    datetime.date(2017, 5, 17),
    datetime.date(2017, 5, 18),
    datetime.date(2017, 5, 19),
    datetime.date(2017, 5, 22),
    datetime.date(2017, 5, 23),
    datetime.date(2017, 5, 24),
    datetime.date(2017, 5, 25),
    datetime.date(2017, 5, 26),
    datetime.date(2017, 5, 30),
    datetime.date(2017, 5, 31),
    datetime.date(2017, 6, 1),
    datetime.date(2017, 6, 2),
    datetime.date(2017, 6, 5),
    datetime.date(2017, 6, 6),
    datetime.date(2017, 6, 7),
    datetime.date(2017, 6, 8),
    datetime.date(2017, 6, 9),
    datetime.date(2017, 6, 12),
    datetime.date(2017, 6, 13),
    datetime.date(2017, 6, 14),
    datetime.date(2017, 6, 15),
    datetime.date(2017, 6, 16),
    datetime.date(2017, 6, 19),
    datetime.date(2017, 6, 20),
    datetime.date(2017, 6, 21),
    datetime.date(2017, 6, 22),
    datetime.date(2017, 6, 23),
    datetime.date(2017, 6, 26),
    datetime.date(2017, 6, 27),
    datetime.date(2017, 6, 28),
    datetime.date(2017, 6, 29),
    datetime.date(2017, 6, 30),
    datetime.date(2017, 7, 3),
    datetime.date(2017, 7, 4),
    datetime.date(2017, 7, 5),
    datetime.date(2017, 7, 6),
    datetime.date(2017, 7, 7),
    datetime.date(2017, 7, 10),
    datetime.date(2017, 7, 11),
    datetime.date(2017, 7, 12),
    datetime.date(2017, 7, 13),
    datetime.date(2017, 7, 14),
    datetime.date(2017, 7, 17),
    datetime.date(2017, 7, 18),
    datetime.date(2017, 7, 19),
    datetime.date(2017, 7, 20),
    datetime.date(2017, 7, 21),
    datetime.date(2017, 7, 24),
    datetime.date(2017, 7, 25),
    datetime.date(2017, 7, 26),
    datetime.date(2017, 7, 27),
    datetime.date(2017, 7, 28),
    datetime.date(2017, 7, 31),
    datetime.date(2017, 8, 1),
    datetime.date(2017, 8, 2),
    datetime.date(2017, 8, 3),
    datetime.date(2017, 8, 4),
    datetime.date(2017, 8, 7),
    datetime.date(2017, 8, 8),
    datetime.date(2017, 8, 9),
    datetime.date(2017, 8, 10),
    datetime.date(2017, 8, 11),
    datetime.date(2017, 8, 14),
    datetime.date(2017, 8, 16),
    datetime.date(2017, 8, 17),
    datetime.date(2017, 8, 18),
    datetime.date(2017, 8, 21),
    datetime.date(2017, 8, 22),
    datetime.date(2017, 8, 23),
    datetime.date(2017, 8, 24),
    datetime.date(2017, 8, 25),
    datetime.date(2017, 8, 29),
    datetime.date(2017, 8, 30),
    datetime.date(2017, 8, 31),
    datetime.date(2017, 9, 1),
    datetime.date(2017, 9, 4),
    datetime.date(2017, 9, 5),
    datetime.date(2017, 9, 6),
    datetime.date(2017, 9, 7),
    datetime.date(2017, 9, 8),
    datetime.date(2017, 9, 11),
    datetime.date(2017, 9, 12),
    datetime.date(2017, 9, 13),
    datetime.date(2017, 9, 14),
    datetime.date(2017, 9, 15),
    datetime.date(2017, 9, 18),
    datetime.date(2017, 9, 19),
    datetime.date(2017, 9, 20),
    datetime.date(2017, 9, 21),
    datetime.date(2017, 9, 22),
    datetime.date(2017, 9, 25),
    datetime.date(2017, 9, 26),
    datetime.date(2017, 9, 27),
    datetime.date(2017, 9, 28),
    datetime.date(2017, 9, 29),
    datetime.date(2017, 10, 2),
    datetime.date(2017, 10, 3),
    datetime.date(2017, 10, 4),
    datetime.date(2017, 10, 5),
    datetime.date(2017, 10, 6),
    datetime.date(2017, 10, 9),
    datetime.date(2017, 10, 10),
    datetime.date(2017, 10, 11),
    datetime.date(2017, 10, 12),
    datetime.date(2017, 10, 13),
    datetime.date(2017, 10, 16),
    datetime.date(2017, 10, 17),
    datetime.date(2017, 10, 18),
    datetime.date(2017, 10, 19),
    datetime.date(2017, 10, 20),
    datetime.date(2017, 10, 23),
    datetime.date(2017, 10, 24),
    datetime.date(2017, 10, 25),
    datetime.date(2017, 10, 26),
    datetime.date(2017, 10, 27),
    datetime.date(2017, 10, 30),
    datetime.date(2017, 10, 31),
    datetime.date(2017, 11, 1),
    datetime.date(2017, 11, 2),
    datetime.date(2017, 11, 3),
    datetime.date(2017, 11, 6),
    datetime.date(2017, 11, 7),
    datetime.date(2017, 11, 8),
    datetime.date(2017, 11, 9),
    datetime.date(2017, 11, 10),
    datetime.date(2017, 11, 13),
    datetime.date(2017, 11, 14),
    datetime.date(2017, 11, 15),
    datetime.date(2017, 11, 16),
    datetime.date(2017, 11, 17),
    datetime.date(2017, 11, 20),
    datetime.date(2017, 11, 21),
    datetime.date(2017, 11, 22),
    datetime.date(2017, 11, 23),
    datetime.date(2017, 11, 24),
    datetime.date(2017, 11, 27),
    datetime.date(2017, 11, 28),
    datetime.date(2017, 11, 29),
    datetime.date(2017, 11, 30),
    datetime.date(2017, 12, 1),
    datetime.date(2017, 12, 4),
    datetime.date(2017, 12, 5),
    datetime.date(2017, 12, 6),
    datetime.date(2017, 12, 7),
    datetime.date(2017, 12, 8),
    datetime.date(2017, 12, 11),
    datetime.date(2017, 12, 12),
    datetime.date(2017, 12, 13),
    datetime.date(2017, 12, 14),
    datetime.date(2017, 12, 15),
    datetime.date(2017, 12, 18),
    datetime.date(2017, 12, 19),
    datetime.date(2017, 12, 20),
    datetime.date(2017, 12, 21),
    datetime.date(2017, 12, 22),
    datetime.date(2017, 12, 27),
    datetime.date(2017, 12, 28),
    datetime.date(2017, 12, 29)
]
stock_calendar_fr = [
    datetime.date(2017, 1, 2),
    datetime.date(2017, 1, 3),
    datetime.date(2017, 1, 4),
    datetime.date(2017, 1, 5),
    datetime.date(2017, 1, 6),
    datetime.date(2017, 1, 9),
    datetime.date(2017, 1, 10),
    datetime.date(2017, 1, 11),
    datetime.date(2017, 1, 12),
    datetime.date(2017, 1, 13),
    datetime.date(2017, 1, 16),
    datetime.date(2017, 1, 17),
    datetime.date(2017, 1, 18),
    datetime.date(2017, 1, 19),
    datetime.date(2017, 1, 20),
    datetime.date(2017, 1, 23),
    datetime.date(2017, 1, 24),
    datetime.date(2017, 1, 25),
    datetime.date(2017, 1, 26),
    datetime.date(2017, 1, 27),
    datetime.date(2017, 1, 30),
    datetime.date(2017, 1, 31),
    datetime.date(2017, 2, 1),
    datetime.date(2017, 2, 2),
    datetime.date(2017, 2, 3),
    datetime.date(2017, 2, 6),
    datetime.date(2017, 2, 7),
    datetime.date(2017, 2, 8),
    datetime.date(2017, 2, 9),
    datetime.date(2017, 2, 10),
    datetime.date(2017, 2, 13),
    datetime.date(2017, 2, 14),
    datetime.date(2017, 2, 15),
    datetime.date(2017, 2, 16),
    datetime.date(2017, 2, 17),
    datetime.date(2017, 2, 20),
    datetime.date(2017, 2, 21),
    datetime.date(2017, 2, 22),
    datetime.date(2017, 2, 23),
    datetime.date(2017, 2, 24),
    datetime.date(2017, 2, 27),
    datetime.date(2017, 2, 28),
    datetime.date(2017, 3, 1),
    datetime.date(2017, 3, 2),
    datetime.date(2017, 3, 3),
    datetime.date(2017, 3, 6),
    datetime.date(2017, 3, 7),
    datetime.date(2017, 3, 8),
    datetime.date(2017, 3, 9),
    datetime.date(2017, 3, 10),
    datetime.date(2017, 3, 13),
    datetime.date(2017, 3, 14),
    datetime.date(2017, 3, 15),
    datetime.date(2017, 3, 16),
    datetime.date(2017, 3, 17),
    datetime.date(2017, 3, 20),
    datetime.date(2017, 3, 21),
    datetime.date(2017, 3, 22),
    datetime.date(2017, 3, 23),
    datetime.date(2017, 3, 24),
    datetime.date(2017, 3, 27),
    datetime.date(2017, 3, 28),
    datetime.date(2017, 3, 29),
    datetime.date(2017, 3, 30),
    datetime.date(2017, 3, 31),
    datetime.date(2017, 4, 3),
    datetime.date(2017, 4, 4),
    datetime.date(2017, 4, 5),
    datetime.date(2017, 4, 6),
    datetime.date(2017, 4, 7),
    datetime.date(2017, 4, 10),
    datetime.date(2017, 4, 11),
    datetime.date(2017, 4, 12),
    datetime.date(2017, 4, 13),
    datetime.date(2017, 4, 18),
    datetime.date(2017, 4, 19),
    datetime.date(2017, 4, 20),
    datetime.date(2017, 4, 21),
    datetime.date(2017, 4, 24),
    datetime.date(2017, 4, 25),
    datetime.date(2017, 4, 26),
    datetime.date(2017, 4, 27),
    datetime.date(2017, 4, 28),
    datetime.date(2017, 5, 2),
    datetime.date(2017, 5, 3),
    datetime.date(2017, 5, 4),
    datetime.date(2017, 5, 5),
    datetime.date(2017, 5, 8),
    datetime.date(2017, 5, 9),
    datetime.date(2017, 5, 10),
    datetime.date(2017, 5, 11),
    datetime.date(2017, 5, 12),
    datetime.date(2017, 5, 15),
    datetime.date(2017, 5, 16),
    datetime.date(2017, 5, 17),
    datetime.date(2017, 5, 18),
    datetime.date(2017, 5, 19),
    datetime.date(2017, 5, 22),
    datetime.date(2017, 5, 23),
    datetime.date(2017, 5, 24),
    datetime.date(2017, 5, 25),
    datetime.date(2017, 5, 26),
    datetime.date(2017, 5, 29),
    datetime.date(2017, 5, 30),
    datetime.date(2017, 5, 31),
    datetime.date(2017, 6, 1),
    datetime.date(2017, 6, 2),
    datetime.date(2017, 6, 5),
    datetime.date(2017, 6, 6),
    datetime.date(2017, 6, 7),
    datetime.date(2017, 6, 8),
    datetime.date(2017, 6, 9),
    datetime.date(2017, 6, 12),
    datetime.date(2017, 6, 13),
    datetime.date(2017, 6, 14),
    datetime.date(2017, 6, 15),
    datetime.date(2017, 6, 16),
    datetime.date(2017, 6, 19),
    datetime.date(2017, 6, 20),
    datetime.date(2017, 6, 21),
    datetime.date(2017, 6, 22),
    datetime.date(2017, 6, 23),
    datetime.date(2017, 6, 26),
    datetime.date(2017, 6, 27),
    datetime.date(2017, 6, 28),
    datetime.date(2017, 6, 29),
    datetime.date(2017, 6, 30),
    datetime.date(2017, 7, 3),
    datetime.date(2017, 7, 4),
    datetime.date(2017, 7, 5),
    datetime.date(2017, 7, 6),
    datetime.date(2017, 7, 7),
    datetime.date(2017, 7, 10),
    datetime.date(2017, 7, 11),
    datetime.date(2017, 7, 12),
    datetime.date(2017, 7, 13),
    datetime.date(2017, 7, 14),
    datetime.date(2017, 7, 17),
    datetime.date(2017, 7, 18),
    datetime.date(2017, 7, 19),
    datetime.date(2017, 7, 20),
    datetime.date(2017, 7, 21),
    datetime.date(2017, 7, 24),
    datetime.date(2017, 7, 25),
    datetime.date(2017, 7, 26),
    datetime.date(2017, 7, 27),
    datetime.date(2017, 7, 28),
    datetime.date(2017, 7, 31),
    datetime.date(2017, 8, 1),
    datetime.date(2017, 8, 2),
    datetime.date(2017, 8, 3),
    datetime.date(2017, 8, 4),
    datetime.date(2017, 8, 7),
    datetime.date(2017, 8, 8),
    datetime.date(2017, 8, 9),
    datetime.date(2017, 8, 10),
    datetime.date(2017, 8, 11),
    datetime.date(2017, 8, 14),
    datetime.date(2017, 8, 16),
    datetime.date(2017, 8, 17),
    datetime.date(2017, 8, 18),
    datetime.date(2017, 8, 21),
    datetime.date(2017, 8, 22),
    datetime.date(2017, 8, 23),
    datetime.date(2017, 8, 24),
    datetime.date(2017, 8, 25),
    datetime.date(2017, 8, 28),
    datetime.date(2017, 8, 29),
    datetime.date(2017, 8, 30),
    datetime.date(2017, 8, 31),
    datetime.date(2017, 9, 1),
    datetime.date(2017, 9, 4),
    datetime.date(2017, 9, 5),
    datetime.date(2017, 9, 6),
    datetime.date(2017, 9, 7),
    datetime.date(2017, 9, 8),
    datetime.date(2017, 9, 11),
    datetime.date(2017, 9, 12),
    datetime.date(2017, 9, 13),
    datetime.date(2017, 9, 14),
    datetime.date(2017, 9, 15),
    datetime.date(2017, 9, 18),
    datetime.date(2017, 9, 19),
    datetime.date(2017, 9, 20),
    datetime.date(2017, 9, 21),
    datetime.date(2017, 9, 22),
    datetime.date(2017, 9, 25),
    datetime.date(2017, 9, 26),
    datetime.date(2017, 9, 27),
    datetime.date(2017, 9, 28),
    datetime.date(2017, 9, 29),
    datetime.date(2017, 10, 2),
    datetime.date(2017, 10, 3),
    datetime.date(2017, 10, 4),
    datetime.date(2017, 10, 5),
    datetime.date(2017, 10, 6),
    datetime.date(2017, 10, 9),
    datetime.date(2017, 10, 10),
    datetime.date(2017, 10, 11),
    datetime.date(2017, 10, 12),
    datetime.date(2017, 10, 13),
    datetime.date(2017, 10, 16),
    datetime.date(2017, 10, 17),
    datetime.date(2017, 10, 18),
    datetime.date(2017, 10, 19),
    datetime.date(2017, 10, 20),
    datetime.date(2017, 10, 23),
    datetime.date(2017, 10, 24),
    datetime.date(2017, 10, 25),
    datetime.date(2017, 10, 26),
    datetime.date(2017, 10, 27),
    datetime.date(2017, 10, 30),
    datetime.date(2017, 10, 31),
    datetime.date(2017, 11, 1),
    datetime.date(2017, 11, 2),
    datetime.date(2017, 11, 3),
    datetime.date(2017, 11, 6),
    datetime.date(2017, 11, 7),
    datetime.date(2017, 11, 8),
    datetime.date(2017, 11, 9),
    datetime.date(2017, 11, 10),
    datetime.date(2017, 11, 13),
    datetime.date(2017, 11, 14),
    datetime.date(2017, 11, 15),
    datetime.date(2017, 11, 16),
    datetime.date(2017, 11, 17),
    datetime.date(2017, 11, 20),
    datetime.date(2017, 11, 21),
    datetime.date(2017, 11, 22),
    datetime.date(2017, 11, 23),
    datetime.date(2017, 11, 24),
    datetime.date(2017, 11, 27),
    datetime.date(2017, 11, 28),
    datetime.date(2017, 11, 29),
    datetime.date(2017, 11, 30),
    datetime.date(2017, 12, 1),
    datetime.date(2017, 12, 4),
    datetime.date(2017, 12, 5),
    datetime.date(2017, 12, 6),
    datetime.date(2017, 12, 7),
    datetime.date(2017, 12, 8),
    datetime.date(2017, 12, 11),
    datetime.date(2017, 12, 12),
    datetime.date(2017, 12, 13),
    datetime.date(2017, 12, 14),
    datetime.date(2017, 12, 15),
    datetime.date(2017, 12, 18),
    datetime.date(2017, 12, 19),
    datetime.date(2017, 12, 20),
    datetime.date(2017, 12, 21),
    datetime.date(2017, 12, 22),
    datetime.date(2017, 12, 27),
    datetime.date(2017, 12, 28),
    datetime.date(2017, 12, 29)
]
stock_calendar_us = [
    datetime.date(2017, 1, 2),
    datetime.date(2017, 1, 3),
    datetime.date(2017, 1, 4),
    datetime.date(2017, 1, 5),
    datetime.date(2017, 1, 6),
    datetime.date(2017, 1, 9),
    datetime.date(2017, 1, 10),
    datetime.date(2017, 1, 11),
    datetime.date(2017, 1, 12),
    datetime.date(2017, 1, 13),
    datetime.date(2017, 1, 16),
    datetime.date(2017, 1, 17),
    datetime.date(2017, 1, 18),
    datetime.date(2017, 1, 19),
    datetime.date(2017, 1, 20),
    datetime.date(2017, 1, 23),
    datetime.date(2017, 1, 24),
    datetime.date(2017, 1, 25),
    datetime.date(2017, 1, 26),
    datetime.date(2017, 1, 27),
    datetime.date(2017, 1, 30),
    datetime.date(2017, 1, 31),
    datetime.date(2017, 2, 1),
    datetime.date(2017, 2, 2),
    datetime.date(2017, 2, 3),
    datetime.date(2017, 2, 6),
    datetime.date(2017, 2, 7),
    datetime.date(2017, 2, 8),
    datetime.date(2017, 2, 9),
    datetime.date(2017, 2, 10),
    datetime.date(2017, 2, 13),
    datetime.date(2017, 2, 14),
    datetime.date(2017, 2, 15),
    datetime.date(2017, 2, 16),
    datetime.date(2017, 2, 17),
    datetime.date(2017, 2, 21),
    datetime.date(2017, 2, 22),
    datetime.date(2017, 2, 23),
    datetime.date(2017, 2, 24),
    datetime.date(2017, 2, 27),
    datetime.date(2017, 2, 28),
    datetime.date(2017, 3, 1),
    datetime.date(2017, 3, 2),
    datetime.date(2017, 3, 3),
    datetime.date(2017, 3, 6),
    datetime.date(2017, 3, 7),
    datetime.date(2017, 3, 8),
    datetime.date(2017, 3, 9),
    datetime.date(2017, 3, 10),
    datetime.date(2017, 3, 13),
    datetime.date(2017, 3, 14),
    datetime.date(2017, 3, 15),
    datetime.date(2017, 3, 16),
    datetime.date(2017, 3, 17),
    datetime.date(2017, 3, 20),
    datetime.date(2017, 3, 21),
    datetime.date(2017, 3, 22),
    datetime.date(2017, 3, 23),
    datetime.date(2017, 3, 24),
    datetime.date(2017, 3, 27),
    datetime.date(2017, 3, 28),
    datetime.date(2017, 3, 29),
    datetime.date(2017, 3, 30),
    datetime.date(2017, 3, 31),
    datetime.date(2017, 4, 3),
    datetime.date(2017, 4, 4),
    datetime.date(2017, 4, 5),
    datetime.date(2017, 4, 6),
    datetime.date(2017, 4, 7),
    datetime.date(2017, 4, 10),
    datetime.date(2017, 4, 11),
    datetime.date(2017, 4, 12),
    datetime.date(2017, 4, 13),
    datetime.date(2017, 4, 18),
    datetime.date(2017, 4, 19),
    datetime.date(2017, 4, 20),
    datetime.date(2017, 4, 21),
    datetime.date(2017, 4, 24),
    datetime.date(2017, 4, 25),
    datetime.date(2017, 4, 26),
    datetime.date(2017, 4, 27),
    datetime.date(2017, 4, 28),
    datetime.date(2017, 5, 2),
    datetime.date(2017, 5, 3),
    datetime.date(2017, 5, 4),
    datetime.date(2017, 5, 5),
    datetime.date(2017, 5, 8),
    datetime.date(2017, 5, 9),
    datetime.date(2017, 5, 10),
    datetime.date(2017, 5, 11),
    datetime.date(2017, 5, 12),
    datetime.date(2017, 5, 15),
    datetime.date(2017, 5, 16),
    datetime.date(2017, 5, 17),
    datetime.date(2017, 5, 18),
    datetime.date(2017, 5, 19),
    datetime.date(2017, 5, 22),
    datetime.date(2017, 5, 23),
    datetime.date(2017, 5, 24),
    datetime.date(2017, 5, 25),
    datetime.date(2017, 5, 26),
    datetime.date(2017, 5, 30),
    datetime.date(2017, 5, 31),
    datetime.date(2017, 6, 1),
    datetime.date(2017, 6, 2),
    datetime.date(2017, 6, 5),
    datetime.date(2017, 6, 6),
    datetime.date(2017, 6, 7),
    datetime.date(2017, 6, 8),
    datetime.date(2017, 6, 9),
    datetime.date(2017, 6, 12),
    datetime.date(2017, 6, 13),
    datetime.date(2017, 6, 14),
    datetime.date(2017, 6, 15),
    datetime.date(2017, 6, 16),
    datetime.date(2017, 6, 19),
    datetime.date(2017, 6, 20),
    datetime.date(2017, 6, 21),
    datetime.date(2017, 6, 22),
    datetime.date(2017, 6, 23),
    datetime.date(2017, 6, 26),
    datetime.date(2017, 6, 27),
    datetime.date(2017, 6, 28),
    datetime.date(2017, 6, 29),
    datetime.date(2017, 6, 30),
    datetime.date(2017, 7, 3),
    datetime.date(2017, 7, 5),
    datetime.date(2017, 7, 6),
    datetime.date(2017, 7, 7),
    datetime.date(2017, 7, 10),
    datetime.date(2017, 7, 11),
    datetime.date(2017, 7, 12),
    datetime.date(2017, 7, 13),
    datetime.date(2017, 7, 14),
    datetime.date(2017, 7, 17),
    datetime.date(2017, 7, 18),
    datetime.date(2017, 7, 19),
    datetime.date(2017, 7, 20),
    datetime.date(2017, 7, 21),
    datetime.date(2017, 7, 24),
    datetime.date(2017, 7, 25),
    datetime.date(2017, 7, 26),
    datetime.date(2017, 7, 27),
    datetime.date(2017, 7, 28),
    datetime.date(2017, 7, 31),
    datetime.date(2017, 8, 1),
    datetime.date(2017, 8, 2),
    datetime.date(2017, 8, 3),
    datetime.date(2017, 8, 4),
    datetime.date(2017, 8, 7),
    datetime.date(2017, 8, 8),
    datetime.date(2017, 8, 9),
    datetime.date(2017, 8, 10),
    datetime.date(2017, 8, 11),
    datetime.date(2017, 8, 14),
    datetime.date(2017, 8, 16),
    datetime.date(2017, 8, 17),
    datetime.date(2017, 8, 18),
    datetime.date(2017, 8, 21),
    datetime.date(2017, 8, 22),
    datetime.date(2017, 8, 23),
    datetime.date(2017, 8, 24),
    datetime.date(2017, 8, 25),
    datetime.date(2017, 8, 28),
    datetime.date(2017, 8, 29),
    datetime.date(2017, 8, 30),
    datetime.date(2017, 8, 31),
    datetime.date(2017, 9, 1),
    datetime.date(2017, 9, 5),
    datetime.date(2017, 9, 6),
    datetime.date(2017, 9, 7),
    datetime.date(2017, 9, 8),
    datetime.date(2017, 9, 11),
    datetime.date(2017, 9, 12),
    datetime.date(2017, 9, 13),
    datetime.date(2017, 9, 14),
    datetime.date(2017, 9, 15),
    datetime.date(2017, 9, 18),
    datetime.date(2017, 9, 19),
    datetime.date(2017, 9, 20),
    datetime.date(2017, 9, 21),
    datetime.date(2017, 9, 22),
    datetime.date(2017, 9, 25),
    datetime.date(2017, 9, 26),
    datetime.date(2017, 9, 27),
    datetime.date(2017, 9, 28),
    datetime.date(2017, 9, 29),
    datetime.date(2017, 10, 2),
    datetime.date(2017, 10, 3),
    datetime.date(2017, 10, 4),
    datetime.date(2017, 10, 5),
    datetime.date(2017, 10, 6),
    datetime.date(2017, 10, 9),
    datetime.date(2017, 10, 10),
    datetime.date(2017, 10, 11),
    datetime.date(2017, 10, 12),
    datetime.date(2017, 10, 13),
    datetime.date(2017, 10, 16),
    datetime.date(2017, 10, 17),
    datetime.date(2017, 10, 18),
    datetime.date(2017, 10, 19),
    datetime.date(2017, 10, 20),
    datetime.date(2017, 10, 23),
    datetime.date(2017, 10, 24),
    datetime.date(2017, 10, 25),
    datetime.date(2017, 10, 26),
    datetime.date(2017, 10, 27),
    datetime.date(2017, 10, 30),
    datetime.date(2017, 10, 31),
    datetime.date(2017, 11, 1),
    datetime.date(2017, 11, 2),
    datetime.date(2017, 11, 3),
    datetime.date(2017, 11, 6),
    datetime.date(2017, 11, 7),
    datetime.date(2017, 11, 8),
    datetime.date(2017, 11, 9),
    datetime.date(2017, 11, 10),
    datetime.date(2017, 11, 13),
    datetime.date(2017, 11, 14),
    datetime.date(2017, 11, 15),
    datetime.date(2017, 11, 16),
    datetime.date(2017, 11, 17),
    datetime.date(2017, 11, 20),
    datetime.date(2017, 11, 21),
    datetime.date(2017, 11, 22),
    datetime.date(2017, 11, 24),
    datetime.date(2017, 11, 27),
    datetime.date(2017, 11, 28),
    datetime.date(2017, 11, 29),
    datetime.date(2017, 11, 30),
    datetime.date(2017, 12, 1),
    datetime.date(2017, 12, 4),
    datetime.date(2017, 12, 5),
    datetime.date(2017, 12, 6),
    datetime.date(2017, 12, 7),
    datetime.date(2017, 12, 8),
    datetime.date(2017, 12, 11),
    datetime.date(2017, 12, 12),
    datetime.date(2017, 12, 13),
    datetime.date(2017, 12, 14),
    datetime.date(2017, 12, 15),
    datetime.date(2017, 12, 18),
    datetime.date(2017, 12, 19),
    datetime.date(2017, 12, 20),
    datetime.date(2017, 12, 21),
    datetime.date(2017, 12, 22),
    datetime.date(2017, 12, 26),
    datetime.date(2017, 12, 27),
    datetime.date(2017, 12, 28),
    datetime.date(2017, 12, 29)
]
stock_calendar_general = [
    datetime.date(2017, 1, 2),
    datetime.date(2017, 1, 3),
    datetime.date(2017, 1, 4),
    datetime.date(2017, 1, 5),
    datetime.date(2017, 1, 6),
    datetime.date(2017, 1, 9),
    datetime.date(2017, 1, 10),
    datetime.date(2017, 1, 11),
    datetime.date(2017, 1, 12),
    datetime.date(2017, 1, 13),
    datetime.date(2017, 1, 16),
    datetime.date(2017, 1, 17),
    datetime.date(2017, 1, 18),
    datetime.date(2017, 1, 19),
    datetime.date(2017, 1, 20),
    datetime.date(2017, 1, 23),
    datetime.date(2017, 1, 24),
    datetime.date(2017, 1, 25),
    datetime.date(2017, 1, 26),
    datetime.date(2017, 1, 27),
    datetime.date(2017, 1, 30),
    datetime.date(2017, 1, 31),
    datetime.date(2017, 2, 1),
    datetime.date(2017, 2, 2),
    datetime.date(2017, 2, 3),
    datetime.date(2017, 2, 6),
    datetime.date(2017, 2, 7),
    datetime.date(2017, 2, 8),
    datetime.date(2017, 2, 9),
    datetime.date(2017, 2, 10),
    datetime.date(2017, 2, 13),
    datetime.date(2017, 2, 14),
    datetime.date(2017, 2, 15),
    datetime.date(2017, 2, 16),
    datetime.date(2017, 2, 17),
    datetime.date(2017, 2, 20),
    datetime.date(2017, 2, 21),
    datetime.date(2017, 2, 22),
    datetime.date(2017, 2, 23),
    datetime.date(2017, 2, 24),
    datetime.date(2017, 2, 27),
    datetime.date(2017, 2, 28),
    datetime.date(2017, 3, 1),
    datetime.date(2017, 3, 2),
    datetime.date(2017, 3, 3),
    datetime.date(2017, 3, 6),
    datetime.date(2017, 3, 7),
    datetime.date(2017, 3, 8),
    datetime.date(2017, 3, 9),
    datetime.date(2017, 3, 10),
    datetime.date(2017, 3, 13),
    datetime.date(2017, 3, 14),
    datetime.date(2017, 3, 15),
    datetime.date(2017, 3, 16),
    datetime.date(2017, 3, 17),
    datetime.date(2017, 3, 20),
    datetime.date(2017, 3, 21),
    datetime.date(2017, 3, 22),
    datetime.date(2017, 3, 23),
    datetime.date(2017, 3, 24),
    datetime.date(2017, 3, 27),
    datetime.date(2017, 3, 28),
    datetime.date(2017, 3, 29),
    datetime.date(2017, 3, 30),
    datetime.date(2017, 3, 31),
    datetime.date(2017, 4, 3),
    datetime.date(2017, 4, 4),
    datetime.date(2017, 4, 5),
    datetime.date(2017, 4, 6),
    datetime.date(2017, 4, 7),
    datetime.date(2017, 4, 10),
    datetime.date(2017, 4, 11),
    datetime.date(2017, 4, 12),
    datetime.date(2017, 4, 13),
    datetime.date(2017, 4, 18),
    datetime.date(2017, 4, 19),
    datetime.date(2017, 4, 20),
    datetime.date(2017, 4, 21),
    datetime.date(2017, 4, 24),
    datetime.date(2017, 4, 25),
    datetime.date(2017, 4, 26),
    datetime.date(2017, 4, 27),
    datetime.date(2017, 4, 28),
    datetime.date(2017, 5, 2),
    datetime.date(2017, 5, 3),
    datetime.date(2017, 5, 4),
    datetime.date(2017, 5, 5),
    datetime.date(2017, 5, 8),
    datetime.date(2017, 5, 9),
    datetime.date(2017, 5, 10),
    datetime.date(2017, 5, 11),
    datetime.date(2017, 5, 12),
    datetime.date(2017, 5, 15),
    datetime.date(2017, 5, 16),
    datetime.date(2017, 5, 17),
    datetime.date(2017, 5, 18),
    datetime.date(2017, 5, 19),
    datetime.date(2017, 5, 22),
    datetime.date(2017, 5, 23),
    datetime.date(2017, 5, 24),
    datetime.date(2017, 5, 25),
    datetime.date(2017, 5, 26),
    datetime.date(2017, 5, 29),
    datetime.date(2017, 5, 30),
    datetime.date(2017, 5, 31),
    datetime.date(2017, 6, 1),
    datetime.date(2017, 6, 2),
    datetime.date(2017, 6, 5),
    datetime.date(2017, 6, 6),
    datetime.date(2017, 6, 7),
    datetime.date(2017, 6, 8),
    datetime.date(2017, 6, 9),
    datetime.date(2017, 6, 12),
    datetime.date(2017, 6, 13),
    datetime.date(2017, 6, 14),
    datetime.date(2017, 6, 15),
    datetime.date(2017, 6, 16),
    datetime.date(2017, 6, 19),
    datetime.date(2017, 6, 20),
    datetime.date(2017, 6, 21),
    datetime.date(2017, 6, 22),
    datetime.date(2017, 6, 23),
    datetime.date(2017, 6, 26),
    datetime.date(2017, 6, 27),
    datetime.date(2017, 6, 28),
    datetime.date(2017, 6, 29),
    datetime.date(2017, 6, 30),
    datetime.date(2017, 7, 3),
    datetime.date(2017, 7, 4),
    datetime.date(2017, 7, 5),
    datetime.date(2017, 7, 6),
    datetime.date(2017, 7, 7),
    datetime.date(2017, 7, 10),
    datetime.date(2017, 7, 11),
    datetime.date(2017, 7, 12),
    datetime.date(2017, 7, 13),
    datetime.date(2017, 7, 14),
    datetime.date(2017, 7, 17),
    datetime.date(2017, 7, 18),
    datetime.date(2017, 7, 19),
    datetime.date(2017, 7, 20),
    datetime.date(2017, 7, 21),
    datetime.date(2017, 7, 24),
    datetime.date(2017, 7, 25),
    datetime.date(2017, 7, 26),
    datetime.date(2017, 7, 27),
    datetime.date(2017, 7, 28),
    datetime.date(2017, 7, 31),
    datetime.date(2017, 8, 1),
    datetime.date(2017, 8, 2),
    datetime.date(2017, 8, 3),
    datetime.date(2017, 8, 4),
    datetime.date(2017, 8, 7),
    datetime.date(2017, 8, 8),
    datetime.date(2017, 8, 9),
    datetime.date(2017, 8, 10),
    datetime.date(2017, 8, 11),
    datetime.date(2017, 8, 14),
    datetime.date(2017, 8, 16),
    datetime.date(2017, 8, 17),
    datetime.date(2017, 8, 18),
    datetime.date(2017, 8, 21),
    datetime.date(2017, 8, 22),
    datetime.date(2017, 8, 23),
    datetime.date(2017, 8, 24),
    datetime.date(2017, 8, 25),
    datetime.date(2017, 8, 28),
    datetime.date(2017, 8, 29),
    datetime.date(2017, 8, 30),
    datetime.date(2017, 8, 31),
    datetime.date(2017, 9, 1),
    datetime.date(2017, 9, 4),
    datetime.date(2017, 9, 5),
    datetime.date(2017, 9, 6),
    datetime.date(2017, 9, 7),
    datetime.date(2017, 9, 8),
    datetime.date(2017, 9, 11),
    datetime.date(2017, 9, 12),
    datetime.date(2017, 9, 13),
    datetime.date(2017, 9, 14),
    datetime.date(2017, 9, 15),
    datetime.date(2017, 9, 18),
    datetime.date(2017, 9, 19),
    datetime.date(2017, 9, 20),
    datetime.date(2017, 9, 21),
    datetime.date(2017, 9, 22),
    datetime.date(2017, 9, 25),
    datetime.date(2017, 9, 26),
    datetime.date(2017, 9, 27),
    datetime.date(2017, 9, 28),
    datetime.date(2017, 9, 29),
    datetime.date(2017, 10, 2),
    datetime.date(2017, 10, 3),
    datetime.date(2017, 10, 4),
    datetime.date(2017, 10, 5),
    datetime.date(2017, 10, 6),
    datetime.date(2017, 10, 9),
    datetime.date(2017, 10, 10),
    datetime.date(2017, 10, 11),
    datetime.date(2017, 10, 12),
    datetime.date(2017, 10, 13),
    datetime.date(2017, 10, 16),
    datetime.date(2017, 10, 17),
    datetime.date(2017, 10, 18),
    datetime.date(2017, 10, 19),
    datetime.date(2017, 10, 20),
    datetime.date(2017, 10, 23),
    datetime.date(2017, 10, 24),
    datetime.date(2017, 10, 25),
    datetime.date(2017, 10, 26),
    datetime.date(2017, 10, 27),
    datetime.date(2017, 10, 30),
    datetime.date(2017, 10, 31),
    datetime.date(2017, 11, 1),
    datetime.date(2017, 11, 2),
    datetime.date(2017, 11, 3),
    datetime.date(2017, 11, 6),
    datetime.date(2017, 11, 7),
    datetime.date(2017, 11, 8),
    datetime.date(2017, 11, 9),
    datetime.date(2017, 11, 10),
    datetime.date(2017, 11, 13),
    datetime.date(2017, 11, 14),
    datetime.date(2017, 11, 15),
    datetime.date(2017, 11, 16),
    datetime.date(2017, 11, 17),
    datetime.date(2017, 11, 20),
    datetime.date(2017, 11, 21),
    datetime.date(2017, 11, 22),
    datetime.date(2017, 11, 23),
    datetime.date(2017, 11, 24),
    datetime.date(2017, 11, 27),
    datetime.date(2017, 11, 28),
    datetime.date(2017, 11, 29),
    datetime.date(2017, 11, 30),
    datetime.date(2017, 12, 1),
    datetime.date(2017, 12, 4),
    datetime.date(2017, 12, 5),
    datetime.date(2017, 12, 6),
    datetime.date(2017, 12, 7),
    datetime.date(2017, 12, 8),
    datetime.date(2017, 12, 11),
    datetime.date(2017, 12, 12),
    datetime.date(2017, 12, 13),
    datetime.date(2017, 12, 14),
    datetime.date(2017, 12, 15),
    datetime.date(2017, 12, 18),
    datetime.date(2017, 12, 19),
    datetime.date(2017, 12, 20),
    datetime.date(2017, 12, 21),
    datetime.date(2017, 12, 22),
    datetime.date(2017, 12, 27),
    datetime.date(2017, 12, 28),
    datetime.date(2017, 12, 29)
]