chubin / rate.sx

:moneybag: curl cryptocurrencies exchange rates
http://rate.sx
MIT License
981 stars 88 forks source link

Feature Request: Stock Market Info #16

Open jrcharney opened 6 years ago

jrcharney commented 6 years ago

I really like showing this program off to my financial friends. But this app is limited to crypto currencies.

Have you though about making this program usable for calling up CNBC's Quote Request Page

I was rather impressed with how it could pull up data, I recreated the CNBC Quote Request Page on CodePen even though the iframe doesn't work. (It works locally on my computer though.)

What do you think about adding this feature?

chubin commented 6 years ago

@jrcharney Jason, it is an absolute must, I already wanted to implement it many times, and we already discussed it with many developers. The main question of course, should we archive the data on our side as we do it for the cryptos, or should we pull the historical data just in time.

If (1) then we should find some reasonable subset, because all available stocks is too much (and useless); if (2) then the main question is what could be a good source of historical stock prices data

jrcharney commented 6 years ago

The main question of course, should we archive the data on our side as we do it for the cryptos, or should we pull the historical data just in time.

I'm fairly certain historic data can be requested through whatever source you plan to call upon. I know Yahoo! Finance does this, but I'd like to see if I can reverse engineer a way to do it with CNBC, Wall Street Journal or somthing like that. It would be even better to do it through the markets indicies themselves (i.e. Nasdaq), but if someone else has it in an nice JSON format, then why not use that data and just give it an awesome interface?

If (1) then we should find some reasonable subset, because all available stocks is too much (and useless);

I probabably would default to the major blue chip stocks (your Apple's, IBMs, Microsofts, Intel's, and Verizons). Then there are the comodities for futures on goods (like what they do that the Chicago Board of Exchange) for agricultural and industrial goods; ETFs which are like groups of stocks in a specific industry; But I would say a good place to start, especially since this program is already set up for currencies, is to give ForEx (Foreign Exchanges) a try or even precious metals (Gold, Silver, Platinum, Paladium, even ANTIMATTER!) What better for a program that tracks the prices of an imaginary currencies than for it to track something that may or may not exists.

if (2) then the main question is what could be a good source of historical stock prices data

That question I think should answer itself. You programmed it to store stuff on your server, which is good because I think the most folks who deal with the old markets (stocks, bonds, comodies, etc.) still have a rough time wrapping their heads around how cryptocurrencies work. Even with CNBC spending like an hour in the afternoon talking about crypto, it's a lot like looking at a group of parents explain how the Pokemon Card Game works. It's awkward, and as much as they want to try to understand how to play it because they've learned what fun it is to play, they'll likely still get beat down by some 10 year old who think's he's hot stuff because he has a Charizard in his deck.

So I say let your program handle the crypto stuff, which is working out pretty well so far, but in terms of all that other stuff, try to tinker with the websites to see if there is an API that can be reverse engineered out of it.

Unless they start applying API keys to limit access to their interface, I think it will work out.

Besides, you probably don't really care to store what Corn Prices were in October 1972 or the history of Enron stock. Let the big guys handle that.