Skip to content

Commit a9efa7f

Browse files
fixed SEC litigations API examples
1 parent 7023ed3 commit a9efa7f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1129,18 +1129,18 @@ print(response["data"])
11291129
Access and search the SEC Litigation Releases database. The database includes metadata and extracted structured data from all SEC Litigation Releases filed from 1995 to present.
11301130

11311131
```python
1132-
from sec_api import SecLitigationApi
1132+
from sec_api import SecLitigationsApi
11331133

1134-
secLitigationApi = SecLitigationApi("YOUR_API_KEY")
1134+
secLitigationsApi = SecLitigationsApi("YOUR_API_KEY")
11351135

1136-
query = {
1136+
searchRequest = {
11371137
"query": "releasedAt:[2024-01-01 TO 2024-12-31]",
11381138
"from": "0",
11391139
"size": "50",
11401140
"sort": [{"releasedAt": {"order": "desc"}}],
11411141
}
11421142

1143-
response = secLitigationApi.get_data(query)
1143+
response = secLitigationsApi.get_data(searchRequest)
11441144
print(response["data"])
11451145
```
11461146

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setup(
77
name="sec-api",
8-
version="1.0.26",
8+
version="1.0.27",
99
author="SEC API",
1010
author_email="support@sec-api.io",
1111
description="SEC EDGAR Filings API",

0 commit comments

Comments
 (0)