Skip to content

Added limit param to Indicators #420

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

Merged
merged 1 commit into from
Apr 3, 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: 8 additions & 0 deletions polygon/rest/indicators.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def get_sma(
adjusted: Optional[bool] = None,
expand_underlying: Optional[bool] = None,
order: Optional[Union[str, Order]] = None,
limit: Optional[int] = None,
params: Optional[Dict[str, Any]] = None,
series_type: Optional[Union[str, SeriesType]] = None,
raw: bool = False,
Expand All @@ -50,6 +51,7 @@ def get_sma(
:param expand_underlying: Whether to include the aggregates used to calculate this indicator in the response
:param order: Sort the results by timestamp. asc will return results in ascending order (oldest at the top),
desc will return results in descending order (newest at the top).The end of the aggregate time window
:param limit: Limit the number of results returned, default is 10 and max is 5000
:param params: Any additional query params
:param series_type: The price in the aggregate which will be used to calculate the simple moving average
i.e. 'close' will result in using close prices to calculate the simple moving average
Expand Down Expand Up @@ -81,6 +83,7 @@ def get_ema(
adjusted: Optional[bool] = None,
expand_underlying: Optional[bool] = None,
order: Optional[Union[str, Order]] = None,
limit: Optional[int] = None,
params: Optional[Dict[str, Any]] = None,
series_type: Optional[Union[str, SeriesType]] = None,
raw: bool = False,
Expand All @@ -103,6 +106,7 @@ def get_ema(
:param expand_underlying: Whether to include the aggregates used to calculate this indicator in the response
:param order: Sort the results by timestamp. asc will return results in ascending order (oldest at the top),
desc will return results in descending order (newest at the top).The end of the aggregate time window
:param limit: Limit the number of results returned, default is 10 and max is 5000
:param params: Any additional query params
:param series_type: The price in the aggregate which will be used to calculate the simple moving average
i.e. 'close' will result in using close prices to calculate the simple moving average
Expand Down Expand Up @@ -134,6 +138,7 @@ def get_rsi(
adjusted: Optional[bool] = None,
expand_underlying: Optional[bool] = None,
order: Optional[Union[str, Order]] = None,
limit: Optional[int] = None,
params: Optional[Dict[str, Any]] = None,
series_type: Optional[Union[str, SeriesType]] = None,
raw: bool = False,
Expand All @@ -156,6 +161,7 @@ def get_rsi(
:param expand_underlying: Whether to include the aggregates used to calculate this indicator in the response
:param order: Sort the results by timestamp. asc will return results in ascending order (oldest at the top),
desc will return results in descending order (newest at the top).The end of the aggregate time window
:param limit: Limit the number of results returned, default is 10 and max is 5000
:param params: Any additional query params
:param series_type: The price in the aggregate which will be used to calculate the simple moving average
i.e. 'close' will result in using close prices to calculate the simple moving average
Expand Down Expand Up @@ -189,6 +195,7 @@ def get_macd(
adjusted: Optional[bool] = None,
expand_underlying: Optional[bool] = None,
order: Optional[Union[str, Order]] = None,
limit: Optional[int] = None,
params: Optional[Dict[str, Any]] = None,
series_type: Optional[Union[str, SeriesType]] = None,
raw: bool = False,
Expand All @@ -212,6 +219,7 @@ def get_macd(
:param expand_underlying: Whether to include the aggregates used to calculate this indicator in the response
:param order: Sort the results by timestamp. asc will return results in ascending order (oldest at the top),
desc will return results in descending order (newest at the top).The end of the aggregate time window
:param limit: Limit the number of results returned, default is 10 and max is 5000
:param params: Any additional query params
:param series_type: The price in the aggregate which will be used to calculate the simple moving average
i.e. 'close' will result in using close prices to calculate the simple moving average
Expand Down