Better HN
topnewbestaskshowjobs
Log inSign up

jgfriedman1999

10 karma · joined Apr 27, 2024 (2y ago) · 34 submissions

Taking a break from my PhD to build stuff. https://github.com/john-friedman/datamule-python
Submissions

1.

Show HN: Document parsing 5B tokens on a single CPU thread

2 points · by jgfriedman1999 · 3w ago · discuss

comment 7mo ago · link · parent

Neat! Surprised at how cheap it was.

3.

Show HN: I wrote an open source SEC filing compliance package

1 points · by jgfriedman1999 · 8mo ago · discuss

4.

Getting SEC filings faster by predicting future filing url

4 points · by jgfriedman1999 · 11mo ago · discuss

comment 1y ago · link · parent

Love the long rant.

re: metadata table - it's constructed from the SEC's submissions.zip, which they update daily. What my script does is download the zip, decompress just the bytes where the information (ticker, sic code, etc) is stored, then convert into a csv.

And yep! Agree with most of this. Currently, I'd say my data is in the stage where it's useful for startups / phd research and some hedge funds / quant stuff (at least that's who is using it so far!)

I've seen the trillion dollar trades, and they're hilarious! You see it every so often in Form 3,4,5 disclosures.

re: LLMs, this is something I'm planning to move into in a month or two. I'm mostly planning to use older NLP methods which are cheaper and faster, while using LLMs for specific stuff like structured output. e.g. wrds boardex data can be constructed from 8-k item 5.02s.

I think the biggest difficulty wrt to data is just the raw data ingest is annoying AF. My approach has been to make each step easy -> use it to build the next step.

comment 1y ago · link · parent

Yep! Pretty sure it is still Akamai. Via testing I've noticed they cap downloads at ~6mbps from e.g. home internet, but not GitHub or AWS.

SGML parsing is fun! - I've opensourced a sgml parser here https://github.com/john-friedman/secsgml

Securities master to link against - Interesting. Here's a pipeline off the top of my head 1. Get CUSIP, nameOfIssuer, titleOfClass using the Institutional Holdings database 2. Use the company metadata crosswalk to link CUSIP + titleOfClass to nameOfIssuer to get cik https://github.com/john-friedman/datamule-data/blob/master/d... (recompiled daily using GH actions) 3. Get e.g. us-gaap:EarningsPerShareBasic from the XBRL database. Link using cik. Types of stock might be a member - so e.g. Class A, Class B? Not sure there.

For form 4, not sure what you mean by event study. Would love to know!

comment 1y ago · link · parent

How it works:

Websocket:

1. Two AWS ec2 t4g.nano instances polling the SEC's RSS and EFTS endpoints. (RSS is faster, EFTS is complete). 2. When new submissions are detected, they are sent to the Websocket (t4g.micro websocket, using Go for greater concurrency). 3. Websocket sends signal to consumers.

Archive:

1. One t4g.micro instance. Receives notifications from websocket, then gets submissions SGML from the SEC. 2. If submission is over size threshold, compresses with zstandard. 3. Uploads submissions to Cloudflare R2 bucket. (Zero egress fee, just class A / B operations). 4. Cloudflare R2 bucket is proxied behind my domain, with caching.

RDS

1. ECS Fargate instances set to run daily at 9 AM UTC. 2. Downloads data from archive, then parses them, and uploads them into AWS dbt.medium MySQL RDS. 3. Also handles reconciliation for the archive in case any filings were missed.

8.

New budget financial API, based on EDGAR data

7 points · by jgfriedman1999 · 1y ago · 5 comments

9.

Show HN: Doc2dict a fast, open-source document to dict converter – No AI

4 points · by jgfriedman1999 · 1y ago · discuss

comment 1y ago · link · parent

Gotcha. I mostly lurk on other people's posts, and post the stuff I'm working on. If the frequency is too much, I'll lower it.

Thank you for the gentle advice. Appreciate it.

11.

Predicting good news using regulatory disclosure patterns, Python, SEC

6 points · by jgfriedman1999 · 1y ago · 2 comments

12.

Show HN: Simple SEC Discord Bot(github.com ↗)

3 points · by jgfriedman1999 · 1y ago · discuss

13.

Show HN: A faster and compliant way to scrape the SEC(github.com ↗)

1 points · by jgfriedman1999 · 1y ago · discuss

14.

MuleBot: An open-source tool-calling SEC chatbot(chat.datamule.xyz ↗)

3 points · by jgfriedman1999 · 2y ago · discuss

12