RcppQuantuccia 0.0.1
来源:互联网 发布:手机淘宝如何找同款 编辑:程序博客网 时间:2024/06/05 21:54
New package! And, as it happens, a effectively a subset or variant of one my oldest packages, RQuantLib.
Fairly recently, Peter Caspers started to put together a header-only subset of QuantLib. He called this Quantuccia, and, upon me asking, said that it stands for "little sister" of QuantLib. Very nice.
One design goal is to keep Quantuccia header-only. This makes distribution and deployment much easier. In the fifteen years that we have worked with QuantLib by providing the R bindings via RQuantLib, it has always been a concern to provide current QuantLib libraries on all required operating systems. Many people helped over the years but it is still an issue, and e.g. right now we have no Windows package as there is no library build it against.
Enter RcppQuantuccia. It only depends on R, Rcpp (for seamless R and C++ integrations) and BH bringing Boost headers. This will make it much easier to have Windows and macOS binaries.
So what can it do right now? We started with calendaring, and you can compute date pertaining to different (ISDA and other) business day conventions, and compute holiday schedules. Here is one example computing inter alia under the NYSE holiday schedule common for US equity and futures markets:
R> library(RcppQuantuccia)R> fromD <- as.Date("2017-01-01")R> toD <- as.Date("2017-12-31")R> getHolidays(fromD, toD) # default calender ie TARGET[1] "2017-04-14" "2017-04-17" "2017-05-01" "2017-12-25" "2017-12-26"R> setCalendar("UnitedStates")R> getHolidays(fromD, toD) # US aka US::Settlement[1] "2017-01-02" "2017-01-16" "2017-02-20" "2017-05-29" "2017-07-04" "2017-09-04"[7] "2017-10-09" "2017-11-10" "2017-11-23" "2017-12-25"R> setCalendar("UnitedStates::NYSE")R> getHolidays(fromD, toD) # US New York Stock Exchange[1] "2017-01-02" "2017-01-16" "2017-02-20" "2017-04-14" "2017-05-29" "2017-07-04"[7] "2017-09-04" "2017-11-23" "2017-12-25"R>
The GitHub repo already has a few more calendars, and more are expected. Help is of course welcome for both this, and for porting over actual quantitative finance calculations.
More information is on the RcppQuantuccia page. Issues and bugreports should go to the GitHub issue tracker.
This post by Dirk Eddelbuettel originated on his Thinking inside the box blog. Please report excessive re-aggregation in third-party for-profit settings.
- RcppQuantuccia 0.0.1
- RapidshareManager v1.0.0.1
- Announcement: Stomperl 0.0.1
- Announcement: Fluorida 0.0.1
- fsnet 0.0.1 !!!
- linux 0.0.1
- Object_C 回顾 0.0.1
- Merlin doc 0.0.1
- Phoenix Protector v1.0.0.1
- 0.0.1 第二版前言
- Fluorida 0.0.1发布了!
- android 画图板 V 0.0.1
- [Other]1/0.0f Error?
- 冒泡排序(笔记)0.0.1
- 0.0
- 0.0
- -0.0
- 0.0
- python3.6 安装tensorflow
- 自动化测试 (二) 连连看外挂
- 给UILabel添加边框
- 798 C. Mike and gcd problem
- Android 在某一页禁止home键返回
- RcppQuantuccia 0.0.1
- 开启rul rewrite 出现 No input file specified 的解决方法
- 超强OCR文字识别软件首选ABBYY FineReader
- Linux入门1(手记)
- 点击EditText以外的地方隐藏输入框和软键盘
- 推荐!手把手教你使用Git
- Android Studio 快捷键整理
- ubuntu下动态链接库的编译和使用实例
- 使用Spring boot 简单搭建网站框架