Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • returnsyh command donwloads historical data for any ticker with historical data in Yahoo - Error

    Hi,

    I am getting the following error with returnsyh command donwloads historical data for any ticker with historical data in Yahoo:

    Code:
    returnsyh AAPL MSFT GE GM WMT XOM, fm(1) fd(1) fy(2012) lm(12) ld(31) ly(2015) frequency(m) price(adjclose)
    Code:
    . returnsyh AAPL MSFT GE GM WMT XOM, fm(1) fd(1) fy(2012) lm(12) ld(31) ly(2015) frequency(m) price(adjclose)
    Yahoo does not have the ticker AAPL or could not be reached
    Please make sure you are online and/or redefine your range
    Yahoo does not have the ticker MSFT or could not be reached
    Please make sure you are online and/or redefine your range
    Yahoo does not have the ticker GE or could not be reached
    Please make sure you are online and/or redefine your range
    Yahoo does not have the ticker GM or could not be reached
    Please make sure you are online and/or redefine your range
    Yahoo does not have the ticker WMT or could not be reached
    Please make sure you are online and/or redefine your range
    Yahoo does not have the ticker XOM or could not be reached
    Please make sure you are online and/or redefine your range
    no variables defined
    r(111);
    Does anyone know how to reach with yahoo server? Thanks.

  • #2
    I believe that the Yahoo Finance API has been shut down.

    Comment


    • #3
      Any known alternative to it?

      Comment


      • #4
        If I am correct returnisyh is part of mvport command and the latter had problems with the yahoo finance API as William Lisowski said.

        Nonetheless, the author of that command, Alberto Dorantes, developed a new command, getsymbols which works fine. You may want to use it.

        Comment


        • #5
          from Ssc install? how do you use "getsymbols"? Thanks.

          Comment


          • #6
            Code:
            search getsymbols
            ssc describe getsymbols
            ssc install getsymbols
            help getsymbols

            Comment

            Working...
            X