-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: allow to skip date_filed query
- Loading branch information
Kai Hu
committed
May 20, 2024
1 parent
702a627
commit 4dda0c6
Showing
2 changed files
with
5 additions
and
4 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,7 @@ Please reach out at [email protected] for an API key. | |
|
||
```python | ||
import sec_agent_sdk | ||
from sec_agent_sdk import FormType, FilingTable | ||
from sec_agent_sdk.rest import ApiException | ||
from pprint import pprint | ||
|
||
|
@@ -43,12 +44,12 @@ with sec_agent_sdk.ApiClient(configuration) as api_client: | |
api_instance = sec_agent_sdk.DefaultApi(api_client) | ||
form_type = FormType.EIGHT_K # FormType | 10-K | 10-Q | 8-K | 6-K | ||
company = 'AA' # ticker | ||
date_filed = '2024-04-17' # str | date string in YYYY-mm-dd | ||
table = FilingTable.INCOME_STATEMENT # FilingTable | 'cash-flow-statement' | 'income-statement' | 'balance-sheet' | ||
table = FilingTable.BALANCE_SHEET # FilingTable | 'cash-flow-statement' | 'income-statement' | 'balance-sheet' | ||
date_filed = '2024-04-17' # str (date string in YYYY-mm-dd) or None(the latest filing will be retrieved) | ||
|
||
try: | ||
# Search sec filing | ||
api_response = api_instance.search_sec_filing(form_type, company, date_filed, table) | ||
api_response = api_instance.search_sec_filing(form_type, company, table, date_filed) | ||
print("The response of DefaultApi->search_sec_filing:\n") | ||
pprint(api_response) | ||
except ApiException as e: | ||
|
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