From c6eeca284e8a61301165a7f21ab10ab42454bc02 Mon Sep 17 00:00:00 2001 From: antdjohns <114414459+antdjohns@users.noreply.github.com> Date: Tue, 17 Jan 2023 13:55:05 -0800 Subject: [PATCH 1/2] options param added to get_summaries --- polygon/rest/summaries.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/polygon/rest/summaries.py b/polygon/rest/summaries.py index 110f8fbe..02b7718d 100644 --- a/polygon/rest/summaries.py +++ b/polygon/rest/summaries.py @@ -5,6 +5,8 @@ from urllib3 import HTTPResponse from datetime import datetime, date +from .models.request import RequestOptionBuilder + class SummariesClient(BaseClient): def get_summaries( @@ -12,6 +14,7 @@ def get_summaries( ticker_any_of: Optional[List[str]] = None, params: Optional[Dict[str, Any]] = None, raw: bool = False, + options: Optional[RequestOptionBuilder] = None, ) -> Union[List[SummaryResult], HTTPResponse]: """ GetSummaries retrieves summaries for the ticker list with the given params. @@ -30,4 +33,5 @@ def get_summaries( result_key="results", deserializer=SummaryResult.from_dict, raw=raw, + options=options, ) From 47413c1a1add98ff583ebc0e4816e59d6c464c71 Mon Sep 17 00:00:00 2001 From: antdjohns <114414459+antdjohns@users.noreply.github.com> Date: Tue, 17 Jan 2023 13:59:30 -0800 Subject: [PATCH 2/2] deleted unused imports --- polygon/rest/summaries.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/polygon/rest/summaries.py b/polygon/rest/summaries.py index 02b7718d..bc91825c 100644 --- a/polygon/rest/summaries.py +++ b/polygon/rest/summaries.py @@ -1,9 +1,7 @@ from polygon.rest.models.summaries import SummaryResult from .base import BaseClient -from typing import Optional, Any, Dict, List, Union, Iterator -from .models import Order +from typing import Optional, Any, Dict, List, Union from urllib3 import HTTPResponse -from datetime import datetime, date from .models.request import RequestOptionBuilder