Yahoo Finance API List of All Currencies

I use the Yahoo Finance API as follows:

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

This gives me current rates on GBP → Euro.

But how do I get him 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 `this is the beginning but i cant get any further.

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

+4
source share
4 answers

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

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

+8
source

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

+12
source

You would just do this:

http://finance.yahoo.com/d/quotes.csv?e=.csv&f=sl1d1t1&s=USDGBP=X,USDEUR=X 

Adding AAABBB = X to the end, comma delimited

+2
source

Here is a one-line bash that will use the JSON channel from @swyx and return a sorted list of each currency that is connected to USD:

 curl http://finance.yahoo.com/webservice/v1/symbols/allcurrencies/quote?format=json \ | grep USD/ | cut -d'/' -f2 | cut -c1-3 | sort 

It works today, but can be changed in the formatting (and, of course, the structure) of the channel over time.

+2
source

All Articles