Live data from Hacker News

Ways to fetch financial data for algo trading

github.com

11–15 of 15 posts

Re: Ways to fetch financial data for algo trading

#11
post #2

Shameless plug to a free service I made, https://stox.dev It's essentially a stock screener. It lets you write arbitrary queries on over 300 fields and ratios from the firm's accounting statements. Its the opposite of algorithmic, but helps you narrow down the field of stocks you may find interesting (eg. Low PE, high book value, certain industries, etc) I would love some feedback

This is very cool. I’m sending the link off to an investor friend who is programming-savvy, and to some others who aren’t.

I can deal with the auto-complete. A list of fields would help whet the appetite of my less-programming savvy friends. Having a manual or tutorial would help, too. A good number of potential users are retired and might have more of that learning-style.

It would be useful to be able to get a list of the industries in your db so a user could deal with the inconsistencies of that naming data. For example, EIN, for instance, matches to profile.industry == "UtilitiesRegulated Electric" but the detailed info displays "Utilities Regulated Electric”. Others, like DUK, match to the latter. Both of these are on NYSE.

I was doing some simple queries, but now it’s not returning data. Maybe you're getting too much attention from hacker news.

Any thought or intention of adding historical data? And allowing for backtesting of screens?

Re: Ways to fetch financial data for algo trading

#13
post #11
post #2

Shameless plug to a free service I made, https://stox.dev It's essentially a stock screener. It lets you write arbitrary queries on over 300 fields and ratios from the firm's accounting statements. Its the opposite of algorithmic, but helps you narrow down the field of stocks you may find interesting (eg. Low PE, high book value, certain industries, etc) I would love some feedback

This is very cool. I’m sending the link off to an investor friend who is programming-savvy, and to some others who aren’t. I can deal with the auto-complete. A list of fields would help whet the appetite of my less-programming savvy friends. Having a manual or tutorial would help, too. A good number of potential users are retired and might have more of that learning-style. It would be useful to be able to get a list…

Thanks or the feedback.

Regarding manual or tutorial, I agree that its difficult to manage the fields. I namespace the fields into profile, income statement, balance sheet and quotes so ideally you only have to search [incomeStatement...] and see some fields. But I'll try to list them all out.

Regarding the enums, I thought about that before and wanted to implement auto-complete enums in the language grammar but so it was bit complicated so I decided to kick the can, but I'll circle back around to it. There are only a few string fields and I put in regex matching so you can just do contains `contains "electric"`

What queries didn't return? It's a static site, it shouldn't be affected by the traffic.

The historical data is tough because reporting periods aren't all the same. I don't have a back tester either. I did have a feature before where you can plot any attribute historically, but I didn't find it that useful.

Re: Ways to fetch financial data for algo trading

#14
post #13
post #11

Earlier quoted context omitted.

This is very cool. I’m sending the link off to an investor friend who is programming-savvy, and to some others who aren’t. I can deal with the auto-complete. A list of fields would help whet the appetite of my less-programming savvy friends. Having a manual or tutorial would help, too. A good number of potential users are retired and might have more of that learning-style. It would be useful to be able to get a list…

Thanks or the feedback. Regarding manual or tutorial, I agree that its difficult to manage the fields. I namespace the fields into profile, income statement, balance sheet and quotes so ideally you only have to search [incomeStatement...] and see some fields. But I'll try to list them all out. Regarding the enums, I thought about that before and wanted to implement auto-complete enums in the language grammar but so i…

I didn't realize it was running locally, so I think I was inadvertently thrashing it: running in Chrome with many, many tabs open; on an old machine that was probably running low on memory; and randomly pressing F5 instead of Cmd-Enter (some part of my brain was thinking of a SQL environment I use).

I added price and industry to the default display, used NYSE and Nasdaq data sets, and queried something like filter profile.lastDiv > 3 and profile.industry startsWith "Utilities" and profile.industry contains "Electric". I probably tried to start my query before the data sets completed loading. I don't know if interrupting the data loading or pressing F5 is more correlated with it acting strangely. (This is on the latest Chrome, under OSX 10.13.6.)

I tried again using Firefox 79.0 and it works fine. F5 reloads the page (and logs me out, ahem). Tried to do a few things while it was loading data and it was more solid.

I'd put saving column layouts (at least the last one used) ahead of enums for field matching. Seems like once you add enums, you'll have to be continually vigilant for data oddities.

I think I'd find it interesting to be able to plot attributes or computed attributes against another. Not sure how other tools get around the reporting period issue.

Interesting tool; thanks for putting it out.

Re: Ways to fetch financial data for algo trading

#15
After doing some scraping, next is time for some action and implementing an investment strategy using Python with the data we scraped, here is an implementation of the amazing magic formula by Joel Greenblatt, which is known to generate amazing returns in the long term, find below the implementation in python - https://github.com/rbhatia46/Greenblatt-Magic-Formula-Value-...
Post reply on HN