Octave金融包v0.5.1

时间:2018-06-02 19:10:22

标签: octave financial

从Octave(0.5.1)下载了最新的财务软件包,他们声称已经修复了连接到谷歌的错误。但是,当我运行一个简单的测试时,我得到以下内容(在“fetch”命令中):

warning: Fields are currently ignored and all data is returned
warning: called from
    fetch at line 108 column 9
    stock_test at line 8 column 6
error: Could not write Google data to tmp file:
HTTP response code said error
URL was:
http://finance.google.com/finance/historical?q=GE&startdate=01-May-2018&enddate=01-May-2018&histperiod=daily&output=csv
error: called from
    fetch_google at line 62 column 7
    fetch at line 130 column 18
    stock_test at line 8 column 6

显然,在手动输入网址时,Google认为我是一个机器人或某种类型的自动请求系统。代码很简单:

pkg load financial

connection = google();
ticker = 'GE';
fromDate = "01-Jan-20168";
endDate = "01-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);
fprintf(1,'\n Done\n'

);

我需要设置一些东西来说服谷歌我不是机器人吗?

提前感谢您的回复。

0 个答案:

没有答案