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.
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)
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