Skip to content

Commit af554ea

Browse files
authored
multi currency example (#98)
1 parent deaab78 commit af554ea

File tree

4 files changed

+36
-0
lines changed

4 files changed

+36
-0
lines changed

currency_settings.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"currency_conversion_type": "DictBasedCurrencyRates",
3+
"source_type": "csv",
4+
"file_path": "tests/inputs/roe.csv"
5+
}

oasislmf_currency.json

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"analysis_settings_json": "analysis_settings.json",
3+
"currency_conversion_json": "currency_settings.json",
4+
"reporting_currency": "USD",
5+
"lookup_config_json": "keys_data/PiWind/lookup_config.json",
6+
"lookup_data_dir": "keys_data/PiWind",
7+
"model_data_dir": "model_data/PiWind",
8+
"model_settings_json": "meta-data/model_settings.json",
9+
"oed_location_csv": "tests/inputs/SourceLocOEDPiWind10Currency.csv",
10+
"oed_accounts_csv": "tests/inputs/SourceAccOEDPiWind.csv",
11+
"oed_info_csv": "tests/inputs/SourceReinsInfoOEDPiWind.csv",
12+
"oed_scope_csv": "tests/inputs/SourceReinsScopeOEDPiWind.csv",
13+
"modelpy": true,
14+
"gulpy": true,
15+
"ktools_alloc_rule_gul": 1
16+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
"PortNumber","AccNumber","LocNumber","IsTenant","BuildingID","CountryCode","Latitude","Longitude","StreetAddress","PostalCode","OccupancyCode","ConstructionCode","LocPerilsCovered","BuildingTIV","OtherTIV","ContentsTIV","BITIV","LocCurrency","OEDVersion","LocDedCode1Building","LocDedType1Building","LocDed1Building","LocMinDed1Building","LocMaxDed1Building","LocNetPremium"
2+
1,"A11111",10002082046,1,1,"GB",52.76698052,-0.895469856,"1 ABINGDON ROAD","LE13 0HL",1050,5000,"WW1",220000,0,0,0,"GBP","2.0.0",0,0,1000,500,0,10000
3+
1,"A11111",10002082047,1,1,"GB",52.76697956,-0.89536613,"2 ABINGDON ROAD","LE13 0HL",1050,5000,"WW1",790000,0,0,0,"GBP","2.0.0",0,1,0.1,100,5000,10000
4+
1,"A11111",10002082048,1,1,"GB",52.76697845,-0.895247587,"3 ABINGDON ROAD","LE13 0HL",1050,5000,"WW1",160000,0,0,0,"GBP","2.0.0",0,2,0.1,0,5000,10000
5+
1,"A11111",10002082049,1,1,"GB",52.76696096,-0.895473908,"4 ABINGDON ROAD","LE13 0HL",1050,5000,"WW1",30000,0,0,0,"GBP","2.0.0",0,0,1000,500,0,10000
6+
1,"A11111",10002082050,1,1,"GB",52.76695804,-0.895353484,"5 ABINGDON ROAD","LE13 0HL",1050,5000,"WW1",250000,0,0,0,"GBP","2.0.0",0,1,0.1,100,5000,10000
7+
1,"A11111",10002082051,1,1,"GB",52.76695885,-0.89524749,"6 ABINGDON ROAD","LE13 0HL",1050,5000,"WW1",700000,0,0,0,"GBP","2.0.0",0,2,0.1,0,5000,20000
8+
1,"A11111",10002082052,1,1,"GB",52.7670776,-0.895274721,"7 ABINGDON ROAD","LE13 0HL",1050,5000,"WW1",90000,0,0,0,"USD","2.0.0",0,0,1000,500,0,20000
9+
1,"A11111",10002082053,1,1,"GB",52.76712254,-0.895273583,"8 ABINGDON ROAD","LE13 0HL",1050,5000,"WW1",310000,0,0,0,"USD","2.0.0",0,1,0.1,100,5000,20000
10+
1,"A11111",10002082054,1,1,"GB",52.76718545,-0.895271991,"9 ABINGDON ROAD","LE13 0HL",1050,5000,"WW1",420000,0,0,0,"EUR","2.0.0",0,2,0.1,0,5000,20000
11+
1,"A11111",10002082055,1,1,"GB",52.76724836,-0.895270399,"10 ABINGDON ROAD","LE13 0HL",1050,5000,"WW1",430000,0,0,0,"EUR","2.0.0",0,0,2000,0,0,20000

tests/inputs/roe.csv

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
cur_from,cur_to,roe
2+
USD,GBP,0.85
3+
USD,EUR,0.95
4+
GBP,EUR,1.12

0 commit comments

Comments
 (0)