Hi ORE Developers,
I just bumped into an issue whilst importing ORE Samples into ORE Studio [1]. I just wanted to clarify that this is indeed an issue - I guess you probably don't care too much about the legacy examples; but as part of our completeness checks at ORE Studio we need to ensure that all ORE Samples works as expected. If you agree with the analysis I will submit a PR to update the market data.
What follows is the issue as investigated by Claude, with minor formatting changes for clarity:
In Examples/Example_56/Input/market.txt, the FX spot block (around line 733) reads:
20160205 FX/RATE/EUR/CHF 1.125046
20160205 FX/RATE/EUR/GBP 0.811938
20160205 FX/RATE/EUR/JPY 128.15046
20160205 FX/RATE/EUR/SEK 9.657638
20160205 FX/RATE/EUR/USD 1.132337
20160205 FX/RATE/USD/GBP 1.394610179594994
20160205 FX/RATE/USD/CHF 1.006480623903378
Every EUR/xxx row follows the convention "value of 1 CCY1 in CCY2" (e.g. 1 EUR = 1.132337 USD). The last two rows don't: their
values are mathematically EURUSD/EURGBP and EURUSD/EURCHF respectively — i.e. EURUSD/EURGBP = 1.394610... is the value of 1 GBP in USD (GBPUSD), and EURUSD/EURCHF = 1.006480... is the value of 1 CHF in USD (CHFUSD), not "1 USD in GBP/CHF" as the USD/GBP/USD/CHF key order implies. Taken literally, USD/GBP = 1.394610 would mean 1 USD buys 1.39 GBP — the reverse of reality for that date.
This doesn't affect the example's own ORE run — todaysmarket.xml sources its FX spots from a separate FX/<CCY1>/<CCY2> key namespace (no /RATE/), unrelated to these market.txt rows — but it's a data-quality trap for anyone consuming market.txt directly by key convention (as we were, sourcing reference FX values for a downstream project). Suggest relabelling to FX/RATE/GBP/USD and FX/RATE/CHF/USD (values unchanged) for consistency with the rest of the file.
[1] https://github.com/OreStudio/OreStudio
Hi ORE Developers,
I just bumped into an issue whilst importing ORE Samples into ORE Studio [1]. I just wanted to clarify that this is indeed an issue - I guess you probably don't care too much about the legacy examples; but as part of our completeness checks at ORE Studio we need to ensure that all ORE Samples works as expected. If you agree with the analysis I will submit a PR to update the market data.
What follows is the issue as investigated by Claude, with minor formatting changes for clarity:
[1] https://github.com/OreStudio/OreStudio