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

Spot date is the last working day of the month #13

Open
juan-sequeiros opened this issue Jun 14, 2016 · 1 comment
Open

Spot date is the last working day of the month #13

juan-sequeiros opened this issue Jun 14, 2016 · 1 comment

Comments

@juan-sequeiros
Copy link

Hi All.

We tried the objectlabkit library and we advised an inconsistency regarding how to manage “xM” tenors. Our conclusion is that it is necessary to add a rule about 'xM' tenors in the mentioned library.

The reason behind this is that, in order to deal with “xM” tenors properly, the new rule added should take into account that if the spot date is the last working day of the month, the next 'xM' tenors should be the last working days for each months.

For example.

Pair: EUR.USD
Trade date: 2016-04-27
Spot date : 2016-04-29
1M : 2016-05-31
2M : 2016-06-30
3M : 2016-07-29
4M : 2016-08-31
....

Library return:
Pair: EUR.USD
Trade date: 2016-04-27
Spot date : 2016-04-29
1M : 2016-05-31
2M : 2016-06-29
3M : 2016-07-29

On the other hand, we think that another rule needs to be added in any case:

'xM' should be (x+spotMonth). In other words, it is mandatory to have at least a 'xM' tenor for each month.

For example:

Trade date: 2017-01-26
Spot date: 2017-01-30
1M: 2017-02-28
2M: 2017-03-30
3M: 2017-03-28
4M: 2017-05-30
....

Regards

@benoitx
Copy link
Contributor

benoitx commented Nov 15, 2016

Hi
Interesting stuff, why not contributing it to the original library?

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

No branches or pull requests

2 participants