CRAN
Trading 1.2
Trades, Curves, Rating Tables, Add-on Tables, CSAs
Released Jan 12, 2019 by Tasos Grivas
Contains trades from the five major assets classes and also functionality to use pricing curves, rating tables, CSAs and add-on tables. The implementation follows an object oriented logic whereby each trade inherits from more abstract classes while also the curves/tables are objects. There is a lot of functionality focusing on the counterparty credit risk calculations however the package can be used for trading applications in general.
Installation
Maven
This package can be included as a dependency from a Java or Scala project by including
the following your project's pom.xml
file.
Read more
about embedding Renjin in JVM-based projects.
<dependencies> <dependency> <groupId>org.renjin.cran</groupId> <artifactId>Trading</artifactId> <version>1.2-b1</version> </dependency> </dependencies> <repositories> <repository> <id>bedatadriven</id> <name>bedatadriven public repo</name> <url>https://nexus.bedatadriven.com/content/groups/public/</url> </repository> </repositories>
Renjin CLI
If you're using Renjin from the command line, you load this library by invoking:
library('org.renjin.cran:Trading')
Test Results
This package was last tested against Renjin 0.9.2719 on Jan 14, 2019.
- Bond-class-examples
- BondFuture-class-examples
- CDOTranche-class-examples
- CSA-class-examples
- Collateral-class-examples
- Commodity-class-examples
- CommodityForward-class-examples
- CreditIndex-class-examples
- CreditSingle-class-examples
- Curve-class-examples
- Equity-class-examples
- EquityIndexFuture-class-examples
- FXSwap-class-examples
- GetTradeDetails-examples
- HashTable-class-examples
- IRDSwap-class-examples
- IRDSwaption-class-examples
- ParseTrades-examples