Skip to content

Commit f7611c9

Browse files
damienbarkerjenkins
authored andcommitted
QPR-12458 Add P&L Analytic
1 parent e2a7b8d commit f7611c9

44 files changed

Lines changed: 7634 additions & 4091 deletions

Some content is hidden

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

App/ore.cpp

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 480 additions & 480 deletions
Large diffs are not rendered by default.

Examples/Example_54/Input/market_20160205_flat.txt

Lines changed: 276 additions & 276 deletions
Large diffs are not rendered by default.
Lines changed: 3 additions & 0 deletions
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)