Gamestudio Links
Zorro Links
Newest Posts
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
M1 Oversampling
by 11honza11. 04/20/24 20:57
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (Quad), 454 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Cannot download Yahoo Price Data #465321
04/18/17 08:48
04/18/17 08:48
Joined: Aug 2016
Posts: 95
Wien
T
trenki2 Offline OP
Junior Member
trenki2  Offline OP
Junior Member
T

Joined: Aug 2016
Posts: 95
Wien
Since this weekend Zorro seems to fail to download historical price data from yahoo. The following code can reproduce that:

Code:
function run()
{
	assetHistory("AAPL", FROM_YAHOO);
}



I get "Error 056: Can't download AAPL from Yahoo" (this is with Zorro 1.50.6). With Zorro Beta 1.56.3 I get "Bad - can't parse History\history.csv".

But I don't understand why that is. I have internet connection and I am able to download the prices in my browser when I follow this link:

https://ichart.finance.yahoo.com/table.csv?d=6&ignore=.csv&s=AAPL

Can someone reproduce this issue?

Last edited by trenki2; 04/18/17 08:59.
Re: Cannot download Yahoo Price Data [Re: trenki2] #465347
04/20/17 08:27
04/20/17 08:27
Joined: Apr 2017
Posts: 6
Firenze, Toscana
U
Unsane Offline
Newbie
Unsane  Offline
Newbie
U

Joined: Apr 2017
Posts: 6
Firenze, Toscana

Same error for me. No way to download from Yahoo, also with different code:


Code:
// Download historical price data from Yahoo
function main()
{
  int id = http_post("http://ichart.finance.yahoo.com/table.csv?s=AAPL&c=1980",0);
  if(!id) return;
  while(!http_status(id))
    if(!wait(100)) return; // wait for the server to reply
  int length = http_status(id);
  if(length > 0) { //transfer successful?
    string content = (string)malloc(length);
    http_result(id,content,length); // store price data in large string
    file_write("History\AAPL.csv",content,length);
    free(content); // release the string
  }
  http_free(id); //always clean up the id!
}



it hangs on "compiling...."

Any help?

Re: Cannot download Yahoo Price Data [Re: Unsane] #465349
04/20/17 20:33
04/20/17 20:33
Joined: Dec 2013
Posts: 568
Fuerth, DE
Sphin Offline
User
Sphin  Offline
User

Joined: Dec 2013
Posts: 568
Fuerth, DE
Maybe this will help you.


Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1