Skip to content

Commit 1c64f2b

Browse files
damienbarkerpcaspers
authored andcommitted
QPR-12458 Add P&L Analytic
1 parent c034d47 commit 1c64f2b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+7634
-4091
lines changed

App/ore.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
#include <orea/app/oreapp.hpp>
2929

30-
#include <ored/utilities/initbuilders.hpp>
30+
#include <orea/app/initbuilders.hpp>
3131

3232
#include <qle/version.hpp>
3333

@@ -71,7 +71,7 @@ int main(int argc, char** argv) {
7171
return -1;
7272
}
7373

74-
ore::data::initBuilders();
74+
ore::analytics::initBuilders();
7575

7676
string inputFile(argv[1]);
7777

Docs/Design/ore_design.tex

+1-1
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ \subsubsection{Portfolio and CSA Data}
711711

712712
\subsubsection{Pricing Engines, Engine Factory}
713713
Each trade is linked with a pricing engine during the trade's build process. In order to limit the number of engines to be constructed (and to limit memory usage), ORE reuses engines as far as possible. This is achieved by the {\tt EngineBuilder},
714-
{\tt EngineFactory} and {\tt LegBuilder} classes. Currently, ORE provides 36 concrete ``default'' engine and leg builders when the {\tt EngineFactory} is constructed, see ored/utilities/initbuilders.cpp. The design here is extensible so that developers can add their own engine builders to the
714+
{\tt EngineFactory} and {\tt LegBuilder} classes. Currently, ORE provides 36 concrete ``default'' engine and leg builders when the {\tt EngineFactory} is constructed, see orea/app/initbuilders.cpp. The design here is extensible so that developers can add their own engine builders to the
715715
factory when extending ORE. For this purpose the {\tt EngineFactory} class provides the {\tt addExtraBuilders} member function.
716716

717717
Figure \ref{fig_OREDPortfolio} shows the relationships of these classes:

Examples/Example_32/Input/market.txt

+480-480
Large diffs are not rendered by default.

Examples/Example_54/Input/market_20160205_flat.txt

+276-276
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#TradeId,TradeType,Maturity,MaturityTime,StartDate,EndDate,NPV(t0),NPV(asof=t0;mkt=t1),NPV(asof=t1;mkt=t0),NPV(t1),PeriodCashFlow,Theta,HypotheticalCleanPnL,CleanPnL,DirtyPnL,Currency
2+
SwapLeg,Swap,2024-02-01,1.002508,2023-01-31,2023-02-14,47640.849246,47618.335691,47725.150117,47703.429343,0.000000,84.300871,-22.513555,62.580097,62.580097,USD
3+
SwapLegFlow,Swap,2024-02-05,1.013437,2023-01-31,2023-02-14,97311.809777,97288.780575,47568.552161,47546.661549,49861.111111,117.853495,-23.029202,95.962883,-49765.148228,USD

0 commit comments

Comments
 (0)