You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: polygon/rest/reference.py
+13-11Lines changed: 13 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,8 @@
25
25
fromurllib3importHTTPResponse
26
26
fromdatetimeimportdate
27
27
28
+
from .models.requestimportRequestOptionBuilder
29
+
28
30
29
31
classMarketsClient(BaseClient):
30
32
defget_market_holidays(
@@ -85,7 +87,7 @@ def list_tickers(
85
87
order: Optional[Union[str, Order]] ="asc",
86
88
params: Optional[Dict[str, Any]] =None,
87
89
raw: bool=False,
88
-
options: Optional[dict] =None,
90
+
options: Optional[RequestOptionBuilder] =None,
89
91
) ->Union[Iterator[Ticker], HTTPResponse]:
90
92
"""
91
93
Query all ticker symbols which are supported by Polygon.io. This API currently includes Stocks/Equities, Crypto, and Forex.
@@ -126,7 +128,7 @@ def get_ticker_details(
126
128
date: Optional[str] =None,
127
129
params: Optional[Dict[str, Any]] =None,
128
130
raw: bool=False,
129
-
options: Optional[dict] =None,
131
+
options: Optional[RequestOptionBuilder] =None,
130
132
) ->Union[TickerDetails, HTTPResponse]:
131
133
"""
132
134
Get a single ticker supported by Polygon.io. This response will have detailed information about the ticker and the company behind it.
@@ -153,7 +155,7 @@ def get_ticker_events(
153
155
ticker: Optional[str] =None,
154
156
params: Optional[Dict[str, Any]] =None,
155
157
raw: bool=False,
156
-
options: Optional[dict] =None,
158
+
options: Optional[RequestOptionBuilder] =None,
157
159
) ->Union[TickerChangeResults, HTTPResponse]:
158
160
159
161
"""
@@ -191,7 +193,7 @@ def list_ticker_news(
191
193
order: Optional[Union[str, Order]] =None,
192
194
params: Optional[Dict[str, Any]] =None,
193
195
raw: bool=False,
194
-
options: Optional[dict] =None,
196
+
options: Optional[RequestOptionBuilder] =None,
195
197
) ->Union[Iterator[TickerNews], HTTPResponse]:
196
198
"""
197
199
Get the most recent news articles relating to a stock ticker symbol, including a summary of the article and a link to the original source.
@@ -221,7 +223,7 @@ def get_ticker_types(
221
223
locale: Optional[Union[str, Locale]] =None,
222
224
params: Optional[Dict[str, Any]] =None,
223
225
raw: bool=False,
224
-
options: Optional[dict] =None,
226
+
options: Optional[RequestOptionBuilder] =None,
225
227
) ->Union[List[TickerTypes], HTTPResponse]:
226
228
"""
227
229
List all ticker types that Polygon.io has.
@@ -263,7 +265,7 @@ def list_splits(
263
265
order: Optional[Union[str, Order]] =None,
264
266
params: Optional[Dict[str, Any]] =None,
265
267
raw: bool=False,
266
-
options: Optional[dict] =None,
268
+
options: Optional[RequestOptionBuilder] =None,
267
269
) ->Union[Iterator[Split], HTTPResponse]:
268
270
"""
269
271
Get a list of historical stock splits, including the ticker symbol, the execution date, and the factors of the split ratio.
@@ -337,7 +339,7 @@ def list_dividends(
337
339
order: Optional[Union[str, Order]] =None,
338
340
params: Optional[Dict[str, Any]] =None,
339
341
raw: bool=False,
340
-
options: Optional[dict] =None,
342
+
options: Optional[RequestOptionBuilder] =None,
341
343
) ->Union[Iterator[Dividend], HTTPResponse]:
342
344
"""
343
345
Get a list of historical cash dividends, including the ticker symbol, declaration date, ex-dividend date, record date, pay date, frequency, and amount.
0 commit comments