How to find an index in the Yahoo stock API

I use the Yahoo Stock API to get stock quotes as described here .

Basically, I just put together a link like this:

http://finance.yahoo.com/d/quotes.csv?s=DOW+MSFT+AAPL+GOOG&f=snl1

which will give me a list of the current price for these stocks (DOW, MSFT, AAPL, GOOG).


Everything is nice and dandy, but I would also like to receive information for the NASDAQ and S & P 500 indices, but I have no idea what to use as a symbol for them.

I tried all this:

NASDAQ

INDEXNASDAQ

INDEXNASDAQ: .IXIC

INDEXNASDAQ.IXIC

IXIC

to no avail.

It seems that I have the whole idea wrong (I know little about finance).

Can anyone help me with this?

+4
source share
1 answer

Use the same characters that you see on the corresponding Yahoo finance page.

Nasdaq = ^ IXIC

S & P = ^ GSPC

Dow = ^ DJI

+8
source

Source: https://habr.com/ru/post/1399086/


All Articles