Code Monkey home page Code Monkey logo

Comments (5)

eltoder avatar eltoder commented on June 19, 2024 2

You might be interested to look in the OpenSourceRisk project. They have CORRA implemented: https://github.com/OpenSourceRisk/Engine/blob/master/QuantExt/qle/indexes/ibor/corra.hpp

It may be possible to move this code into QuantLib itself.

from quantlib.

tomwhoiscontrary avatar tomwhoiscontrary commented on June 19, 2024

Methodology for calculating the Canadian Overnight Repo Rate Average (CORRA) says:

Term and time to settlement—Only repos with an overnight term for same-day settlement of the opening leg are included: that is, overnight trades that are agreed to and settled on the same day (T + 0).

So i think settlementDays is 0, as for other repo indexes.

CORRA is published each day that Schedule I banks under the Bank Act (Canada) are open for business in Toronto, Ontario, Canada.

That sounds like normal bank holidays to me, which is what i believe the Canada(Settlement) calendar represents.

There's no explicit mention of a day count convention there. The convention will be whatever is used in the repo market. However, the CORRA Compounded Index is defined in terms of CORRA using a 365-day year, which suggests that CORRA is actual/365.

How-to Guide: SFTR repo day-count conventions, a piece by some hardcore repo transaction reporting geek, gets into some glorious detail about repo day count conventions, and says:

In the UK and Japanese, Canadian, Australian and New Zealand domestic markets the convention is Act/365 Fixed, the actual number of days interest divided by 365 days in a year, regardless of leap-years. This is denoted by A005.

So dayCounter is Actual365Fixed().

from quantlib.

AND2797 avatar AND2797 commented on June 19, 2024

Is anyone working on this? I am a new contributor - I think this is a new contributor friendly issue. Can I work on this?

from quantlib.

lballabio avatar lballabio commented on June 19, 2024

Sure, go ahead!

from quantlib.

AND2797 avatar AND2797 commented on June 19, 2024

PR here: #1705

from quantlib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.