-
-
Save diveyez/06d53ccba7f145a257b8d3caa5fd7c69 to your computer and use it in GitHub Desktop.
SEC Filings API - Python 3.x Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sec_api import QueryApi | |
queryApi = QueryApi(api_key="YOUR_API_KEY") | |
query = { | |
"query": { "query_string": { | |
"query": "ticker:TSLA AND filedAt:{2020-01-01 TO 2020-12-31} AND formType:\"10-Q\"" | |
} }, | |
"from": "0", | |
"size": "10", | |
"sort": [{ "filedAt": { "order": "desc" } }] | |
} | |
filings = queryApi.get_filings(query) | |
print(filings) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment