Skip to main content

irrbb_aggr_m

1. Description​

Overview​

The Irrbb_aggr_m program is designed to read multiple CF (Cash Flow) files in metadata format and process them for aggregation and consolidation. The program works as follows:

***|Reading CF Files: It can process multiple CF files at the same time. ***|CF to CF Transformation: If the next_rep_date flag is set to true, the program will perform a CF-to-CF transformation; otherwise, it will pass the CF data directly to the aggregator. ***|CF-to-CF Transformation

The CF-to-CF process operates under the following conditions:​

Interest Rate & Spread Rate: If the interest rate (int_rate) and spread rate (spread_rate) are greater than zero, and a floating value is provided, the program will generate spread-based cashflows. Aggregation Process Each CF file is passed to the aggregator, which performs aggregation based on the bais of ***|LLG ***|Country ***|Currency (CCY) ***|Is_CF_Req (Whether CF is required) ***|Interest Basis (int_basis) ***|Cap ***|Floor ***|Benchmark Output: After aggregation, two separate output files will be generated for each CF file.

Merging Outputs​

Once the aggregation for each CF file is completed, the program will merge the individual aggregator outputs.

Consolidation​

The merged output is then passed to the consolidation (consol) process, where the data is consolidated into a single file.

Loading Data to IRB10 Table​

Finally, the consolidated output will be loaded into the IRB10 table for further processing.

2. Program location​

<installation_path>/irrbb_m_2

3. Input​

irrbb_mat_argument

3.1 Mandatory Parameters​

#ParametersDescriptionExample
1as_on_dateThe date for which the program has to run26-09-2023
2process-configPath to process config file that needs to be processedconfigs/process.json
3connection-stringConnection credentials to connect to the databaseOracle (Username|Password|IP:PORT/Servicename)
4default_currencyThe default currencyUSD
5log-filePath to write logslogs/application.log
6diagnostics-log-filePath to write diagnostics logslogs/diagnostics.log
7base_currencyBase Currency to considerINR
8countryCountry ValueIND

3.2 Non Mandatory Parameters​

#ParametersDescriptionDefault valueExample
1log-levelLevel of diagnostics written to the log fileinfodebug
2diagnostics-flagFlag to enable/disable performance diagnostics in the diagnostics log filefalsetrue
3is-consol-ex-rt-appliedFlag to enable/disable for doing consolidation in Consol part.falsetrue

4.1 Process config file 🔗​

irrbb_mat_config This file contains:

#FileDescriptionExample
1input_metadataPath to Exchngae rate file.test-bed/M_IN001.json
2additional_inputPath to additonal files required by the program.test-bed/M_IN003.json.
3output_metadataPath to output_metadata file.test-bed/M_OP001.json
4AggrRulePath to Rule files required by the program.test-bed/rule.txt
5ConsolPath to Consol files required by the program.test-bed/M_IN003.json
6BucketPath to bucket_schema_file_path files required by the program.test-bed/M_IN007.json

5.1 Required field file 🔗​

#ParametersDescriptionFrom MetadataMandatory
1file_idId of the input fileM_IN002TRUE
2ccyCurrency of the cashflowsINPUT FILE METADATATRUE
3int_rateInterest rate for the cashflowsINPUT FILE METADATAFALSE
4int_basisInterest calculation basisINPUT FILE METADATAFALSE
5exch_rtExchange rate for currency conversionINPUT FILE METADATAFALSE
6capCap value for the cashflowsINPUT FILE METADATAFALSE
7floorFloor value for the cashflowsINPUT FILE METADATAFALSE
8benchmarkBenchmark reference rateINPUT FILE METADATAFALSE
9spread_rateSpread rate for the cashflowsINPUT FILE METADATAFALSE
10next_rep_dateNext reporting dateINPUT FILE METADATAFALSE
11int_flagFlag indicating if interest is includedINPUT FILE METADATAFALSE
12cashflowsList of cashflows for aggregationINPUT FILE METADATATRUE
13acc_idAccount identifierINPUT FILE METADATATRUE
14last_cf_dateDate of the last cashflowINPUT FILE METADATAFALSE
15acc_opn_dateAccount opening dateINPUT FILE METADATAFALSE
16rate_flagFlag indicating if rate adjustments are appliedINPUT FILE METADATAFALSE
17rule_idRule identifier for processingRULETRUE
18is_exch_rate_appliedFlag indicating if exchange rate is appliedFALSEFALSE
19is_consolidatedFlag indicating if data is consolidatedFALSEFALSE
20is_amt_absFlag indicating if amount is absoluteFALSEFALSE
21is_aggr_amt_absFlag indicating if aggregated amounts are absoluteFALSEFALSE
22is_neg_amtFlag indicating if negative amounts are allowedFALSEFALSE
23is_cf_reqFlag indicating if cashflows are requiredFALSEFALSE
24is_cf_lvl_dataFlag indicating if cashflow-level data is providedFALSEFALSE
25default_llg_codeDefault LLG code1399TRUE
26default_overdue_llg_codeDefault overdue LLG code1399FALSE
27default_int_basisDefault interest basisACTByactFALSE
28floating_rate_valueValue for floating interest rateFLOATINGFALSE

6. Sample test-bed​

Click ⬇️ to download the sample data.

7. Output​

7.1 Output file-1 : Consolidated Output​

It will be uploaded in IRB10 table.

7.2 Output file-1 : Aggregated Spread Output​

It will be used in IRRBB Spread Curve Program.

7.3 Output file-3 : Health report​

The health check report gives summary about the processed accounts such as success counts, failed counts, etc.🔗