JSON 格式的实时股市数据
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/34920993/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Real time stock market data in JSON
提问by kpie
I was wondering what the place to go to start building an api would be? Where does one get the current state of the market?
我想知道开始构建 api 的地方是什么?从哪里获得市场的当前状态?
The goal here is to construct an api where ::
这里的目标是构建一个 api,其中 ::
MyStocksSite.org/stock?name=GOOG&start=-24h0m0s
would return json
会返回 json
Goog24h0m0s = {price:[...],time:[...]}
This should be fairly simple given a dependable source for data.
考虑到可靠的数据来源,这应该相当简单。
Also If there is a compilation of examples for real time stock tracking applications, that would be kewl. If there was a place where it already came out in json I nothing need even be built to there, but I would still love to know about it!
此外,如果有实时股票跟踪应用程序的示例汇编,那将是 kewl。如果有一个地方已经在 json 中出现了,我什至不需要在那里建造任何东西,但我仍然很想知道它!
Edit::
编辑::
I would really like to get more than just the Date, Open, High, Low, Close, Volume, and Adj Close. I would like to have the actual time series data for the prices throughout a given trading day.
我真的想得到的不仅仅是日期、开盘价、最高价、最低价、收盘价、成交量和调整收盘价。我想获得整个给定交易日价格的实际时间序列数据。
回答by Josip Ivic
Also, depending on usage, and to narrow down stock market, you can try any from this apis. (There are 96 of them, and they are pretty useful)
此外,根据使用情况,为了缩小股票市场,您可以尝试使用此 apis 中的任何一个。(有 96 个,它们非常有用)

