Menu

Not getting any data back from any symbols

Bulrush
2017-11-02
2018-04-03
<< < 1 2 (Page 2 of 2)
  • Perry Leopold

    Perry Leopold - 2017-11-07

    Et voila! You are correct, sir. Mea culpa. Thank you!

     
  • Anonymous

    Anonymous - 2017-11-08

    I set up Alpha Vantage with script v1.42 and it seems to be working for my stocks and Vanguard mutual funds and ETFs. I'll report back if I see any glitches. Thanks!

     
  • Perry Leopold

    Perry Leopold - 2017-11-13

    I noticed v1.47 tweaked the Yahoo_JSON module and gave it a try. It works, but the only price data it returns is the last price. Is there a way to get the open/high/low/close data as well?

    e.g. calling for data on TLT with Yahoo_JSON, I get:

          'TLTcurrency' => 'USD',
          'TLTname' => 'TLT (iShares 20+ Year Treasury Bond )',
          'TLTlast' => '124.36',
          'TLTvolume' => 4991029,
          'TLTisodate' => '2017-11-13',
          'TLTtype' => 'ETF',
          'TLTexchange' => 'Sourced from Yahoo Finance (as JSON)',
          'TLTdate' => '11/13/2017',
          'TLTsuccess' => 1,
          'TLTsymbol' => 'TLT',
          'TLTmethod' => 'yahoo_json'
    

    calling AlphaVantage for the same TLT data I get

           'TLThigh' => '124.8100',
          'TLTsymbol' => 'TLT',
          'TLTlast' => '124.3600',
          'TLTvolume' => '5871628',
          'TLTdate' => '11/13/2017',
          'TLTlow' => '124.3100',
          'TLTcurrency' => 'USD',
          'TLTopen' => '124.8000',
          'TLTcurrency_set_by_fq' => 1,
          'TLTmethod' => 'alphavantage',
          'TLTisodate' => '2017-11-13',
          'TLTclose' => '124.3600',
          'TLTsuccess' => 1
    

    Any tips for how to expand the data output from Yahoo_JSON to get the O/H/L/C data?

    TIA.

     
  • Goodvibes2

    Goodvibes2 - 2018-03-14

    Perry Leopold,
    I have added open, high, low + close to YahooJSON.pm.
    Also div_yield eps pe year_range.

    The Pull Reqest asking for this mod to be included in Finance::Quote is:
    https://github.com/finance-quote/finance-quote/pull/79

    If you'd like to test without having to wait for it to be included in the official Finance::Quote module available from CPAN:
    Enter in a browser:
    https://github.com/goodvibes2/finance-quote/blob/FqIss78YahooJson/lib/Finance/Quote/YahooJSON.pm
    click on the Raw button which should open the contents of the new YahooJSON.pm file on a new page.
    Use Control-A to highlight it all, then paste it into a text editor (say Notepad for Windows, gedit for Linux), then 'Save As' over the top of the existing YahooJSON.pm:

    Windows (Strawberry Perl):
    C:\strawberry\perl\site\lib\Finance\Quote\ASX.pm

    Linux
    /usr/local/share/perl/5.22.1/Finance/Quote/ASX.pm

    Sorry, I don't have a Mac so I cannot provide instructions, but I guess you just
    find YahooJSON.pm and replace it with the new version from the above github link.

     
  • James Smith

    James Smith - 2018-04-03

    Initially I had much success with the AlphaVantage service, however over the last 60 days I am getting mostly timeouts. My success rate is only about 5% of the requests get back a response. I suspect the service is overwhelmed.

    I am wondering if others are experiencing the same problem. Is there a work around? Finance::Quote seems to support many data services, but I am unable to get any of them to work reliability. According to the Quote.pm file I am using version 1.42.

    Thank you,
    James.

     
    • Paul Polak

      Paul Polak - 2018-04-03

      I ditched fetching from AlphaVantage for the same reasons you mentioned. I'm finding success with Yahoo JSON (for now).

       
  • James Smith

    James Smith - 2018-04-03

    Thank you Paul. I was not able to get Yahoo JSON to work. I will revisit it after hearing of your success. Were you (or any other users) able to get it to work with any other content provider?

     
<< < 1 2 (Page 2 of 2)

Log in to post a comment.