Gamestudio Links
Zorro Links
Newest Posts
How to save the contents of an array, WRS/resource
by Superku
Today at 07:43
Shadows Flickering
by Dooley
Today at 07:36
PSSM shadows are flickering and are change darkness level
by Dooley
Today at 02:46
Retrieving Zorro S after a couple of years
by chepstow
Yesterday at 22:53
[ALL STYLES] 2D Videogame Artist (pixel, vector, painted)
by jumpman
Yesterday at 21:18
AUM Magazine
Latest Screens
Triton Wing
ZeaL
Computer Repair Simulator
Collider (working title)
Space Rider
Who's Online
14 registered (jyd, Jens, MatPed, Calli, kmerlo, ibne, Dooley, Dalla, jumpman, Ezzett, 2 invisible), 392 Guests and 4 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
marx_vonde, A_Dearheart, adamcurry, lucnes, Mike429
17629 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: 93
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
Guest

Registered: 04/20/17
Posts: 1
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: 389
Loc: Fuerth, DE
Maybe this will help you.

Top



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

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