how to get old change value with http://finance.yahoo.com/d/

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
misarod
Forum Newbie
Posts: 3
Joined: Tue Nov 07, 2006 7:46 am

how to get old change value with http://finance.yahoo.com/d/

Post by misarod »

Hello all,
What is the url of the file to get the rates of yesterday from yahoo
I'm programming a module which shows the rates of the change of today and yesterday, but I CANNOT GET values of yesterday's change with http://finance.yahoo.com/d/quotes.csv?f ... 1ohgv&s=GE. So could someone help me and suggest me some solutions about it
Thanks in advance
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Store the results from today. Tomorrow use those results.
misarod
Forum Newbie
Posts: 3
Joined: Tue Nov 07, 2006 7:46 am

Not bad idea

Post by misarod »

... The concept initially was to request from a distant file the rates of the changes , so I need some url pointing to the old csv file from yahoo .
for example :

$yesterdayschanges=new ChangeRates($from_csv_of_yesterday)
$todayschanges=new ChangeRates($from_csv_of_today)

print CompareRates($yesterdayschanges,$todayschanges)


help pliz...
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

As I said, store them.
misarod
Forum Newbie
Posts: 3
Joined: Tue Nov 07, 2006 7:46 am

All right I will try to store them in a .txt file

Post by misarod »

thanks,
All right I will try to store them in a .txt file , that is easy to do but I can't believe the distant url from which yesterday's rates could be loaded doesn't exist. I've spent many hours to search online with no results.
nickvd
DevNet Resident
Posts: 1027
Joined: Thu Mar 10, 2005 5:27 pm
Location: Southern Ontario
Contact:

Post by nickvd »

Have you tried emailing yahoo developer support?
Post Reply