Comments (1)
Company(ticker)
gets the company json with the first 1000 filings for that company. If the company has more than 1000 filings the code issues a call for each page of 1000 filings until all are retrieved. So for given company you could be making several calls
Company(ticker, include_old_filings=False)
makes just the first call, but that's moot since you need all the 10-K's
max_workers>2 will likely overload the requests per second at the moment.
There is a more efficient way to do this .. I need some time to do the details but
- get a list of ciks from the tickers using
get_cik_ticker_lookup()
filings = get_filings(form=['10-K', '10-Q'], filing_date=f'{start_date}:{end_date}')
- filter filings by cik
- Separate into companies
I'm also working on a set of batch improvements including a Throttler inside the request framework but that's a couple releases out (a week or two)
(Side note: you've given me an idea for optimization by getting old filings only when get_filings is called. Right now it's just a filter.)
from edgartools.
Related Issues (20)
- get_facts_for_namespace returns AttributeError HOT 1
- Get latest press release per company / query by attachment name and date HOT 10
- Not able to run EDGAR in Python 3.11.8 HOT 1
- ability to load previously saved filings HOT 4
- rate limits HOT 2
- Geeting the below Issue when using filing.text() HOT 5
- Display multiple financial statements HOT 11
- Rendering images when downloading HTML HOT 5
- Bug: Apply line breaks after headers when rendering HTML HOT 1
- Bug: Not Capturing 10-K Item 1 text HOT 4
- Feature: Implement batch sample tests using Github actions
- Feature: get the filing URLs from a given Filing HOT 1
- filing financials: some facts are missing when converting income statement to dataframe HOT 2
- user agent hard coded HOT 1
- Partially wrong parsing of Apple's 10K for 2016 HOT 18
- set_identity is not working HOT 3
- Fail to Get Filings for a Specific Year HOT 2
- Use local data for Company facts HOT 4
- Some line items are missing in balance sheet report HOT 3
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 edgartools.