How do you check for market holidays (any modules)?

Discussion in 'App Development' started by lime, Jun 20, 2024.

  1. I've written my own calendar generation software that's pretty reliable. I can send you the text file I generate that contains all historical dates if that's helpful? Something else to be aware of is that there are half days that occur near thanksgiving and Christmas where the exchange closes at 1:00pm. These are documented on the NYSE and Nasdaq websites.
     
    #11     Jun 23, 2024
  2. d08

    d08

    Yeah I've PR'd it a long time ago as well.
     
    #12     Jun 25, 2024
  3. d08

    d08

    Can I ask why? The one's mentioned here already handle regular holidays, irregular ones, half-days, different markets and timezones.
     
    #13     Jun 25, 2024
  4. I wrote this several years ago, in C# not Python. It's working so no reason to change it.
     
    #14     Jun 25, 2024
  5. There's no simple way to do it, as someone said here, if you got historical market data from somewhere then if it's got no data for some day, most likely it's a holiday. Unfortunately often times it's just shitty, missing data, so you gotta do some statistics, using multiple stocks (hopefully on the same market / exchange), if they ALL miss that day then it's definitely a market holiday.
     
    #15     Jun 26, 2024