Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

options param added to get_summaries #363

Merged
merged 2 commits into from
Jan 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions polygon/rest/summaries.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
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


class SummariesClient(BaseClient):
Expand All @@ -12,6 +12,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.
Expand All @@ -30,4 +31,5 @@ def get_summaries(
result_key="results",
deserializer=SummaryResult.from_dict,
raw=raw,
options=options,
)