@@ -17,7 +17,7 @@ def get_snapshot_all(
17
17
tickers : Optional [Union [str , List [str ]]] = None ,
18
18
params : Optional [Dict [str , Any ]] = None ,
19
19
raw : bool = False ,
20
- include_otc : bool = False ,
20
+ include_otc : Optional [ bool ] = False ,
21
21
) -> Union [List [TickerSnapshot ], HTTPResponse ]:
22
22
"""
23
23
Get the most up-to-date market data for all traded stock symbols.
@@ -26,6 +26,7 @@ def get_snapshot_all(
26
26
27
27
:param market_type: Which market to get a snapshot of.
28
28
:param tickers: A comma separated list of tickers to get snapshots for.
29
+ :param include_otc: Include OTC securities in the response. Default is false (don't include OTC securities).
29
30
:return: List of Snapshots
30
31
"""
31
32
url = f"/v2/snapshot/locale/us/markets/{ market_type } /tickers"
@@ -44,6 +45,7 @@ def get_snapshot_direction(
44
45
market_type : Optional [Union [str , SnapshotMarketType ]],
45
46
direction : Union [str , Direction ],
46
47
params : Optional [Dict [str , Any ]] = None ,
48
+ include_otc : Optional [bool ] = False ,
47
49
raw : bool = False ,
48
50
) -> Union [List [TickerSnapshot ], HTTPResponse ]:
49
51
"""
@@ -55,6 +57,7 @@ def get_snapshot_direction(
55
57
56
58
:param market_type: Which market to get a snapshot of.
57
59
:param direction: The direction ("gainers" or "losers")
60
+ :param include_otc: Include OTC securities in the response. Default is false (don't include OTC securities).
58
61
:return: List of Snapshots
59
62
"""
60
63
url = f"/v2/snapshot/locale/us/markets/{ market_type } /{ direction } "
0 commit comments