diff --git a/README.md b/README.md index 29de893..9b1a405 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,7 @@ Please reach out at info@cambioml.com for an API key. 📜 Examples ```python +import os import sec_agent_sdk from sec_agent_sdk import FormType, FilingTable from sec_agent_sdk.rest import ApiException @@ -36,7 +37,7 @@ from pprint import pprint configuration = sec_agent_sdk.Configuration() # Configure API key authorization: APIKeyHeader -configuration.api_key['APIKeyHeader'] = 'YOUR_API_KEY' +configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"] # Enter a context with an instance of the API client with sec_agent_sdk.ApiClient(configuration) as api_client: diff --git a/sec_agent_sdk/api/default_api.py b/sec_agent_sdk/api/default_api.py index 006e90f..38ada8e 100644 --- a/sec_agent_sdk/api/default_api.py +++ b/sec_agent_sdk/api/default_api.py @@ -44,8 +44,8 @@ def search_sec_filing( self, form_type: FormType, company: StrictStr, - date_filed: StrictStr, table: FilingTable, + date_filed: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -126,8 +126,8 @@ def search_sec_filing_with_http_info( self, form_type: FormType, company: StrictStr, - date_filed: StrictStr, table: FilingTable, + date_filed: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)],