Real time stock market data in JSON [closed]

时光毁灭记忆、已成空白 提交于 2019-12-06 16:29:16

问题


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?

The goal here is to construct an api where ::

MyStocksSite.org/stock?name=GOOG&start=-24h0m0s

would return 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!

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.


回答1:


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)

STOCK APIs




回答2:


Why not use an existing API? This shows a great working example for historical and live data in json.



来源:https://stackoverflow.com/questions/34920993/real-time-stock-market-data-in-json

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!