Skip to content
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

Merged
merged 2 commits into from
Aug 20, 2024

Conversation

marcinfair
Copy link
Contributor

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.

Copy link

boring-cyborg bot commented Aug 20, 2024

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.

@CLAassistant
Copy link

CLAassistant commented Aug 20, 2024

CLA assistant check
All committers have signed the CLA.

@coveralls
Copy link

coveralls commented Aug 20, 2024

Coverage Status

coverage: 72.653% (-0.02%) from 72.67%
when pulling ed3c9c9 on marcinfair:master
into fc4210f on lballabio:master.

@lballabio
Copy link
Owner

Thanks! May you also check the comment from CLAassistant above?

// 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);
Copy link
Owner

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

Copy link
Contributor Author

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

@marcinfair
Copy link
Contributor Author

Thanks! May you also check the comment from CLAassistant above?

Thank you, done

@lballabio lballabio added this to the Release 1.36 milestone Aug 20, 2024
@lballabio lballabio merged commit d8e0f1c into lballabio:master Aug 20, 2024
42 checks passed
Copy link

boring-cyborg bot commented Aug 20, 2024

Congratulations on your first merged pull request!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants