Gamestudio Links
Zorro Links
Newest Posts
Votes for future features
by DdlV
Yesterday at 23:46
Project Aum - Winter Contest 2017 - Update
by George
Yesterday at 22:37
hold key code returns very high value instead of 0 or 1
by 3run
Yesterday at 16:08
oldschool fps project
by 3run
Yesterday at 15:46
Sam Foster Sound | Experienced Indie Game Composer for Hire
by titanicpiano14
Yesterday at 15:02
[ALL STYLES] 2D Videogame Artist (pixel, vector, painted)
by DesixStudios
12/15/17 14:45
Easy question
by jcl
12/15/17 13:47
AUM Magazine
Latest Screens
RPG PARTY
Triton Wing now available on Steam
AckCon'17: Lotter vs The World
Triton Wing
Who's Online
12 registered (Ch40zzC0d3r, Dico, 3run, boatman, AndrewAMD, alibaba, easyX, 4 invisible), 451 Guests and 4 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
Meisterbene, Amocfx, cme, pataba, byano
17835 Registered Users
Topic Options
Rate This Topic
#465321 - 04/18/17 10:48 Cannot download Yahoo Price Data
trenki2 Offline
Junior Member

Registered: 08/09/16
Posts: 95
Loc: 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?


Edited by trenki2 (04/18/17 10:59)

Top
#465347 - 04/20/17 10:27 Re: Cannot download Yahoo Price Data [Re: trenki2]
Unsane Offline
Newbie

Registered: 04/20/17
Posts: 6
Loc: 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?

Top
#465349 - 04/20/17 22:33 Re: Cannot download Yahoo Price Data [Re: Unsane]
Sphin Offline
Senior Member

Registered: 12/11/13
Posts: 418
Loc: Fuerth, DE
Maybe this will help you.

Top



Gamestudio download | chip programmers | Zorro platform | shop | resources | magazine | manual | support faq | bugs

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) 3dgamestudio.net