QuantLib icon indicating copy to clipboard operation
QuantLib copied to clipboard

Variable naming can be ambiguous in ql.GarmanKohlagenProcess

Open BattleNet996 opened this issue 1 year ago • 2 comments

I'm currently using the ql.GarmanKohlagenProcess method to conduct some option pricing research. I found that the parameters of this method might be ambiguous, which consists of initialValue, foreignRiskFreeTS, domesticRiskFreeTS, volTS

In fact, In practice, our definitions of foreign and local currencies are contextualized. For example, how to define the foreign and domestic currency in the pair USDCNY? Traditionally, the USD should be foreign ccy, and CNY should be domestic ccy. I'm wondering how do you define and set the parameters.

BattleNet996 avatar Jan 08 '24 08:01 BattleNet996

Thanks for posting! It might take a while before we look at your issue, so don't worry if there seems to be no feedback. We'll get to it.

boring-cyborg[bot] avatar Jan 08 '24 08:01 boring-cyborg[bot]

In the standard definition of a currency pair, the first currency is the foreign one and the second currency is the domestic one, so for USDCNY (a.k.a. USD/CNY) the foreign currency is USD and the domestic currency is CNY as you have correctly stated.

But it is also possible to use inverted currency pairs if your use case requires it. In short, the answer to your question is that you can use either a currency pair or its inverse as long as the foreign TS, domestic TS, and spot rate are consistent with each other.

sweemer avatar Jan 10 '24 00:01 sweemer

This issue was automatically marked as stale because it has been open 60 days with no activity. Remove stale label or comment, or this will be closed in two weeks.

github-actions[bot] avatar Mar 10 '24 02:03 github-actions[bot]

This issue was automatically closed because it has been stalled for two weeks with no further activity.

github-actions[bot] avatar Mar 25 '24 01:03 github-actions[bot]