-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Warsaw Stock Exchange Calendar (Poland) #2063
Conversation
Thanks for opening this pull request! It might take a while before we look at it, so don't worry if there seems to be no feedback. We'll get to it. |
Thanks! May you also check the comment from CLAassistant above? |
ql/time/calendars/poland.cpp
Outdated
// all calendar instances share the same implementation instance | ||
static ext::shared_ptr<Calendar::Impl> impl(new Poland::Impl); | ||
impl_ = impl; | ||
// static ext::shared_ptr<Calendar::Impl> impl(new Poland::Impl); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to keep the old one commented, you can remove it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, my oversight, already corrected
Thank you, done |
Congratulations on your first merged pull request! |
Hi Luigi, hi all,
I'm here since v1.23 and up until now I have been building my own version of library which has additional polish calendar which is in line with Warsaw Stock Exchange calendar (https://www.gpw.pl/session-details -> click tab Exchange holidays) which consists two more holidays than standard polish calendar that is: 24 December and 31 December. These are days without market session in Poland. It is not a big deal, but I thought that why not make PR in upstream repo.
I believe adding to library such WSE calendar would be small attraction for users calculating dates according to stock exchange calendar in Poland.
Instead one Poland calendar I offered two: Poland Settlement and Warsaw stock exchange. Poland Settlement would be default one to keep backward compatibility, and if one would need WSE calendar, he need to explicitly chose it.
Credits also to @adamgrad5 for coworking on this PR.
I hope you find this PR useful. If so, I'll create relevant PR to SWIG repo as well.