How to build an XBRL parser in Python: SEC filings to JSON
Python code that flattens the SEC’s XBRL company facts into JSON and parses a filing’s XBRL instance for the regional and product figures the API leaves out, worked on ASML.
Python code that flattens the SEC’s XBRL company facts into JSON and parses a filing’s XBRL instance for the regional and product figures the API leaves out, worked on ASML.
Free Python code that pulls a company’s XBRL financial data from the SEC EDGAR API, worked on Alphabet and checked against its 10-K.
RSI in Python with Wilder’s smoothing on a year of Apple (AAPL) prices from Market Data, checked against a hand-written loop and the old rolling-mean version.
Python portfolio backtesting on real Alphabet (GOOGL) and T-bill prices from 2018 to 2026, checked against the filings: four rebalancing rules, drift and drawdowns compared.