Comments (7)
- Alpha Vantage has a free API that might work.
(And can I add a general thank you for making this, and putting it on github!)
from isthisstockgood.
I've considered this, but it's tricky to find reliable (free) sources of data for other markets. The current implementation relies on three sites for the main datapoints for the computation (Yahoo, Morningstar, MSN Money). If any of them are missing data, most of the calculations cannot be completed.
Since I don't do a lot of non-US investing, I haven't done a lot of searching. But the action items would probably be:
- Play around with the different markets and see which of the existing sites have inadequate data.
- Find replacement websites to scrape to grab the missing data (conditionally based on the market)
- Update the UI to add the drop-down that you mentioned for selecting the market
from isthisstockgood.
Thanks for the pointer. I'll look in to Alpha Vantage when I have some time and play around with their APIs.
from isthisstockgood.
Let me also thank you for making this, was looking to code one myself but found this :)
Looking at the Morningstar API, perhaps it can be updated
http://financials.morningstar.com/ajax/exportKR2CSV.html?t=x:y
For instance, if one searches cd projekt red on Morningstar
https://www.morningstar.com/stocks/xwar/cdr/analysis
XWAR is the x, and cdr is the y
http://financials.morningstar.com/ajax/exportKR2CSV.html?t=xwar:cdr
would also give you ten years of financial data.
A "Referer" header must also be added on.
https://financials.morningstar.com
Benefits:
Could search for every stock globally
Problem:
There seems to be no structure to x, while Y is the ticker, which leaves two options.
- Users have to manually search for whatever morningstar designated as X, while typing the ticker as Y
- Scrape from Morningstar what is x (a bit more complicated and will need some work)
The first will be a dropdown selector allowing the user to choose the market of the stock. The second will be a text input where the user can type the ticker of the stock.
But for now, I have been just using ADRs to look at international stocks. I must thank you again for making this tool!
from isthisstockgood.
Looks like morningstar has moved a lot of their APIs and put them behind a paywall. many of the queries that were working before now return "The report is no longer supported".
I fell back to using an older site, that is also US only for now. Just to keep the web page functional. But I think it's overdue to find a more reliable and robust data source.
I still haven't found time to dig deeply in to Alpha Vantage, but I will one of these weekend.
from isthisstockgood.
Looks like MSN Money provides data for markets outside US.
Below example for CCC company from Poland:
Get the company SecID
: https://services.bingapis.com/contentservices-finance.csautosuggest/api/v1/Query?query=ccc
Get financial data once we have SecId
: https://services.bingapis.com/contentservices-finance.financedataservice/api/v1/KeyRatios?stockId=aqbuvh
from isthisstockgood.
The code is now working primarily off of MSNMoney, so I believe this is fixed per losgrandes comment above.
from isthisstockgood.
Related Issues (20)
- First couple clicks on 'analyze' button don't seem to do anything. HOT 7
- Sticker Price / Margin Of Safety calculation failing. HOT 2
- Crash found for some tickers.
- Crash can occur, but not sure on repro steps HOT 3
- Margin of safety based on ttm EPS gives quite surprising result. HOT 4
- Queries are failing - im guessing morningstar scraping is failing HOT 6
- says mbuu is an invalid stock HOT 4
- which of the three valuation methods from R#1 is it using? HOT 1
- Support for tickets with hyphen - or period . ? HOT 10
- Sticker Price and Margin of Safety Price Always Show as Undefined HOT 6
- Add simple daily CI tests to verify data scraping dependencies HOT 1
- Long term debt is unknown HOT 5
- StockRow's ROIC is inaccurate
- Getting "Undefined" instead of Sticker Price for NVDA and other tickers HOT 6
- Fixes to the JS and major problem with yahoo API HOT 4
- Another ship's lost HOT 8
- Undefined values HOT 1
- Debt - should we consider only the long-term amount, like we did before the recent fixes? HOT 4
- Debt-to-equity ratio seems off HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from isthisstockgood.