【问题标题】:yahoo's API and getQuote from quantmod package for tickers ending "*.MC"来自 quantmod 包的雅虎 API 和 getQuote 用于以“*.MC”结尾的代码
【发布时间】:2014-01-14 17:44:03
【问题描述】:

我正在使用quantmod 的函数getQuote 获得一堆股票的最后报价。例如,我尝试使用 *.MI 形式的符号并毫无问题地得到他们的报价。然而,在处理 *.MC 形式的代码时,尽管符号和信息存在,例如 VISEBRO,但会出现错误。有谁知道API中包含的信息与网站上显示的信息是否不同?有谁知道克服这个问题的方法吗?

library(quantmod)

# note than VIS is a different equity than VIS.MC
getQuote('VIS.MC', what='b2')
getQuote('EBRO.MC', what='b2')

【问题讨论】:

    标签: r quantmod yahoo-finance


    【解决方案1】:

    西班牙交易所的报价目前可能无法通过 yahoo Finance API 下载。

    在 cmets 部分 here 中搜索“MC”会得到:

    ERROSELL
    October 7, 2013 at 2:45 am
    I have a problem in order to obtain data from exchange .MC (Madrid)
    
    SANDRO GIANGRANDI
    October 7, 2013 at 7:03 am
    I understand that ALL stock quotes from the spanish exchange are not available.
    my feeling is that spanish quotes are available on payment, so Yahoo cannot make them available free of charge.
    if you get the historical prices, no problem at all.
    I am not sure to have solved your problem, but it is the same problem I faced some time ago.
    

    另外,here:

    Yahoo Product Support (Admin, Yahoo) responded Dec 21, 2012
    Dear Hector,
    
    We regret to inform you that Spanish stocks are no longer available for download.
    
    Our catalog of downloads continues to offer a broad range of stocks to choose from and we hope you will continue to be a consumer of it.
    
    Y! Product Support
    

    因此当“VIS.MC”符号存在但不能下载时出现错误:

    Error in download.file(paste("http://finance.yahoo.com/d/quotes.csv?s=",  : 
    cannot open URL 'http://finance.yahoo.com/d/quotes.csv?s=VIS.MC&f=d1t1b2'
    

    【讨论】:

      猜你喜欢
      • 2020-07-20
      • 2022-11-01
      • 1970-01-01
      • 2011-11-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多