Skip to content

Commit acd194c

Browse files
authored
Merge pull request #232 from amaggiulli/develop
QLNet 1.11.3
2 parents f741a03 + 7b57f23 commit acd194c

File tree

171 files changed

+6350
-1237
lines changed

Some content is hidden

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

171 files changed

+6350
-1237
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: "[BUG]"
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Desktop (please complete the following information):**
24+
- OS: [e.g. iOS]
25+
- .Net version [e.g. .Net Framework 4.5, .Net Core 2.2]
26+
27+
**Additional context**
28+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: "[FEATURE]"
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

ChangeLog.txt

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

News.txt

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,30 @@
1-
QLNet 1.11.2
1+
QLNet 1.11.3
22
=========================
33

4-
QLNet 1.11.2 is a bug-fix release for version 1.11
4+
QLNet 1.11.3
55
A detailed list of changes is available in ChangeLog.txt.
66

7+
DATE-TIME
8+
9+
+ Added Thailand calendar
10+
+ Updated china holidays up to 2019
11+
12+
INDEXES
13+
14+
+ Added bibor index
15+
16+
INSTRUMENTS
17+
18+
+ Added CatBond with MonteCarlo pricing engine
19+
+ Added Collateralized Cash Swaption
20+
721
ENGINES
822

9-
+ Fixed a bug int FDMultiPeriodEngine.Thanks to Jakub Pstrusiński.
23+
+ Added Binomial Tsiveriotis-Fernandes engine for convertible bonds
24+
25+
FRAMEWORK
1026

11-
CASHFLOWS
27+
+ Making all projects dotnet standard. (Changes minimum framework to net 4.5.1)
28+
+ Added QLNet Exceptions
29+
+ Bug fixing and refactoring.
1230

13-
+ Fixed accrual calculation
14-
+ Fixed yield calculation when settlement date falls on 31st
15-
+ Added OAS calculation to callable bonds

