https://github.com/yashwanth2804/TickerSymbol
Recently I had a hackathon challenge to work on realtime stock markect data end points.After the hours of research from the various stock market end-point-apis , I had short listed a few.I thought that might be enough to complete my project.
-
IEX , Pros: A real boon to stock market app developers because of the free unlimited api calls without any limitation. Cons: No realtime data , only with 15 min delay
-
AlphaVantage, Pros: A site for pro developers with near realtime data/live stock data but comes with api key mess and limitation on requests/min made
After a few days of walkthrough, I found my self on the fence because I have to make an auto complete search field like google search box for stock name/symbol searches.
the main catch here is Symbol Search AutoComplete functionality already found in AlphaVantage, that too 5 API calls/min and 500 api calls/day.Imagine your end user typing keyword of length about 6 char in a minute then you will run out of APIs.
Then I had an idea of mixing the both worlds, no API key mess from IEX and high end functionality from AlphaVantage. At first I googled if any already existed but found none while yahoo fiance api was widely used for keyword search,sadly it's deprecated. I had no other choice to stick to AlphaVintage which costs around $30/month,30 api/min.
Thus I ended up making my own keyword filtering on ~8000 stock symbols downloaded data.I thought it could be great if I host in cloud so that other devs can also use it.
Github : https://github.com/yashwanth2804/TickerSymbol
Demo : https://tickersearch.surge.sh/
https://ticker-2e1ica8b9.now.sh//keyword/[KEYWORD_SEARCH]
eg : https://ticker-2e1ica8b9.now.sh/keyword/googl
{
"results":
[
{"symbol":"GOOG","name":"Alphabet Inc."},
{"symbol":"GOOGL","name":"Alphabet Inc."}
],
"message":""
}
you can make request like this format below <Base_url>/keyword/[KEYWORD_SEARCH]/limit/[NUMBER]
eg : https://ticker-2e1ica8b9.now.sh/keyword/goog/limit/1
{"results":[{"symbol":"GOOG","name":"Alphabet Inc."}],"message":""}
you can make request like this format below
<Base_url>/add/[symbol]/[name]
eg : https://ticker-2e1ica8b9.now.sh/add/META/thenewfacebookInc
you can make request like this format below
<Base_url>/delete/[symbol]
eg : https://ticker-2e1ica8b9.now.sh/delete/META
NOTE : Both Ticker add and delete needs a server re-start unless you are using any nodemon or similar.
npm i && npm start
Pros
- Free Free Free
- No API key mess , No email spamming
- Nothing more Nothing less
Cons
- Weired API end point url
- NodeJS
- Hosted on ZEIT ,with 100GB bandwidth and 3 instances available
- documentation support for react,and javascript
- When user makes a query they will get the live stock price in return with matched reults
Fork it [https://github.com/yashwanth2804/TickerSymbol]
[https://github.com/<your_github_name>/TickerSymbol.git or git@github.com:your_github_name/TickerSymbol.git]
git clone https://github.com/your_github_name/TickerSymbol.git
cd first-contributions
git checkout -b
git add you_worked_files
git commit -m "what your features"
git push origin your_branch
Then from your account make a pull request