Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Yahoo finance API list of all currencies [closed]

I'm using Yahoo Finance API like this:

http://download.finance.yahoo.com/d/quotes.csv?s=GBPEUR=X&f=l1

That gives me the current rates for GBP -> Euro.

But how would I get it to list all available currencies?

http://download.finance.yahoo.com/d/quotes.csv?s=X&f=n0 and http://download.finance.yahoo.com/d/quotes.csv?s=X&f=c4` is a start, but I can't get further than that.

Documentation: http://code.google.com/p/yahoo-finance-managed/wiki/csvQuotesDownload

like image 348
gadgetmo Avatar asked Nov 27 '22 21:11

gadgetmo


2 Answers

you want to check this out, it is exactly what you are looking for: http://finance.yahoo.com/webservice/v1/symbols/allcurrencies/quote?format=json

like image 144
swyx Avatar answered Dec 10 '22 13:12

swyx


There is no official list of currencies/stocks supported by Yahoo Finance API.

You can either go to the currency page, copy paste all the trading pairs and use them directly or use this xml, parse it and retrieve both names and prices.

like image 39
Romain Avatar answered Dec 10 '22 13:12

Romain