问题描述
我正在使用 Yahoo 的股票 API 来获取股票报价,如此处所述一>.
I'm using Yahoo's stock API to get stock quotes, as described here.
基本上,我只是组装一个这样的链接:
Basically, I just assemble a link like this:
http://finance.yahoo.com/d/quotes.csv?s=DOW+MSFT+AAPL+GOOG&f=snl1
这会为我提供这些股票(DOW、MSFT、AAPL、GOOG)的当前价格列表.
which'll give me a list of the current price for those stocks (DOW, MSFT, AAPL, GOOG).
一切都很好,但我也想获得纳斯达克和标准普尔 500 指数的信息,但我不知道用什么作为它们的符号.
All's nice and dandy, but I'd also like to get the info for the NASDAQ and S&P 500 Indices, but I have no idea what to use as the symbol for those.
我尝试了所有这些:
纳斯达克
纳斯达克指数
纳斯达克指数:.IXIC
INDEXNASDAQ:.IXIC
INDEXNASDAQ.IXIC
INDEXNASDAQ.IXIC
IXIC
无济于事.
似乎我的整个想法都有缺陷(我对金融不太了解).
It seems like I have the whole idea flawed (I don't really know much about finance).
谁能帮我解决这个问题?
Can anyone help me with this?
推荐答案
使用您在相应的雅虎财经页面上看到的相同符号.
Use the same symbols you see on the corresponding Yahoo finance page.
纳斯达克指数 = ^IXIC
Nasdaq = ^IXIC
标普 = ^GSPC
道指 = ^大疆
这篇关于如何在雅虎股票 API 中查找索引的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!