Skip to content

Commit f3349c3

Browse files
change to post so we can post long lists of company identifiers
1 parent 83ceacd commit f3349c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

calcbench/api_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1100,11 +1100,11 @@ def _companies(
11001100
elif NAICS_codes:
11011101
payload["NAICSCodes"] = NAICS_codes
11021102
elif company_identifiers:
1103-
payload["companyIdentifiers"] = ",".join(company_identifiers)
1103+
payload["companyIdentifiers"] = company_identifiers
11041104
else:
11051105
payload["universe"] = True
11061106
payload["includeMostRecentFilingExtras"] = include_most_recent_filing_dates
1107-
return _json_GET("api/companies", payload)
1107+
return _json_POST("companies", payload)
11081108

11091109

11101110
def companies_raw(

0 commit comments

Comments
 (0)