bugGNU Octave - Bugs: bug #54045, [octave forge] (financial) fetch...

 
 

bug #54045: [octave forge] (financial) fetch function with google (v 0.5.1) returns error with Octave 4.2.1

Submitter:  None
Submitted:  Sun 03 Jun 2018 03:22:07 PM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Confirmed Assigned to:  None
Originator Name:  Walter R Cottee Originator Email:  -email is unavailable-
Open/Closed:  * Open Release:  * other
Operating System:  * Microsoft Windows Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 22 Oct 2018 10:53:57 PM UTC, comment #2: 

I do not think there is a way to fix this. Perhaps looking into alternate sources to pull financial data from would be a good future project. For the time being, I've removed this functionality.

Parsiad Azimzadeh <parsiad>
Mon 10 Sep 2018 09:02:23 PM UTC, comment #1: 

It seems like the issue is that Google detects the query as automated. I'm not sure if/how this can be fixed.

Parsiad Azimzadeh <parsiad>
Sun 03 Jun 2018 03:22:07 PM UTC, original submission:  

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

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by parsiad (Posted a comment)
  • -email is unavailable- added by lostbard (Updated the item)
  • -email is unavailable- added by lostbard (Adding package maintainer)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-07-19 lostbard StatusNone Confirmed
    2018-07-19 lostbard Carbon-Copy- Added parsiad
    2018-06-04 mtmiller Carbon-CopyRemoved 80942 -
    2018-06-04 mtmiller Summaryfetch function with google (v 0.5.1) returns error with Octave 4.2.1 [octave forge] (financial) fetch function with google (v 0.5.1) returns error with Octave 4.2.1

    Back to the top

    Powered by Savane 3.13-54b4.
    Corresponding source code