octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #54045] fetch function with google (v 0.5.1) r


From: anonymous
Subject: [Octave-bug-tracker] [bug #54045] fetch function with google (v 0.5.1) returns error with Octave 4.2.1
Date: Sun, 3 Jun 2018 11:22:08 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36

URL:
  <http://savannah.gnu.org/bugs/?54045>

                 Summary: fetch function with google (v 0.5.1) returns error
with Octave 4.2.1
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Sun 03 Jun 2018 03:22:07 PM UTC
                Category: Octave Forge Package
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: Walter R Cottee
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: other
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

Installed the latest financial package version (0.5.1) which fixed the old
google 'fetch' problem. However, trying the new version returns an error as
google thinks it is from an automated source and will not allow the exchange.

The code is simple:
------------------------------------------
pkg load financial

connection = google();
ticker = 'AAPL';
fromDate = "01-Jan-2018";
endDate = "30-May-2018";
frequency = "d";
[d f] = fetch(connection, ticker, fromDate, endDate, frequency);
d = flip(d);

dates = d(:,1);
openPrice = d(:,2);
high = d(:,3);
low = d(:,4);
closePrice = d(:,5);

highlow(high, low, openPrice);

-------------------------------the message from Octave is:
error: Could not write Google data to tmp file:
HTTP response code said error
URL was:
http://finance.google.com/finance/historical?q=AAPL&startdate=01-Jan-2016&enddate=30-Mar-2016&histperiod=daily&output=csv
error: called from
    fetch_google at line 62 column 7
    fetch at line 130 column 18
    stockTest2 at line 8 column 6





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?54045>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]