简体   繁体   English

我可以获取yahoo KOSPI KOSDAQ符号列表以在R中使用getsymbol函数吗?

[英]Can I get yahoo KOSPI KOSDAQ symbol list to use getsymbol function in R?

library(quantmod)
library(rpart)
library(rpart.plot)
library(stocks)
today <- Sys.Date()
kq <- getSymbols("^kq11", from = today-100, to = today, auto.assign = F)

R's quantmod package provide getSymbols function that call stock price information. R的quantmod包提供了调用股票价格信息的getSymbols函数。

But I can not call many stock data to use loop. 但是我不能调用很多股票数据来使用循环。 Because I don't know yahoo symbol list. 因为我不知道雅虎符号列表。

Can I get all yahoo KOSPI(Korea Composite Stock Price Index) KOSDAQ(Korea Securities Dealers Automated Quotations) symbol list to use getsymbol function in R? 我可以获取所有的Yahoo KOSPI(韩国综合股票价格指数)KOSDAQ(韩国证券交易商自动报价)符号列表以在R中使用getsymbol函数吗?

今天<-Sys.Date()getSymbols(“ KRX:KOSPI200”,src =“ google”,auto.assign = F,from ='2015-01-01','today')

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在R中使用子函数更改具有加号(+)的因子水平? - How can I use a sub function in R to change a factor level that has a plus (+ ) symbol? 如何使用列表项作为 R 循环中函数的输入? - How can I use items of a list as input for a function in a loop in R? 如何使用正则表达式解析 R 中的 OCC 选项符号? - How can I use regex to parse an OCC Option Symbol in R? 如何获得R中所有Yahoo Finance共同基金的列表? - How to get the list of all Yahoo Finance mutual funds in R? 如何使用 getsymbols 功能删除每天从雅虎财经下载的数据中的 NA? - How can I delete NA´s within data downloaded daily from Yahoo Finance with the use of getsymbols function? 我可以使用列表/数据帧中的名称在 R 脚本中识别为循环函数的列表/数据帧名称吗? - Can I use names from a list/dataframe, to be recognised as list/dataframe name within R script for a loop function? 不能在 r 的 pmap 函数中使用列表 - can not use list in pmap function in r 如何获得R中列表中的元素? - How can I get a element in list in R? 我如何在R中将函数名称与for一起使用 - How I can use the function names with for in R R:如何在数据框的提取符号$中使用循环变量i? - R: How can I use loop variable i in the extract symbol $ of a dataframe?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM