当前位置:网站首页>R包pedquant实现股票下载和金融量化分析
R包pedquant实现股票下载和金融量化分析
2022-07-29 10:23:00 【Mrrunsen】
在使用R进行金融量化分析时,如何通过R包提供的API来有效获取A股数据,一直是一个不大不小的问题。R社区常用的quantmod/tidyquant包主要通过雅虎财经获取数据。雅虎财经的美股数据是很全面的,对A股的支持就不太理想,不是存在缺失值就是时间长度有限,也缺乏必要的财务数据。国内量化平台有效支持R的并不多。Tushare社区开发了一个R包Tushare(https://cran.r-project.org/web/packages/Tushare/index.html)是一个不错的选择。由谢士晨开发的pedquant(https://cran.rproject.org/web/packages/pedquant/index.html),为我们提供了另外一种选择。
“pedquant”意指”公共经济数据和量化分析“(Public Economic Data and Quantitative Analysis)。penquant提供了对国内和国际金融数据和经济数据的访问接口,数据来源包括中国国家统计局(NBS)、FRED、雅虎财经、163财经等。同时,pedquant还提供了一些基本的图形和分析工具。
我们从获取A股的数据开始。
library(pedquant)
library(tidyverse)
szzs<
边栏推荐
- Selenium series 5-xpath path expression
- paho交叉编译
- Explore SQL Server metadata (I)
- Performance optimization analysis tool | perf
- Evolution of xxl-job architecture for distributed scheduling
- Consumer electronics, frozen to death in summer
- TMS320C6000_ Tms320f28035 Chinese data manual
- Efficient 7 habit learning notes
- 基于SSM实现高校后勤报修系统
- Soft exam summary
猜你喜欢
[Yugong series] go teaching course 009 in July 2022 - floating point type of data type
MySQL 8 of relational database -- deepening and comprehensive learning from the inside out
Does neural network sound tall? Take you to train a network from scratch (based on MNIST)
【黑马早报】每日优鲜回应解散,多地已无法下单;李斌称蔚来将每年出一部手机;李嘉诚欲抄底恒大香港总部大楼;今年国庆休7天上7天...
MySQL优化理论学习指南
ECCV 2022 | CMU提出在视觉Transformer上进行递归,不增参数,计算量还少
Comprehensive and detailed SQL learning guide (MySQL direction)
【论文阅读】Q-BERT: Hessian Based Ultra Low Precision Quantization of BERT
Unity3d empty package APK error summary
Knowledge points of common interview questions: distributed lock
随机推荐
Explore SQL Server metadata (I)
Evolution of xxl-job architecture for distributed scheduling
敏捷开发如何消减协作中的认知偏差?| 敏捷之道
Skiasharp's WPF self drawn bouncing ball (case version)
Method of cocos2d-x sprite moving
The purpose of DDD to divide domains, sub domains, core domains, and support domains
[log frame]
12代酷睿处理器+2.8K OLED华硕好屏,灵耀14 2022影青釉商务轻薄本
ModuleNotFoundError: No module named ‘pywt‘解决方法
可线性渐变的环形进度条的实现探究
“为机器立心”:朱松纯团队搭建人与机器人的价值双向对齐系统,解决人机协作领域的重大挑战
Data office system
Reasons for the rise of DDD and its relationship with microservices
Turn the evolutionary path of push
若依集成minio实现分布式文件存储
Leetcode question brushing - sorting
Where are those test / development programmers in their 30s? a man should be independent at the age of thirty......
【论文阅读】I-BERT: Integer-only BERT Quantization
皕杰报表之文本附件属件
Adcode city code in Gaode map API