QLNet.sln

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Repo", "src\Repo\Repo.cspro
2929
EndProject
3030
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Swap", "src\Swap\Swap.csproj", "{A653D5D9-660D-4DB2-938C-1676F5E35033}"
3131
EndProject
32+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ConvertibleBonds", "src\ConvertibleBonds\ConvertibleBonds.csproj", "{F0F89FDF-F7D9-46CA-9177-A06BA64E306F}"
33+
EndProject
3234
Global
3335
GlobalSection(SolutionConfigurationPlatforms) = preSolution
3436
Debug|Any CPU = Debug|Any CPU
@@ -79,6 +81,10 @@ Global
7981
{A653D5D9-660D-4DB2-938C-1676F5E35033}.Debug|Any CPU.Build.0 = Debug|Any CPU
8082
{A653D5D9-660D-4DB2-938C-1676F5E35033}.Release|Any CPU.ActiveCfg = Release|Any CPU
8183
{A653D5D9-660D-4DB2-938C-1676F5E35033}.Release|Any CPU.Build.0 = Release|Any CPU
84+
{F0F89FDF-F7D9-46CA-9177-A06BA64E306F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
85+
{F0F89FDF-F7D9-46CA-9177-A06BA64E306F}.Debug|Any CPU.Build.0 = Debug|Any CPU
86+
{F0F89FDF-F7D9-46CA-9177-A06BA64E306F}.Release|Any CPU.ActiveCfg = Release|Any CPU
87+
{F0F89FDF-F7D9-46CA-9177-A06BA64E306F}.Release|Any CPU.Build.0 = Release|Any CPU
8288
EndGlobalSection
8389
GlobalSection(SolutionProperties) = preSolution
8490
HideSolutionNode = FALSE
@@ -95,5 +101,9 @@ Global
95101
{683CF269-1F05-4C9B-9DCC-877977BC8C25} = {0E7C422B-F8C0-433E-9E54-D3D55968222D}
96102
{40456B2A-0B05-4DF1-951E-504BB339452A} = {0E7C422B-F8C0-433E-9E54-D3D55968222D}
97103
{A653D5D9-660D-4DB2-938C-1676F5E35033} = {0E7C422B-F8C0-433E-9E54-D3D55968222D}
104+
{F0F89FDF-F7D9-46CA-9177-A06BA64E306F} = {0E7C422B-F8C0-433E-9E54-D3D55968222D}
105+
EndGlobalSection
106+
GlobalSection(ExtensibilityGlobals) = postSolution
107+
SolutionGuid = {D4B9C389-D195-4E74-9536-587E7D349B67}
98108
EndGlobalSection
99109
EndGlobal

appveyor.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
branches:
77
only:
88
- master
9-
version: 1.11.2
9+
version: 1.11.3
1010
configuration: Release
1111
platform: Any CPU
1212
image: Visual Studio 2017
@@ -24,18 +24,18 @@
2424
after_build:
2525
- cmd: dotnet pack src/qlnet/qlnet.csproj -c Release -o ./
2626
artifacts:
27-
- path: src\QLNet\bin\Release\net40\QLNet.dll
27+
- path: src\QLNet\bin\Release\net452\QLNet.dll
2828
name: Windows
2929
- path: src\qlnet\*.nupkg
3030
name: ng
3131
deploy:
3232
- provider: GitHub
33-
tag: QLNet-v1.11.2
34-
release: QLNet Version 1.11.2
35-
description: QLNet 1.11.2 is a bug-fix release for version 1.11
33+
tag: QLNet-v1.11.3
34+
release: QLNet Version 1.11.3
35+
description: QLNet 1.11.3
3636
auth_token:
3737
secure: rK95hgNgZt9ybzXBJ/1W0nbqsG/aENQ22eyY2qxn5xjbi7ZEjv+5BmNjY/l1cAYH
38-
artifact: src\QLNet\bin\Release\net40\QLNet.dll
38+
artifact: src\QLNet\bin\Release\net452\QLNet.dll
3939
draft: false
4040
force_update: false
4141
- provider: NuGet
@@ -45,13 +45,13 @@
4545
artifact: ng
4646

4747
# Configuration for "develop" branch
48-
# build in Release mode, run tests , deploy to Sonar
48+
# build in Debug mode, run tests , deploy to Sonar
4949
-
5050
branches:
5151
only:
5252
- develop
53-
version: 1.11.2-preview.{build}
54-
configuration: Release
53+
version: 1.11.3-preview.{build}
54+
configuration: Debug
5555
platform: Any CPU
5656
image: Visual Studio 2017
5757
skip_tags: true
@@ -61,12 +61,12 @@
6161
nuget:
6262
disable_publish_on_pr: true
6363
before_build:
64-
- cmd: "choco install msbuild-sonarqube-runner --version 2.3 -y\ndotnet restore qlnet.sln\ndotnet clean qlnet.sln\nSET runner_args=\"\"\nif \"%APPVEYOR_PULL_REQUEST_NUMBER%\"==\"\" SET runner_args=%sonar_commit% \nif not \"%APPVEYOR_PULL_REQUEST_NUMBER%\"==\"\" SET runner_args=%sonar_pr% \nMSBuild.SonarQube.Runner.exe begin %runner_args%\nmsbuild qlnet.sln /p:TargetFrameworkVersion=v4.5 /p:TargetFrameworks=net45 /p:Configuration=Release /logger:\"C:\\Program Files\\AppVeyor\\BuildAgent\\Appveyor.MSBuildLogger.dll\" /target:src\\qlnet > log.txt\nMSBuild.SonarQube.Runner.exe end /d:\"sonar.login=%sonar_token%\""
64+
- cmd: "choco install msbuild-sonarqube-runner --version 2.3 -y\ndotnet restore qlnet.sln\ndotnet clean qlnet.sln\nSET runner_args=\"\"\nif \"%APPVEYOR_PULL_REQUEST_NUMBER%\"==\"\" SET runner_args=%sonar_commit% \nif not \"%APPVEYOR_PULL_REQUEST_NUMBER%\"==\"\" SET runner_args=%sonar_pr% \nMSBuild.SonarQube.Runner.exe begin %runner_args%\nmsbuild qlnet.sln /p:TargetFrameworkVersion=v4.5.2 /p:TargetFrameworks=net452 /p:Configuration=Debug /logger:\"C:\\Program Files\\AppVeyor\\BuildAgent\\Appveyor.MSBuildLogger.dll\" /target:src\\qlnet > log.txt\nMSBuild.SonarQube.Runner.exe end /d:\"sonar.login=%sonar_token%\""
6565
build:
6666
project: QLNet.sln
6767
verbosity: minimal
6868
after_build:
69-
- cmd: dotnet pack src/qlnet/qlnet.csproj -c Release -o ./
69+
- cmd: dotnet pack src/qlnet/qlnet.csproj -c Debug -o ./
7070
artifacts:
7171
- path: src\qlnet\*.nupkg
7272
name: ng
@@ -79,12 +79,12 @@
7979
file_version: '{version}'
8080
informational_version: '{version}'
8181
test_script:
82-
- cmd: vstest.console /logger:Appveyor /TestCaseFilter:"TestCategory!=LongRun" "c:\projects\qlnet_develop\tests\QLNet.Tests\bin\Release\net45\QLNet.Tests.dll"
82+
- cmd: vstest.console /logger:Appveyor /TestCaseFilter:"TestCategory!=LongRun" "c:\projects\qlnet_develop\tests\QLNet.Tests\bin\Debug\net452\QLNet.Tests.dll"
8383
deploy:
8484
- provider: NuGet
8585
api_key:
8686
secure: HcilScZbZnJrCk5hoEPz9MSzKQanBzsQCfulI9gFpcT7wurwxIy3hwSwPfjXmr/v
87-
skip_symbols: true
87+
skip_symbols: false
8888
artifact: ng
8989

9090
# Configuration for "feature/*" branch
@@ -93,15 +93,15 @@
9393
branches:
9494
only:
9595
- /feature/
96-
version: 1.11.2-{build}
96+
version: 1.11.3-{build}
9797
configuration: Debug
9898
platform: Any CPU
9999
image: Visual Studio 2017
100100
skip_tags: true
101101
clone_folder: c:\projects\qlnet_feature
102102
init:
103103
- cmd: "set branch=%APPVEYOR_REPO_BRANCH%\necho branch:%branch%\nset gitVersion=%branch:/=.%\necho gitversion:%gitVersion%\nset newVersion=%gitVersion%.%APPVEYOR_BUILD_NUMBER%\necho %newVersion%"
104-
- cmd: appveyor UpdateBuild -Version "1.11.2-%newVersion%"
104+
- cmd: appveyor UpdateBuild -Version "1.11.3-%newVersion%"
105105
before_build:
106106
- cmd: dotnet restore qlnet.sln
107107
build:

format_code.bat

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
tools\AStyle.exe --options=qlnet.astyle --recursive src/*.cs tests/*.cs
1+
tools\AStyle.exe --options=qlnet.astyle --recursive src/*.cs tests/*.cs
2+
pause

src/BermudanSwaption/BermudanSwaption.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<VersionPrefix>1.11.0</VersionPrefix>
5-
<TargetFrameworks>net45</TargetFrameworks>
4+
<VersionPrefix>1.11.3</VersionPrefix>
5+
<TargetFrameworks>netcoreapp2.2</TargetFrameworks>
66
<DefineConstants>$(DefineConstants);QL_NEGATIVE_RATES</DefineConstants>
77
<AssemblyName>BermudanSwaption</AssemblyName>
88
<PackageId>BermudanSwaption</PackageId>

src/Bonds/Bonds.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<VersionPrefix>1.11.0</VersionPrefix>
5-
<TargetFrameworks>net45</TargetFrameworks>
4+
<VersionPrefix>1.11.3</VersionPrefix>
5+
<TargetFrameworks>netcoreapp2.2</TargetFrameworks>
66
<DefineConstants>$(DefineConstants);QL_NEGATIVE_RATES</DefineConstants>
77
<AssemblyName>Bonds</AssemblyName>
88
<PackageId>Bonds</PackageId>

src/CVAIRS/CVAIRS.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<VersionPrefix>1.11.0</VersionPrefix>
5-
<TargetFrameworks>net45</TargetFrameworks>
4+
<VersionPrefix>1.11.3</VersionPrefix>
5+
<TargetFrameworks>netcoreapp2.2</TargetFrameworks>
66
<DefineConstants>$(DefineConstants);QL_NEGATIVE_RATES</DefineConstants>
77
<AssemblyName>CVAIRS</AssemblyName>
88
<PackageId>CVAIRS</PackageId>

0 commit comments

Comments
 (0)